PageSourceSearch

https://insights.cyrisk.com/js/vendors.ad277859.js

js cyrisk.com collected 2026-10-04 13:26:49 UTC 3,741,362 bytes, 406 lines download raw bytes

1(self["webpackChunkcyrisk"]=self["webpackChunkcyrisk"]||[]).push([[8096],{92902:function(e,t,n){"use strict";n.d(t,{eh:function(){return s},JP:function(){return a},Lt:function(){return h},R3:function(){return i},oe:function(){return c},q6:function(){return l},h2:function(){return d},rJ:function(){return M},Qv:function(){return E},gs:function(){return U},Xm:function(){return B}});var r=n(32556);const i={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const e=this.callbacks;this.callbacks=[],e.forEach(e=>e())}}},o=(e,t)=>{const n=e instanceof Object&&t instanceof Object;if(!n)return e===t;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;const o=r.some(n=>e[n]!==t[n]);return!o};class s extends r.uA{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(e,t){this._pendingContext=null!==t&&void 0!==t?t:{}}shouldComponentUpdate(e,t){return!o(this.props,e)||!o(this.state,t)||!o(this.context,this._pendingContext)}}class a extends s{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){i.lock()}componentWillUpdate(e,t,n){i.lock()}componentDidMount(){i.callbacks.push(()=>{this._effects=this.createEffects()}),i.callEffects()}componentDidUpdate(){i.callbacks.push(()=>this.updateEffects()),i.callEffects()}destroyEffects(){this._effects.forEach(e=>e.dispose())}componentWillUnmount(){this.destroyEffects()}}class c extends a{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const e=this.vDomElement,t=e.className.length?e.className.split(" "):[],n=t.filter(t=>e.dxClasses.previous.indexOf(t)<0),r=e.dxClasses.previous.filter(e=>t.indexOf(e)<0);n.forEach(t=>{const n=e.dxClasses.removed.indexOf(t);n>-1?e.dxClasses.removed.splice(n,1):e.dxClasses.added.includes(t)||e.dxClasses.added.push(t)}),r.forEach(t=>{const n=e.dxClasses.added.indexOf(t);n>-1?e.dxClasses.added.splice(n,1):e.dxClasses.removed.includes(t)||e.dxClasses.removed.push(t)})}componentDidMount(){const e=(0,r.UV)(this.$LI,!0);this.vDomElement=e,super.componentDidMount(),e.dxClasses=e.dxClasses||{removed:[],added:[],previous:[]},e.dxClasses.previous=(null===e||void 0===e?void 0:e.className.length)?e.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const e=this.vDomElement;null!==e&&(e.dxClasses.added.forEach(t=>e.classList.add(t)),e.dxClasses.removed.forEach(t=>e.classList.remove(t)),e.dxClasses.previous=e.className.length?e.className.split(" "):[])}shouldComponentUpdate(e,t){const n=super.shouldComponentUpdate(e,t);return n&&this.vDomUpdateClasses(),n}}let u=0;const l=function(e){const t=u++;return{id:t,defaultValue:e,Provider:class extends r.uA{getChildContext(){return Object.assign(Object.assign({},this.context),{[t]:this.props.value||e})}render(){return this.props.children}}}};class h{constructor(e,t){this.dependency=t,this.effect=e,this.destroy=e()}update(e){const t=this.dependency;e&&(this.dependency=e),e&&!e.some((e,n)=>t[n]!==e)||(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const d=()=>new h(()=>{(0,r.mM)()},[]),f="a runtime error occured! Use Inferno in development environment to find the error.";function p(e){return void 0===e||null===e}function A(e){return null===e||!1===e||!0===e||void 0===e}function g(e){return"function"===typeof e}function m(e){return null===e}function y(e){throw e||(e=f),new Error(`Inferno Error: ${e}`)}function v(e,t){const n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}function b(e){let t,n;while(e){if(t=e.flags,2033&t)return e.dom;n=e.children,e=8192&t?2===e.childFlags?n:n[n.length-1]:4&t?n.$LI:n}return null}function w(e,t){return Boolean(t&&t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html&&v(e,t.dangerouslySetInnerHTML.__html))}function C(e,t,n,i,o,s,a){const c=e.type,u=e.ref,l=e.props||r.MZ;let h;if(s){const s=(0,r.EW)(e,c,l,i,o,a),d=s.$LI;h=P(d,t,n,s.$CX,o,a),(0,r.Gg)(u,s,a)}else{const s=(0,r.zF)((0,r.F1)(e,i));h=P(s,t,n,i,o,a),e.children=s,(0,r.Hq)(e,a)}return h}function _(e,t,n,i,o,s){const a=e.childFlags,c=e.children,u=e.props,l=e.flags;if(1!==a){if(2===a)m(n)?(0,r._M)(c,t,i,o,null,s):(n=P(c,t,n,i,o,s),n=n?n.nextSibling:null);else if(16===a)m(n)?t.appendChild(document.createTextNode(c)):1!==t.childNodes.length||3!==n.nodeType?t.textContent=c:n.nodeValue!==c&&(n.nodeValue=c),n=null;else if(12&a){let e=!1;for(let a=0,u=c.length;a<u;++a){const u=c[a];m(n)||e&&(16&u.flags)>0?(0,r._M)(u,t,i,o,n,s):(n=P(u,t,n,i,o,s),n=n?n.nextSibling:null),e=(16&u.flags)>0}}if(0===(8192&l)){let e=null;while(n)e=n.nextSibling,t.removeChild(n),n=e}}else m(t.firstChild)||w(t,u)||(t.textContent="",448&l&&(t.defaultValue=""))}function S(e,t,n,i,o,s){const a=e.props,c=e.className,u=e.flags,l=e.ref;return o=o||(32&u)>0,1!==n.nodeType?((0,r.C4)(e,null,i,o,null,s),t.replaceChild(e.dom,n)):(e.dom=n,_(e,n,n.firstChild,i,o,s),m(a)||(0,r.vI)(e,u,a,n,o),p(c)?""!==n.className&&n.removeAttribute("class"):o?n.setAttribute("class",c):n.className=c,(0,r.J4)(l,n,s)),e.dom}function x(e,t,n){if(3!==n.nodeType)t.replaceChild(e.dom=document.createTextNode(e.children),n);else{const t=e.children;n.nodeValue!==t&&(n.nodeValue=t),e.dom=n}return e.dom}function T(e,t,n,r,i,o){const s=e.children;return 2===e.childFlags?(x(s,t,n),s.dom):(_(e,t,n,r,i,o),b(s[s.length-1]))}function P(e,t,n,r,i,o){const s=e.flags|=16384;return 14&s?C(e,t,n,r,i,(4&s)>0,o):481&s?S(e,t,n,r,i,o):16&s?x(e,t,n):512&s?e.dom=n:8192&s?T(e,t,n,r,i,o):(y(),null)}function E(e,t,n){let i=t.firstChild;
1if(m(i))(0,r.XX)(e,t,n);else{const n=[];A(e)||(i=P(e,t,i,{},!1,n));while(i&&(i=i.nextSibling))t.removeChild(i);if(n.length>0){let e;while(void 0!==(e=n.shift()))e()}}t.$V=e,g(n)&&n()}var I=n(81274);const k=e=>{var t,n;return(null===(t=e.container)||void 0===t?void 0:t.get(0))||(null===(n=e.item)||void 0===n?void 0:n.get(0))};function B(e,t,n){setTimeout(()=>{(0,r.XX)((0,I.n)(e,t),k(t))},0)}const M=(e,t,n)=>{const r=t[e];return!!r&&"string"!==typeof r},O=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),D=e=>"number"===typeof e||!Number.isNaN(Number(e)),R=(e,t)=>O.has(e)?t:`${t}px`,L=/[A-Z]/g,N=e=>e.replace(L,"-$&").toLowerCase();function U(e){if(e instanceof Object)return Object.entries(e).reduce((e,[t,n])=>(e[N(t)]=D(n)?R(t,n):n,e),{})}},13698:function(e){
2/*!
3 * clipboard.js v2.0.11
4 * https://clipboardjs.com/
5 *
6 * Licensed MIT © Zeno Rocha
7 */
8!function(t,n){e.exports=n()}(0,function(){return t={686:function(e,t,n){"use strict";n.d(t,{default:function(){return y}});t=n(279);var r=n.n(t),i=(t=n(370),n.n(t)),o=(t=n(817),n.n(t));function s(e){try{return document.execCommand(e)}catch(e){return}}var a=function(e){return e=o()(e),s("cut"),e};function c(e,t){var n,r;n=e,r="rtl"===document.documentElement.getAttribute("dir"),(e=document.createElement("textarea")).style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[r?"right":"left"]="-9999px",r=window.pageYOffset||document.documentElement.scrollTop,e.style.top="".concat(r,"px"),e.setAttribute("readonly",""),e.value=n;return t.container.appendChild(e),t=o()(e),s("copy"),e.remove(),t}var u=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=c(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=c(e.value,t):(n=o()(e),s("copy")),n};function l(e){return(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})(e)}var h=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container;t=e.target,e=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==t){if(!t||"object"!==l(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return e?u(e,{container:r}):t?"cut"===n?a(t):u(t,{container:r}):void 0};function d(e){return(d="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})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=g(t);return e=n?(e=g(this).constructor,Reflect.construct(r,arguments,e)):r.apply(this,arguments),r=this,!e||"object"!==d(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):e}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var y=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(s,r());var e,t,n,o=A(s);function s(e,t){var n;return function(e){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return e=s,n=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return u(e,t)}},{key:"cut",value:function(e){return a(e)}},{key:"isSupported",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=(e="string"==typeof e?[e]:e,!!document.queryCommandSupported);return e.forEach(function(e){t=t&&!!document.queryCommandSupported(e)}),t}}],(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy";e=h({action:n,container:this.container,target:this.target(t),text:this.text(t)});
vendor: 4,407 bytes, line 8
8this.emit(e?"success":"error",{action:n,text:e,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return m("action",e)}},{key:"defaultTarget",value:function(e){if(e=m("target",e),e)return document.querySelector(e)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&f(e.prototype,t),n&&f(e,n),s}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,i,o){var s=function(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,s,o),{destroy:function(){e.removeEventListener(n,s,o)}}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,o)}))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return u=t,l=n,(c=e).addEventListener(u,l),{destroy:function(){c.removeEventListener(u,l)}};if(r.nodeList(e))return o=e,s=t,a=n,Array.prototype.forEach.call(o,function(e){e.addEventListener(s,a)}),{destroy:function(){Array.prototype.forEach.call(o,function(e){e.removeEventListener(s,a)})}};if(r.string(e))return i(document.body,e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,s,a,c,u,l}},817:function(e){e.exports=function(e){var t,n="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t),n.toString());return n}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,s=r.length;o<s;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(686).default;function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}var t,n})},92259:function(e){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"}
vendor: 4,748 bytes, lines 8-15
8),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="",n(n.s=31)}([function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(6),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(4));o.inherits=n(2);var s=n(22),a=n(13);o.inherits(h,s);for(var c=i(a.prototype),u=0;u<c.length;u++){var l=c[u];h.prototype[l]||(h.prototype[l]=a.prototype[l])}function h(e){if(!(this instanceof h))return new h(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";(function(e){
9/*!
10 * The buffer module from node.js, for the browser.
11 *
12 * @author   Feross Aboukhadijeh <http://feross.org>
13 * @license  MIT
14 */
15var r=n(37),i=n(38),o=n(39);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=a(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(l(t),e=a(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 14,279 bytes, line 15
15(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 j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function A(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(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:m(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):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(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 s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function v(e,t,n,r){return z(j(t,e.length-n),e,n,r)}function b(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return b(e,t,n,r)}function C(e,t,n,r){return z(H(t),e,n,r)}function _(e,t,n,r){return z(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,c,u=e[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){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(e){return!1}}(),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 function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(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);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)A(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)A(this,t,t+3),A(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)A(this,t,t+7),A(this,t+1,t+6),A(this,t+2,t+5),A(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):function(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))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+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(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),h=0;h<a;++h)if(u[h]!==l[h]){o=u[h],s=l[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(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 y(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(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 T=4096;function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function k(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function R(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 L(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||B(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||B(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||B(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||B(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||B(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||B(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||B(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||B(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(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||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(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):D(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(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):D(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);M(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&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);M(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(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||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),
vendor: 4,471 bytes, line 15
15c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(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):D(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return N(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<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:j(new c(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+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 H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(0))},function(e,t,n){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(3).Buffer.isBuffer},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}
vendor: 1,970 bytes, line 15
15catch(e){r=s}}();var c,u=[],l=!1,h=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!l){var e=a(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++h<t;)c&&c[h].run();h=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function A(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=A,i.addListener=A,i.once=A,i.off=A,i.removeListener=A,i.removeAllListeners=A,i.emit=A,i.prependListener=A,i.prependOnceListener=A,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){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:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return t.nextTick(function(){e.apply(null,o)})}}}:e.exports=t}).call(this,n(5))},function(e,t,n){var r=n(15)(Object,"create");e.exports=r},function(e,t,n){var r=n(30);e.exports=function(e,t){for(var n=e.length;n--;
vendor: 4,797 bytes, line 15
15)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(94);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,n,r){var i,o,s;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=l(e))>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,function(e){console&&console.warn&&console.warn(e)}(a)}return e}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):A(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function A(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var u=c.length,l=A(c,u);for(n=0;n<u;++n)o(l[n],this,t)}return!0},a.prototype.addListener=function(e,t){return h(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return h(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,o,s;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit
vendor: 6,535 bytes, line 15
15("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(t=e.exports=n(22)).Stream=t,t.Readable=t,t.Writable=n(13),t.Duplex=n(1),t.Transform=n(26),t.PassThrough=n(45)},function(e,t,n){var r=n(3),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.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},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var o=n(6);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var a,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=m;var u=Object.create(n(4));u.inherits=n(2);var l,h={deprecate:n(43)},d=n(23),f=n(12).Buffer,p=(void 0!==i?i:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},A=n(24);function g(){}function m(e,t){a=a||n(1),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u: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 h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,i);else{var s=C(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(b,e,n,s,i):b(e,n,s,i)}}(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 s(this)}function y(e){if(a=a||n(1),!(l.call(y,this)||this instanceof a))return new y(e);this._writableState=new m(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)),d.call(this)}function v(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)i[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,h=n.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,l,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var n=C(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,d),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===y&&e&&e._writableState instanceof m}})):l=function(e){return e instanceof this}
vendor: 5,163 bytes, line 15
15,y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r=this._writableState,i=!1,s=!r.objectMode&&function(e){return f.isBuffer(e)||e instanceof p}(e);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=g),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(r,s),i=!1),i}(this,r,e,n))&&(r.pendingcb++,i=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,a,r,i,o);return c}(this,r,s,e,t,n)),i},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.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&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=A.destroy,y.prototype._undestroy=A.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(5),n(21).setImmediate,n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t.eol&&e)for(var n=0,r=e.length;n<r;n++)if("\r"===e[n]){if("\n"===e[n+1]){t.eol="\r\n";break}if(e[n+1]){t.eol="\r";break}}else if("\n"===e[n]){t.eol="\n";break}return t.eol||"\n"}},function(e,t,n){var r=n(63),i=n(71);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(17).Symbol;e.exports=r},function(e,t,n){var r=n(65),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(29),i=n(74);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(34),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t,n){"use strict";(function(t,r){var i=n(6);e.exports=v;var o,s=n(36);v.ReadableState=y,n(10).EventEmitter;var a=function(e,t){return e.listeners(t).length},c=n(23),u=n(12).Buffer,l=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=Object.create(n(4));h.inherits=n(2);var d=n(40),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,A=n(41),g=n(24);h.inherits(v,c);var m=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};
vendor: 5,655 bytes, line 15
15var r=t instanceof(o=o||n(1));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new A,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&&(p||(p=n(25).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||n(1),!(this instanceof v))return new v(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function b(e,t,n,r,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(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,S(e)}}(e,s)):(i||(o=function(e,t){var n;return function(e){return u.isBuffer(e)||e instanceof l}(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):T(e,s)):w(e,s,t,!1))):r||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function w(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&&S(e)),T(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},v.prototype.unshift=function(e){return b(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return p||(p=n(25).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var C=8388608;function _(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=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){f("emit readable"),e.emit("readable"),k(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(P,e,t))}function P(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function E(e){f("readable nexttick read 0"),e.read(0)}function I(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),k(e),t.flowing&&!t.reading&&e.read(0)}function k(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=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=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0==(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function M(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(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):S(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;
vendor: 2,031 bytes, line 15
15return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(n,t))),null===(r=e>0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.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)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var c=t&&!1===t.end||e===r.stdout||e===r.stderr?y:u;function u(){f("onend"),e.end()}o.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",function t(r,i){f("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",A),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",p),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())});var l=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,k(e))}}(n);e.on("drain",l);var h=!1,d=!1;function p(t){f("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!h&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++,d=!0),n.pause())}function A(t){f("onerror",t),y(),e.removeListener("error",A),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",m),y()}function m(){f("onfinish"),e.removeListener("close",g),y()}function y(){f("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 7,275 bytes, line 15
15ndListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",A),e.once("close",g),e.once("finish",m),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},v.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;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=D(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&S(this):i.nextTick(E,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(I,e,t))}(this,e)),this},v.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<m.length;o++)e.on(m[o],this.emit.bind(this,m[o]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=B}).call(this,n(0),n(5))},function(e,t,n){e.exports=n(10).EventEmitter},function(e,t,n){"use strict";var r=n(6);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";var r=n(44).Buffer,i=r.isEncoding||function(e){switch((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){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)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}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=h,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){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,"�"}}(this,e);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 c(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 u(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 l(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 h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(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)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=o;var r=n(1),i=Object.create(n(4));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;
vendor: 10,554 bytes, line 15
15if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){a(e,t,n)}):a(this,null,null)}function a(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.trimRight=t.trimLeft=void 0,t.bufFromString=function(t){var n=e.byteLength(t),r=e.allocUnsafe?e.allocUnsafe(n):new e(n);return r.write(t),r},t.emptyBuffer=function(){return e.allocUnsafe?e.allocUnsafe(0):new e(0)},t.filterArray=function(e,t){for(var n=[],r=0;r<e.length;r++)t.indexOf(r)>-1&&n.push(e[r]);return n},t.trimLeft=function(e){return e.trimStart()},t.trimRight=function(e){return e.trimEnd()}}).call(this,n(3).Buffer)},function(e,t,n){"use strict";var r=this&&this.__extends||function(){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])})(t,n)};return function(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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var i=e.call(this,"Error: "+t+". JSON Line number: "+n+(r?" near: "+r:""))||this;return i.err=t,i.line=n,i.extra=r,i.name="CSV Parse Error",i}return r(t,e),t.column_mismatched=function(e,n){return new t("column_mismatched",e,n)},t.unclosed_quote=function(e,n){return new t("unclosed_quote",e,n)},t.fromJSON=function(e){return new t(e.err,e.line,e.extra)},t.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},t}(Error);t.default=i},function(e,t,n){var r=n(16),i=n(66),o=n(67),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){e.exports=n(32)},function(e,t,n){"use strict";var r=n(33),i=function(e,t){return new r.Converter(e,t)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){"use strict";(function(e){var r=this&&this.__extends||function(){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])})(t,n)};return function(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)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.Converter=void 0;var i=n(35),o=n(50),s=n(51),a=n(52),c=n(103),u=function(t){function u(n,r){void 0===r&&(r={});var i=t.call(this,r)||this;return i.options=r,i.params=(0,o.mergeParams)(n),i.runtime=(0,s.initParseRuntime)(i),i.result=new c.Result(i),i.processor=new a.ProcessorLocal(i),i.once("error",function(t){e(function(){i.result.processError(t),i.emit("done",t)})}),i.once("done",function(){i.processor.destroy()}),i}return r(u,t),u.prototype.preRawData=function(e){return this.runtime.preRawDataHook=e,this},u.prototype.preFileLine=function(e){return this.runtime.preFileLineHook=e,this},u.prototype.subscribe=function(e,t,n){return this.parseRuntime.subscribe={onNext:e,onError:t,onCompleted:n},this},u.prototype.fromFile=function(e,t){var r=this,i=n(!function(){var e=new Error("Cannot find module 'fs'");throw e.code="MODULE_NOT_FOUND",e}());return i.exists(e,function(n){n?i.createReadStream(e,t).pipe(r):r.emit("error",new Error("File does not exist at ".concat(e,". Check to make sure the file path to your csv is correct.")))}),this},u.prototype.fromStream=function(e){return e.pipe(this),this},u.prototype.fromString=function(e){e.toString();var t=new i.Readable,n=0;return t._read=function(t){if(n>=e.length)this.push(null);else{var r=e.substring(n,n+t);this.push(r),n+=t}},this.fromStream(t)},u.prototype.then=function(e,t){var n=this;return new Promise(function(r,i){n.parseRuntime.then={onfulfilled:function(t){r(e?e(t):t)},onrejected:function(e){t?r(t(e)):i(e)}}})},Object.defineProperty(u.prototype,"parseParam",{get:function(){return this.params},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!1,configurable:!0}),u.prototype._transform=function(e,t,n){var r=this;this.processor.process(e).then(function(e){if(e.length>0)return r.runtime.started=!0,r.result.processResult(e)}).then(function(){r.emit("drained"),n()},function(e){r.runtime.hasError=!0,r.runtime.error=e,r.emit("error",e),n()})},u.prototype._flush=function(e){var t=this;this.processor.flush().then(function(e){if(e.length>0)return t.result.processResult(e)}).then(function(){t.processEnd(e)},function(n){t.emit("error",n),e()})},u.prototype.processEnd=function(e){this.result.endProcess(),this.emit("done"),e()},Object.defineProperty(u.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!1,configurable:!0}),u}(i.Transform);t.Converter=u}).call(this,n(21).setImmediate)},function(e,t,n){(function(e,t){!function(e){"use strict";if(!e.setImmediate){var n,r=1,i={},o=!1,s=e.document,a=Object.getPrototypeOf&&Object.getPrototypeOf(e);a=a&&a.setTimeout?a:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){u(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&u(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){u(e.data)},n=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;n=function(t){var n=s.createElement("script");n.onreadystatechange=function(){u(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():n=function(e){setTimeout(u,0,e)},a.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),o=0;o<t.length;o++)t[o]=arguments[o+1];var s={callback:e,args:t};return i[r]=s,n(r),r++},a.clearImmediate=c}function c(e){delete i[e]}function u(e){if(o)setTimeout(u,0,e);else{var t=i[e];if(t){o=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{c(e),o=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(0),n(5))},function(e,t,n){e.exports=i;var r=n(10).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(11),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.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",a),n.on("close",c));var s=!1;function a(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),s=r[0],a=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),l=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(h(e,s,s+16383>a?a:s+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 4,548 bytes, lines 15-17
15+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(l(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
16/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
17t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+h],h+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=u}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,h=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,A=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*c-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+f]=255&s,f+=p,s/=256,u-=8);e[n+f-p]|=128*A}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){},function(e,t,n){"use strict";var r=n(12).Buffer,i=n(42);function o(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)o(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){var r=n(3),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.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},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=o;var r=n(26),i=Object.create(n(4));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(13)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(11).Transform},function(e,t,n){e.exports=n(11).PassThrough},function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};
17Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(e){var t={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var n in e||(e={}),e)e.hasOwnProperty(n)&&(Array.isArray(e[n])?t[n]=r([],e[n],!0):t[n]=e[n]);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(e){var t=e.parseParam,n={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:e.parseParam.delimiter,eol:e.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return t.ignoreColumns&&(n.needProcessIgnoreColumn=!0),t.includeColumns&&(n.needProcessIncludeColumn=!0),n}},function(e,t,n){"use strict";(function(e){var r=this&&this.__extends||function(){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])})(t,n)};return function(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)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessorLocal=void 0;var o=n(53),s=n(54),a=i(n(14)),c=n(55),u=n(27),l=n(56),h=i(n(57)),d=i(n(28)),f=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.rowSplit=new l.RowSplit(e.converter),e.eolEmitted=!1,e._needEmitEol=void 0,e.headEmitted=!1,e._needEmitHead=void 0,e}return r(n,t),n.prototype.flush=function(){var e=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var t=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(t,!0).then(function(t){return e.runtime.csvLineBuffer&&e.runtime.csvLineBuffer.length>0?Promise.reject(d.default.unclosed_quote(e.runtime.parsedLineNumber,e.runtime.csvLineBuffer.toString())):Promise.resolve(t)})}return Promise.resolve([])},n.prototype.destroy=function(){return Promise.resolve()},Object.defineProperty(n.prototype,"needEmitEol",{get:function(){return void 0===this._needEmitEol&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"needEmitHead",{get:function(){return void 0===this._needEmitHead&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!1,configurable:!0}),n.prototype.process=function(e,t){var n,r=this;return void 0===t&&(t=!1),n=t?e.toString():(0,s.prepareData)(e,this.converter.parseRuntime),Promise.resolve().then(function(){return r.runtime.preRawDataHook?r.runtime.preRawDataHook(n):n}).then(function(e){return e&&e.length>0?r.processCSV(e,t):Promise.resolve([])})},n.prototype.processCSV=function(e,t){var n=this,r=this.params,i=this.runtime;i.eol||(0,a.default)(e,i),this.needEmitEol&&!this.eolEmitted&&i.eol&&(this.converter.emit("eol",i.eol),this.eolEmitted=!0),r.ignoreEmpty&&!i.started&&(e=(0,u.trimLeft)(e));var o=(0,c.stringToLines)(e,i);return t?(o.lines.push(o.partial),o.partial=""):this.prependLeftBuf((0,u.bufFromString)(o.partial)),o.lines.length>0?(i.preFileLineHook?this.runPreLineHook(o.lines):Promise.resolve(o.lines)).then(function(e){return i.started||n.runtime.headers?n.processCSVBody(e):n.processDataWithHead(e)}):Promise.resolve([])},n.prototype.processDataWithHead=function(e){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var t="",n=[];e.length;){var r=t+e.shift(),i=this.rowSplit.parse(r);if(i.closed){n=i.cells,t="";break}t=r+(0,a.default)(r,this.runtime)}if(this.prependLeftBuf((0,u.bufFromString)(t)),0===n.length)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=n}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(e)},n.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var e=this.runtime.headers,t=0;t<e.length;t++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(e[t])){if
17(!this.params.includeColumns||!this.params.includeColumns.test(e[t]))continue;this.runtime.selectedColumns.push(t)}else this.runtime.selectedColumns.push(t);else this.params.includeColumns?this.params.includeColumns.test(e[t])&&this.runtime.selectedColumns.push(t):this.runtime.selectedColumns.push(t);this.runtime.headers=(0,u.filterArray)(this.runtime.headers,this.runtime.selectedColumns)}},n.prototype.processCSVBody=function(e){if("line"===this.params.output)return e;var t=this.rowSplit.parseMultiLines(e);return this.prependLeftBuf((0,u.bufFromString)(t.partial)),"csv"===this.params.output?t.rowsCells:(0,h.default)(t.rowsCells,this.converter)},n.prototype.prependLeftBuf=function(t){t&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=e.concat([t,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=t)},n.prototype.runPreLineHook=function(e){var t=this;return new Promise(function(n,r){!function e(t,n,r,i){if(r>=t.length)i();else if(n.preFileLineHook){var o=t[r],s=n.preFileLineHook(o,n.parsedLineNumber+r);if(r++,s&&s.then)s.then(function(o){t[r-1]=o,e(t,n,r,i)});else{for(t[r-1]=s;r<t.length;)t[r]=n.preFileLineHook(t[r],n.parsedLineNumber+r),r++;i()}}else i()}(e,t.runtime,0,function(t){t?r(t):n(e)})})},n}(o.Processor);t.ProcessorLocal=f}).call(this,n(3).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Processor=void 0;var r=function(e){this.converter=e,this.params=e.parseParam,this.runtime=e.parseRuntime};t.Processor=r},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.prepareData=function(t,n){var r=function(t,n){return n.csvLineBuffer&&n.csvLineBuffer.length>0?e.concat([n.csvLineBuffer,t]):t}(t,n);n.csvLineBuffer=void 0;var i=function(e,t){var n=e.length-1;if(0!=(128&e[n])){for(;128==(192&e[n]);)n--;n--}return n!=e.length-1?(t.csvLineBuffer=e.slice(n+1),e.slice(0,n+1)):e}(r,n).toString("utf8");return!1===n.started?function(e){if("string"!=typeof e)throw new TypeError("Expected a string, got ".concat(typeof e));return 65279===e.charCodeAt(0)?e.slice(1):e}(i):i}}).call(this,n(3).Buffer)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringToLines=function(e,t){var n=(0,i.default)(e,t),r=e.split(n),o=r.pop()||"";return{lines:r,partial:o}};var i=r(n(14))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RowSplit=void 0;var i=r(n(14)),o=n(27),s=[",","|","\t",";",":"],a=function(){function e(e){this.conv=e,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=e.parseParam.quote,this.trim=e.parseParam.trim,this.escape=e.parseParam.escape}return Object.defineProperty(e.prototype,"needEmitDelimiter",{get:function(){return void 0===this._needEmitDelimiter&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!1,configurable:!0}),e.prototype.parse=function(e){if(0===e.length||this.conv.parseParam.ignoreEmpty&&0===e.trim().length)return{cells:[],closed:!0};var t=this.quote,n=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||"auto"===this.conv.parseRuntime.delimiter.toLowerCase())&&(this.conv.parseRuntime.delimiter=this.getDelimiter(e)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var r=this.conv.parseRuntime.delimiter,i=e.split(r);if("off"===t){if(n)for(var o=0;o<i.length;o++)i[o]=i[o].trim();return{cells:i,closed:!0}}return this.toCSVRow(i,n,t,r)},e.prototype.toCSVRow=function(e,t,n,r){for(var i=[],s=!1,a="",c=0,u=e.length;c<u;c++){var l=e[c];!s&&t&&(l=(0,o.trimLeft)(l));var h=l.length;if(s)this.isQuoteClose(l)?(s=!1,a+=r+(l=l.substr(0,h-1)),a=this.escapeQuote(a),t&&(a=(0,o.trimRight)(a)),i.push(a),a=""):a+=r+l;else{if(2===h&&l===this.quote+this.quote){i.push("");continue}if(this.isQuoteOpen(l)){if(l=l.substr(1),this.isQuoteClose(l)){l=l.substr(0,l.lastIndexOf(n)),l=this.escapeQuote(l),i.push(l);continue}if(-1!==l.indexOf(n)){for(var d=0,f="",p=0,A=l;p<A.length;p++){var g=A[p];g===n&&f!==this.escape?(d++,f=""):f=g}if(d%2==1){t&&(l=(0,o.trimRight)(l)),i.push(n+l);continue}s=!0,a+=l;continue}s=!0,a+=l;continue}t&&(l=(0,o.trimRight)(l)),i.push(l)}}return{cells:i,closed:!s}},e.prototype.getDelimiter=function(e){var t;if("auto"===this.conv.parseParam.delimiter)t=s;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;t=this.conv.parseParam.delimiter}var n=0,r=",";return t.forEach(function(t){var i=e.split(t).length;i>n&&(r=t,n=i)}),r},e.prototype.isQuoteOpen=function(e){var t=this.quote,n=this.escape;return e[0]===t&&(e[1]!==t||e[1]===n&&(e[2]===t||2===e.length))},e.prototype.isQuoteClose=function(e){var t=this.quote,n=this.escape;this.conv.parseParam.trim&&(e=(0,o.trimRight)(e));for(var r=0,i=e.length-1;e[i]===t||e[i]===n;)i--,r++;return r%2!=0},e.prototype.escapeQuote=function(e){var t="es|"+this.quote+"|"+this.escape;void 0===this.cachedRegExp[t]&&(this.cachedRegExp[t]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var n=this.cachedRegExp[t];return e.replace(n,this.quote)},e.prototype.parseMultiLines=function(e){for(var t=[],n="";e.length;){var r=n+e.shift(),s=this.parse(r);0===s.cells.length&&this.conv.parseParam.ignoreEmpty||(s.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?t.push((0,o.filterArray)(s.cells,this.conv.parseRuntime.selectedColumns)):t.push(s.cells),n=""):n=r+((0,i.default)(r,this.conv.parseRuntime)||"\n"))}return{rowsCells:t,partial:n}},e}();t.RowSplit=a},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
17dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=a(e[r],t,r);o&&n.push(o)}return n};var i=r(n(28)),o=r(n(58)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function a(e,t,n){if(t.parseParam.checkColumn&&t.parseRuntime.headers&&e.length!==t.parseRuntime.headers.length)throw i.default.column_mismatched(t.parseRuntime.parsedLineNumber+n);return function(e,t,n){for(var r=!1,i={},o=0,s=e.length;o<s;o++){var a=e[o];if(!n.parseParam.ignoreEmpty||""!==a){r=!0;var c=t[o];c&&""!==c||(c=t[o]="field"+(o+1));var h=u(c,o,n);if(h){var d=h(a,c,i,e,o);void 0!==d&&l(i,c,d,n,o)}else n.parseParam.checkType&&(a=f(a,c,o,n)(a)),void 0!==a&&l(i,c,a,n,o)}}return r?i:null}(e,t.parseRuntime.headers||[],t)||null}var c={string:A,number:p,omit:function(){}};function u(e,t,n){if(void 0!==n.parseRuntime.columnConv[t])return n.parseRuntime.columnConv[t];var r=n.parseParam.colParser[e];if(void 0===r)return n.parseRuntime.columnConv[t]=null;if("object"==typeof r&&(r=r.cellParser||"string"),"string"==typeof r){r=r.trim().toLowerCase();var i=c[r];return n.parseRuntime.columnConv[t]=i||null}return n.parseRuntime.columnConv[t]="function"==typeof r?r:null}function l(e,t,n,r,i){if(!r.parseRuntime.columnValueSetter[i])if(r.parseParam.flatKeys)r.parseRuntime.columnValueSetter[i]=h;else if(t.indexOf(".")>-1){for(var o=t.split("."),s=!0;o.length>0;)if(0===o.shift().length){s=!1;break}!s||r.parseParam.colParser[t]&&r.parseParam.colParser[t].flat?r.parseRuntime.columnValueSetter[i]=h:r.parseRuntime.columnValueSetter[i]=d}else r.parseRuntime.columnValueSetter[i]=h;!0===r.parseParam.nullObject&&"null"===n&&(n=null),r.parseRuntime.columnValueSetter[i](e,t,n)}function h(e,t,n){e[t]=n}function d(e,t,n){(0,o.default)(e,t,n)}function f(e,t,n,r){return r.parseRuntime.headerType[n]?r.parseRuntime.headerType[n]:t.indexOf("number#!")>-1?r.parseRuntime.headerType[n]=p:t.indexOf("string#!")>-1?r.parseRuntime.headerType[n]=A:r.parseParam.checkType?r.parseRuntime.headerType[n]=g:r.parseRuntime.headerType[n]=A}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function A(e){return e.toString()}function g(e){var t=e.trim();return""===t?A(e):s.test(t)?p(e):5===t.length&&"false"===t.toLowerCase()||4===t.length&&"true"===t.toLowerCase()?function(e){var t=e.trim();return!(5===t.length&&"false"===t.toLowerCase())}(e):"{"===t[0]&&"}"===t[t.length-1]||"["===t[0]&&"]"===t[t.length-1]?function(e){try{return JSON.parse(e)}catch(t){return e}}(e):A(e)}},function(e,t,n){var r=n(59);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(60),i=n(72),o=n(101),s=n(18),a=n(102);e.exports=function(e,t,n,c){if(!s(e))return e;for(var u=-1,l=(t=i(t,e)).length,h=l-1,d=e;null!=d&&++u<l;){var f=a(t[u]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(u!=h){var A=d[f];void 0===(p=c?c(A,f,d):void 0)&&(p=s(A)?A:o(t[u+1])?[]:{})}r(d,f,p),d=d[f]}return e}},function(e,t,n){var r=n(61),i=n(30),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(62);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(15),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(64),i=n(68),o=n(18),s=n(70),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,h=u.hasOwnProperty,d=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:a).test(s(e))}},function(e,t,n){var r=n(29),i=n(18);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(0))},function(e,t,n){var r=n(16),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(69),i=function(){var e=/[^.]+$/.exec(r&&r.ke
vendor: 5,147 bytes, line 17
17ys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(17)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(19),i=n(73),o=n(75),s=n(98);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(s(e))}},function(e,t,n){var r=n(19),i=n(20),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(76),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=s},function(e,t,n){var r=n(77);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(78);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(79),i=n(93),o=n(95),s=n(96),a=n(97);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,n){var r=n(80),i=n(86),o=n(92);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(81),i=n(82),o=n(83),s=n(84),a=n(85);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,n){var r=n(7);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(7),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(7),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(7);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(87),i=n(88),o=n(89),s=n(90),a=n(91);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(8),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(8);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(8);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(15)(n(17),"Map");e.exports=r},function(e,t,n){var r=n(9);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(9);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(9);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(9);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(99);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(16),i=n(100),o=n(19),s=n(20),a=r?r.prototype:void 0,c=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(20);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";
17Object.defineProperty(t,"__esModule",{value:!0}),t.Result=void 0;var r=n(104),i=function(){function e(e){this.converter=e,this.finalResult=[]}return Object.defineProperty(e.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needPushDownstream",{get:function(){return void 0===this._needPushDownstream&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!1,configurable:!0}),e.prototype.processResult=function(e){var t=this,n=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&"array"===this.converter.parseParam.downstreamFormat&&0===n&&o(this.converter,"["+r.EOL),new Promise(function(n,r){t.needEmitLine?function e(t,n,r,i,s){if(r>=t.length)s();else if(n.parseRuntime.subscribe&&n.parseRuntime.subscribe.onNext){var a=n.parseRuntime.subscribe.onNext,c=t[r],u=a(c,n.parseRuntime.parsedLineNumber+r);if(r++,u&&u.then)u.then(function(){!function(t,n,r,i,s,a,c){s&&o(r,c),e(t,r,i,s,a)}(t,0,n,r,i,s,c)},s);else{for(i&&o(n,c);r<t.length;){var l=t[r];a(l,n.parseRuntime.parsedLineNumber+r),r++,i&&o(n,l)}s()}}else{if(i)for(;r<t.length;)l=t[r++],o(n,l);s()}}(e,t.converter,0,t.needPushDownstream,function(i){i?r(i):(t.appendFinalResult(e),n(void 0))}):(t.appendFinalResult(e),n(void 0))})},e.prototype.appendFinalResult=function(e){this.needEmitAll&&(this.finalResult=this.finalResult.concat(e)),this.converter.parseRuntime.parsedLineNumber+=e.length},e.prototype.processError=function(e){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(e),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(e)},e.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&"array"===this.converter.parseParam.downstreamFormat&&o(this.converter,"]"+r.EOL)},e}();function o(e,t){if("object"!=typeof t||e.options.objectMode)e.push(t);else{var n=JSON.stringify(t);e.push(n+("array"===e.parseParam.downstreamFormat?","+r.EOL:r.EOL),"utf8")}}t.Result=i},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}}])},39755:function(e){
18/*! For license information please see dx-diagram.min.js.LICENSE.txt */
19!function(t,n){e.exports=n()}(0,()=>(()=>{"use strict";var e={9279:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=void 0;var n=function(){function e(){}return e.IdentUserAgent=function(t,n){void 0===n&&(n=!1);var r=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],i="IE",o="Win",s={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(t&&0!==t.length){t=t.toLowerCase(),e.indentPlatformMajorVersion(t);try{for(var a={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"}
vendor: 4,432 bytes, line 19
19,c="(?:/|\\s*)?",u="(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?",l="(?:"+u+")?",h={Safari:"applewebkit(?:.*?(?:version/"+u+"[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)"+c+l,Mozilla:"mozilla(?:.*rv:"+l+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+l,Firefox:"firefox"+c+l,Opera:"(?:opera|\\sopr)"+c+l,Opera10:"opera.*\\s*version"+c+l,IE:"msie\\s*"+l,Edge:"edge"+c+l},d=null,f=-1,p=0;p<r.length;p++){var A=r[p],g=new RegExp(h[A],"i").exec(t);if(g&&g.index>=0){if("IE"===d&&f>=11&&"Safari"===A)continue;"Opera10"===(d=A)&&(d="Opera");var m="trident"+c+l;f=e.GetBrowserVersion(t,g,m,e.getIECompatibleVersionString()),"Mozilla"===d&&f>=11&&(d="IE")}}d||(d=i);var y=-1!==f;y||(f=s[d]);var v=null,b=Number.MAX_VALUE;for(var w in a)if(Object.prototype.hasOwnProperty.call(a,w)){var C="!"===w.substr(0,1),_=t.indexOf((C?w.substr(1):w).toLowerCase());_>=0&&(_<b||C)&&(b=C?0:_,v=a[w])}var S=t.toUpperCase().match("SM-[A-Z]"),x=S&&S.length>0;"WinPhone"===v&&f<9&&(f=Math.floor(e.getVersionFromTrident(t,"trident"+c+l))),!n&&"IE"===d&&f>7&&document.documentMode<f&&(f=document.documentMode),"WinPhone"===v&&(f=Math.max(9,f)),v||(v=o),v!==a["cpu os"]||y||(f=4),e.fillUserAgentInfo(r,d,f,v,x)}catch(t){e.fillUserAgentInfo(r,i,s[i],o)}}else e.fillUserAgentInfo(r,i,s[i],o)},e.GetBrowserVersion=function(t,n,r,i){var o=e.getVersionFromMatches(n);if(i){var s=e.getVersionFromTrident(t,r);if("edge"===i||parseInt(i)===s)return s}return o},e.getIECompatibleVersionString=function(){if(document.compatible)for(var e=0;e<document.compatible.length;e++)if("IE"===document.compatible[e].userAgent&&document.compatible[e].version)return document.compatible[e].version.toLowerCase();return""},e.isTouchEnabled=function(){return e.hasTouchStart()||e.hasMaxTouchPoints()||e.hasMsMaxTouchPoints()},e.hasTouchStart=function(){return"ontouchstart"in window},e.hasMaxTouchPoints=function(){return navigator.maxTouchPoints>0},e.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},e.hasNavigator=function(){return"undefined"!=typeof navigator},e.fillUserAgentInfo=function(t,n,r,i,o){void 0===o&&(o=!1);for(var s=0;s<t.length;s++){var a=t[s];e[a]=a===n}e.Version=Math.floor(10*r)/10,e.MajorVersion=Math.floor(e.Version),e.WindowsPlatform="Win"===i||"WinPhone"===i,e.MacOSMobilePlatform="MacMobile"===i||"Mac"===i&&e.isTouchEnabled(),e.MacOSPlatform="Mac"===i&&!e.MacOSMobilePlatform,e.AndroidMobilePlatform="Android"===i,e.WindowsPhonePlatform="WinPhone"===i,e.WebKitFamily=e.Safari||e.Chrome||e.Opera&&e.MajorVersion>=15,e.NetscapeFamily=e.Netscape||e.Mozilla||e.Firefox,e.WebKitTouchUI=e.MacOSMobilePlatform||e.AndroidMobilePlatform;var c=e.IE&&e.MajorVersion>9&&e.WindowsPlatform&&e.UserAgent.toLowerCase().indexOf("touch")>=0;if(e.MSTouchUI=c||e.Edge&&!!window.navigator.maxTouchPoints,e.TouchUI=e.WebKitTouchUI||e.MSTouchUI,e.MobileUI=e.WebKitTouchUI||e.WindowsPhonePlatform,e.AndroidDefaultBrowser=e.AndroidMobilePlatform&&!e.Chrome,e.AndroidChromeBrowser=e.AndroidMobilePlatform&&e.Chrome,o&&(e.SamsungAndroidDevice=o),e.MSTouchUI){var u=e.UserAgent.toLowerCase().indexOf("arm;")>-1;e.VirtualKeyboardSupported=u||e.WindowsPhonePlatform}else e.VirtualKeyboardSupported=e.WebKitTouchUI;e.fillDocumentElementBrowserTypeClassNames(t)},e.indentPlatformMajorVersion=function(t){var n=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(t);n&&(e.PlaformMajorVersion=n[1])},e.getVersionFromMatches=function(e){var t=-1,n="";return e&&(e[1]&&(n+=e[1],e[2]&&(n+="."+e[2])),""!==n&&(t=parseFloat(n),isNaN(t)&&(t=-1))),t},e.getVersionFromTrident=function(t,n){var r=new RegExp(n,"i").exec(t);return e.getVersionFromMatches(r)+4},e.fillDocumentElementBrowserTypeClassNames=function(t){for(var n="",r=t.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),i=0;i<r.length;i++){var o=r[i];e[o]&&(n+="dx"+o+" ")}n+="dxBrowserVersion-"+e.MajorVersion,"undefined"!=typeof document&&document&&document.documentElement&&(""!==document.documentElement.className&&(n=" "+n),document.documentElement.className+=n,e.Info=n)},e.getUserAgent=function(){return e.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},e.UserAgent=e.getUserAgent(),e._foo=e.IdentUserAgent(e.UserAgent),e}();t.Browser=n},1772:(e,t)=>
vendor: 9,340 bytes, line 19
19{Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBatchUpdatableObject=t.BatchUpdatableObject=void 0;var n=function(){function e(){this.suspendUpdateCount=0,this.occurredEvents=0}return e.prototype.beginUpdate=function(){0===this.suspendUpdateCount&&this.onUpdateLocked(),this.suspendUpdateCount<0?this.suspendUpdateCount--:this.suspendUpdateCount++},e.prototype.endUpdate=function(){if(this.suspendUpdateCount<0?this.suspendUpdateCount++:this.suspendUpdateCount>0&&this.suspendUpdateCount--,!this.isUpdateLocked()){var e=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(e)}},e.prototype.suspendUpdate=function(){if(this.suspendUpdateCount>0){this.suspendUpdateCount*=-1;var e=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(e)}},e.prototype.continueUpdate=function(){this.suspendUpdateCount<0&&(this.suspendUpdateCount*=-1)},e.prototype.isUpdateLocked=function(){return this.suspendUpdateCount>0},e.prototype.onUpdateLocked=function(){},e.prototype.registerOccurredEvent=function(e){this.occurredEvents|=e},e.prototype.resetOccurredEvents=function(){this.occurredEvents=0},e.prototype.isLocked=function(){return 0!==this.suspendUpdateCount},e}();t.BatchUpdatableObject=n;var r=function(){function e(){}return e.prototype.beginUpdate=function(){},e.prototype.endUpdate=function(){},e}();t.EmptyBatchUpdatableObject=r},7820:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Flag=void 0;var n=function(){function e(e){void 0===e&&(e=0),this.value=e}return e.prototype.get=function(e){return(this.value&e)===e},e.prototype.set=function(e,t){return(this.value&e)===e!==t&&(t?this.value|=e:this.value^=e),this},e.prototype.add=function(e){this.value|=e},e.prototype.anyOf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if((this.value&i)===i)return!0}return!1},e.prototype.getValue=function(){return this.value},e.prototype.clone=function(){return new e(this.value)},e}();t.Flag=n},6799:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedMinMax=t.ExtendedMax=t.ExtendedMin=t.MinMaxNumber=t.MinMax=void 0;var r=n(655),i=function(e,t){this.minElement=e,this.maxElement=t};t.MinMax=i;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!1,configurable:!0}),t}(i);t.MinMaxNumber=o;var s=function(e,t){this.minElement=e,this.minValue=t};t.ExtendedMin=s;var a=function(e,t){this.maxElement=e,this.maxValue=t};t.ExtendedMax=a;var c=function(e){function t(t,n,r,i){var o=e.call(this,t,r)||this;return o.minValue=n,o.maxValue=i,o}return r.__extends(t,e),t}(i);t.ExtendedMinMax=c},9291:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnitConverter=void 0;var n=function(){function e(){}return e.hundredthsOfMillimeterToTwipsRound=function(e){return Math.round(1440*e/2540)},e.documentsToTwips=function(e){return 24*e/5},e.pixelsToTwips=function(t){return Math.round(e.pixelsToTwipsF(t))},e.pixelsToTwipsCustomDpi=function(t,n){return Math.round(e.pixelsToTwipsFCustomDpi(t,n))},e.inchesToTwips=function(t){return Math.round(e.inchesToTwipsF(t))},e.pointsToTwips=function(t){return Math.round(e.pointsToTwipsF(t))},e.picasToTwips=function(t){return Math.round(1440*t/e.PICAS_PER_INCH)},e.centimetersToTwips=function(t){return Math.round(e.centimetersToTwipsF(t))},e.pixelsToTwipsF=function(t){return 1440*t/e.DPI},e.pixelsToTwipsFCustomDpi=function(e,t){return 1440*e/t},e.inchesToTwipsF=function(e){return 1440*e},e.pointsToTwipsF=function(e){return 20*e},e.centimetersToTwipsF=function(t){return 1440*t/e.CENTIMETERS_PER_INCH},e.twipsToDegrees=function(e){return e/6e4},e.twipsToRadians=function(e){return e/6e4*Math.PI/180},e.degreesToTwips=function(e){return 6e4*e},e.radiansToTwips=function(e){return 6e4*e/Math.PI*180},e.radiansToDegrees=function(e){return e/Math.PI*180},e.twipsToFD=function(e){return Math.round(2048*e/1875)},e.fdToTwips=function(e){return Math.round(1875*e/2048)},e.emuToTwips=function(e){return e/635},e.twipsToPixels=function(t){return Math.round(e.twipsToPixelsF(t))},e.inchesToPixels=function(t){return Math.round(e.DPI*t)},e.centimeterToPixel=function(e){return Math.round(this.centimeterToPixelF(e))},e.centimeterToPixelF=function(t){return t*e.DPI/e.CENTIMETERS_PER_INCH},e.millimetersToPixel=function(t){return Math.round(t/(e.CENTIMETERS_PER_INCH/e.DPI)/10)},e.pointsToPixels=function(t){return Math.round(t*e.DPI/72)},e.pointsToPixelsF=function(t){return t*e.DPI/72},e.twipsToPixelsF=function(t){return t*e.DPI/1440},e.pixelsToPoints=function(t){return Math.round(72*t/e.DPI)},e.pixelsToPointsF=function(t){return 72*t/e.DPI},e.twipsToPoints=function(e){return Math.round(this.twipsToPointsF(e))},e.twipsToPointsF=function(e){return e/20},e.twipsToInches=function(e){return e/1440},e.pixelsToInches=function(t){return t/e.DPI},e.twipsToCentimeters=function(t){return t*e.CENTIMETERS_PER_INCH/1440},e.pixelToCentimeters=function(t){return t*e.CENTIMETERS_PER_INCH/e.DPI},e.twipsToHundredthsOfMillimeter=function(e){return Math.round(127*e/72)},e.pixelsToHundredthsOfMillimeter=function(t){return Math.round(2540*t/e.DPI)},e.hundredthsOfMillimeterToTwips=function(e){return 15*e/127},e.twipsToEmu=function(e){return 635*e},e.twipsToDegree=function(e){return e/6e4},e.DPI=96,e.CENTIMETERS_PER_INCH=2.54,e.PICAS_PER_INCH=6,e}();t.UnitConverter=n},5596:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metrics=void 0;var n=function(){function e(){}return e.euclideanDistance=function(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.manhattanDistance=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},e}();t.Metrics=n},4125:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Offsets=void 0;var n=function(){function e(e,t,n,r){this.left=e,this.right=t,this.top=n,this.bottom=r}return e.empty=function(){return new e(0,0,0,0)},Object.defineProperty(e.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!1,configurable:!0}),e.fromNumber=function(t){return new e(t,t,t,t)},e.fromOffsets=function(t){return new e(t.left,t.right,t.top,t.bottom)},e.fromSide=function(t,n){return new e(t,t,n,n)},e.prototype.normalize=function(){return this.left=Math.max(0,this.left),this.right=Math.max(0,this.right),this.top=Math.max(0,this.top),this.bottom=Math.max(0,this.bottom),this},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},e.prototype.offset=function(e){return this.left+=e.left,this.right+=e.right,this.top+=e.top,this.bottom+=e.bottom,this},e.prototype.multiply=function(e,t,n,r){switch(arguments.length){case 1:return this.left*=e,this.right*=e,this.top*=e,this.bottom*=e,this;case 2:return this.left*=e,this.right*=e,this.top*=t,this.bottom*=t,this;case 4:return this.left*=e,this.right*=t,this.top*=n,this.bottom*=r,this}return this},e.prototype.clone=function(){return new e(this.left,this.right,this.top,this.bottom)},e.prototype.copyFrom=function(e){this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom},e.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.right===e.right&&this.left===e.left},e.prototype.applyConverter=function(e){return this.left=e(this.left),this.right=e(this.right),this.top=e(this.top),this.bottom=e(this.bottom),this},e}();t.Offsets=n},8900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Point=void 0;var n=function(){function e(e,t){this.x=e,this.y=t}return e.zero=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.prototype.isZero=function(){return 0===this.x&&0===this.y},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(e){return this.x===e.x&&this.y===e.y},e.prototype.offset=function(e,t){return this.x+=e,this.y+=t,this},e.prototype.offsetByPoint=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.multiply=function(e,t){return this.x*=e,this.y*=t,this},e.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},e.prototype.applyConverter=function(e){return this.x=e(this.x),this.y=e(this.y),this},e.plus=function(t,n){return new e(t.x+n.x,t.y+n.y)},e.minus=function(t,n){return new e(t.x-n.x,t.y-n.y)},e.xComparer=function(e,t){return e.x-t.x},e.yComparer=function(e,t){return e.y-t.y},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();t.Point=n},8011:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RectangleDeviation=t.HitTestDeviation=t.Rectangle=void 0;var r,i=n(7820),o=n(1104),s=n(8860),a=n(8900),c=n(6353),u=function(){function e(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}return Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"center",{get:function(){return e.center(this)}
vendor: 5,887 bytes, line 19
19,enumerable:!1,configurable:!0}),e.prototype.createRectangle=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.createSize=function(){return new c.Size(this.width,this.height)},e.prototype.createPosition=function(){return new a.Point(this.x,this.y)},e.prototype.createVerticalInterval=function(){return new s.FixedInterval(this.y,this.height)},e.prototype.createHorizontalInterval=function(){return new s.FixedInterval(this.x,this.width)},e.fromGeometry=function(t,n){return new e(t.x,t.y,n.width,n.height)},e.fromPoints=function(t,n){return new e(Math.min(t.x,n.x),Math.min(t.y,n.y),Math.abs(t.x-n.x),Math.abs(t.y-n.y))},e.fromPositions=function(t,n,r,i){return new e(Math.min(t,r),Math.min(n,i),Math.abs(r-t),Math.abs(i-n))},e.fromCenter=function(t,n){return new e(t.x-n,t.y-n,2*n,2*n)},e.prototype.isCollapsed=function(){return 0===this.width||0===this.height},e.prototype.isEmpty=function(){return 0===this.x&&0===this.y&&0===this.width&&0===this.height},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.setPosition=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.setSize=function(e){return this.width=e.width,this.height=e.height,this},e.prototype.setGeomerty=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},e.prototype.moveRectangle=function(e,t){return this.x+=e,this.y+=t,this},e.prototype.moveRectangleByPoint=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.resize=function(e,t){return this.width+=e,this.height+=t,this},e.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},e.prototype.multiply=function(e,t){return this.x*=e,this.y*=t,this.width*=e,this.height*=t,this},e.prototype.equals=function(t){return e.equals(this,t)},e.prototype.clone=function(){var t=new e(0,0,0,0);return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},e.prototype.containsPoint=function(t){return e.containsPoint(this,t)},e.prototype.containsRectangle=function(e){return this.x<=e.x&&this.right>=e.right&&this.y<=e.y&&this.bottom>=e.bottom},e.prototype.inflate=function(e,t){return void 0===t&&(t=e),this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t,this},e.prototype.applyOffsetsInside=function(e){return this.x+=e.left,this.y+=e.top,this.width-=e.left+e.right,this.height-=e.top+e.bottom,this},e.prototype.applyNormalizedOffsetsInside=function(e){var t=Math.max(0,e.left),n=t+Math.max(0,e.right);0!==n&&(n<=this.width?(this.x+=t,this.width-=n):(this.x+=this.width*(t/n),this.width=0));var r=Math.max(0,e.top),i=r+Math.max(0,e.bottom);return 0!==i&&(i<=this.height?(this.y+=r,this.height-=i):(this.y+=this.height*(r/i),this.height=0)),this},e.prototype.applyOffsetsOutside=function(e){return this.x-=e.left,this.y-=e.top,this.width+=e.left+e.right,this.height+=e.top+e.bottom,this},e.prototype.applyConverter=function(e){return this.x=e(this.x),this.y=e(this.y),this.width=e(this.width),this.height=e(this.height),this},e.getHorizIntersection=function(e,t){return o.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.x,e.width),new s.FixedInterval(t.x,t.width))},e.getVertIntersection=function(e,t){return o.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.y,e.height),new s.FixedInterval(t.y,t.height))},e.getIntersection=function(t,n){var r=o.IntervalAlgorithms.getIntersection(new s.FixedInterval(t.x,t.width),new s.FixedInterval(n.x,n.width));if(!r)return null;var i=o.IntervalAlgorithms.getIntersection(new s.FixedInterval(t.y,t.height),new s.FixedInterval(n.y,n.height));return i?new e(r.start,i.start,r.length,i.length):null},e.getHorNonCollapsedIntersection=function(t,n){var r=e.getHorizIntersection(t,n);return r&&!r.isCollapsed()?r:null},e.getVertNonCollapsedIntersection=function(t,n){var r=e.getVertIntersection(t,n);return r&&!r.isCollapsed()?r:null},e.getNonCollapsedIntersection=function(t,n){var r=e.getIntersection(t,n);return r&&!r.isCollapsed()?r:null},e.areIntersected=function(e,t){return!(e.x>t.x+t.width||t.x>e.x+e.width||e.y>t.y+t.height||t.y>e.y+e.height)},e.union=function(t,n){var r=Math.max(t.x+t.width,n.x+n.width),i=Math.max(t.y+t.height,n.y+n.height),o=Math.min(t.x,n.x),s=Math.min(t.y,n.y);return new e(o,s,r-o,i-s)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},e.center=function(e){return new a.Point(e.x+e.width/2,e.y+e.height/2)},e.containsPoint=function(e,t){var n=e.x+e.width,r=e.y+e.height;return t.y>=e.y&&r>=t.y&&t.x>=e.x&&n>=t.x},e}();t.Rectangle=u,function(e){e[e.None=0]="None",e[e.Top=1]="Top",e[e.Bottom=2]="Bottom",e[e.Left=4]="Left",e[e.Right=8]="Right"}(r=t.HitTestDeviation||(t.HitTestDeviation={}));var l=function(){function e(e,t){this.initRectangle=e,this.initPoint=t,this.deviation=new i.Flag(r.None)}return e.prototype.calcDeviation=function(){return this.initPoint.x<this.initRectangle.x?this.deviation.set(r.Left,!0):this.initPoint.x>this.initRectangle.right&&this.deviation.set(r.Right,!0),this.initPoint.y<this.initRectangle.y?this.deviation.set(r.Top,!0):this.initPoint.y>this.initRectangle.bottom&&this.deviation.set(r.Bottom,!0),this},e.prototype.calcAdditionalParams=function(){return this.insidePoint=this.initPoint.clone(),this.offsetToInside=new a.Point(0,0),this.deviation.get(r.Left)?(this.insidePoint.x=this.initRectangle.x,this.offsetToInside.x=this.insidePoint.x-this.initPoint.x):this.deviation.get(r.Right)&&(this.insidePoint.x=this.initRectangle.right,this.offsetToInside.x=this.initPoint.x-this.insidePoint.x),this.deviation.get(r.Top)?(this.insidePoint.y=this.initRectangle.y,this.offsetToInside.y=this.insidePoint.y-this.initPoint.y):this.deviation.get(r.Bottom)&&(this.insidePoint.y=this.initRectangle.bottom,this.offsetToInside.y=this.initPoint.y-this.insidePoint.y),this},e}();t.RectangleDeviation=l},1335:(e,t,n)=>
vendor: 47,146 bytes, line 19
19{Object.defineProperty(t,"__esModule",{value:!0}),t.Segment=void 0;var r=n(8679),i=n(5596),o=n(8900),s=n(8011),a=function(){function e(e,t){this.startPoint=e,this.endPoint=t}return Object.defineProperty(e.prototype,"length",{get:function(){return i.Metrics.euclideanDistance(this.startPoint,this.endPoint)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xLength",{get:function(){return Math.abs(this.endPoint.x-this.startPoint.x)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yLength",{get:function(){return Math.abs(this.endPoint.y-this.startPoint.y)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"center",{get:function(){return new o.Point(this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2,this.startPoint.y+(this.endPoint.y-this.startPoint.y)/2)},enumerable:!1,configurable:!0}),e.prototype.isIntersected=function(e){return this.startPoint.equals(e.startPoint)||this.endPoint.equals(e.startPoint)||this.startPoint.equals(e.endPoint)||this.endPoint.equals(e.endPoint)||this.intersectCore(e)&&e.intersectCore(this)},e.prototype.containsPoint=function(e,t){return void 0===t&&(t=1e-7),this.startPoint.equals(e)||this.endPoint.equals(e)||r.MathUtils.numberCloseTo(this.length,i.Metrics.euclideanDistance(this.startPoint,e)+i.Metrics.euclideanDistance(this.endPoint,e),t)},e.prototype.isIntersectedByRect=function(t){if(s.Rectangle.containsPoint(t,this.startPoint)||s.Rectangle.containsPoint(t,this.endPoint))return!0;var n=t.x,r=t.x+t.width,i=t.y,a=t.y+t.height;return this.isIntersected(new e(new o.Point(n,i),new o.Point(n,a)))||this.isIntersected(new e(new o.Point(r,i),new o.Point(r,a)))||this.isIntersected(new e(new o.Point(n,i),new o.Point(r,i)))||this.isIntersected(new e(new o.Point(n,a),new o.Point(r,a)))},e.prototype.intersectCore=function(e){if(this.startPoint.x===this.endPoint.x){if(this.startPoint.x-e.endPoint.x!=0)return(this.startPoint.x-e.startPoint.x)/(this.startPoint.x-e.endPoint.x)<=0;if(e.endPoint.y-this.endPoint.y!=0)return(e.endPoint.y-this.startPoint.y)/(e.endPoint.y-this.endPoint.y)<=0}if(this.startPoint.y===this.endPoint.y){if(this.startPoint.y-e.endPoint.y!=0)return(this.startPoint.y-e.startPoint.y)/(this.startPoint.y-e.endPoint.y)<=0;if(e.endPoint.x-this.endPoint.x!=0)return(e.endPoint.x-this.startPoint.x)/(e.endPoint.x-this.endPoint.x)<=0}var t=(this.endPoint.y-this.startPoint.y)/(this.endPoint.x-this.startPoint.x),n=this.startPoint.y+(e.startPoint.x-this.startPoint.x)*t,r=this.startPoint.y+(e.endPoint.x-this.startPoint.x)*t,i=e.startPoint.y-n,o=e.endPoint.y-r;return 0===i&&0===o?(this.startPoint.y-n)/(this.endPoint.y-n)<=0||(this.startPoint.y-r)/(this.endPoint.y-r)<=0:0===i||0===o||i/o<0},e}();t.Segment=a},6353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Size=void 0;var n=function(){function e(e,t){this.width=e,this.height=t}return e.empty=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.initByCommonAction=function(t){var n=function(e){return e.width},r=function(e){return e.height};return new e(t(n,r),t(r,n))},e.prototype.isEmpty=function(){return 0===this.width&&0===this.height},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},e.prototype.offset=function(e,t){return this.width=this.width+e,this.height=this.height+t,this},e.prototype.multiply=function(e,t){return this.width*=e,this.height*=t,this},e.prototype.equals=function(e){return this.width===e.width&&this.height===e.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.copyFrom=function(e){this.width=e.width,this.height=e.height},e.prototype.applyConverter=function(e){return this.width=e(this.width),this.height=e(this.height),this},e.equals=function(e,t){return e.width===t.width&&e.height===t.height},e}();t.Size=n},9716:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Vector=void 0;var n=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.x=e,this.y=t}return Object.defineProperty(e.prototype,"length",{get:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},enumerable:!1,configurable:!0}),e.fromPoints=function(t,n){return new e(n.x-t.x,n.y-t.y)},e.fromSegment=function(t){return new e(t.endPoint.x-t.startPoint.x,t.endPoint.y-t.startPoint.y)},e.prototype.normalize=function(){var e=this.length;return 0!==e&&(this.x/=e,this.y/=e),this},e.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},Object.defineProperty(e,"axisX",{get:function(){return new e(1,0)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"axisY",{get:function(){return new e(0,1)},enumerable:!1,configurable:!0}),e.angleBetween=function(t,n){var r=e.scalarProduct(t,n)/(t.length*n.length);return Math.acos(r)},e.scalarProduct=function(e,t){return e.x*t.x+e.y*t.y},e}();t.Vector=n},1104:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IntervalAlgorithms=void 0;var r=n(2940),i=n(2400),o=n(8860),s=n(6102),a=function(){function e(){}return e.oneConstainsOtherArraysOfInterval=function(e,t){for(var n=r.ListUtils.deepCopy(t),i=n.pop();i;){if(!r.ListUtils.unsafeAnyOf(e,function(e){return e.containsInterval(i)}))return!1;i=n.pop()}return!0},e.getIntersection=function(t,n){return e.getIntersectionTemplate(t,n,t)},e.getIntersectionTemplate=function(e,t,n){var r=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return r>i?null:n.makeByStartEnd(r,i)},e.getIntersectionNonNullLength=function(t,n){return e.getIntersectionNonNullLengthTemplate(t,n,t)},e.getIntersectionNonNullLengthTemplate=function(t,n,r){var i=e.getIntersectionTemplate(t,n,r);return i&&i.length?i:null},e.getIntersectionsTwoArraysOfInterval=function(t,n){return e.getIntersectionsTwoArraysOfIntervalTemplate(t,n,t[0])},e.getIntersectionsTwoArraysOfIntervalTemplate=function(t,n,r){for(var i=[],o=t.length,s=n.length,a=0,c=0,u=t[a],l=n[c],h=null;a<o&&c<s;){var d=e.getIntersectionTemplate(u,l,r);d&&(h&&h.end===d.start?h.length+=d.length:(h=d,i.push(h))),u.end<l.end?u=t[++a]:l=n[++c]}return i},e.getAffectedObjects=function(t,n,r,o){return void 0===r&&(r=function(e){return i.SearchUtils.normedInterpolationIndexOf(t,function(e){return e.interval.start},e)}),void 0===o&&(o=function(e,t,n){return e.start===n&&0===t}),e.getAffectedObjectsTemplate(t,n,n[0],r,o)},e.getAffectedObjectsTemplate=function(t,n,r,o,a){void 0===o&&(o=function(e){return i.SearchUtils.normedInterpolationIndexOf(t,function(e){return e.interval.start},e)}),void 0===a&&(a=function(e,t,n){return e.start===n&&0===t});for(var c=new s.SparseIntervalsCollector(r),u=0,l=n;u<l.length;u++)for(var h=l[u],d=Math.max(0,o(h.start,t)),f=void 0;f=t[d];d++){var p=f.interval;if(p.start>h.end)break;var A=e.getIntersectionTemplate(p,h,r);A&&(A.length||a(p,h.length,A.start))&&c.add(d)}return c.getIntervals()},e.handleAffectedObjects=function(t,n,r,s){void 0===s&&(s=function(e){return i.SearchUtils.normedInterpolationIndexOf(t,function(e){return e.interval.start},e)});for(var a=new o.FixedInterval(0,0),c=0,u=n;c<u.length;c++)for(var l=u[c],h=Math.max(0,s(l.start,t)),d=void 0;d=t[h];h++){var f=d.interval;if(f.start>l.end)break;var p=e.getIntersectionTemplate(f,l,a);p&&r(d,h,l,p)}},e.getMergedIntervals=function(t,n){return e.getMergedIntervalsTemplate(t,n,t[0])},e.getMergedIntervalsTemplate=function(e,t,n){if(e.length<2)return e.length>0?[n.makeByStartLength(e[0].start,e[0].length)]:[];for(var r=t?[].concat(e).sort(function(e,t){return e.start-t.start}):e,i=[],o=0,s=void 0;s=r[o];){var a=s.start,c=s.end;for(++o;void 0!==(s=r[o])&&s.start<=c;o++)s.end>c&&(c=s.end);i.push(n.makeByStartEnd(a,c))}return i},e.reflectIntervals=function(t,n){return e.reflectIntervalsTemplate(t,n,n)},e.reflectIntervalsTemplate=function(t,n,i){if(!t.length)return[i.makeByStartLength(n.start,n.length)];var o=r.ListUtils.last(t).end,s=r.ListUtils.reducedMap(t,function(r,o){return e.getIntersectionNonNullLengthTemplate(i.makeByStartEnd(t[o-1].end,r.start),n,i)},1);return n.start<t[0].start&&s.unshift(i.makeByStartEnd(n.start,t[0].start)),n.end>o&&s.push(i.makeByStartEnd(o,n.end)),s},e.reflectionOfPointOnInterval=function(e,t,n){return(e-t.start)/t.length*n.length+n.start},e}();t.IntervalAlgorithms=a},7814:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConstInterval=void 0;var n=function(){function e(){}return Object.defineProperty(e.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!1,configurable:!0}),e.prototype.isNormalized=function(){return this.end>=this.start},e.prototype.isCollapsed=function(){return 0===this.length},e.prototype.equals=function(e){return this.start===e.start&&this.end===e.end},e.isCollapsed=function(e){return!e[1]&&e[0].isCollapsed()},e.prototype.containsInterval=function(e){return this.start<=e.start&&this.end>=e.end},e.prototype.containsIntervalWithoutEnd=function(e){return this.start<=e.start&&this.end>e.end},e.prototype.contains=function(e){return this.start<=e&&e<this.end},e.prototype.containsWithIntervalEnd=function(e){return this.start<=e&&e<=this.end},e.prototype.containsWithoutIntervalEndAndStart=function(e){return this.start<e&&e<this.end},e}();t.ConstInterval=n},8860:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FixedInterval=void 0;var r=n(655),i=function(e){function t(t,n){var r=e.call(this)||this;return r.start=t,r.length=n,r}return r.__extends(t,e),Object.defineProperty(t.prototype,"end",{get:function(){return this.start+this.length},set:function(e){this.length=e-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!1,configurable:!0}),t.prototype.copyFrom=function(e){this.start=e.start,this.length=e.length},t.prototype.equals=function(e){return e&&this.start===e.start&&this.length===e.length},t.prototype.clone=function(){return new t(this.start,this.length)},t.prototype.makeByStartEnd=function(e,n){return new t(e,n-e)},t.prototype.makeByStartLength=function(e,n){return new t(e,n)},t.prototype.makeByLengthEnd=function(e,n){return new t(n-e,e)},t.fromPositions=function(e,n){return new t(e,n-e)},t.makeByConstInterval=function(e){return new t(e.start,e.length)},t.prototype.expand=function(e){var t=Math.max(e.end,this.end);return this.start=Math.min(e.start,this.start),this.end=t,this},t}(n(8678).MutableInterval);t.FixedInterval=i},8678:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MutableInterval=void 0;var r=n(655),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.normalizeLength=function(){return this.length<0&&(this.length=0),this},t}(n(7814).ConstInterval);t.MutableInterval=i},6102:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SparseIntervalsCollector=void 0;var r=n(448),i=function(){function e(e){this.intervals=[],this.template=e}return e.prototype.add=function(e){this.curr&&this.curr.end===e?this.curr.length++:(this.curr=this.template.makeByStartLength(e,1),this.intervals.push(this.curr))},e.prototype.getIntervals=function(){return new r.SparseIntervals(this.intervals)},e}();t.SparseIntervalsCollector=i},448:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SparseIntervals=void 0;var r=n(8094),i=n(510),o=function(){function e(e){void 0===e&&(e=[]),this.list=e,this._count=0,this._numIntervals=0;for(var t=0,n=e;t<n.length;t++){var r=n[t];this._count+=r.length,this._numIntervals++}}return Object.defineProperty(e.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numIntervals",{get:function(){return this._numIntervals},enumerable:!1,configurable:!0}),e.prototype.getInterval=function(e){return this.list[e]},e.prototype.getNativeIterator=function(){return new r.SparseIntervalsIterator(this)},e.prototype.getObjectsIterator=function(e){return new i.SparseObjectsIterator(this,e)},e}();t.SparseIntervals=o},8094:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SparseIntervalsIterator=void 0;var n=function(){function e(e){this.sparseIntervals=e,this.intervalIndex=-1}return Object.defineProperty(e.prototype,"isStarted",{get:function(){return!!this.curr},enumerable:!1,configurable:!0}),e.prototype.moveNext=function(){return this.curr&&this.posInInterval+1<this.curr.length?(this.posInInterval++,this.index++,this.initObject(),!0):this.intervalIndex+1<this.sparseIntervals.numIntervals&&(this.intervalIndex++,this.curr=this.sparseIntervals.getInterval(this.intervalIndex),this.curr.length?(this.posInInterval=0,this.index=this.curr.start,this.initObject(),!0):this.moveNext())},e.prototype.movePrev=function(){return this.curr&&this.posInInterval-1>=this.curr.start?(this.posInInterval--,this.index--,this.initObject(),!0):(this.isStarted||(this.intervalIndex=this.sparseIntervals.numIntervals),this.intervalIndex-1>=0&&(this.intervalIndex--,this.curr=this.sparseIntervals.getInterval(this.intervalIndex),this.posInInterval=Math.max(this.curr.length-1,this.curr.start),this.index=this.curr.start,this.initObject(),!0))},e.prototype.initObject=function(){},e}();t.SparseIntervalsIterator=n},510:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SparseObjectsIterator=void 0;var r=n(655),i=function(e){function t(t,n){var r=e.call(this,t)||this;return r.objects=n,r}return r.__extends(t,e),t.prototype.initObject=function(){this.obj=this.objects[this.index]},t}(n(8094).SparseIntervalsIterator);t.SparseObjectsIterator=i},6477:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Base64Utils=void 0;var r=n(2674),i=n(4633),o=function(){function e(){}return e.normalizeToDataUrl=function(t,n){return e.checkPrependDataUrl(t)||(t=e.prependByDataUrl(t,n)),t},e.prependByDataUrl=function(e,t){return"data:"+t+";base64,"+e},e.checkPrependDataUrl=function(t){return e.dataUrl.test(t)},e.deleteDataUrlPrefix=function(t){return t.replace(e.dataUrl,"")},e.getUint8Array=function(e){for(var t=(e=atob(e)).length,n=new Uint8Array(t);t--;)n[t]=e.charCodeAt(t);return n},e.fromArrayBuffer=function(e){for(var t=[],n=new Uint8Array(e),r=n.byteLength,i=0;i<r;i++)t.push(String.fromCharCode(n[i]));return window.btoa(t.join(""))},e.getFileFromBase64=function(t,n,i){void 0===n&&(n="");var o=e.getUint8Array(t);return r.FileUtils.createFile([o],n,i)},e.getMimeTypeAsString=function(t){var n=t.match(e.dataUrl);return n?n[1]:null},e.getKnownMimeType=function(t){var n=t.match(e.dataUrl);return n?i.MimeTypeUtils.stringTypeToType(n[1]):i.DxMimeType.Unknown},e.fromBlobAsArrayBuffer=function(t,n){var r=new FileReader;r.onloadend=function(){return n(e.fromArrayBuffer(r.result))},r.readAsArrayBuffer(t)},e.fromBlobAsDataUrl=function(e,t){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.readAsDataURL(e)},e.dataUrl=/^data:(.*?)(;(.*?))??(;base64)?,/,e}();t.Base64Utils=o},13:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorUtils=void 0;var r=n(49),i=function(){function e(){}return e.getAlpha=function(e){return e>>24&255},e.getRed=function(e){return e>>16&255},e.getGreen=function(e){return e>>8&255},e.getBlue=function(e){return 255&e},e.redPartToString=function(t){var n=e.getRed(t).toString(16);return n.length>1?n:"0"+n},e.greenPartToString=function(t){var n=e.getGreen(t).toString(16);return n.length>1?n:"0"+n},e.bluePartToString=function(t){var n=e.getBlue(t).toString(16);return n.length>1?n:"0"+n},e.fromArgbNumber=function(e,t,n,r){return e<<24|t<<16|n<<8|r},e.fromRgbaString=function(e,t){void 0===t&&(t=255);var n=e.replace(/ +/g,"").match(/(rgba?)|(\d+(\.\d+)?%?)|(\.\d+)/g);if(n&&n.length>3){for(var r=[],i=1,o=void 0;o=n[i];i++){var s=-1!==o.indexOf("%")?Math.round(2.55*parseFloat(o)):parseInt(o);if(s<0||s>255)return null;r.push(s)}if(0===e.indexOf("rgba")){if(isNaN(r[3])||r[3]<0||r[3]>1)return null;r[3]<=1&&(r[3]=Math.round(255*r[3]))}else if(r[3])return null;return(255&r[0])<<16|(255&r[1])<<8|255&r[2]|(255&(r.length>3?r[3]:t))<<24}return null},e.fromHashString=function(t,n){return void 0===n&&(n=255),e.isHashColorString(t)?("#"===t.charAt(0)&&(t=t.substr(1)),3===t.length&&(t=r.StringUtils.repeat(t.charAt(0),2)+r.StringUtils.repeat(t.charAt(1),2)+r.StringUtils.repeat(t.charAt(2),2)),parseInt(t,16)|n<<24):null},e.fromColorName=function(t,n){void 0===n&&(n=255);var r=e.colorNames[t.toLowerCase()];return r?e.fromHashString(r,n):null},e.fromString=function(t,n){void 0===n&&(n=255);var r=e.fromRgbaString(t,n);if(null!==r)return r;var i=e.fromHashString(t,n);return null!==i?i:e.fromColorName(t,n)},e.colorToHash=function(t){return"#"+e.redPartToString(t)+e.greenPartToString(t)+e.bluePartToString(t)},e.stringToHash=function(e){var t=this.fromString(e);return null!==t?this.colorToHash(t):null},e.isHashColorString=function(e){return/^#?([0-9a-f]{6})$/i.test(e)||/^#?([0-9a-f]{3})$/i.test(e)},e.isKnownColorName=function(t){return!!e.colorNames[t.toLowerCase()]},e.isGray=function(t){var n=e.getRed(t);return n===e.getGreen(t)&&n===e.getBlue(t)},e.DARK_COLOR=-16777216,e.LIGHT_COLOR=-1,e.colorNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#00ff00",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",windowtext:"#000000"},e}();t.ColorUtils=i},2491:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.numberToStringHex=t.numberToStringBin=t.isOdd=t.isEven=t.isNonNullString=t.isString=t.isNumber=t.boolToString=t.boolToInt=t.isDefined=void 0;var r=n(49);t.isDefined=function(e){return null!=e},t.boolToInt=function(e){return e?1:0},t.boolToString=function(e){return e?"1":"0"},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isNonNullString=function(e){return!!e},t.isEven=function(e){return e%2!=0},t.isOdd=function(e){return e%2==0},t.numberToStringBin=function(e,t){return void 0===t&&(t=0),r.StringUtils.padLeft(e.toString(2),t,"0")},t.numberToStringHex=function(e,t){return void 0===t&&(t=0),r.StringUtils.padLeft(e.toString(16),t,"0")}},4170:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Equals=t.Comparers=void 0;var n=function(){function e(){}return e.number=function(e,t){return e-t},e.string=function(e,t){return e===t?0:e>t?1:-1},e.stringIgnoreCase=function(e,t){return(e=e.toLowerCase())===(t=t.toLowerCase())?0:e>t?1:-1},e}();t.Comparers=n;var r=function(){function e(){}return e.simpleType=function(e,t){return e===t},e.object=function(e,t){return e&&t&&(e===t||e.equals(t))},e}();t.Equals=r},6907:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=void 0;var r=n(9279),i=n(2491),o=n(8679),s=n(49),a=function(){function e(){}return e.clearInnerHtml=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},e.setStylePosition=function(e,t){e.left=o.MathUtils.round(t.x,3)+"px",e.top=o.MathUtils.round(t.y,3)+"px"},e.setStyleSize=function(e,t){e.width=o.MathUtils.round(t.width,3)+"px",e.height=o.MathUtils.round(t.height,3)+"px"},e.setStyleSizeAndPosition=function(t,n){e.setStylePosition(t,n),e.setStyleSize(t,n)},e.hideNode=function(e){if(e){var t=e.parentNode;t&&t.removeChild(e)}},e.isHTMLElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},e.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isHTMLTableRowElement=function(e){return"TR"===e.tagName},e.isItParent=function(e,t){if(!e||!t)return!1;for(;t;){if(t===e)return!0;if("BODY"===t.tagName)return!1;t=t.parentNode}return!1},e.getParentByTagName=function(e,t){for(t=t.toUpperCase();e;){if("BODY"===e.tagName)return null;if(e.tagName===t)return e;e=e.parentNode}return null},e.getDocumentScrollTop=function(){var t=r.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return r.Browser.WebKitFamily||r.Browser.Edge||t?r.Browser.MacOSMobilePlatform?window.pageYOffset:r.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},e.getDocumentScrollLeft=function(){var t=r.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return r.Browser.Edge||t?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:r.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},e.getCurrentStyle=function(e){if(e.currentStyle)return e.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var t=document.defaultView.getComputedStyle(e,null);if(!t&&r.Browser.Firefox&&window.frameElement){for(var n=[],o=window.frameElement;!(t=document.defaultView.getComputedStyle(e,null));)n.push([o,o.style.display]),o.style.setProperty("display","block","important"),o="BODY"===o.tagName?o.ownerDocument.defaultView.frameElement:o.parentNode;t=function(e){if("object"!=typeof e||!i.isDefined(e))return e;var t={};for(var n in e)t[n]=e[n];return t}(t);for(var s=void 0,a=0;s=n[a];a++)s[0].style.display=s[1];document.body.offsetWidth}return t}return window.getComputedStyle(e,null)},e.setFocus=function(e){function t(){try{e.focus(),r.Browser.IE&&document.activeElement!==e&&e.focus()}catch(e){}}r.Browser.MacOSMobilePlatform?t():setTimeout(function(){t()},100)},e.hasClassName=function(e,t){try{var n=t.split(" "),r=e.classList;if(r){for(var i=n.length-1;i>=0;i--)if(!r.contains(n[i]))return!1}else{var o=e.getAttribute&&e.getAttribute("class");if(!o)return!1;var s=o.split(" ");for(i=n.length-1;i>=0;i--)if(s.indexOf(n[i])<0)return!1}return!0}catch(e){return!1}},e.addClassName=function(t,n){if(!e.hasClassName(t,n)){var r=t.getAttribute&&t.getAttribute("class");t.setAttribute("class",""===r?n:r+" "+n)}},e.removeClassName=function(e,t){var n=" "+(e.getAttribute&&e.getAttribute("class"))+" ",r=n.replace(" "+t+" "," ");n.length!==r.length&&e.setAttribute("class",s.StringUtils.trim(r))},e.toggleClassName=function(t,n,r){void 0===r?e.hasClassName(t,n)?e.removeClassName(t,n):e.addClassName(t,n):r?e.addClassName(t,n):e.removeClassName(t,n)},e.pxToInt=function(e){return c(e,parseInt)},e.pxToFloat=function(e){return c(e,parseFloat)},e.getAbsolutePositionY=function(t){function n(t){return Math.round(t.getBoundingClientRect().top+e.getDocumentScrollTop())}return t?r.Browser.IE?function(t){return r.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().top+e.getDocumentScrollTop()}(t):r.Browser.Firefox&&r.Browser.Version>=3?n(t):r.Browser.NetscapeFamily&&(!r.Browser.Firefox||r.Browser.Version<3)?function(t){for(var n=u(t,!1),i=!0;null!=t;){if(n+=t.offsetTop,i||null==t.offsetParent||(n-=t.scrollTop),!i&&r.Browser.Firefox){var o=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==o.overflow&&(n+=e.pxToInt(o.borderTopWidth))}i=!1,t=t.offsetParent}return n}(t):r.Browser.WebKitFamily||r.Browser.Edge?n(t):function(e){for(var t=0,n=!0;null!=e;)t+=e.offsetTop,n||null==e.offsetParent||(t-=e.scrollTop),n=!1,e=e.offsetParent;return t}(t):0},e.getAbsolutePositionX=function(t){function n(t){return Math.round(t.getBoundingClientRect().left+e.getDocumentScrollLeft())}return t?r.Browser.IE?function(t){return r.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().left+e.getDocumentScrollLeft()}(t):r.Browser.Firefox&&r.Browser.Version>=3?n(t):r.Browser.Opera&&r.Browser.Version<=12?function(e){for(var t=!0,n=u(e,!0);null!=e;)n+=e.offsetLeft,t||(n-=e.scrollLeft),e=e.offsetParent,t=!1;return n+document.body.scrollLeft}(t):r.Browser.NetscapeFamily&&(!r.Browser.Firefox||r.Browser.Version<3)?function(t){for(var n=u(t,!0),i=!0;null!=t;){if(n+=t.offsetLeft,i||null==t.offsetParent||(n-=t.scrollLeft),!i&&r.Browser.Firefox){var o=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==o.overflow&&(n+=e.pxToInt(o.borderLeftWidth))}i=!1,t=t.offsetParent}return n}(t):r.Browser.WebKitFamily||r.Browser.Edge?n(t):function(e){for(var t=0,n=!0;null!=e;)t+=e.offsetLeft,n||null==e.offsetParent||(t-=e.scrollLeft),n=!1,e=e.offsetParent;return t}(t):0},e.isInteractiveControl=function(e){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(e.tagName)>-1},e.getClearClientHeight=function(t){return t.offsetHeight-(e.getTopBottomPaddings(t)+e.getVerticalBordersWidth(t))},e.getTopBottomPaddings=function(t,n){var r=n||e.getCurrentStyle(t);return e.pxToInt(r.paddingTop)+e.pxToInt(r.paddingBottom)},e.getVerticalBordersWidth=function(t,n){i.isDefined(n)||(n=r.Browser.IE&&9!==r.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(t):e.getCurrentStyle(t));var o=0;return"none"!==n.borderTopStyle&&(o+=e.pxToFloat(n.borderTopWidth)),"none"!==n.borderBottomStyle&&(o+=e.pxToFloat(n.borderBottomWidth)),o},e.getNodes=function(e,t){for(var n=e.all||e.getElementsByTagName("*"),r=[],i=0;i<n.length;i++){var o=n[i];t(o)&&r.push(o)}return r},e.getChildNodes=function(e,t){for(var n=e.childNodes,r=[],i=0;i<n.length;i++){var o=n[i];t(o)&&r.push(o)}return r},e.getNodesByClassName=function(t,n){if(t.querySelectorAll){var r=t.querySelectorAll("."+n),i=[];return r.forEach(function(e){return i.push(e)}),i}return e.getNodes(t,function(t){return e.hasClassName(t,n)})},e.getChildNodesByClassName=function(t,n){return t.querySelectorAll?function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];t(i)&&n.push(i)}return n}(t.querySelectorAll("."+n),function(e){return e.parentNode===t}):e.getChildNodes(t,function(t){return!!e.isElementNode(t)&&i.isNonNullString(t.className)&&e.hasClassName(t,t.className)})},e.getVerticalScrollBarWidth=function(){if(void 0===e.verticalScrollBarWidth){var t=document.createElement("DIV");t.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(t);var n=document.createElement("P");t.appendChild(n),n.style.cssText="width: 100%; height: 200px;";var r=n.offsetWidth;t.style.overflow="scroll";var i=n.offsetWidth;r===i&&(i=t.clientWidth),e.verticalScrollBarWidth=r-i,document.body.removeChild(t)}return e.verticalScrollBarWidth},e.getHorizontalBordersWidth=function(t,n){i.isDefined(n)||(n=r.Browser.IE&&window.getComputedStyle?window.getComputedStyle(t):e.getCurrentStyle(t));var o=0;return"none"!==n.borderLeftStyle&&(o+=e.pxToFloat(n.borderLeftWidth)),"none"!==n.borderRightStyle&&(o+=e.pxToFloat(n.borderRightWidth)),o},e.getFontFamiliesFromCssString=function(e){return e.split(",").map(function(e){return s.StringUtils.trim(e.replace(/'|"/gi,""))})},e.getInnerText=function(t){if(r.Browser.Safari&&r.Browser.MajorVersion<=5){null===e.html2PlainTextFilter&&(e.html2PlainTextFilter=document.createElement("DIV"),e.html2PlainTextFilter.style.width="0",e.html2PlainTextFilter.style.height="0",e.html2PlainTextFilter.style.overflow="visible",e.html2PlainTextFilter.style.display="none",document.body.appendChild(e.html2PlainTextFilter));var n=e.html2PlainTextFilter;n.innerHTML=t.innerHTML,n.style.display="";var i=n.innerText;return n.style.display="none",i}return r.Browser.NetscapeFamily||r.Browser.WebKitFamily||r.Browser.IE&&r.Browser.Version>=9||r.Browser.Edge?t.textContent:t.innerText},e.html2PlainTextFilter=null,e.verticalScrollBarWidth=void 0,e}();function c(e,t){var n=0;if(i.isDefined(e)&&""!==e)try{var r=e.indexOf("px");r>-1&&(n=t(e.substr(0,r)))}catch(e){}return n}function u(e,t){for(var n=0,r=!0;null!=e&&"BODY"!==e.tagName;){var i=a.getCurrentStyle(e);if("absolute"===i.position)break;r||"DIV"!==e.tagName||""!==i.position&&"static"!==i.position||(n-=t?e.scrollLeft:e.scrollTop),e=e.parentNode,r=!1}return n}t.DomUtils=a},9712:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EncodeUtils=void 0;var n=function(){function e(){}return e.encodeHtml=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},e.decodeHtml=function(e){return e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},e.prepareTextForRequest=function(e){return e.replace(/%/g,"%25").replace(/&/g,"%26amp;").replace(/\+/g,"%2B").replace(/</g,"%26lt;").replace(/>/g,"%26gt;").replace(/"/g,"%26quot;")},e.prepareTextForCallBackRequest=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},e.decodeViaTextArea=function(e){var t=document.createElement("TEXTAREA");return t.innerHTML=e,t.value},e}();t.EncodeUtils=n},3714:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EvtUtils=void 0;var r=n(9279),i=n(2491),o=n(6907),s=n(1632),a=function(){function e(){}return e.preventEvent=function(e){e.cancelable&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},e.getEventSource=function(t){return i.isDefined(t)?e.getEventSourceCore(t):null},e.getEventSourceByPosition=function(t){if(!i.isDefined(t))return null;if(!document.elementFromPoint)return e.getEventSourceCore(t);var n=e.getEventX(t)-(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollLeft():0),r=e.getEventY(t)-(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollTop():0);return void 0===n||void 0===r?e.getEventSourceCore(t):document.elementFromPoint(n,r)},e.getEventSourceCore=function(e){return e.srcElement?e.srcElement:e.target},e.getMouseWheelEventName=function(){return r.Browser.Safari?"mousewheel":r.Browser.NetscapeFamily&&r.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},e.isLeftButtonPressed=function(t){return!!s.TouchUtils.isTouchEvent(t)||!!(t=r.Browser.IE&&i.isDefined(event)?event:t)&&(r.Browser.IE&&r.Browser.Version<11?!!r.Browser.MSTouchUI||t.button%2==1:r.Browser.WebKitFamily?"pointermove"===t.type||"pointerenter"===t.type||"pointerleave"===t.type?1===t.buttons:1===t.which:r.Browser.NetscapeFamily||r.Browser.Edge||r.Browser.IE&&r.Browser.Version>=11?e.isMoveEventName(t.type)?1===t.buttons:1===t.which:!r.Browser.Opera||0===t.button)},e.isMoveEventName=function(t){return t===s.TouchUtils.touchMouseMoveEventName||t===e.getMoveEventName()},e.getMoveEventName=function(){return window.PointerEvent?"pointermove":r.Browser.TouchUI?"touchmove":"mousemove"},e.preventEventAndBubble=function(t){e.preventEvent(t),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},e.clientEventRequiresDocScrollCorrection=function(){var e=r.Browser.Safari&&r.Browser.Version<3,t=r.Browser.MacOSMobilePlatform&&r.Browser.Version<5.1;return r.Browser.AndroidDefaultBrowser||r.Browser.AndroidChromeBrowser||!(e||t)},e.getEventX=function(t){return s.TouchUtils.isTouchEvent(t)?s.TouchUtils.getEventX(t):t.clientX+(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollLeft():0)},e.getEventY=function(t){return s.TouchUtils.isTouchEvent(t)?s.TouchUtils.getEventY(t):t.clientY+(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollTop():0)},e.cancelBubble=function(e){e.cancelBubble=!0},e.getWheelDelta=function(e){var t;return t=r.Browser.NetscapeFamily&&r.Browser.MajorVersion<17?-e.detail:r.Browser.Safari?e.wheelDelta:-e.deltaY,r.Browser.Opera&&r.Browser.Version<9&&(t=-t),t},e}();t.EvtUtils=a},2674:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileUtils=void 0;var r=n(9279),i=n(6477),o=n(2491),s=function(){function e(){}return e.loadJavascriptFile=function(e,t){var n,r=document.getElementsByTagName("head")[0];if(!r){r=document.createElement("head");var i=document.getElementsByTagName("body")[0];null===(n=i.parentNode)||void 0===n||n.insertBefore(r,i)}var o=document.createElement("script");return o.onload=t,o.src=e,r.appendChild(o),{htmlScriptElement:o}},e.startDownloadFileLocal=function(e,t){if(e instanceof ArrayBuffer&&(e=i.Base64Utils.fromArrayBuffer(e)),o.isString(e)&&(e=i.Base64Utils.getFileFromBase64(e)),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,t);else{var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(r)},0)}},e.createFile=function(e,t,n){var i;if(r.Browser.IE||r.Browser.Edge&&r.Browser.MajorVersion<86){var o=new Blob(e,n);return o.lastModifiedDate=null!==(i=null==n?void 0:n.lastModified)&&void 0!==i?i:Date.now(),o.name=t,o}return new File(e,t,n)},e.isFile=function(e){return r.Browser.IE||r.Browser.Edge&&r.Browser.MajorVersion<86?e instanceof File||e instanceof Blob&&o.isDefined(e.name):e instanceof File},e}();t.FileUtils=s},2153:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyCode=t.ModifierKey=t.KeyUtils=void 0;var r,i,o=n(9279),s=n(9712),a=n(49),c=function(){function e(){}return e.getKeyModifiers=function(e){var t=0;return e.altKey&&(t|=r.Alt),e.ctrlKey&&(t|=r.Ctrl),e.shiftKey&&(t|=r.Shift),e.metaKey&&(t|=r.Meta),t},e.getShortcutCode=function(e,t,n,i,o){var s=e;return s|=t?r.Ctrl:0,s|=n?r.Shift:0,s|=i?r.Alt:0,s|(o?r.Meta:0)},e.getShortcutCodeByEvent=function(t){return e.getShortcutCode(e.getEventKeyCode(t),t.ctrlKey,t.shiftKey,t.altKey,!!o.Browser.MacOSPlatform&&t.metaKey)},e.getEventKeyCode=function(e){return o.Browser.NetscapeFamily||o.Browser.Opera?e.which:e.keyCode},e.parseShortcutString=function(t){if(!t)return 0;var n=!1,r=!1,o=!1,c=!1,u=null,l=t.toString().split("+");if(l.length>0)for(var h=0;h<l.length;h++){var d=a.StringUtils.trim(l[h].toUpperCase());switch(d){case"CONTROL":case"CONTROLKEY":case"CTRL":n=!0;break;case"SHIFT":case"SHIFTKEY":r=!0;break;case"ALT":o=!0;break;case"CMD":c=!0;break;case"F1":u=i.F1;break;case"F2":u=i.F2;break;case"F3":u=i.F3;break;case"F4":u=i.F4;break;case"F5":u=i.F5;break;case"F6":u=i.F6;break;case"F7":u=i.F7;break;case"F8":u=i.F8;break;case"F9":u=i.F9;break;case"F10":u=i.F10;break;case"F11":u=i.F11;break;case"F12":u=i.F12;break;case"RETURN":case"ENTER":u=i.Enter;break;case"HOME":u=i.Home;break;case"END":u=i.End;break;case"LEFT":u=i.Left;break;case"RIGHT":u=i.Right;break;case"UP":u=i.Up;break;case"DOWN":u=i.Down;break;case"PAGEUP":u=i.PageUp;break;case"PAGEDOWN":u=i.PageDown;break;case"SPACE":u=i.Space;break;case"TAB":u=i.Tab;break;case"BACKSPACE":case"BACK":u=i.Backspace;break;case"CONTEXT":u=i.ContextMenu;break;case"ESCAPE":case"ESC":u=i.Esc;break;case"DELETE":case"DEL":u=i.Delete;break;case"INSERT":case"INS":u=i.Insert;break;case"PLUS":u="+".charCodeAt(0);break;default:u=d.charCodeAt(0)}}else alert(s.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return e.getShortcutCode(u,n,r,o,c)},e}();t.KeyUtils=c,function(e){e[e.None=0]="None",e[e.Ctrl=65536]="Ctrl",e[e.Shift=262144]="Shift",e[e.Alt=1048576]="Alt",e[e.Meta=16777216]="Meta"}(r=t.ModifierKey||(t.ModifierKey={})),function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Pause=19]="Pause",e[e.CapsLock=20]="CapsLock",e[e.Esc=27]="Esc",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.Left=37]="Left",e[e.Up=38]="Up",e[e.Right=39]="Right",e[e.Down=40]="Down",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Key_0=48]="Key_0",e[e.Key_1=49]="Key_1",e[e.Key_2=50]="Key_2",e[e.Key_3=51]="Key_3",e[e.Key_4=52]="Key_4",e[e.Key_5=53]="Key_5",e[e.Key_6=54]="Key_6",e[e.Key_7=55]="Key_7",e[e.Key_8=56]="Key_8",e[e.Key_9=57]="Key_9",e[e.Key_a=65]="Key_a",e[e.Key_b=66]="Key_b",e[e.Key_c=67]="Key_c",e[e.Key_d=68]="Key_d",e[e.Key_e=69]="Key_e",e[e.Key_f=70]="Key_f",e[e.Key_g=71]="Key_g",e[e.Key_h=72]="Key_h",e[e.Key_i=73]="Key_i",e[e.Key_j=74]="Key_j",e[e.Key_k=75]="Key_k",e[e.Key_l=76]="Key_l",e[e.Key_m=77]="Key_m",e[e.Key_n=78]="Key_n",e[e.Key_o=79]="Key_o",e[e.Key_p=80]="Key_p",e[e.Key_q=81]="Key_q",e[e.Key_r=82]="Key_r",e[e.Key_s=83]="Key_s",e[e.Key_t=84]="Key_t",e[e.Key_u=85]="Key_u",e[e.Key_v=86]="Key_v",e[e.Key_w=87]="Key_w",e[e.Key_x=88]="Key_x",e[e.Key_y=89]="Key_y",e[e.Key_z=90]="Key_z",e[e.Windows=91]="Windows",e[e.ContextMenu=93]="ContextMenu",e[e.Numpad_0=96]="Numpad_0",e[e.Numpad_1=97]="Numpad_1",e[e.Numpad_2=98]="Numpad_2",e[e.Numpad_3=99]="Numpad_3",e[e.Numpad_4=100]="Numpad_4",e[e.Numpad_5=101]="Numpad_5",e[e.Numpad_6=102]="Numpad_6",e[e.Numpad_7=103]="Numpad_7",e[e.Numpad_8=104]="Numpad_8",e[e.Numpad_9=105]="Numpad_9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.Decimal=110]="Decimal",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.Semicolon=186]="Semicolon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.ForwardSlash=191]="ForwardSlash",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.BackSlash=220]="BackSlash",e[e.CloseBracket=221]="CloseBracket",e[e.SingleQuote=222]="SingleQuote"}(i=t.KeyCode||(t.KeyCode={}))},2940:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListUtils=void 0;var r=n(6799),i=n(4170),o=function(){function e(){}return e.remove=function(e,t){var n=e.indexOf(t,0);n>=0&&e.splice(n,1)},e.removeBy=function(e,t){for(var n=e.length,r=0;r<n;r++)if(t(e[r],r))return e.splice(r,1)[0];return null},e.shallowCopy=function(e){return e.slice()},e.deepCopy=function(t){return e.map(t,function(e){return e.clone()})},e.initByValue=function(e,t){for(var n=[];e>0;e--)n.push(t);return n},e.initByCallback=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},e.forEachOnInterval=function(e,t){for(var n=e.end,r=e.start;r<n;r++)t(r)},e.reverseForEachOnInterval=function(e,t){for(var n=e.start,r=e.end-1;r>=n;r--)t(r)},e.reducedMap=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=[],o=n;o<r;o++){var s=t(e[o],o);null!==s&&i.push(s)}return i},e.filter=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=[],o=n;o<r;o++){var s=e[o];t(s,o)&&i.push(s)}return i},e.map=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=[],o=n;o<r;o++)i.push(t(e[o],o));return i},e.indexBy=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++)if(t(e[i],i))return i;return-1},e.reverseIndexBy=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(t(e[i],i))return i;return-1},e.elementBy=function(t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);var o=e.indexBy(t,n,r,i);return o<0?null:t[o]},e.reverseElementBy=function(t,n,r,i){void 0===r&&(r=t.length-1),void 0===i&&(i=0);var o=e.reverseIndexBy(t,n,r,i);return o<0?null:t[o]},e.last=function(e){return e[e.length-1]},e.setLast=function(e,t){return e[e.length-1]=t},e.incLast=function(e){return++e[e.length-1]},e.decLast=function(e){return--e[e.length-1]},e.equals=function(t,n){return t.length===n.length&&e.allOf2(t,n,function(e,t){return e.equals(t)})},e.equalsByReference=function(e,t){var n=e.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0},e.unique=function(t,n,r,i){void 0===r&&(r=n),void 0===i&&(i=function(){});var o=t.length;if(0===o)return[];var s=(t=t.sort(n))[0],a=e.reducedMap(t,function(e){return 0!==r(s,e)?(s=e,e):(i(e),null)},1,o);return a.unshift(t[0]),a},e.uniqueNumber=function(e){e=e.sort(i.Comparers.number);for(var t=Number.NaN,n=e.length-1;n>=0;n--)t===e[n]?e.splice(n,1):t=e[n];return e},e.forEach=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++)t(e[i],i)},e.forEach2=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=r;o<i;o++)n(e[o],t[o],o)},e.reverseForEach=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)t(e[i],i)},e.reverseIndexOf=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(e[i]===t)return i;return-1},e.accumulate=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=t,s=r;s<i;s++)o=n(o,e[s],s);return o},e.accumulateNumber=function(e,t,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=n,s=r;s<i;s++)o+=t(e[s],s,o);return o},e.anyOf=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++)if(t(e[i],i))return!0;return!1},e.unsafeAnyOf=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++){var o=t(e[i],i);if(o)return o}return null},e.reverseAnyOf=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(t(e[i],i))return!0;return!1},e.unsafeReverseAnyOf=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--){var o=t(e[i],i);if(o)return o}return null},e.anyOf2=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=r;o<i;o++)if(n(e[o],t[o],o))return!0;return!1},e.allOf=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++)if(!t(e[i],i))return!1;return!0},e.allOf2=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=r;o<i;o++)if(!n(e[o],t[o],o))return!1;return!0},e.allOfOnInterval=function(e,t){for(var n=e.end,r=e.start;r<n;r++)if(!t(r))return!1;return!0},e.addListOnTail=function(e,t){for(var n=0,r=void 0;r=t[n];n++)e.push(r);return e},e.joinLists=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.accumulate(n,[],function(n,r){return e.addListOnTail(n,t(r)),n})},e.push=function(e,t){return e.push(t),e},e.countIf=function(t,n){return e.accumulateNumber(t,function(e,t){return n(e,t)?1:0})},e.clear=function(e){e.splice(0)},e.merge=function(e,t,n,r,i,o){if(void 0===i&&(i=0),void 0===o&&(o=e.length),e=e.slice(i,o),o-i<2)return e;for(var s=(e=e.sort(t))[i],a=[s],c=i+1;c<o;c++){var u=e[c];n(s,u)?r(s,u):(s=u,a.push(s))}return a},e.min=function(t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);var o=e.minExtended(t,n,r,i);return o?o.minElement:null},e.max=function(t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);var o=e.maxExtended(t,n,r,i);return o?o.maxElement:null},e.minMax=function(t,n,i,o){void 0===i&&(i=0),void 0===o&&(o=t.length);var s=e.minMaxExtended(t,n,i,o);return s?new r.MinMax(s.minElement,s.maxElement):null},e.minExtended=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var o=e[n],s=t(o),a=n+1;a<i;a++){var c=e[a],u=t(c);u<s&&(s=u,o=c)}return new r.ExtendedMin(o,s)},e.maxExtended=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var o=e[n],s=t(o),a=n+1;a<i;a++){var c=e[a],u=t(c);u>s&&(s=u,o=c)}return new r.ExtendedMax(o,s)},e.minMaxExtended=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var o=e[n],s=o,a=t(o),c=a,u=n+1;u<i;u++){var l=e[u],h=t(l);h<a?(a=h,o=l):h>c&&(c=h,s=l)}return new r.ExtendedMinMax(o,a,s,c)},e.minByCmp=function(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),0===e.length)return null;for(var i=e[n],o=n+1;o<r;o++){var s=e[o];t(s,i)<0&&(i=s)}return i},e.maxByCmp=function(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),0===e.length)return null;for(var i=e[n],o=n+1;o<r;o++){var s=e[o];t(s,i)>0&&(i=s)}return i},e.minMaxByCmp=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var o=e[n],s=o,a=n+1;a<i;a++){var c=e[a],u=t(c,o);u>0?s=c:u<0&&(o=c)}return new r.MinMax(o,s)},e}();t.ListUtils=o},8679:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MathUtils=void 0;var r=n(2940),i=function(){function e(){}return e.round=function(t,n){void 0===n&&(n=0);var r=e.powFactor[n];return Math.round(t*r)/r},e.numberCloseTo=function(e,t,n){return void 0===n&&(n=1e-5),Math.abs(e-t)<n},e.restrictValue=function(e,t,n){return n<t&&(n=t),e>n?n:e<t?t:e},e.getRandomInt=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},e.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},e.powFactor=r.ListUtils.initByCallback(20,function(e){return Math.pow(10,e)}),e.somePrimes=[1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003],e}();t.MathUtils=i},4633:(e,t)=>
vendor: 4,183 bytes, line 19
19{var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.MimeTypeUtils=t.DxMimeType=t.ImageWebpMimeType=t.ImageWbmpMimeType=t.ImageIcoMimeType=t.ImageTiffMimeType=t.ImageSvgMimeType=t.ImagePjpegMimeType=t.ImageJpegMimeType=t.ImageGifMimeType=t.ImagePngMimeType=t.DocmMimeType=t.HtmlMimeType=t.PlainTextMimeType=t.RtfMimeType=t.OpenXmlMimeType=void 0,t.OpenXmlMimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document",t.RtfMimeType="application/rtf",t.PlainTextMimeType="text/plain",t.HtmlMimeType="text/html",t.DocmMimeType="application/vnd.ms-word.document.macroEnabled.12",t.ImagePngMimeType="image/png",t.ImageGifMimeType="image/gif",t.ImageJpegMimeType="image/jpeg",t.ImagePjpegMimeType="image/pjpeg",t.ImageSvgMimeType="image/svg+xml",t.ImageTiffMimeType="image/tiff",t.ImageIcoMimeType="image/vnd.microsoft.icon",t.ImageWbmpMimeType="image/vnd.wap.wbmp",t.ImageWebpMimeType="image/webp",function(e){e[e.Unknown=0]="Unknown",e[e.OpenXml=1]="OpenXml",e[e.Rtf=2]="Rtf",e[e.PlainText=3]="PlainText",e[e.Docm=4]="Docm",e[e.Png=5]="Png",e[e.Gif=6]="Gif",e[e.Jpeg=7]="Jpeg",e[e.Pjpeg=8]="Pjpeg",e[e.Svg=9]="Svg",e[e.Tiff=10]="Tiff",e[e.Ico=11]="Ico",e[e.Wbmp=12]="Wbmp",e[e.Webp=13]="Webp",e[e.Html=14]="Html"}(o=t.DxMimeType||(t.DxMimeType={}));var s=function(){function e(){}return e.stringTypeToExtension=function(t){var n=e.stringTypeToTypeMap[t];return void 0===n?"":e.typeToExtensionMap[n]},e.typeToExtension=function(t){var n=e.typeToExtensionMap[t];return null!=n?n:""},e.extensionToType=function(t){"."!==(t=t.toLowerCase())[0]&&(t+=".");var n=e.extensionToTypeMap[t];return null!=n?n:o.Unknown},e.typeToStringType=function(t){var n=e.typeToStringTypeMap[t];return null!=n?n:""},e.stringTypeToType=function(t){var n=e.stringTypeToTypeMap[t];return void 0===n?o.Unknown:n},e.stringTypeToTypeMap=((n={})[t.OpenXmlMimeType]=o.OpenXml,n[t.RtfMimeType]=o.Rtf,n[t.PlainTextMimeType]=o.PlainText,n[t.DocmMimeType]=o.Docm,n[t.HtmlMimeType]=o.Html,n[t.ImagePngMimeType]=o.Png,n[t.ImageGifMimeType]=o.Gif,n[t.ImageJpegMimeType]=o.Jpeg,n[t.ImagePjpegMimeType]=o.Pjpeg,n[t.ImageSvgMimeType]=o.Svg,n[t.ImageTiffMimeType]=o.Tiff,n[t.ImageIcoMimeType]=o.Ico,n[t.ImageWbmpMimeType]=o.Wbmp,n[t.ImageWebpMimeType]=o.Webp,n),e.typeToStringTypeMap=((r={})[o.Unknown]=void 0,r[o.OpenXml]=t.OpenXmlMimeType,r[o.Rtf]=t.RtfMimeType,r[o.PlainText]=t.PlainTextMimeType,r[o.Docm]=t.DocmMimeType,r[o.Html]=t.HtmlMimeType,r[o.Png]=t.ImagePngMimeType,r[o.Gif]=t.ImageGifMimeType,r[o.Jpeg]=t.ImageJpegMimeType,r[o.Pjpeg]=t.ImagePjpegMimeType,r[o.Svg]=t.ImageSvgMimeType,r[o.Tiff]=t.ImageTiffMimeType,r[o.Ico]=t.ImageIcoMimeType,r[o.Wbmp]=t.ImageWbmpMimeType,r[o.Webp]=t.ImageWebpMimeType,r),e.typeToExtensionMap=((i={})[o.Unknown]=void 0,i[o.OpenXml]=".docx",i[o.Rtf]=".rtf",i[o.PlainText]=".txt",i[o.Docm]=".docm",i[o.Html]=".html",i[o.Png]=".png",i[o.Gif]=".gif",i[o.Jpeg]=".jpeg",i[o.Pjpeg]=".pjpeg",i[o.Svg]=".svg",i[o.Tiff]=".tiff",i[o.Ico]=".ico",i[o.Wbmp]=".wbmp",i[o.Webp]=".webp",i),e.extensionToTypeMap={".docx":o.OpenXml,".rtf":o.Rtf,".txt":o.PlainText,".docm":o.Docm,".html":o.Html,".htm":o.Html,".png":o.Png,".gif":o.Gif,".jpeg":o.Jpeg,".pjpeg":o.Pjpeg,".svg":o.Svg,".tiff":o.Tiff,".ico":o.Ico,".wbmp":o.Wbmp,".webp":o.Webp},e}();t.MimeTypeUtils=s},2400:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SearchUtils=void 0;var n=function(){function e(){}return e.binaryIndexOf=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=-2);var i=0===n;for(-2===r&&(r=e.length-1);n<=r;){var o=n+(r-n>>1),s=t(e[o]);if(s<0)n=o+1;else{if(!(s>0))return o;r=o-1}}return i?~n:-1},e.normedBinaryIndexOf=function(t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=-2);var o=e.binaryIndexOf(t,n,r,i);return e.binaryIndexNormalizator(o)},e.binaryIndexNormalizator=function(e){return e<0?~e-1:e},e.normedInterpolationIndexOf=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=-2),-2===i&&(i=e.length-1);var o=e[Math.min(r,i)];if(void 0===o||n<t(o))return-1;for(var s=t(e[r]),a=t(e[i]);;){if(!(n>s&&n<a))return n===s?r:i;var c=r+Math.floor((n-s)*(i-r)/(a-s)),u=t(e[c]);if(n>u){if(n<(s=t(e[r=c+1])))return c}else{if(!(n<u))return c;a=t(e[i=c-1])}}},e}();t.SearchUtils=n},49:(e,t)=>
vendor: 28,011 bytes, line 19
19{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var n=function(){function e(){}return e.isAlpha=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"},e.isDigit=function(e){return e>="0"&&e<="9"},e.stringHashCode=function(e){var t=0;if(0===e.length)return t;for(var n=e.length,r=0;r<n;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t},e.endsAt=function(e,t){var n=e.length-1,r=t.length-1,i=n-r;if(i<0)return!1;for(;n>=i;n--,r--)if(e[n]!==t[r])return!1;return!0},e.startsAt=function(e,t){return e.substr(0,t.length)===t},e.stringInLowerCase=function(e){return e.toLowerCase()===e},e.stringInUpperCase=function(e){return e.toUpperCase()===e},e.atLeastOneSymbolInUpperCase=function(t){for(var n=0,r=void 0;r=t[n];n++)if(e.stringInUpperCase(r)&&!e.stringInLowerCase(r))return!0;return!1},e.getSymbolFromEnd=function(e,t){return e[e.length-t]},e.trim=function(t,n){if(void 0===n)return e.trimInternal(t,!0,!0);var r=n.join("");return t.replace(new RegExp("(^["+r+"]*)|(["+r+"]*$)","g"),"")},e.trimStart=function(t,n){if(void 0===n)return e.trimInternal(t,!0,!1);var r=n.join("");return t.replace(new RegExp("^["+r+"]*","g"),"")},e.trimEnd=function(t,n){if(void 0===n)return e.trimInternal(t,!1,!0);var r=n.join("");return t.replace(new RegExp("["+r+"]*$","g"),"")},e.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},e.repeat=function(e,t){return new Array(t<=0?0:t+1).join(e)},e.isNullOrEmpty=function(e){return!e||!e.length},e.padLeft=function(t,n,r){return e.repeat(r,Math.max(0,n-t.length))+t},e.trimInternal=function(e,t,n){var r=e.length;if(!r)return e;if(r<764833){var i=e;return t&&(i=i.replace(/^\s+/,"")),n&&(i=i.replace(/\s+$/,"")),i}var o=0;if(n)for(;r>0&&/\s/.test(e[r-1]);)r--;if(t&&r>0)for(;o<r&&/\s/.test(e[o]);)o++;return e.substring(o,r)},e}();t.StringUtils=n},1632:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TouchUtils=void 0;var r=n(9279),i=n(2491),o=function(){function e(){}return e.onEventAttachingToDocument=function(t,n){return!r.Browser.MacOSMobilePlatform||!e.isTouchEventName(t)||(e.documentTouchHandlers[t]||(e.documentTouchHandlers[t]=[]),e.documentTouchHandlers[t].push(n),e.documentEventAttachingAllowed)},e.isTouchEventName=function(e){return r.Browser.WebKitTouchUI&&(e.indexOf("touch")>-1||e.indexOf("gesture")>-1)},e.isTouchEvent=function(e){return r.Browser.WebKitTouchUI&&i.isDefined(e.changedTouches)},e.getEventX=function(e){return r.Browser.IE?e.pageX:e.changedTouches[0].pageX},e.getEventY=function(e){return r.Browser.IE?e.pageY:e.changedTouches[0].pageY},e.touchMouseDownEventName=r.Browser.WebKitTouchUI?"touchstart":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",e.touchMouseUpEventName=r.Browser.WebKitTouchUI?"touchend":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",e.touchMouseMoveEventName=r.Browser.WebKitTouchUI?"touchmove":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",e.msTouchDraggableClassName="dxMSTouchDraggable",e.documentTouchHandlers={},e.documentEventAttachingAllowed=!0,e}();t.TouchUtils=o},7097:(e,t,n)=>{n(8091).polyfill()},8091:e=>{function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),s=0,a=o.length;s<a;s++){var c=o[s],u=Object.getOwnPropertyDescriptor(i,c);void 0!==u&&u.enumerable&&(n[c]=i[c])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},8721:(e,t,n)=>{n.r(t)},5656:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ApiController=void 0;var o,s=n(1772),a=n(6031),c=n(4867),u=n(3607),l=function(e){function t(t,n,r){var i=e.call(this)||this;return i.events=t,i.model=r,i.selection=n,i}return i(t,e),t.prototype.notifySelectionChanged=function(e){this.isUpdateLocked()?this.registerOccurredEvent(o.SelectionChanged):this.raiseSelectionChanged()},t.prototype.notifyToolboxDragStart=function(){this.events.raise("notifyToolboxItemDragStart")},t.prototype.notifyToolboxDragEnd=function(){this.events.raise("notifyToolboxItemDragEnd")},t.prototype.notifyToolboxDraggingMouseMove=function(){},t.prototype.notifyClick=function(e){var t=this;this.tryRaiseUserAction(e,function(e){return t.events.raise("notifyItemClick",e)})},t.prototype.notifyDblClick=function(e){var t=this;this.tryRaiseUserAction(e,function(e){return t.events.raise("notifyItemDblClick",e)})},t.prototype.createNativeItem=function(e){return e&&this.cleanupNativeItem(e.toNative(this.model.units))},t.prototype.createNativeShape=function(e){return this.createNativeItem(e)},t.prototype.createNativeConnector=function(e){return this.createNativeItem(e)},t.prototype.convertUnit=function(e){return c.ModelUtils.getlUnitValue(this.model.units,e)},t.prototype.convertPoint=function(e){return new u.Point(this.convertUnit(e.x),this.convertUnit(e.y))},t.prototype.convertSize=function(e){return new u.Size(this.convertUnit(e.width),this.convertUnit(e.height))},t.prototype.cleanupNativeItem=function(e){var t=this.dataSource;return t&&(t.isAutoGeneratedKey(e.fromKey)&&(e.fromKey=void 0),t.isAutoGeneratedKey(e.key)&&(e.key=void 0),t.isAutoGeneratedKey(e.toKey)&&(e.toKey=void 0)),e},t.prototype.setDataSource=function(e){this.dataSource=e},t.prototype.tryRaiseUserAction=function(e,t){var n=this;if(this.isUserAction(e)){var r=this.model.findItem(e.source.key);r&&this.events.raise1(function(e){return t(n.createNativeItem(r))})}},t.prototype.isUserAction=function(e){return e.source&&(e.source.type===a.MouseEventElementType.Shape||e.source.type===a.MouseEventElementType.ShapeExpandButton||e.source.type===a.MouseEventElementType.ShapeParameterBox||e.source.type===a.MouseEventElementType.ShapeResizeBox||e.source.type===a.MouseEventElementType.ShapeConnectionPoint||e.source.type===a.MouseEventElementType.Connector||e.source.type===a.MouseEventElementType.ConnectorPoint||e.source.type===a.MouseEventElementType.ConnectorSide||e.source.type===a.MouseEventElementType.ConnectorOrthogonalSide||e.source.type===a.MouseEventElementType.ConnectorText)},t.prototype.onUpdateUnlocked=function(e){e&o.SelectionChanged&&this.raiseSelectionChanged()},t.prototype.raiseSelectionChanged=function(){var e=this,t=this.selection.getKeys().map(function(t){return e.createNativeItem(e.model.findItem(t))});this.events.raise1(function(e){return e.notifySelectionChanged(t)})},t}(s.BatchUpdatableObject);t.ApiController=l,function(e){e[e.SelectionChanged=1]="SelectionChanged"}(o||(o={}))},7185:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NativeConnector=t.NativeShape=t.NativeItem=void 0;var o=n(4867),s=function(){function e(e,t){this.id=e,this.key=t,this.unitsApplied=!1}return e.prototype.applyUnits=function(e){this.unitsApplied||void 0===e||(this.applyUnitsCore(e),this.unitsApplied=!0)},e}();t.NativeItem=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.applyUnitsCore=function(e){this.position.x=o.ModelUtils.getlUnitValue(e,this.position.x),this.position.y=o.ModelUtils.getlUnitValue(e,this.position.y),this.size.width=o.ModelUtils.getlUnitValue(e,this.size.width),this.size.height=o.ModelUtils.getlUnitValue(e,this.size.height)},t}(s);t.NativeShape=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.applyUnitsCore=function(e){this.points.forEach(function(t){t.x=o.ModelUtils.getlUnitValue(e,t.x),t.y=o.ModelUtils.getlUnitValue(e,t.y)})},t}(s);t.NativeConnector=c},8906:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutCommandBase=void 0;var o=n(4867),s=n(9741),a=n(5503),c=n(7959),u=n(8675),l=n(8011),h=n(7626),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e,t){var n=this;this.control.history.beginTransaction();var r=this.getAffectedShapes(),i=this.getAffectedConnectors(),s=this.createLayoutSettings(),a=o.ModelUtils.getGraphInfoByItems(this.control.model,r,i,!1);if(a.length){var c,d=this.control.model,f=u.GeometryUtils.getCommonRectangle(u.Utils.flatten(a.map(function(e){return e.graph.items.map(function(e){return d.findItem(e.key)})})).concat(a.map(function(e){return e.container})).filter(function(e){return e}).map(function(e){return e.rectangle}));this.control.history.addAndRedo(new h.ScrollIntoViewOnUndoHistoryItem(this.control.view,f)),a.forEach(function(e){var t=n.createLayout(s,e.graph),a=o.ModelUtils.getNonGraphItems(n.control.model,e.container,t.nodeToLayout,r,i),u=o.ModelUtils.applyLayout(n.control.history,n.control.model,e.container,e.graph,t,a,s,n.control.settings.snapToGrid,n.control.settings.gridSize,!1);c=c&&l.Rectangle.union(c,u)||u}),o.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.addAndRedo(new h.ScrollIntoViewOnRedoHistoryItem(this.control.view,c))}return this.control.history.endTransaction(),!0},t.prototype.getAffectedShapes=function(){return this.control.selection.isEmpty()?this.control.model.items.filter(function(e){return e instanceof a.Shape&&!e.locked}):this.control.selection.getSelectedShapes(!1,!0)},t.prototype.getAffectedConnectors=function(){return this.control.selection.isEmpty()?this.control.model.items.filter(function(e){return e instanceof c.Connector&&!e.locked}):this.control.selection.getSelectedConnectors(!1,!0)},t}(s.SimpleCommandBase);t.AutoLayoutCommandBase=d},30:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutLayeredHorizontalCommand=void 0;var o=n(8906),s=n(1256),a=n(8710),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createLayoutSettings=function(){var e=new a.LayoutSettings;return e.orientation=a.DataLayoutOrientation.Horizontal,e},t.prototype.createLayout=function(e,t){return new s.SugiyamaLayoutBuilder(e,t).build()},t}(o.AutoLayoutCommandBase);t.AutoLayoutLayeredHorizontalCommand=c},7826:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutLayeredHorizontalRightToLeftCommand=void 0;var o=n(8710),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createLayoutSettings=function(){var t=e.prototype.createLayoutSettings.call(this);return t.direction=o.LogicalDirectionKind.Backward,t},t}(n(30).AutoLayoutLayeredHorizontalCommand);t.AutoLayoutLayeredHorizontalRightToLeftCommand=s},554:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutLayeredVerticalBottomToTopCommand=void 0;var o=n(8710),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createLayoutSettings=function(){var t=e.prototype.createLayoutSettings.call(this);return t.direction=o.LogicalDirectionKind.Backward,t},t}(n(9427).AutoLayoutLayeredVerticalCommand);t.AutoLayoutLayeredVerticalBottomToTopCommand=s},9427:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutLayeredVerticalCommand=void 0;var o=n(8906),s=n(1256),a=n(8710),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createLayoutSettings=function(){var e=new a.LayoutSettings;return e.orientation=a.DataLayoutOrientation.Vertical,e},t.prototype.createLayout=function(e,t){return new s.SugiyamaLayoutBuilder(e,t).build()},t}(o.AutoLayoutCommandBase);t.AutoLayoutLayeredVerticalCommand=c},7004:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutTreeHorizontalCommand=void 0;var o=n(8906),s=n(9533),a=n(8710),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createLayoutSettings=function(){var e=this.control.settings.snapToGrid?this.control.settings.gridSize:void 0,t=new a.TreeLayoutSettings(e);return t.orientation=a.DataLayoutOrientation.Horizontal,t},t.prototype.createLayout=function(e,t){return new s.TreeLayoutBuilder(e,t).build()},t}(o.AutoLayoutCommandBase);t.AutoLayoutTreeHorizontalCommand=c},5010:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutTreeHorizontalRightToLeftCommand=void 0;var o=n(8710),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createLayoutSettings=function(){var t=e.prototype.createLayoutSettings.call(this);return t.direction=o.LogicalDirectionKind.Backward,t},t}(n(7004).AutoLayoutTreeHorizontalCommand);t.AutoLayoutTreeHorizontalRightToLeftCommand=s},2217:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutTreeVerticalBottomToTopCommand=void 0;var o=n(8710),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createLayoutSettings=function(){var t=e.prototype.createLayoutSettings.call(this);return t.direction=o.LogicalDirectionKind.Backward,t},t}(n(375).AutoLayoutTreeVerticalCommand);t.AutoLayoutTreeVerticalBottomToTopCommand=s},375:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLayoutTreeVerticalCommand=void 0;var o=n(8906),s=n(9533),a=n(8710),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createLayoutSettings=function(){var e=this.control.settings.snapToGrid?this.control.settings.gridSize:void 0,t=new a.TreeLayoutSettings(e);return t.orientation=a.DataLayoutOrientation.Vertical,t},t.prototype.createLayout=function(e,t){return new s.TreeLayoutBuilder(e,t).build()},t}(o.AutoLayoutCommandBase);t.AutoLayoutTreeVerticalCommand=c},4982:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClipboardCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.setClipboardData=function(e){this.control.render&&this.control.render.input.setClipboardData(e),t.clipboardData=e},t.prototype.getClipboardData=function(e){this.control.render&&this.isPasteSupportedByBrowser()?this.control.render.input.getClipboardData(e):e(t.clipboardData)},t.prototype.isPasteSupportedByBrowser=function(){return this.control.render&&this.control.render.input.isPasteSupportedByBrowser()},t}(n(9741).SimpleCommandBase);t.ClipboardCommand=o},5827:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CopySelectionCommand=void 0;var o=n(5885),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty(!0)},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e){var t=(new o.Exporter).exportItems(this.control.selection.getSelectedItems(!0,!0));return this.setClipboardData(t),!0},t}(n(4982).ClipboardCommand);t.CopySelectionCommand=s},2664:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CutSelectionCommand=void 0;var o=n(5885),s=n(4867),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.control.selection.getSelectedItems();return e.prototype.isEnabled.call(this)&&t.length&&(t.length>1||this.permissionsProvider.canDeleteItems(t))},t.prototype.executeCore=function(e){var t=new o.Exporter,n=this.control.selection.getSelectedItems(!0,!0),r=t.exportItems(n);return this.permissionsProvider.beginDeleteItems(n),this.setClipboardData(r),s.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),this.permissionsProvider.endDeleteItems(),!0},Object.defineProperty(t.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(n(4982).ClipboardCommand);t.CutSelectionCommand=a},4200:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PasteSelectionCommand=void 0;var o=n(8900),s=n(7688),a=n(5503),c=n(7959),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getEventPositionOffset=function(e,t){var n=e.reduce(function(e,t){var n=t instanceof a.Shape?t.position.x:t instanceof c.Connector?t.getMinX():Number.MAX_VALUE,r=t instanceof a.Shape?t.position.y:t instanceof c.Connector?t.getMinY():Number.MAX_VALUE;return(r<e.y||r===e.y&&n<e.x)&&(e.topLeftItem=t,e.x=n,e.y=r),e},{topLeftItem:e[0],x:Number.MAX_VALUE,y:Number.MAX_VALUE}).topLeftItem;if(n instanceof a.Shape){var r=this.getShapeCorrectedPosition(this.control.model,n);return new o.Point(r.x-n.position.x,r.y-n.position.y)}if(n instanceof c.Connector){var i=this.getConnectorCorrectedPoints(this.control.model,n);return new o.Point(n.points[0].x-i[0].x,n.points[0].y-i[0].y)}},t.prototype.getShapeCorrectedPosition=function(e,t){for(var n=t.position.clone();e.findShapeAtPosition(n);)n.offset(s.PasteSelectionCommandBase.positionOffset,s.PasteSelectionCommandBase.positionOffset);return n},t.prototype.getConnectorCorrectedPoints=function(e,t){for(var n=t.points.map(function(e){return e.clone()});e.findConnectorAtPoints(n);)n.forEach(function(e){e.x+=s.PasteSelectionCommandBase.positionOffset,e.y+=s.PasteSelectionCommandBase.positionOffset});return n},t}(s.PasteSelectionCommandBase);t.PasteSelectionCommand=u},7688:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PasteSelectionCommandBase=void 0;var o=n(4982),s=n(2406),a=n(5503),c=n(4383),u=n(7959),l=n(3849),h=n(4867),d=n(4297),f=n(9291),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&(this.isPasteSupportedByBrowser()||void 0!==o.ClipboardCommand.clipboardData)},t.prototype.isVisible=function(){return this.isPasteSupportedByBrowser()||void 0!==o.ClipboardCommand.clipboardData},t.prototype.parseClipboardData=function(e){var t;t=new s.Importer(this.control.shapeDescriptionManager,e).importItems(this.control.model);for(var n=this.getEventPositionOffset(t,this.control.contextMenuPosition),r=0;r<t.length;r++){var i=t[r];i instanceof a.Shape?i.position.offsetByPoint(n):i instanceof u.Connector&&(i.points.forEach(function(e){return e.offsetByPoint(n)}),i.clearRenderPoints())}return t},t.prototype.executeCore=function(e,t){var n=this,r=!0;return void 0===t?this.getClipboardData(function(e){r=n.execute(e)}):this.performPaste(t),r},t.prototype.addItemForSortingRecursive=function(e,t){if(e[t.key])return e[t.key];if(t instanceof u.Connector)return t.endItem?e[t.key]=this.addItemForSortingRecursive(e,t.endItem)-.5:t.beginItem?e[t.key]=this.addItemForSortingRecursive(e,t.beginItem)+.5:e[t.key]=-1,e[t.key];if(0===t.attachedConnectors.length)return e[t.key]=0;for(var n=0;n<t.attachedConnectors.length;n++){var r=t.attachedConnectors[n].beginItem;return t.attachedConnectors[n].endItem===t&&r&&r!==t.attachedConnectors[n].endItem?e[t.key]=this.addItemForSortingRecursive(e,r)+1:e[t.key]=0}},t.prototype.getSortedPasteItems=function(e){for(var t=[],n=[],r={},i=0;i<e.length;i++){var o=e[i];o instanceof a.Shape?t.push(o):o instanceof u.Connector&&(n.push(o),this.addItemForSortingRecursive(r,o))}return n.sort(function(e,t){return r[t.key]-r[e.key]}),t.concat(n)},t.prototype.performPaste=function(e){this.control.beginUpdateCanvas(),this.control.history.beginTransaction();var t={},n=this.parseClipboardData(e);n=this.getSortedPasteItems(n);for(var r=0;r<n.length;r++){var i=n[r];i instanceof a.Shape?this.control.history.addAndRedo(new c.ImportShapeHistoryItem(i)):i instanceof u.Connector&&this.control.history.addAndRedo(new l.ImportConnectorHistoryItem(i));var o=i.container&&i.container.key;o&&void 0!==t[o]?o&&void 0!==t[o]&&(t[i.key]=!1):t[i.key]=!0}h.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.addAndRedo(new d.SetSelectionHistoryItem(this.control.selection,Object.keys(t).filter(function(e){return t[e]}))),this.control.history.endTransaction(),this.control.endUpdateCanvas(),this.control.barManager.updateItemsState()},Object.defineProperty(t.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),t.positionOffset=f.UnitConverter.pixelsToTwips(10),t}(o.ClipboardCommand);t.PasteSelectionCommandBase=p},437:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PasteSelectionInPositionCommand=void 0;var o=n(7688),s=n(5503),a=n(7959),c=n(8900),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getEventPositionOffset=function(e,t){if(!t)return c.Point.zero();var n=e.reduce(function(e,t){return{x:Math.min(e.x,t instanceof s.Shape?t.position.x:t instanceof a.Connector?t.getMinX():Number.MAX_VALUE),y:Math.min(e.y,t instanceof s.Shape?t.position.y:t instanceof a.Connector?t.getMinY():Number.MAX_VALUE)}},{x:Number.MAX_VALUE,y:Number.MAX_VALUE}),r=this.control.render.getModelPointByEventPoint(t.x,t.y);return new c.Point(r.x-n.x,r.y-n.y)},t}(o.PasteSelectionCommandBase);t.PasteSelectionInPositionCommand=u},9687:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommandBase=void 0;var n=function(){function e(e){this.control=e}return e.prototype.execute=function(e){this.isPermissionsRequired&&this.permissionsProvider.lockPermissions();var t=this.getState();if(this.isPermissionsRequired&&this.permissionsProvider.unlockPermissions(),!t.enabled)return!1;this.control.beginUpdate();var n=!1;return n=this.isPermissionsRequired?this.executeWithPermissions(t,e):this.executeCore(t,e),this.control.endUpdate(),n&&this.updateControlState(),n},e.prototype.executeWithPermissions=function(e,t){var n=!1;return this.permissionsProvider.beginStorePermissions(),this.control.history.beginTransaction(),n=this.executeCore(e,t),this.permissionsProvider.isStoredPermissionsGranted()||(this.permissionsProvider.lockPermissions(),this.control.history.undoTransaction(),this.permissionsProvider.unlockPermissions(),n=!1),this.control.history.endTransaction(),this.permissionsProvider.endStorePermissions(),n},e.prototype.updateControlState=function(){this.lockInputPositionUpdating()||this.control.selection.inputPosition.reset(),this.lockUIUpdating()||this.control.barManager.updateItemsState()},Object.defineProperty(e.prototype,"permissionsProvider",{get:function(){return this.control&&this.control.permissionsProvider}
19,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPermissionsRequired",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.lockUIUpdating=function(){return!1},e.prototype.lockInputPositionUpdating=function(){return!1},e}();t.CommandBase=n},7156:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommandManager=t.DiagramCommand=void 0;var r,i=n(264),o=n(6679),s=n(3614),a=n(6596),c=n(4845),u=n(4378),l=n(7607),h=n(3411),d=n(7480),f=n(4077),p=n(6106),A=n(1649),g=n(3166),m=n(8700),y=n(2301),v=n(7306),b=n(2452),w=n(2153),C=n(375),_=n(4503),S=n(7550),x=n(7649),T=n(1813),P=n(3690),E=n(2276),I=n(1203),k=n(5827),B=n(2664),M=n(4200),O=n(1239),D=n(4624),R=n(3591),L=n(30),N=n(5925),U=n(4522),F=n(9538),j=n(125),H=n(7004),z=n(9427),Q=n(9031),V=n(6049),K=n(4999),W=n(4419),G=n(8016),q=n(72),Y=n(6619),X=n(7795),Z=n(9970),$=n(4281),J=n(437),ee=n(5830),te=n(9158),ne=n(962),re=n(4643),ie=n(4681),oe=n(2217),se=n(5010),ae=n(554),ce=n(7826),ue=n(7717);!function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.Cut=2]="Cut",e[e.Copy=3]="Copy",e[e.Paste=4]="Paste",e[e.PasteInPosition=5]="PasteInPosition",e[e.SelectAll=6]="SelectAll",e[e.Delete=7]="Delete",e[e.Import=8]="Import",e[e.ImportBPMN=9]="ImportBPMN",e[e.Export=10]="Export",e[e.ExportSvg=11]="ExportSvg",e[e.ExportPng=12]="ExportPng",e[e.ExportJpg=13]="ExportJpg",e[e.BindDocument=14]="BindDocument",e[e.UnbindDocument=15]="UnbindDocument",e[e.Bold=16]="Bold",e[e.Italic=17]="Italic",e[e.Underline=18]="Underline",e[e.FontName=19]="FontName",e[e.FontSize=20]="FontSize",e[e.FontColor=21]="FontColor",e[e.FillColor=22]="FillColor",e[e.StrokeColor=23]="StrokeColor",e[e.TextLeftAlign=24]="TextLeftAlign",e[e.TextCenterAlign=25]="TextCenterAlign",e[e.TextRightAlign=26]="TextRightAlign",e[e.ConnectorLineOption=27]="ConnectorLineOption",e[e.ConnectorStartLineEnding=28]="ConnectorStartLineEnding",e[e.ConnectorEndLineEnding=29]="ConnectorEndLineEnding",e[e.BringToFront=30]="BringToFront",e[e.SendToBack=31]="SendToBack",e[e.MoveLeft=32]="MoveLeft",e[e.MoveStepLeft=33]="MoveStepLeft",e[e.MoveRight=34]="MoveRight",e[e.MoveStepRight=35]="MoveStepRight",e[e.MoveUp=36]="MoveUp",e[e.MoveStepUp=37]="MoveStepUp",e[e.MoveDown=38]="MoveDown",e[e.MoveStepDown=39]="MoveStepDown",e[e.CloneLeft=40]="CloneLeft",e[e.CloneRight=41]="CloneRight",e[e.CloneUp=42]="CloneUp",e[e.CloneDown=43]="CloneDown",e[e.AutoLayoutTree=44]="AutoLayoutTree",e[e.AutoLayoutFlow=45]="AutoLayoutFlow",e[e.AutoLayoutTreeVertical=46]="AutoLayoutTreeVertical",e[e.AutoLayoutTreeHorizontal=47]="AutoLayoutTreeHorizontal",e[e.AutoLayoutLayeredVertical=48]="AutoLayoutLayeredVertical",e[e.AutoLayoutLayeredHorizontal=49]="AutoLayoutLayeredHorizontal",e[e.Lock=50]="Lock",e[e.Unlock=51]="Unlock",e[e.Units=52]="Units",e[e.ViewUnits=53]="ViewUnits",e[e.PageSize=54]="PageSize",e[e.PageLandscape=55]="PageLandscape",e[e.PageColor=56]="PageColor",e[e.GridSize=57]="GridSize",e[e.ShowGrid=58]="ShowGrid",e[e.SnapToGrid=59]="SnapToGri
19d",e[e.ZoomLevel=60]="ZoomLevel",e[e.Fullscreen=61]="Fullscreen",e[e.ToggleSimpleView=62]="ToggleSimpleView",e[e.ToggleReadOnly=63]="ToggleReadOnly",e[e.EditShapeImage=64]="EditShapeImage",e[e.FitToScreen=65]="FitToScreen",e[e.SwitchAutoZoom=66]="SwitchAutoZoom",e[e.ToggleAutoZoom=67]="ToggleAutoZoom",e[e.FitToWidth=68]="FitToWidth",e[e.ZoomLevelItems=69]="ZoomLevelItems",e[e.GridSizeItems=70]="GridSizeItems",e[e.PageSizeItems=71]="PageSizeItems",e[e.ImportXML=72]="ImportXML",e[e.InsertShapeImage=73]="InsertShapeImage",e[e.DeleteShapeImage=74]="DeleteShapeImage",e[e.StrokeStyle=75]="StrokeStyle",e[e.StrokeWidth=76]="StrokeWidth",e[e.AutoLayoutTreeVerticalBottomToTop=77]="AutoLayoutTreeVerticalBottomToTop",e[e.AutoLayoutTreeHorizontalRightToLeft=78]="AutoLayoutTreeHorizontalRightToLeft",e[e.AutoLayoutLayeredVerticalBottomToTop=79]="AutoLayoutLayeredVerticalBottomToTop",e[e.AutoLayoutLayeredHorizontalRightToLeft=80]="AutoLayoutLayeredHorizontalRightToLeft",e[e.Zoom25=81]="Zoom25",e[e.Zoom50=82]="Zoom50",e[e.Zoom75=83]="Zoom75",e[e.Zoom100=84]="Zoom100",e[e.Zoom125=85]="Zoom125",e[e.Zoom150=86]="Zoom150",e[e.Zoom200=87]="Zoom200",e[e.AutoZoomToContent=88]="AutoZoomToContent",e[e.AutoZoomToWidth=89]="AutoZoomToWidth",e[e.ZoomLevelInPercentage=90]="ZoomLevelInPercentage",e[e.ConnectorRoutingMode=91]="ConnectorRoutingMode"}(r=t.DiagramCommand||(t.DiagramCommand={}));var le=function(){function e(e){this.commands={},this.shortcutsToCommand={},this.lastCommandsChain=[],this.executingCommandsChain=[],this.executingCommandCounter=0,this.isPublicApiCall=!1,this.createCommand(e,r.Undo,o.UndoCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_z,w.ModifierKey.Meta|w.KeyCode.Key_z),this.createCommand(e,r.Redo,s.RedoCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_y,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Key_z,w.ModifierKey.Meta|w.ModifierKey.Shift|w.KeyCode.Key_z),this.createCommand(e,r.Cut,B.CutSelectionCommand,w.KeyCode.Key_x|w.ModifierKey.Ctrl,w.KeyCode.Key_x|w.ModifierKey.Meta,w.KeyCode.Delete|w.ModifierKey.Shift),this.createCommand(e,r.Copy,k.CopySelectionCommand,w.KeyCode.Key_c|w.ModifierKey.Ctrl,w.KeyCode.Key_c|w.ModifierKey.Meta,w.KeyCode.Insert|w.ModifierKey.Ctrl),this.createCommand(e,r.Paste,M.PasteSelectionCommand),this.createCommand(e,r.PasteInPosition,J.PasteSelectionInPositionCommand),this.createCommand(e,r.SelectAll,b.SelectAllCommand,w.KeyCode.Key_a|w.ModifierKey.Ctrl,w.KeyCode.Key_a|w.ModifierKey.Meta),this.createCommand(e,r.Delete,i.DeleteCommand,w.KeyCode.Delete,w.KeyCode.Backspace),this.createCommand(e,r.Import,a.ImportCommand),this.createCommand(e,r.ImportBPMN,O.ImportBPMNCommand),this.createCommand(e,r.ImportXML,ee.ImportXMLCommand),this.createCommand(e,r.Export,c.ExportCommand),this.createCommand(e,r.ExportSvg,E.ExportSvgCommand),this.createCommand(e,r.ExportPng,P.ExportPngCommand),this.createCommand(e,r.ExportJpg,I.ExportJpgCommand),this.createCommand(e,r.BindDocument,F.BindDocumentCommand),this.createCommand(e,r.UnbindDocument,j.UnbindDocumentCommand),this.createCommand(e,r.Bold,u.ToggleFontBoldCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_b,w.ModifierKey.Meta|w.KeyCode.Key_b),this.createCommand(e,r.Italic,l.ToggleFontItalicCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_i,w.ModifierKey.Meta|w.KeyCode.Key_i),this.createCommand(e,r.Underline,h.ToggleFontUnderlineCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_u,w.ModifierKey.Meta|w.KeyCode.Key_u),this.createCommand(e,r.FontName,d.ChangeFontNameCommand),this.createCommand(e,r.FontSize,f.ChangeFontSizeCommand),this.createCommand(e,r.FontColor,p.ChangeFontColorCommand),this.createCommand(e,r.FillColor,A.ChangeFillColorCommand),this.createCommand(e,r.StrokeColor,g.ChangeStrokeColorCommand),this.createCommand(e,r.StrokeStyle,re.ChangeStrokeStyleCommand),this.createCommand(e,r.StrokeWidth,ie.ChangeStrokeWidthCommand),this.createCommand(e,r.TextLeftAlign,m.TextLeftAlignCommand),this.createCommand(e,r.TextCenterAlign,m.TextCenterAlignCommand),this.createCommand(e,r.TextRightAlign,m.TextRightAlignCommand),this.createCommand(e,r.ConnectorLineOption,v.ChangeConnectorLineOptionCommand),this.createCommand(e,r.ConnectorStartLineEnding,y.ChangeConnectorStartLineEndingCommand),this.createCommand(e,r.ConnectorEndLineEnding,y.ChangeConnectorEndLineEndingCommand),this.createCommand(e,r.BringToFront,R.BringToFrontCommand),this.createCommand(e,r.SendToBack,D.SendToBackCommand),this.createCommand(e,r.MoveLeft,N.MoveLeftCommand,w.ModifierKey.Ctrl|w.KeyCode.Left,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Left),this.createCommand(e,r.MoveRight,N.MoveRightCommand,w.ModifierKey.Ctrl|w.KeyCode.Right,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Right),this.createCommand(e,r.MoveUp,N.MoveUpCommand,w.ModifierKey.Ctrl|w.KeyCode.Up,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Up),this.createCommand(e,r.MoveDown,N.MoveDownCommand,w.ModifierKey.Ctrl|w.KeyCode.Down,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Down),this.createCommand(e,r.MoveStepLeft,N.MoveStepLeftCommand,w.KeyCode.Left,w.ModifierKey.Shift|w.KeyCode.Left),this.createCommand(e,r.MoveStepRight,N.MoveStepRightCommand,w.KeyCode.Right,w.ModifierKey.Shift|w.KeyCode.Right),this.createCommand(e,r.MoveStepUp,N.MoveStepUpCommand,w.KeyCode.Up,w.ModifierKey.Shift|w.KeyCode.Up),this.createCommand(e,r.MoveStepDown,N.MoveStepDownCommand,w.KeyCode.Down,w.ModifierKey.Shift|w.KeyCode.Down),this.createCommand(e,r.CloneLeft,K.CloneLeftCommand,w.ModifierKey.Alt|w.KeyCode.Left,w.ModifierKey.Alt|w.ModifierKey.Shift|w.KeyCode.Left),this.createCommand(e,r.CloneRight,K.CloneRightCommand,w.ModifierKey.Alt|w.KeyCode.Right,w.ModifierKey.Alt|w.ModifierKey.Shift|w.KeyCode.Right),this.createCommand(e,r.CloneUp,K.CloneUpCommand,w.ModifierKey.Alt|w.KeyCode.Up,w.ModifierKey.Alt|w.ModifierKey.Shift|w.KeyCode.Up),this.createCommand(e,r.CloneDown,K.CloneDownCommand,w.ModifierKey.Alt|w.KeyCode.Down,w.ModifierKey.Alt|w.ModifierKey.Shift|w.KeyCode.Down),this.createCommand(e,r.Lock,Q.LockCommand),this.createCommand(e,r.Unlock,V.UnLockCommand),this.createCommand(e,r.AutoLayoutTree,C.AutoLayoutTreeVerticalCommand),this.createCommand(e,r.AutoLayoutFlow,L.AutoLayoutLayeredHorizontalCommand),this.createCommand(e,r.Units,W.ChangeUnitsCommand),this.createCommand(e,r.ViewUnits,W.ChangeViewUnitsCommand),this.createCommand(e,r.PageSize,T.ChangePageSizeCommand),this.createCommand(e,r.PageLandscape,x.ChangePageLandscapeCommand),this.createCommand(e,r.PageColor,G.ChangePageColorCommand),this.createCommand(e,r.GridSize,S.ChangeGridSizeCommand),this.createCommand(e,r.ShowGrid,q.ChangeShowGridCommand),this.createCommand(e,r.SnapToGri
vendor: 146,704 bytes, line 19
19d,_.ChangeSnapToGridCommand),this.createCommand(e,r.ZoomLevel,U.ChangeZoomLevelCommand),this.createCommand(e,r.ZoomLevelInPercentage,U.ChangeZoomLevelInPercentageCommand),this.createCommand(e,r.AutoLayoutTreeVertical,C.AutoLayoutTreeVerticalCommand),this.createCommand(e,r.AutoLayoutTreeVerticalBottomToTop,oe.AutoLayoutTreeVerticalBottomToTopCommand),this.createCommand(e,r.AutoLayoutTreeHorizontal,H.AutoLayoutTreeHorizontalCommand),this.createCommand(e,r.AutoLayoutTreeHorizontalRightToLeft,se.AutoLayoutTreeHorizontalRightToLeftCommand),this.createCommand(e,r.AutoLayoutLayeredVertical,z.AutoLayoutLayeredVerticalCommand),this.createCommand(e,r.AutoLayoutLayeredVerticalBottomToTop,ae.AutoLayoutLayeredVerticalBottomToTopCommand),this.createCommand(e,r.AutoLayoutLayeredHorizontal,L.AutoLayoutLayeredHorizontalCommand),this.createCommand(e,r.AutoLayoutLayeredHorizontalRightToLeft,ce.AutoLayoutLayeredHorizontalRightToLeftCommand),this.createCommand(e,r.Fullscreen,Y.ToggleFullscreenCommand,w.KeyCode.F11),this.createCommand(e,r.ToggleSimpleView,X.ToggleSimpleViewCommand),this.createCommand(e,r.ToggleReadOnly,Z.ToggleReadOnlyCommand),this.createCommand(e,r.InsertShapeImage,te.InsertShapeImageCommand),this.createCommand(e,r.EditShapeImage,$.EditShapeImageCommand),this.createCommand(e,r.DeleteShapeImage,ne.DeleteShapeImageCommand),this.createCommand(e,r.FitToScreen,U.FitToScreenCommand),this.createCommand(e,r.FitToWidth,U.FitToWidthCommand),this.createCommand(e,r.SwitchAutoZoom,U.SwitchAutoZoomCommand),this.createCommand(e,r.ToggleAutoZoom,U.ToggleAutoZoomCommand),this.createCommand(e,r.ZoomLevelItems,U.ChangeZoomLevelItemsCommand),this.createCommand(e,r.GridSizeItems,S.ChangeGridSizeItemsCommand),this.createCommand(e,r.PageSizeItems,T.ChangePageSizeItemsCommand),this.createCommand(e,r.Zoom25,U.ChangeZoomLevelTo25Command),this.createCommand(e,r.Zoom50,U.ChangeZoomLevelTo50Command),this.createCommand(e,r.Zoom75,U.ChangeZoomLevelTo75Command),this.createCommand(e,r.Zoom100,U.ChangeZoomLevelTo100Command),this.createCommand(e,r.Zoom125,U.ChangeZoomLevelTo125Command),this.createCommand(e,r.Zoom150,U.ChangeZoomLevelTo150Command),this.createCommand(e,r.Zoom200,U.ChangeZoomLevelTo200Command),this.createCommand(e,r.AutoZoomToContent,U.ToggleAutoZoomToContentCommand),this.createCommand(e,r.AutoZoomToWidth,U.ToggleAutoZoomToWidthCommand),this.createCommand(e,r.ConnectorRoutingMode,ue.ChangeConnectorRoutingModeCommand)}return e.prototype.getCommand=function(e){return this.commands[e]},e.prototype.beforeExecuting=function(e){this.executingCommandsChain.push(e),this.executingCommandCounter++},e.prototype.afterExecuting=function(){this.executingCommandCounter--,0===this.executingCommandCounter&&(this.lastCommandsChain=this.executingCommandsChain,this.executingCommandsChain=[])},e.prototype.processShortcut=function(e){var t=this.shortcutsToCommand[e];return!!t&&t.execute()},e.prototype.processPaste=function(e){var t=this.getCommand(r.Paste);return t&&t.isEnabled()&&t.execute(e),!0},e.prototype.notifySelectionChanged=function(e){this.lastCommandsChain=[]},e.prototype.notifyScrollPositionChanged=function(){},e.prototype.createCommand=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];this.commands[t]=new n(e);for(var o=0;o<r.length;o++){var s=r[o];"number"==typeof s&&(this.shortcutsToCommand[s]=this.commands[t])}},e}();t.CommandManager=le},2102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleCommandState=void 0;var n=function(e,t,n,r,i){this.visible=!0,this.denyUpdateValue=!1,this.enabled=e,this.value=t,this.items=r,this.visible=i,this.defaultValue=n};t.SimpleCommandState=n},264:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteCommand=void 0;var o=n(4867),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.control.selection.getSelectedItems();return e.prototype.isEnabled.call(this)&&t.length&&(t.length>1||this.permissionsProvider.canDeleteItems(t))},t.prototype.executeCore=function(e){var t=this.control.selection.getSelectedItems(!0,!0);return this.permissionsProvider.beginDeleteItems(t),o.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),this.permissionsProvider.endDeleteItems(),!0},Object.defineProperty(t.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(n(9741).SimpleCommandBase);t.DeleteCommand=s},3614:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RedoCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e){return this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.control.history.redo(),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.history.canRedo()},t}(n(9741).SimpleCommandBase);t.RedoCommand=o},2452:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAllCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e,t){var n=[];return this.control.model.iterateItems(function(e){return n.push(e.key)}),this.control.selection.set(n),!0},t}(n(9741).SimpleCommandBase);t.SelectAllCommand=o},6679:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UndoCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e){return this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.control.history.undo(),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.history.canUndo()},t}(n(9741).SimpleCommandBase);t.UndoCommand=o},9538:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BindDocumentCommand=void 0;var o=n(3503),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e,t){if(!t||!Array.isArray(t.nodeDataSource))throw Error("Format exception");return this.performImportData(t),this.control.updateLayout(!0),!0},t.prototype.performImportData=function(e){var t=this.control.createDocumentDataSource(e.nodeDataSource,e.edgeDataSource,e.dataParameters,e.nodeDataImporter,e.edgeDataImporter);this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions();var n=new o.DataLayoutParameters(this.control.settings,e.layoutParameters);t.createModelItems(this.control.history,this.control.model,this.control.shapeDescriptionManager,this.control.selection,n,this.control.settings.snapToGrid,this.control.settings.gridSize,this.control.measurer),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas()},t}(n(9741).SimpleCommandBase);t.BindDocumentCommand=s},125:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnbindDocumentCommand=void 0;var o=n(4867),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e){return this.permissionsProvider.lockPermissions(),this.control.deleteDocumentDataSource(),o.ModelUtils.deleteAllItems(this.control.history,this.control.model,this.control.selection),this.control.history.clear(),this.permissionsProvider.unlockPermissions(),!0},t}(n(9741).SimpleCommandBase);t.UnbindDocumentCommand=s},4845:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExportCommand=void 0;var o=n(5885),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e,t){return t((new o.Exporter).export(this.control.model)),!0},t}(n(1081).ExportImportCommandBase);t.ExportCommand=s},4012:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExportImageCommand=void 0;var o=n(8693),s=n(3872),a=n(1081),c=n(5885),u=n(1114),l=n(1733),h=n(6078),d=n(7176),f=function(e){function t(t){var n=e.call(this,t)||this;return n.exporter=new c.Exporter,n}return i(t,e),t.prototype.isEnabled=function(){return!d.ImageCache.instance.hasNonLoadedImages()},t.prototype.executeCore=function(e,t){var n=this;try{var r=this.getExportManager();this.getExportFunc()(this.control.model.size.clone(),this.control.model.pageColor,r,function(e){t(e,n.getExtension()),n.tryDispose()},this.control.settings.useCanvgForExportToImage)}catch(e){throw this.tryDispose(),e}return!0},t.prototype.getExportManager=function(){var e=this.getOrCreateMeasurer(),t=this.control.render&&this.control.render.items||this.createItemsManager(e);return this.exportManager||(this.exportManager=new s.CanvasExportManager(t.itemsContainer,e,this.control.instanceId))},t.prototype.createItemsManager=function(e){this.svgElement=u.RenderHelper.createSvgElement(document.body,!0);var t=new o.CanvasItemsManager(this.svgElement,1,new h.ExportDOMManipulator(e),this.control.instanceId);return this.control.modelManipulator.onModelChanged.add(t),this.control.modelManipulator.commitItemsCreateChanges(),t},t.prototype.tryDispose=function(){this.svgElement&&(document.body.removeChild(this.svgElement),delete this.svgElement),this.tempMeasurer&&(this.tempMeasurer.clean(),this.tempMeasurer=void 0),this.exportManager=void 0},t.prototype.getOrCreateMeasurer=function(){return this.control.measurer||(this.tempMeasurer=new l.TextMeasurer(document.body))},t}(a.ExportImportCommandBase);t.ExportImageCommand=f},1081:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExportImportCommandBase=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(n(9741).SimpleCommandBase);t.ExportImportCommandBase=o},1203:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExportJpgCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getExtension=function(){return"jpg"},t.prototype.getExportFunc=function(){return this.exporter.exportJpg},t}(n(4012).ExportImageCommand);t.ExportJpgCommand=o},3690:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExportPngCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getExtension=function(){return"png"},t.prototype.getExportFunc=function(){return this.exporter.exportPng},t}(n(4012).ExportImageCommand);t.ExportPngCommand=o},2276:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExportSvgCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getExtension=function(){return"svg"},t.prototype.getExportFunc=function(){return this.exporter.exportSvg},t}(n(4012).ExportImageCommand);t.ExportSvgCommand=o},1239:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ImportBPMNCommand=void 0;var o=n(5941),s=n(4867),a=n(4145),c=n(8900),u=n(7959),l=n(9603),h=n(3477),d=n(1256),f=n(8710),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e,t){var n=new o.BPMNImporter(t).import();return this.updateModel(n),!0},t.prototype.updateModel=function(e){var t=this,n={},r=[],i=[];this.control.history.beginTransaction(),e.items.forEach(function(e){var i=new a.AddShapeHistoryItem(t.getShapeDescription(e.type),new c.Point(0,0),e.text,e.key);t.control.history.addAndRedo(i),n[e.key]=i.shapeKey;var o=t.control.model.findShape(i.shapeKey);r.push(o)}),e.edges.forEach(function(e){var r=t.control.model.findShape(n[e.from]),o=t.control.model.findShape(n[e.to]),s=new l.AddConnectorHistoryItem([r.getConnectionPointPosition(0),o.getConnectionPointPosition(0)]);t.control.history.addAndRedo(s);var a=t.control.model.findConnector(s.connectorKey);t.control.history.addAndRedo(new h.AddConnectionHistoryItem(a,r,0,u.ConnectorPosition.Begin)),t.control.history.addAndRedo(new h.AddConnectionHistoryItem(a,o,0,u.ConnectorPosition.End)),i.push(a)});var o=new f.LayoutSettings;s.ModelUtils.getGraphInfoByItems(this.control.model,r,i).forEach(function(e){var n=new d.SugiyamaLayoutBuilder(o,e.graph).build(),a=s.ModelUtils.getNonGraphItems(t.control.model,e.container,n.nodeToLayout,r,i);s.ModelUtils.applyLayout(t.control.history,t.control.model,void 0,e.graph,n,a,o,t.control.settings.snapToGrid,t.control.settings.gridSize,!1)}),s.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction()},t.prototype.getShapeDescription=function(e){return this.control.shapeDescriptionManager.get(e)},t}(n(1081).ExportImportCommandBase);t.ImportBPMNCommand=p},6596:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ImportCommand=void 0;var o=n(2406),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e,t){this.permissionsProvider.lockPermissions();var n=t.data?t.data:t,r=new o.Importer(this.control.shapeDescriptionManager,n);if(!0===t.keepExistingItems)r.importItemsData(this.control.model),this.control.importItemsData();else{var i=r.import();this.control.importModel(i)}return this.permissionsProvider.unlockPermissions(),!0},t}(n(1081).ExportImportCommandBase);t.ImportCommand=s},5830:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ImportXMLCommand=void 0;var o=n(780),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e,t){var n=new o.XmlImporter(this.control.shapeDescriptionManager,t).import();return this.control.importModel(n),!0},t}(n(1081).ExportImportCommandBase);t.ImportXMLCommand=s},4999:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CloneDownCommand=t.CloneUpCommand=t.CloneRightCommand=t.CloneLeftCommand=t.CloneCommand=void 0;var o=n(4867),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.control.selection.getSelectedItems();return e.prototype.isEnabled.call(this)&&t.length&&t.length>0&&this.permissionsProvider.canAddItems(t)},t.prototype.executeCore=function(e,t){var n=o.ModelUtils.createRectangle(this.control.selection.getSelectedItems());return o.ModelUtils.cloneSelectionToOffset(this.control.history,this.control.model,void 0,this.control.selection,this.getOffsetX(n),this.getOffsetY(n)),!0},Object.defineProperty(t.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getOffsetX=function(e){return 0},t.prototype.getOffsetY=function(e){return 0},t}(n(9741).SimpleCommandBase);t.CloneCommand=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getOffsetX=function(e){return-e.width},t}(s);t.CloneLeftCommand=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getOffsetX=function(e){return e.width},t}(s);t.CloneRightCommand=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getOffsetY=function(e){return-e.height},t}(s);t.CloneUpCommand=u;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getOffsetY=function(e){return e.height},t}(s);t.CloneDownCommand=l},5925:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MoveStepDownCommand=t.MoveDownCommand=t.MoveStepUpCommand=t.MoveUpCommand=t.MoveStepRightCommand=t.MoveRightCommand=t.MoveStepLeftCommand=t.MoveLeftCommand=t.MoveCommand=void 0;var o=n(8900),s=n(4867),a=n(9291),c=n(9741),u=n(4742),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty()},t.prototype.executeCore=function(e,t){var n=this;this.control.history.beginTransaction();var r=this.control.selection,i=new u.SelectionDragHelper(this.control.history,this.control.model,this.permissionsProvider,new o.Point(0,0),r.getSelectedItems(!0));return i.initDraggingShapes(r.getSelectedShapes(!1,!0),!1),i.initDraggingConnectors(r.getSelectedConnectors(!1,!0),!1),i.move(!1,function(e){return n.getPosition(e)},function(){},function(){}),i.finish(),s.ModelUtils.tryUpdateModelRectangle(this.control.history,function(e,t){return i.onTryUpdateModelSize(e,t)}),this.control.history.endTransaction(),!0},Object.defineProperty(t.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(c.SimpleCommandBase);t.MoveCommand=l;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPosition=function(e){return e.clone().offset(-a.UnitConverter.pixelsToTwips(1),0)},t}(l);t.MoveLeftCommand=h;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPosition=function(e){return this.control.settings.snapToGrid?new o.Point(s.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,e.x-(this.control.settings.gridSize/2+2),!0),e.y):e.clone().offset(-this.control.settings.gridSize,0)},t}(l);t.MoveStepLeftCommand=d;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPosition=function(e){return e.clone().offset(a.UnitConverter.pixelsToTwips(1),0)},t}(l);t.MoveRightCommand=f;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPosition=function(e){return this.control.settings.snapToGrid?new o.Point(s.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,e.x+(this.control.settings.gridSize/2+2),!0),e.y):e.clone().offset(this.control.settings.gridSize,0)},t}(l);t.MoveStepRightCommand=p;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPosition=function(e){return e.clone().offset(0,-a.UnitConverter.pixelsToTwips(1))},t}(l);t.MoveUpCommand=A;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPosition=function(e){return this.control.settings.snapToGrid?new o.Point(e.x,s.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,e.y-(this.control.settings.gridSize/2+2),!1)):e.clone().offset(0,-this.control.settings.gridSize)},t}(l);t.MoveStepUpCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPosition=function(e){return e.clone().offset(0,a.UnitConverter.pixelsToTwips(1))},t}(l);t.MoveDownCommand=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPosition=function(e){return this.control.settings.snapToGrid?new o.Point(e.x,s.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,e.y+(this.control.settings.gridSize/2+2),!1)):e.clone().offset(0,this.control.settings.gridSize)},t}(l);t.MoveStepDownCommand=y},7550:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeGridSizeItemsCommand=t.ChangeGridSizeCommand=void 0;var o=n(9741),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.getModelUnit(this.control.settings.gridSize)},t.prototype.executeCore=function(e,t){return this.control.settings.gridSize=this.getModelUnitTwipsValue(t),!0},t.prototype.getItems=function(){var e=this;return this.control.settings.gridSizeItems.map(function(t){return{value:e.getModelUnit(t),text:e.getViewUnitText(t)}})},t}(o.SimpleCommandBase);t.ChangeGridSizeCommand=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){var e=this;return this.control.settings.gridSizeItems.map(function(t){return e.getModelUnit(t)})},t.prototype.executeCore=function(e,t){var n=this;return this.control.settings.gridSizeItems=t.map(function(e){return n.getModelUnitTwipsValue(e)}),!0},t}(o.SimpleCommandBase);t.ChangeGridSizeItemsCommand=a},8016:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangePageColorCommand=void 0;var o=n(3499),s=n(7195),a=n(6613),c=n(13),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return c.ColorUtils.colorToHash(this.control.model.pageColor)},t.prototype.getDefaultValue=function(){return c.ColorUtils.colorToHash(a.DiagramModel.defaultPageColor)},t.prototype.createHistoryItems=function(e){return[new s.ChangePageColorHistoryItem(c.ColorUtils.fromString(e))]},t}(o.ChangePagePropertyCommand);t.ChangePageColorCommand=u},7649:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangePageLandscapeCommand=void 0;var o=n(3499),s=n(1380),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.model.pageLandscape},t.prototype.createHistoryItems=function(e){return[new s.ChangePageLandscapeHistoryItem(e)]},t}(o.ChangePagePropertyCommand);t.ChangePageLandscapeCommand=a},3499:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangePagePropertyCommand=void 0;var o=n(4867),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e,t){var n=this;return this.control.history.beginTransaction(),this.createHistoryItems(t).forEach(function(e){n.control.history.addAndRedo(e)}),o.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction(),!0},t.prototype.getItems=function(){return null},t}(n(9741).SimpleCommandBase);t.ChangePagePropertyCommand=s},1813:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangePageSizeItemsCommand=t.ChangePageSizeCommand=void 0;var o=n(3499),s=n(6353),a=n(1044),c=n(9741),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.getModelUnitSize(this.control.model.pageSize)},t.prototype.createHistoryItems=function(e){return[new a.ChangePageSizeHistoryItem(new s.Size(this.getModelUnitTwipsValue(e.width),this.getModelUnitTwipsValue(e.height)))]},t.prototype.getItems=function(){var e=this;return this.control.settings.pageSizeItems.map(function(t){return{value:e.getModelUnitSize(t.size),text:t.text.replace("{width}",e.getViewUnitText(t.size.width)).replace("{height}",e.getViewUnitText(t.size.height))}})},t.prototype.getModelUnitSize=function(e){return new s.Size(this.getModelUnit(e.width),this.getModelUnit(e.height))},t}(o.ChangePagePropertyCommand);t.ChangePageSizeCommand=u;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){return!0},t.prototype.getValue=function(){var e=this;return this.control.settings.pageSizeItems.map(function(t){return{size:new s.Size(e.getModelUnit(t.width),e.getModelUnit(t.height)),text:t.text}})},t.prototype.executeCore=function(e,t){var n=this;return this.control.settings.pageSizeItems=t.map(function(e){return{size:new s.Size(n.getModelUnitTwipsValue(e.width),n.getModelUnitTwipsValue(e.height)),text:e.text}}),!0},t}(c.SimpleCommandBase);t.ChangePageSizeItemsCommand=l},72:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeShowGridCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e,t){var n=void 0===t?!this.control.settings.showGrid:!!t;return this.control.settings.showGrid!==n&&(this.control.settings.showGrid=n,!0)},t.prototype.getValue=function(){return this.control.settings.showGrid},t}(n(9741).SimpleCommandBase);t.ChangeShowGridCommand=o},4503:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeSnapToGridCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e,t){var n=void 0===t?!this.control.settings.snapToGrid:!!t;return this.control.settings.snapToGrid!==n&&(this.control.settings.snapToGrid=n,!0)},t.prototype.getValue=function(){return this.control.settings.snapToGrid},t}(n(9741).SimpleCommandBase);t.ChangeSnapToGridCommand=o},4419:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeViewUnitsCommand=t.ChangeUnitsCommand=void 0;var o=n(3499),s=n(7479),a=n(9741),c=n(6224),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.model.units},t.prototype.createHistoryItems=function(e){return[new s.ChangeUnitsHistoryItem(e)]},t.prototype.getItems=function(){return Object.keys(c.DiagramLocalizationService.unitItems).map(function(e){return{value:parseInt(e),text:c.DiagramLocalizationService.unitItems[e]}})},t}(o.ChangePagePropertyCommand);t.ChangeUnitsCommand=u;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.settings.viewUnits},t.prototype.executeCore=function(e,t){return this.control.settings.viewUnits=t,!0},t.prototype.getItems=function(){return Object.keys(c.DiagramLocalizationService.unitItems).map(function(e){return{value:parseInt(e),text:c.DiagramLocalizationService.unitItems[e]}})},t}(a.SimpleCommandBase);t.ChangeViewUnitsCommand=l},4522:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleAutoZoomCommand=t.ToggleAutoZoomToWidthCommand=t.ToggleAutoZoomToContentCommand=t.SwitchAutoZoomCommand=t.FitToWidthCommand=t.FitToScreenCommand=t.ChangeZoomLevelItemsCommand=t.ChangeZoomLevelTo200Command=t.ChangeZoomLevelTo150Command=t.ChangeZoomLevelTo125Command=t.ChangeZoomLevelTo100Command=t.ChangeZoomLevelTo75Command=t.ChangeZoomLevelTo50Command=t.ChangeZoomLevelTo25Command=t.ChangeZoomLevelInPercentageCommand=t.ChangeZoomLevelCommand=void 0;var o=n(9741),s=n(240),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.view.getZoom()},t.prototype.executeCore=function(e,t){return this.control.settings.zoomLevel=t,this.control.settings.autoZoom=s.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},t.prototype.getItems=function(){return this.control.settings.zoomLevelItems.map(function(e){return{value:e,text:100*e+"%"}})},t}(o.SimpleCommandBase);t.ChangeZoomLevelCommand=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(t,n){return e.prototype.executeCore.call(this,t,n/100)},t.prototype.getValue=function(){return 100*this.control.view.getZoom()},t}(a);t.ChangeZoomLevelInPercentageCommand=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.view.getZoom()===this.exactValue},t.prototype.executeCore=function(t,n){return e.prototype.executeCore.call(this,t,this.exactValue),!0},t.prototype.getItems=function(){},t}(a),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exactValue=.25,t}return i(t,e),t}(u);t.ChangeZoomLevelTo25Command=l;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exactValue=.5,t}return i(t,e),t}(u);t.ChangeZoomLevelTo50Command=h;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exactValue=.75,t}return i(t,e),t}(u);t.ChangeZoomLevelTo75Command=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exactValue=1,t}return i(t,e),t}(u);t.ChangeZoomLevelTo100Command=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exactValue=1.25,t}return i(t,e),t}(u);t.ChangeZoomLevelTo125Command=p;var A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exactValue=1.5,t}return i(t,e),t}(u);t.ChangeZoomLevelTo150Command=A;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exactValue=2,t}return i(t,e),t}(u);t.ChangeZoomLevelTo200Command=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.settings.zoomLevelItems},t.prototype.executeCore=function(e,t){return this.control.settings.zoomLevelItems=t,!0},t}(o.SimpleCommandBase);t.ChangeZoomLevelItemsCommand=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&!!this.control.render},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e){var t=this.getZoomLevel();return this.control.settings.zoomLevel=t,this.control.settings.autoZoom=s.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},t}(o.SimpleCommandBase),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(s.AutoZoomMode.FitContent)},t}(y);t.FitToScreenCommand=v;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(s.AutoZoomMode.FitToWidth)},t}(y);t.FitToWidthCommand=b;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.settings.autoZoom},t.prototype.executeCore=function(e,t){return t=parseInt(t),this.control.settings.autoZoom!==t&&(t===s.AutoZoomMode.Disabled&&(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=t,this.control.updateLayout(!0),!0)},t}(o.SimpleCommandBase);t.SwitchAutoZoomCommand=w;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.settings.autoZoom===s.AutoZoomMode.FitContent},t.prototype.executeCore=function(t,n){return e.prototype.executeCore.call(this,t,s.AutoZoomMode.FitContent)},t}(w);t.ToggleAutoZoomToContentCommand=C;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.settings.autoZoom===s.AutoZoomMode.FitToWidth},t.prototype.executeCore=function(t,n){return e.prototype.executeCore.call(this,t,s.AutoZoomMode.FitToWidth)},t}(w);t.ToggleAutoZoomToWidthCommand=_;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&!!this.control.render},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.settings.autoZoom},t.prototype.executeCore=function(e,t){var n;return n=void 0===t?this.control.settings.autoZoom===s.AutoZoomMode.Disabled?s.AutoZoomMode.FitContent:s.AutoZoomMode.Disabled:t?s.AutoZoomMode.FitContent:s.AutoZoomMode.Disabled,this.control.settings.autoZoom!==n&&(n||(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=n,this.control.updateLayout(!0),!0)},t}(o.SimpleCommandBase);t.ToggleAutoZoomCommand=S},6619:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleFullscreenCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.settings.fullscreen},t.prototype.executeCore=function(e,t){var n="boolean"==typeof t?t:!e.value;return this.control.settings.fullscreen!==n&&(this.control.settings.fullscreen=!e.value,this.control.notifyToggleFullscreen(this.control.settings.fullscreen)),!0},t}(n(9741).SimpleCommandBase);t.ToggleFullscreenCommand=o},9970:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleReadOnlyCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.settings.readOnly},t.prototype.executeCore=function(e,t){return"boolean"==typeof t?this.control.settings.readOnly=t:void 0===t&&(this.control.settings.readOnly=!e.value),!0},t}(n(9741).SimpleCommandBase);t.ToggleReadOnlyCommand=o},7795:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleSimpleViewCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getValue=function(){return this.control.settings.simpleView},t.prototype.executeCore=function(e,t){return"boolean"==typeof t?this.control.settings.simpleView=t:void 0===t&&(this.control.settings.simpleView=!e.value),this.control.updateLayout(!0),!0},t}(n(9741).SimpleCommandBase);t.ToggleSimpleViewCommand=o},3591:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BringToFrontCommand=void 0;var o=n(5982),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.control.selection.getSelectedItems();return e.prototype.isEnabled.call(this)&&t.length>0&&this.needBringToFront(t)},t.prototype.executeCore=function(e,t){var n=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach(function(e){var t=n.control.model.getIntersectItemsMaxZIndex(e)+1;n.control.history.addAndRedo(new o.ChangeZindexHistoryItem(e,t))}),this.control.history.endTransaction(),!0},t.prototype.needBringToFront=function(e){for(var t=this,n=function(n){var i=r.control.model.getIntersectItemsMaxZIndex(e[n]);if(i>e[n].zIndex)return{value:!0};if(i===e[n].zIndex){var o=!1;return r.control.model.getIntersectItems(e[n]).filter(function(t){return t.zIndex===e[n].zIndex}).forEach(function(r){t.control.model.getItemIndex(r)>t.control.model.getItemIndex(e[n])&&(o=!0)}),{value:o}}},r=this,i=0;i<e.length;i++){var o=n(i);if("object"==typeof o)return o.value}return!1},t}(n(9741).SimpleCommandBase);t.BringToFrontCommand=s},2301:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorEndLineEndingCommand=t.ChangeConnectorStartLineEndingCommand=void 0;var o=n(7551),s=n(4612),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPropertyName=function(){return"startLineEnding"},t.prototype.getPropertyDefaultValue=function(){return s.ConnectorLineEnding.None},t}(o.ChangeConnectorPropertyCommand);t.ChangeConnectorStartLineEndingCommand=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPropertyName=function(){return"endLineEnding"},t.prototype.getPropertyDefaultValue=function(){return s.ConnectorLineEnding.Arrow},t}(o.ChangeConnectorPropertyCommand);t.ChangeConnectorEndLineEndingCommand=c},7306:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorLineOptionCommand=void 0;var o=n(7551),s=n(4612),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPropertyName=function(){return"lineOption"},t.prototype.getPropertyDefaultValue=function(){return s.ConnectorLineOption.Straight},t}(o.ChangeConnectorPropertyCommand);t.ChangeConnectorLineOptionCommand=a},7551:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorPropertyCommand=void 0;var o=n(8236),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentConnectorPropertyValue(this.getPropertyName())},t.prototype.getDefaultValue=function(){return this.getPropertyDefaultValue()},t.prototype.executeCore=function(e,t){var n=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedConnectors().forEach(function(e){var r=n.getPropertyName();n.control.history.addAndRedo(new o.ChangeConnectorPropertyHistoryItem(e.key,r,t))}),this.control.selection.inputPosition.setConnectorPropertyValue(this.getPropertyName(),t),this.control.history.endTransaction(),!0},t.prototype.lockInputPositionUpdating=function(){return!0},t.prototype.isEnabled=function(){var t=this.control.selection.getSelectedConnectors();return e.prototype.isEnabled.call(this)&&t.length>0},t}(n(9741).SimpleCommandBase);t.ChangeConnectorPropertyCommand=s},7717:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorRoutingModeCommand=void 0;var o=n(9741),s=n(240),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.settings.connectorRoutingMode},t.prototype.executeCore=function(e,t){var n=void 0!==t?t:s.ConnectorRoutingMode.None;return this.control.settings.connectorRoutingMode=n,!0},t}(o.SimpleCommandBase);t.ChangeConnectorRoutingModeCommand=a},1307:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeLockedCommand=void 0;var o=n(4867),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this,n=this.control.selection.getSelectedItems(!0),r=!1;return n.forEach(function(e){e.locked!==t.getLockState()&&(r=!0)}),e.prototype.isEnabled.call(this)&&r},t.prototype.executeCore=function(e,t){return o.ModelUtils.changeSelectionLocked(this.control.history,this.control.model,this.control.selection,this.getLockState()),!0},t}(n(9741).SimpleCommandBase);t.ChangeLockedCommand=s},9031:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LockCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getLockState=function(){return!0},t}(n(1307).ChangeLockedCommand);t.LockCommand=o},4624:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SendToBackCommand=void 0;var o=n(5982),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.control.selection.getSelectedItems();return e.prototype.isEnabled.call(this)&&t.length>0&&this.needSendToBack(t)},t.prototype.executeCore=function(e,t){var n=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach(function(e){var t=n.control.model.getIntersectItemsMinZIndex(e)-1;n.control.history.addAndRedo(new o.ChangeZindexHistoryItem(e,t))}),this.control.history.endTransaction(),!0},t.prototype.needSendToBack=function(e){for(var t=this,n=function(n){var i=r.control.model.getIntersectItemsMinZIndex(e[n]);if(i<e[n].zIndex)return{value:!0};if(i===e[n].zIndex){var o=!1;return r.control.model.getIntersectItems(e[n]).filter(function(t){return t.zIndex===e[n].zIndex}).forEach(function(r){t.control.model.getItemIndex(r)<t.control.model.getItemIndex(e[n])&&(o=!0)}),{value:o}}},r=this,i=0;i<e.length;i++){var o=n(i);if("object"==typeof o)return o.value}return!1},t}(n(9741).SimpleCommandBase);t.SendToBackCommand=s},6049:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnLockCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getLockState=function(){return!1},t}(n(1307).ChangeLockedCommand);t.UnLockCommand=o},962:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteShapeImageCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.getSelectedShape();return e.prototype.isEnabled.call(this)&&!t.image.isEmpty},t.prototype.executeCore=function(t,n){return e.prototype.executeCore.call(this,t,void 0)},t}(n(7650).EditShapeImageCommandBase);t.DeleteShapeImageCommand=o},4281:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EditShapeImageCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.getSelectedShape();return e.prototype.isEnabled.call(this)&&!t.image.isEmpty},t}(n(7650).EditShapeImageCommandBase);t.EditShapeImageCommand=o},7650:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EditShapeImageCommandBase=void 0;var o=n(8210),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.getSelectedShape();return e.prototype.isEnabled.call(this)&&!!t&&!t.locked&&t.enableImage&&t.allowEditImage},t.prototype.getValue=function(){var e=this.getSelectedShape();return e?e.image.exportUrl:void 0},t.prototype.getSelectedShape=function(){var e=this.control.selection.getSelectedShapes(!0);return 1===e.length?e[0]:void 0},t.prototype.executeCore=function(e,t){this.control.history.beginTransaction();var n=this.control.selection.getSelectedShapes(!1);return this.control.history.addAndRedo(new o.ChangeShapeImageHistoryItem(n[0],t)),this.control.history.endTransaction(),!0},t}(n(9741).SimpleCommandBase);t.EditShapeImageCommandBase=s},9158:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InsertShapeImageCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isEnabled=function(){var t=this.getSelectedShape();return e.prototype.isEnabled.call(this)&&t.image.isEmpty},t}(n(7650).EditShapeImageCommandBase);t.InsertShapeImageCommand=o},9741:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleCommandBase=void 0;var o=n(9687),s=n(2102),a=n(4867),c=n(6224),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled(),this.getValue(),this.getDefaultValue(),this.getItems(),this.isVisible())},t.prototype.isVisible=function(){return!0},t.prototype.isEnabled=function(){return!this.control.settings.readOnly||this.isEnabledInReadOnlyMode()},t.prototype.isEnabledInReadOnlyMode=function(){return!1},t.prototype.getValue=function(){},t.prototype.getDefaultValue=function(){},t.prototype.getItems=function(){},t.prototype.getModelUnit=function(e){return a.ModelUtils.getlUnitValue(this.control.model.units,e)},t.prototype.getModelUnitText=function(e){return a.ModelUtils.getUnitText(this.control.model.units,c.DiagramLocalizationService.unitItems,c.DiagramLocalizationService.formatUnit,e)},t.prototype.getModelUnitTwipsValue=function(e){return a.ModelUtils.getTwipsValue(this.control.model.units,e)},t.prototype.getViewUnit=function(e){return a.ModelUtils.getlUnitValue(this.control.settings.viewUnits,e)},t.prototype.getViewUnitText=function(e){return a.ModelUtils.getUnitText(this.control.settings.viewUnits,c.DiagramLocalizationService.unitItems,c.DiagramLocalizationService.formatUnit,e)},t.prototype.getViewUnitTwipsValue=function(e){return a.ModelUtils.getTwipsValue(this.control.settings.viewUnits,e)},t}(o.CommandBase);t.SimpleCommandBase=u},1649:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeFillColorCommand=void 0;var o=n(5726),s=n(13),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.processParameter=function(e){return s.ColorUtils.stringToHash(e)},t.prototype.getStyleProperty=function(){return"fill"},t}(o.ChangeStylePropertyCommand);t.ChangeFillColorCommand=a},6106:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeFontColorCommand=void 0;var o=n(2722),s=n(13),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.processParameter=function(e){return s.ColorUtils.stringToHash(e)},t.prototype.getStyleProperty=function(){return"fill"},t}(o.ChangeStyleTextPropertyCommand);t.ChangeFontColorCommand=a},7480:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeFontNameCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyleProperty=function(){return"font-family"},t}(n(2722).ChangeStyleTextPropertyCommand);t.ChangeFontNameCommand=o},4077:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeFontSizeCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyleProperty=function(){return"font-size"},t}(n(2722).ChangeStyleTextPropertyCommand);t.ChangeFontSizeCommand=o},3166:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStrokeColorCommand=void 0;var o=n(5726),s=n(13),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.processParameter=function(e){return s.ColorUtils.stringToHash(e)},t.prototype.getStyleProperty=function(){return"stroke"},t}(o.ChangeStylePropertyCommand);t.ChangeStrokeColorCommand=a},4643:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStrokeStyleCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyleProperty=function(){return"stroke-dasharray"},t}(n(5726).ChangeStylePropertyCommand);t.ChangeStrokeStyleCommand=o},4681:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStrokeWidthCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyleProperty=function(){return"stroke-width"},t}(n(5726).ChangeStylePropertyCommand);t.ChangeStrokeWidthCommand=o},5726:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStylePropertyCommand=void 0;var o=n(521),s=n(4634),a=n(1552),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentStylePropertyValue(this.getStyleProperty())},t.prototype.getStyleObj=function(e){return e.style},t.prototype.getDefaultStyleObj=function(){return new a.Style},t.prototype.createHistoryItem=function(e,t,n){return new s.ChangeStyleHistoryItem(e.key,t,n)},t.prototype.updateInputPosition=function(e){this.control.selection.inputPosition.setStylePropertyValue(this.getStyleProperty(),e)},t}(o.ChangeStylePropertyCommandBase);t.ChangeStylePropertyCommand=c},521:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStylePropertyCommandBase=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.executeCore=function(e,t){var n=this;this.control.history.beginTransaction();var r=this.control.selection.getSelectedItems();return t=this.processParameter(t),r.forEach(function(e){var r=n.getStyleProperty();n.control.history.addAndRedo(n.createHistoryItem(e,r,t))}),this.updateInputPosition(t),this.control.history.endTransaction(),!0},t.prototype.getDefaultValue=function(){return this.getDefaultStyleObj()[this.getStyleProperty()]},t.prototype.processParameter=function(e){return e},t}(n(8351).StylePropertyCommandBase);t.ChangeStylePropertyCommandBase=o},2722:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStyleTextPropertyCommand=void 0;var o=n(521),s=n(926),a=n(1552),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())},t.prototype.getStyleObj=function(e){return e.styleText},t.prototype.getDefaultStyleObj=function(){return new a.TextStyle},t.prototype.createHistoryItem=function(e,t,n){return new s.ChangeStyleTextHistoryItem(e.key,t,n)},t.prototype.updateInputPosition=function(e){this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),e)},t}(o.ChangeStylePropertyCommandBase);t.ChangeStyleTextPropertyCommand=c},8700:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TextRightAlignCommand=t.TextCenterAlignCommand=t.TextLeftAlignCommand=t.ChangeTextAlignCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyleProperty=function(){return"text-anchor"},t}(n(6980).ToggleStyleTextPropertyCommand);t.ChangeTextAlignCommand=o;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStylePropertyValue=function(){return"start"},t}(o);t.TextLeftAlignCommand=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStylePropertyValue=function(){return"middle"},t}(o);t.TextCenterAlignCommand=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStylePropertyValue=function(){return"end"},t}(o);t.TextRightAlignCommand=c},8351:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StylePropertyCommandBase=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.lockInputPositionUpdating=function(){return!0},t}(n(9741).SimpleCommandBase);t.StylePropertyCommandBase=o},4378:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleFontBoldCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyleProperty=function(){return"font-weight"},t.prototype.getStylePropertyValue=function(){return"bold"},t}(n(6980).ToggleStyleTextPropertyCommand);t.ToggleFontBoldCommand=o},7607:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleFontItalicCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyleProperty=function(){return"font-style"},t.prototype.getStylePropertyValue=function(){return"italic"},t}(n(6980).ToggleStyleTextPropertyCommand);t.ToggleFontItalicCommand=o},3411:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleFontUnderlineCommand=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyleProperty=function(){return"text-decoration"},t.prototype.getStylePropertyValue=function(){return"underline"},t}(n(6980).ToggleStyleTextPropertyCommand);t.ToggleFontUnderlineCommand=o},6980:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleStyleTextPropertyCommand=void 0;var o=n(8351),s=n(926),a=n(1552),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())===this.getStylePropertyValue()},t.prototype.executeCore=function(e){var t=this;this.control.history.beginTransaction();var n=this.getStyleProperty(),r=e.value?a.TextStyle.defaultInstance[n]:this.getStylePropertyValue();return this.control.selection.getSelectedItems().forEach(function(e){t.control.history.addAndRedo(new s.ChangeStyleTextHistoryItem(e.key,n,r))}),this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),r),this.control.history.endTransaction(),!0},t.prototype.getStyleObj=function(e){return e.styleText},t.prototype.getDefaultStyleObj=function(){return new a.TextStyle},t}(o.StylePropertyCommandBase);t.ToggleStyleTextPropertyCommand=c},5035:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.DataSourceEdgeDataImporter=t.DataSourceNodeDataImporter=t.DataSourceItemDataImporter=void 0;var i=function(){this.getKey=function(e){return e.id},this.setKey=function(e,t){e.id=t},this.getCustomData=void 0,this.setCustomData=void 0,this.getLocked=void 0,this.setLocked=void 0,this.getStyle=void 0,this.setStyle=void 0,this.getStyleText=void 0,this.setStyleText=void 0,this.getZIndex=void 0,this.setZIndex=void 0};t.DataSourceItemDataImporter=i;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getType=void 0,t.setType=void 0,t.getText=void 0,t.setText=void 0,t.getImage=void 0,t.setImage=void 0,t.getLeft=void 0,t.setLeft=void 0,t.getTop=void 0,t.setTop=void 0,t.getWidth=void 0,t.setWidth=void 0,t.getHeight=void 0,t.setHeight=void 0,t.getChildren=void 0,t.setChildren=void 0,t.getParentKey=void 0,t.setParentKey=void 0,t.getItems=void 0,t.setItems=void 0,t.getContainerKey=void 0,t.setContainerKey=void 0,t}return r(t,e),t}(i);t.DataSourceNodeDataImporter=o;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getFrom=function(e){return e.from},t.setFrom=function(e,t){e.from=t},t.getFromPointIndex=void 0,t.setFromPointIndex=void 0,t.getTo=function(e){return e.to},t.setTo=function(e,t){e.to=t},t.getToPointIndex=void 0,t.setToPointIndex=void 0,t.getPoints=void 0,t.setPoints=void 0,t.getText=void 0,t.setText=void 0,t.getLineOption=void 0,t.setLineOption=void 0,t.getStartLineEnding=void 0,t.setStartLineEnding=void 0,t.getEndLineEnding=void 0,t.setEndLineEnding=void 0,t}return r(t,e),t}(i);t.DataSourceEdgeDataImporter=s},3503:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataLayoutParameters=t.DataLayoutType=void 0;var r,i=n(8710),o=n(9533),s=n(1256);!function(e){e[e.Tree=0]="Tree",e[e.Sugiyama=1]="Sugiyama"}(r=t.DataLayoutType||(t.DataLayoutType={}));var a=function(){function e(e,t){this.sizeSettings=e,t&&(void 0!==t.type&&(this.layoutType=t.type,this.layoutSettings=this.layoutType===r.Sugiyama?new i.LayoutSettings:new i.TreeLayoutSettings),void 0!==t.orientation&&(this.layoutSettings.orientation=t.orientation),this.skipPointIndices=t.skipPointIndices,this.autoSizeEnabled=t.autoSizeEnabled)}return Object.defineProperty(e.prototype,"needAutoLayout",{get:function(){return void 0!==this.layoutType},enumerable:!1,configurable:!0}),e.prototype.getLayoutBuilder=function(e){return this.layoutType===r.Tree?new o.TreeLayoutBuilder(this.layoutSettings,e):new s.SugiyamaLayoutBuilder(this.layoutSettings,e)},e}();t.DataLayoutParameters=a},4225:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataSource=void 0;var r=n(9291),i=n(8900),o=n(6353),s=n(3477),a=n(9603),c=n(4145),u=n(8930),l=n(4629),h=n(8236),d=n(5144),f=n(9559),p=n(7443),A=n(8210),g=n(6516),m=n(5982),y=n(4634),v=n(926),b=n(7959),w=n(4867),C=n(2259),_=n(4246),S=n(8675),x=n(13),T=n(4914),P=n(8396),E=n(3490),I=n(5035),k=n(5558),B=n(58),M=function(){function e(e,t,n,r,i,o){if(this.key=e,this.nodes=[],this.edges=[],this.autoGeneratedDataKeys={},this.addInternalKeyOnInsert=!1,this.useNodeParentId=!1,this.useNodeContainerId=!1,this.useNodeChildren=!1,this.useNodeItems=!1,this.canUseAutoSize=!1,this.canUpdateEdgeDataSource=!1,this.containers=null,null==e)throw new Error("DataSource key must be specified");this.key=e.toString(),this.loadParameters(r||{}),this.nodeDataImporter=this.createNodeDataImporter(i),this.edgeDataImporter=this.createEdgeDataImporter(o),this.nodeDataSource=t||[],this.edgeDataSource=n||[],this.canUpdateEdgeDataSource=!!n,this.fetchData()}return e.prototype.loadParameters=function(e){this.addInternalKeyOnInsert=!!e.addInternalKeyOnInsert},e.prototype.isAutoGeneratedKey=function(e){return e&&!!this.autoGeneratedDataKeys[e]},e.prototype.createNodeDataImporter=function(e){var t=new I.DataSourceNodeDataImporter;return e&&this.assignNodeDataImporterProperties(e,t),t},e.prototype.createEdgeDataImporter=function(e){var t=new I.DataSourceEdgeDataImporter;return e&&this.assignEdgeDataImporterProperties(e,t),t},e.prototype.assignItemDataImporterProperties=function(e,t){e.getKey&&(t.getKey=e.getKey),e.setKey&&(t.setKey=e.setKey),e.getCustomData&&(t.getCustomData=e.getCustomData),e.setCustomData&&(t.setCustomData=e.setCustomData),e.getLocked&&(t.getLocked=e.getLocked),e.setLocked&&(t.setLocked=e.setLocked),e.getStyle&&(t.getStyle=e.getStyle),e.setStyle&&(t.setStyle=e.setStyle),e.getStyleText&&(t.getStyleText=e.getStyleText),e.setStyleText&&(t.setStyleText=e.setStyleText),e.getZIndex&&(t.getZIndex=e.getZIndex),e.setZIndex&&(t.setZIndex=e.setZIndex)},e.prototype.assignNodeDataImporterProperties=function(e,t){this.assignItemDataImporterProperties(e,t),e.getType&&(t.getType=e.getType),e.setType&&(t.setType=e.setType),e.getImage&&(t.getImage=e.getImage),e.setImage&&(t.setImage=e.setImage),e.getText&&(t.getText=e.getText),e.setText&&(t.setText=e.setText),e.getLeft&&(t.getLeft=e.getLeft),e.setLeft&&(t.setLeft=e.setLeft),e.getTop&&(t.getTop=e.getTop),e.setTop&&(t.setTop=e.setTop),e.getWidth&&(t.getWidth=e.getWidth),e.setWidth&&(t.setWidth=e.setWidth),e.getHeight&&(t.getHeight=e.getHeight),e.setHeight&&(t.setHeight=e.setHeight),e.getChildren&&(t.getChildren=e.getChildren),e.setChildren&&(t.setChildren=e.setChildren),e.getParentKey&&(t.getParentKey=e.getParentKey),e.setParentKey&&(t.setParentKey=e.setParentKey),e.getItems&&(t.getItems=e.getItems),e.setItems&&(t.setItems=e.setItems),e.getContainerKey&&(t.getContainerKey=e.getContainerKey),e.setContainerKey&&(t.setContainerKey=e.setContainerKey)},e.prototype.assignEdgeDataImporterProperties=function(e,t){this.assignItemDataImporterProperties(e,t),e.getFrom&&(t.getFrom=e.getFrom),e.setFrom&&(t.setFrom=e.setFrom),e.getFromPointIndex&&(t.getFromPointIndex=e.getFromPointIndex),e.setFromPointIndex&&(t.setFromPointIndex=e.setFromPointIndex),e.getTo&&(t.getTo=e.getTo),e.setTo&&(t.setTo=e.setTo),e.getToPointIndex&&(t.getToPointIndex=e.getToPointIndex),e.setToPointIndex&&(t.setToPointIndex=e.setToPointIndex),e.getPoints&&(t.getPoints=e.getPoints),e.setPoints&&(t.setPoints=e.setPoints),e.getText&&(t.getText=e.getText),e.setText&&(t.setText=e.setText),e.getLineOption&&(t.getLineOption=e.getLineOption),e.setLineOption&&(t.setLineOption=e.setLineOption),e.getStartLineEnding&&(t.getStartLineEnding=e.getStartLineEnding),e.setStartLineEnding&&(t.setStartLineEnding=e.setStartLineEnding),e.getEndLineEnding&&(t.getEndLineEnding=e.getEndLineEnding),e.setEndLineEnding&&(t.setEndLineEnding=e.setEndLineEnding)},e.prototype.fetchData=function(){var e=this;if(this.nodes=[],this.edges=[],this.autoGeneratedDataKeys={},this.useNodeParentId=void 0!==this.nodeDataImporter.getParentKey,this.useNodeContainerId=void 0!==this.nodeDataImporter.getContainerKey,this.useNodeItems=void 0!==this.nodeDataImporter.getItems,this.useNodeChildren=void 0!==this.nodeDataImporter.getChildren,this.canUseAutoSize=void 0===this.nodeDataImporter.getWidth&&void 0!==this.nodeDataImporter.getText,this.useEdgesArray()&&this.useNodeParentId)throw new Error("You cannot use edges array and parentKey simultaneously.");if(this.useEdgesArray()&&this.useNodeItems)throw new Error("You cannot use edges array and items array simultaneously.");if(this.useNodeParentId&&this.useNodeItems)throw new Error("You cannot use parentKey and items array simultaneously.");if(this.useNodeContainerId&&this.useNodeChildren)throw new Error("You cannot use containerKey and children array simultaneously.");this.nodeDataSource.forEach(function(t){e.addNode(t)}),this.useEdgesArray()?this.edgeDataSource.forEach(function(t){e.addEdge(t)}):this.nodes.forEach(function(t){e.addNodeEdgesByParentId(t)})},e.prototype.isContainer=function(e){var t=this;return!this.containers&&this.useNodeContainerId&&(this.containers=this.nodeDataSource.map(function(e){return t.nodeDataImporter.getContainerKey(e)}).filter(function(e){return null!=e}).reduce(function(e,t){return e[t]=!0,e},{})),this.containers&&this.containers[e]},e.prototype.refetchData=function(e,t){var n=this;this.nodeDataSource=e||this.nodeDataSource,this.edgeDataSource=t||this.edgeDataSource;var r=this.nodes.slice(),i=this.edges.slice();return this.fetchData(),{nodes:this.getItemChanges(r,this.nodes,function(e,t){return e.key===t.key||e.dataObj===t.dataObj}),edges:this.getItemChanges(i,this.edges,function(e,t){return n.useNodeParentId||n.useNodeItems?e.key===t.key||e.from===t.from&&e.to===t.to:e.key===t.key||e.dataObj===t.dataObj})}},e.prototype.getItemChanges=function(e,t,n){var r=this,i=e.filter(function(e){return r.containsItem(t,e,n)}),o=e.filter(function(e){return!r.containsItem(t,e,n)}),s=t.filter(function(t){return!r.containsItem(e,t,n)});return{remained:i.map(function(e){return e.key}),remainedNewKeys:i.map(function(e){var r;return null===(r=t.find(function(t){return n(e,t)}))||void 0===r?void 0:r.key}),removed:o.map(function(e){return e.key}),added:s.map(function(e){return e.key})}},e.prototype.containsItem=function(e,t,n){var r=!1;return e.forEach(function(e){!r&&n(e,t)&&(r=!0)}),r},e.prototype.useEdgesArray=function(){return Array.isArray(this.edgeDataSource)&&(this.edgeDataSource.length||!(this.useNodeParentId||this.useNodeItems))},e.prototype.addNode=function(e,t,n,r){var i=this,o=this.nodeDataImporter.getChildren&&this.nodeDataImporter.getChildren(e),s=o&&Array.isArray(o)&&o.length,a=s||this.isContainer(this.nodeDataImporter.getKey(e)),c=this.nodeDataImporter.getType&&this.nodeDataImporter.getType(e)||a&&C.ShapeTypes.VerticalContainer||C.ShapeTypes.Rectangle,u=this.nodeDataImporter.getText&&(this.nodeDataImporter.getText(e)||""),l=this.addNodeInternal(e,c,u,t,n,r);if(this.assignNodeProperties(l,e),s&&o.forEach(function(t){i.addNode(t,void 0,l.key,e)}),this.useNodeItems){var h=this.nodeDataImporter.getItems(e);Array.isArray(h)&&h.length&&h.forEach(function(t){var o=i.addNode(t,e,n,r);i.addEdgeInternal(void 0,l.key,o.key)})}return l},e.prototype.addNodeEdgesByParentId=function(e){if(this.useNodeParentId){var t=this.nodeDataImporter.getParentKey(e.dataObj);null!=t&&this.findNode(t)&&this.addEdgeInternal(void 0,this.getNodeKey(e.dataObj,this.nodeDataImporter.getParentKey),this.getNodeKey(e.dataObj,this.nodeDataImporter.getKey))}},e.prototype.addNodeInternal=function(e,t,n,r,i,o){var s=this.nodeDataImporter.getKey(e),a=null!=s?s:w.ModelUtils.getGuidItemKey(),c=new k.DataSourceNodeItem(this.key,a,e,t,n,r,i,o);return this.nodes.push(c),null==s&&(s=a,this.autoGeneratedDataKeys[a]=!0),c},e.prototype.addEdge=function(e){var t=this.addEdgeInternal(e,this.getNodeKey(e,this.edgeDataImporter.getFrom),this.getNodeKey(e,this.edgeDataImporter.getTo));return this.assignEdgeProperties(t,e),t},e.prototype.addEdgeInternal=function(e,t,n){var r=e&&this.edgeDataImporter.getKey(e),i=null!=r?r:w.ModelUtils.getGuidItemKey(),o=new k.DataSourceEdgeItem(this.key,i,e,t,n);return this.edges.push(o),null==r&&(r=i,this.autoGeneratedDataKeys[i]=!0),o},e.prototype.assignItemProperties=function(e,t,n){if(n.getCustomData&&(e.customData=S.ObjectUtils.cloneObject(n.getCustomData(t))),n.getLocked&&(e.locked=n.getLocked(t)),n.getStyle){var r=n.getStyle(t);e.style="string"==typeof r?T.Data.cssTextToObject(r):r}n.getStyleText&&(r=n.getStyleText(t),e.styleText="string"==typeof r?T.Data.cssTextToObject(r):r),n.getZIndex&&(e.zIndex=n.getZIndex(t))},e.prototype.assignNodeProperties=function(e,t){this.assignItemProperties(e,t,this.nodeDataImporter),this.nodeDataImporter.getImage&&(e.image=this.nodeDataImporter.getImage(t)),this.nodeDataImporter.getLeft&&(e.left=this.nodeDataImporter.getLeft(t)),this.nodeDataImporter.getTop&&(e.top=this.nodeDataImporter.getTop(t)),this.nodeDataImporter.getWidth&&(e.width=this.nodeDataImporter.getWidth(t)),this.nodeDataImporter.getHeight&&(e.height=this.nodeDataImporter.getHeight(t)),this.nodeDataImporter.getContainerKey&&(e.containerKey=this.nodeDataImporter.getContainerKey(t))},e.prototype.assignEdgeProperties=function(e,t){if(this.assignItemProperties(e,t,this.edgeDataImporter),this.edgeDataImporter.getFromPointIndex&&(e.fromPointIndex=this.edgeDataImporter.getFromPointIndex(t)),this.edgeDataImporter.getToPointIndex&&(e.toPointIndex=this.edgeDataImporter.getToPointIndex(t)),this.edgeDataImporter.getPoints&&(e.points=this.edgeDataImporter.getPoints(t)),this.edgeDataImporter.getText){var n=this.edgeDataImporter.getText(t);if(e.texts={},"object"==typeof n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=parseFloat(r),o=n[r];isNaN(i)||"string"!=typeof o||""===o||(i=Math.min(1,Math.max(0,i)),e.texts[i]=o)}}else"string"==typeof n&&""!==n&&(e.texts[b.CONNECTOR_DEFAULT_TEXT_POSITION]=n)}this.edgeDataImporter.getLineOption&&(e.lineOption=this.edgeDataImporter.getLineOption(t)),this.edgeDataImporter.getStartLineEnding&&(e.startLineEnding=this.edgeDataImporter.getStartLineEnding(t)),this.edgeDataImporter.getEndLineEnding&&(e.endLineEnding=this.edgeDataImporter.getEndLineEnding(t))},e.prototype.findNode=function(e){return this.nodes.filter(function(t){return void 0!==e&&t.key===e})[0]},e.prototype.findEdge=function(e){return this.edges.filter(function(t){return void 0!==e&&t.key===e})[0]},e.prototype.getNodeKey=function(e,t){return t(e)},e.prototype.createModelItems=function(e,t,n,r,o,s,a,c){var u=this;this.beginChangesNotification(),e.clear(),e.beginTransaction(),w.ModelUtils.deleteAllItems(e,t,r),t.initializeKeyCounter();var l=s?Math.max(1,Math.floor(2e3/a))*a:2e3,h=0,d=0,f={},p=[],A=[];this.nodes.forEach(function(A){var g=new i.Point(d++*l,h*l),m=u.createShapeByNode(e,t,r,n,A,g,o,s,a,c);void 0!==A.key&&(f[A.key]=m.key),d>4&&(d=0,h++),p.push(m)}),this.nodes.forEach(function(n){if(void 0!==n.containerKey&&null!==n.containerKey){var r=f[n.key],i=t.findShape(r),o=f[n.containerKey],s=t.findShape(o);s&&w.ModelUtils.insertToContainer(e,t,i,s)}}),this.edges.forEach(function(n){var i=t.findShape(f[n.to]),o=t.findShape(f[n.from]),s=u.createConnectorByEdge(e,t,r,n,o,i);s&&(A.push(s),w.ModelUtils.updateConnectorContainer(e,t,s))}),o.needAutoLayout&&this.applyLayout(e,t,p,A,o,s,a),w.ModelUtils.tryUpdateModelRectangle(e),e.endTransaction(!0),this.endChangesNotification(!0)},e.prototype.updateModelItems=function(e,t,n,r,o,s,a,c,u,l,h,d){var f=this;this.beginChangesNotification(),e.beginTransaction();var p=[],A=[],g=[],m=u.nodes.removed.map(function(e){return t.findShapeByDataKey(e)}).filter(function(e){return e});m.forEach(function(e){e.attachedConnectors.forEach(function(t){t.beginItem&&t.beginItem!==e&&A.push(t.beginItem),t.endItem&&t.endItem!==e&&A.push(t.endItem)})}),w.ModelUtils.deleteItems(e,t,r,m,!0);var y=u.edges.removed.map(function(e){return t.findConnectorByDataKey(e)}).filter(function(e){return e});y.forEach(function(e){e.beginItem&&A.push(e.beginItem),e.endItem&&A.push(e.endItem)}),w.ModelUtils.deleteItems(e,t,r,y,!0),A=this.purgeLayoutShapes(A,m),(a||[]).forEach(function(s){if(-1!==u.nodes.remained.indexOf(s)){var a=f.findNode(s);if(a){var c=t.findShapeByDataKey(s);if(c){var g=c.position.clone();f.changeShapeByDataItem(e,t,c,a,g),f.changeItemByDataItem(e,c,a)}else c=f.createShapeByNode(e,t,r,n,a,new i.Point(0,0),o,l,h,d);f.updateShapeContainer(e,t,c,a),A.push(c),p.push(c)}}}),u.nodes.remained.forEach(function(e,n){var r=t.findShapeByDataKey(e);r&&(r.dataKey=u.nodes.remainedNewKeys[n])}),u.nodes.added.forEach(function(s){var a=f.findNode(s),c=f.createShapeByNode(e,t,r,n,a,new i.Point(0,0),o,l,h,d);f.updateShapeContainer(e,t,c,a),A.push(c)}),u.edges.added.forEach(function(n){var i=f.findEdge(n),o=t.findShapeByDataKey(i.from),s=t.findShapeByDataKey(i.to),a=f.createConnectorByEdge(e,t,r,i,o,s);a&&(w.ModelUtils.updateConnectorContainer(e,t,a),g.push(a))});var v=a||[];u.edges.remained.forEach(function(e){var t=f.findEdge(e);!t||-1===u.nodes.added.indexOf(t.from)&&-1===u.nodes.added.indexOf(t.to)||v.push(e)}),v.forEach(function(n){if(-1!==u.edges.remained.indexOf(n)){var i=f.findEdge(n);if(i){var o=t.findShapeByDataKey(i.from),s=t.findShapeByDataKey(i.to),a=t.findConnectorByDataKey(n);a?(f.changeConnectorPointsByDataItem(e,a,f.getConnectorPointsByEdge(t,i,o,s,!1)),f.changeConnectorByDataItem(e,t,a,o,s,i),f.changeItemByDataItem(e,a,i)):a=f.createConnectorByEdge(e,t,r,i,o,s),a&&(w.ModelUtils.updateConnectorContainer(e,t,a),g.push(a),p.push(a))}}}),u.edges.remained.forEach(function(e,n){var r=t.findConnectorByDataKey(e);r&&(r.dataKey=u.edges.remainedNewKeys[n])}),p.length&&c&&p.forEach(function(e){e.hasTemplate&&c(e)}),o.needAutoLayout&&(A.length||g.length)&&this.applyLayout(e,t,A,g,o,l,h),w.ModelUtils.tryUpdateModelRectangle(e),e.endTransaction(!s),this.endChangesNotification(!1)},e.prototype.purgeLayoutShapes=function(e,t){var n=t.reduce(function(e,t){return(e[t.key]=!0)&&e},{});return e.reduce(function(e,t){return void 0===e.keySet[t.key]&&void 0===n[t.key]&&(e.uniqueShapes.push(t),e.keySet[t.key]=!0),e},{uniqueShapes:[],keySet:{}}).uniqueShapes},e.prototype.applyShapeAutoSize=function(e,t,n,i,s,a){if(i.description.enableText){var c=i.textRectangle.createSize(),u=i.size,h=c.width-u.width,d=c.height-u.height,f=i.getMaxWidth(n.shapeMaxWidth),p=i.getMaxHeight(n.shapeMaxHeight),A=function(e,t){return"number"==typeof e?r.UnitConverter.twipsToPixelsF(e+(t?h:d)):void 0},g=E.getOptimalTextRectangle(i.text,i.styleText,_.TextOwner.Shape,t,c.clone().applyConverter(r.UnitConverter.twipsToPixelsF),i.description.keepRatioOnAutoSize,A(i.getMinWidth(n.shapeMinWidth),!0),A(f,!0),A(i.getMinHeight(n.shapeMinHeight),!1),A(p,!1)).clone().applyConverter(r.UnitConverter.pixelsToTwips);if(!g.equals(c)){var m=i.description.getSizeByText(g,i);s&&a&&(m=new o.Size(Math.min(a*Math.ceil(m.width/a),f||Number.MAX_VALUE),Math.min(a*Math.ceil(m.height/a),p||Number.MAX_VALUE))),e.addAndRedo(new l.ResizeShapeHistoryItem(i.key,i.position,m))}}},e.prototype.applyLayout=function(e,t,n,r,i,o,s){w.ModelUtils.getGraphInfoByItems(t,n,r).forEach(function(a){var c=i.getLayoutBuilder(a.graph).build(),u=w.ModelUtils.getNonGraphItems(t,a.container,c.nodeToLayout,n,r);w.ModelUtils.applyLayout(e,t,a.container,a.graph,c,u,i.layoutSettings,o,s,i.skipPointIndices)})},e.prototype.changeItemByDataItem=function(e,t,n){if(void 0===n.customData||S.ObjectUtils.compareObjects(n.customData,t.customData)||e.addAndRedo(new f.ChangeCustomDataHistoryItem(t.key,n.customData)),void 0!==n.zIndex&&n.zIndex!==t.zIndex&&e.addAndRedo(new m.ChangeZindexHistoryItem(t,n.zIndex)),void 0!==n.style)for(var r in n.style)Object.prototype.hasOwnProperty.call(n.style,r)&&(o=this.getPreparedStyleValue(n.style[r],P.isColorProperty(r)))!==t.style[r]&&e.addAndRedo(new y.ChangeStyleHistoryItem(t.key,r,o));var i=t.style.getDefaultInstance();if(t.style.forEach(function(r){n.style&&void 0===n.style[r]&&t.style[r]!==i[r]&&e.addAndRedo(new y.ChangeStyleHistoryItem(t.key,r,i[r]))}),void 0!==n.styleText)for(var r in n.styleText){var o;Object.prototype.hasOwnProperty.call(n.styleText,r)&&(o=this.getPreparedStyleValue(n.styleText[r],P.isColorProperty(r)))!==t.styleText[r]&&e.addAndRedo(new v.ChangeStyleTextHistoryItem(t.key,r,o))}var s=t.styleText.getDefaultInstance();t.styleText.forEach(function(r){n.styleText&&void 0===n.styleText[r]&&t.styleText[r]!==s[r]&&e.addAndRedo(new v.ChangeStyleTextHistoryItem(t.key,r,s[r]))}),void 0!==n.locked&&n.locked!==t.locked&&e.addAndRedo(new p.ChangeLockedHistoryItem(t,n.locked))},e.prototype.getPreparedStyleValue=function(e,t){if(t){var n=x.ColorUtils.stringToHash(e);null!==n&&(e=n)}return e},e.prototype.createShapeByNode=function(e,t,n,r,i,o,s,a,u,l){var h=new c.AddShapeHistoryItem(r.get(i.type),o,"",i.key);e.addAndRedo(h);var d=t.findShape(h.shapeKey);return w.ModelUtils.updateNewShapeProperties(e,n,h.shapeKey),this.changeShapeByDataItem(e,t,d,i,o),this.changeItemByDataItem(e,d,i),l&&this.canUseAutoSize&&s.autoSizeEnabled&&this.applyShapeAutoSize(e,l,s.sizeSettings,d,a,u),d},e.prototype.changeShapeByDataItem=function(e,t,n,r,i){var o=!1;void 0!==r.left&&(i.x=w.ModelUtils.getTwipsValue(t.units,r.left)),void 0!==r.top&&(i.y=w.ModelUtils.getTwipsValue(t.units,r.top)),o=w.ModelUtils.setShapePosition(e,t,n,i,!1)||o,void 0!==r.type&&(o=w.ModelUtils.changeShapeType(e,t,n,r.type)||o);var s=n.size.clone();void 0!==r.width&&(s.width=w.ModelUtils.getTwipsValue(t.units,r.width)),void 0!==r.height&&(s.height=w.ModelUtils.getTwipsValue(t.units,r.height)),(o=w.ModelUtils.setShapeSize(e,t,n,i,s)||o)&&w.ModelUtils.updateShapeAttachedConnectors(e,t,n),void 0!==r.text&&r.text!==n.text&&e.addAndRedo(new g.ChangeShapeTextHistoryItem(n,r.text)),void 0!==r.image&&r.image!==n.image.actualUrl&&e.addAndRedo(new A.ChangeShapeImageHistoryItem(n,r.image))},e.prototype.updateShapeContainer=function(e,t,n,r){var i=void 0!==r.containerKey?t.findShapeByDataKey(r.containerKey):void 0;i!==n.container&&(i?w.ModelUtils.insertToContainer(e,t,n,i):w.ModelUtils.removeFromContainer(e,t,n))},e.prototype.getConnectorPointsByEdge=function(e,t,n,r,i){var o=[],s=this.createModelPointFromDataSourceEdgeItemPoints(e.units,t);if(s&&s.length>1)for(var a=s.length-1,c=0;c<=a;c++){var u=s[c];if(null!==u)o.push(u);else{if(!n&&!r)return;0===c&&n?o.push(n.position.clone()):c===a&&r&&o.push(r.position.clone())}}else i&&(n&&o.push(n.position.clone()),r&&o.push(r.position.clone()));return o},e.prototype.createModelPointFromDataSourceEdgeItemPoints=function(e,t){var n=this,r=[];if(Array.isArray(t.points))return t.points.forEach(function(t){return r.push(n.isValidDataSourceEdgeItemPoint(t)?n.createModelPoint(e,t):null)}),r},e.prototype.createModelPoint=function(e,t){return new i.Point(w.ModelUtils.getTwipsValue(e,t.x),w.ModelUtils.getTwipsValue(e,t.y))},e.prototype.isValidDataSourceEdgeItemPoint=function(e){return null!=e&&void 0!==e.x&&void 0!==e.y&&null!==e.x&&null!==e.y},e.prototype.createConnectorByEdge=function(e,t,n,r,i,o){var s,c=r.key,u=this.getConnectorPointsByEdge(t,r,i,o,!0);if(u&&u.length>1){var l=new a.AddConnectorHistoryItem(u,c);e.addAndRedo(l),s=t.findConnector(l.connectorKey),w.ModelUtils.updateNewConnectorProperties(e,n,l.connectorKey),this.changeConnectorByDataItem(e,t,s,i,o,r),this.changeItemByDataItem(e,s,r)}return s},e.prototype.changeConnectorByDataItem=function(e,t,n,r,i,o){var a=void 0!==o.fromPointIndex?o.fromPointIndex:n.beginConnectionPointIndex;n.beginItem===r&&n.beginConnectionPointIndex===a||(n.beginItem&&e.addAndRedo(new u.DeleteConnectionHistoryItem(n,b.ConnectorPosition.Begin)),r&&e.addAndRedo(new s.AddConnectionHistoryItem(n,r,a,b.ConnectorPosition.Begin)));var c=void 0!==o.toPointIndex?o.toPointIndex:n.endConnectionPointIndex;if(n.endItem===i&&n.endConnectionPointIndex===c||(n.endItem&&e.addAndRedo(new u.DeleteConnectionHistoryItem(n,b.ConnectorPosition.End)),i&&e.addAndRedo(new s.AddConnectionHistoryItem(n,i,c,b.ConnectorPosition.End))),w.ModelUtils.updateConnectorAttachedPoints(e,t,n),void 0!==o.texts&&!this.compareTexts(o,n))for(var l in n.texts.forEach(function(t){e.addAndRedo(new d.ChangeConnectorTextHistoryItem(n,t.position,void 0))}),o.texts)if(Object.prototype.hasOwnProperty.call(o.texts,l)){var f=parseFloat(l);e.addAndRedo(new d.ChangeConnectorTextHistoryItem(n,f,o.texts[l]))}void 0!==o.lineOption&&o.lineOption!==n.properties.lineOption&&e.addAndRedo(new h.ChangeConnectorPropertyHistoryItem(n.key,"lineOption",o.lineOption)),void 0!==o.startLineEnding&&o.startLineEnding!==n.properties.startLineEnding&&e.addAndRedo(new h.ChangeConnectorPropertyHistoryItem(n.key,"startLineEnding",o.startLineEnding)),void 0!==o.endLineEnding&&o.endLineEnding!==n.properties.endLineEnding&&e.addAndRedo(new h.ChangeConnectorPropertyHistoryItem(n.key,"endLineEnding",o.endLineEnding))},e.prototype.changeConnectorPointsByDataItem=function(e,t,n){n&&n.length>1&&n.join(",")!==t.points.join(",")&&e.addAndRedo(new B.ReplaceConnectorPointsHistoryItem(t.key,n))},e.prototype.compareTexts=function(e,t){var n=e.texts||{},r=Object.keys(n).length===t.getTextCount();if(r)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=parseFloat(i);this.compareStrings(t.getText(o),n[i])||(r=!1)}return r},e.prototype.compareStrings=function(e,t){return"string"==typeof e&&"string"==typeof t?e===t:this.isEmptyString(e)&&this.isEmptyString(t)},e.prototype.isEmptyString=function(e){return""===e||null==e},e}();t.DataSource=M},5558:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DataSourceEdgeItem=t.DataSourceNodeItem=t.DataSourceItem=void 0;var o=n(7959),s=function(e,t,n){this.sourceKey=e,this.key=t,this.dataObj=n};t.DataSourceItem=s;var a=function(e){function t(t,n,r,i,o,s,a,c){var u=e.call(this,t,n,r)||this;return u.type=i,u.text=o,u.parentDataObj=s,u.containerKey=a,u.containerDataObj=c,u}return i(t,e),t}(s);t.DataSourceNodeItem=a;var c=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.sourceKey=t,s.from=i,s.to=o,s}return i(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.texts&&this.texts[o.CONNECTOR_DEFAULT_TEXT_POSITION]},enumerable:!1,configurable:!0}),t}(s);t.DataSourceEdgeItem=c},8717:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentDataSource=t.UpdateNodeKeyRelatedObjectsStackAction=t.UpdateNodeKeyRelatedObjectsStackItem=void 0;var o=n(2259),s=n(5503),a=n(7959),c=n(4225),u=n(4867),l=n(4914),h=n(8675),d=n(49),f=n(8679),p=function(e,t){this.shape=e,this.nodeObj=t};t.UpdateNodeKeyRelatedObjectsStackItem=p;var A=function(e,t){this.kind=e,this.nodeObj=t};t.UpdateNodeKeyRelatedObjectsStackAction=A;var g=function(e){function t(t,n,r,i,o,s){var a=e.call(this,"Document",n,r,i,o,s)||this;return a.changesListener=t,a.nodeInsertingLockCount=0,a.updateNodeKeyRelatedObjectsCount=0,a.updateNodeKeyRelatedObjectsStack=[],a.updateNodeKeyRelatedObjectsStackActions=[],a}return i(t,e),t.prototype.updateItemsByModel=function(e){var t=this;this.beginChangesNotification(),this.deleteNodes(e),this.deleteEdges(e),e.items.forEach(function(n){n instanceof s.Shape&&t.updateNode(e,n)}),e.items.forEach(function(n){n instanceof a.Connector&&t.updateEdge(e,n)}),this.endChangesNotification(!1)},t.prototype.isItemObjectModified=function(e,t,n){var r=n.setLocked&&t.locked!==e.locked||n.setZIndex&&t.zIndex!==e.zIndex||n.setCustomData&&!h.ObjectUtils.compareObjects(t.customData,e.customData);if(!r&&n.setStyle){var i=e.style.getDefaultInstance();e.style.forEach(function(n){e.style[n]!==i[n]&&e.style[n]!==(t.style&&t.style[n])&&(r=!0)})}if(!r&&n.setStyleText){var o=e.styleText.getDefaultInstance();e.styleText.forEach(function(n){e.styleText[n]!==o[n]&&e.styleText[n]!==(t.styleText&&t.styleText[n])&&(r=!0)})}return r},t.prototype.setDataObjectKeyRelatedProperty=function(e,t,n,r){(r||void 0===this.autoGeneratedDataKeys[n])&&e(t,n)},t.prototype.updateItemObjectProperties=function(e,t,n){if(n.setCustomData&&(e.customData=h.ObjectUtils.cloneObject(t.customData),e.dataObj&&void 0!==e.customData&&n.setCustomData(e.dataObj,t.customData)),n.setLocked&&(e.locked=t.locked,e.dataObj&&void 0!==e.locked&&n.setLocked(e.dataObj,t.locked)),n.setStyle){var r=t.style.toObject();e.style=r,e.dataObj&&void 0!==e.style&&n.setStyle(e.dataObj,l.Data.objectToCssText(r))}if(n.setStyleText){var i=t.styleText.toObject();e.styleText=i,e.dataObj&&void 0!==e.styleText&&n.setStyleText(e.dataObj,l.Data.objectToCssText(i))}n.setZIndex&&(e.zIndex=t.zIndex,e.dataObj&&void 0!==e.zIndex&&n.setZIndex(e.dataObj,t.zIndex))},t.prototype.deleteItems=function(e,t,n,r){e.slice().forEach(function(e){if(void 0!==e.key&&null!==e.key&&!t(e.key)){var i=n(e),o=i.indexOf(e.dataObj);i.splice(o,1),r(e,o>-1)}})},t.prototype.updateNode=function(e,t){var n=this,r=this.findNode(t.dataKey);if(r)this.isNodeObjectModified(t,r,e.units)?(this.updateNodeObjectProperties(t,r,e.units),this.updateNodeObjectConnectedProperties(t,r),this.beginChangesNotification(),this.changesListener.notifyNodeUpdated.call(this.changesListener,this.nodeDataImporter.getKey(r.dataObj||r.key),r.dataObj,function(e,t){n.endChangesNotification(!1)},function(e){n.endChangesNotification(!1)})):this.updateNodeObjectConnectedProperties(t,r,this.changesListener);else{var i={};void 0!==t.dataKey&&null!==t.dataKey&&this.nodeDataImporter.setKey(i,t.dataKey),r=this.addNodeInternal(i,t.description.key,t.text),this.nodeDataSource.push(r.dataObj),this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setKey,i,r.key,this.addInternalKeyOnInsert),this.updateNodeObjectProperties(t,r,e.units),this.updateNodeObjectConnectedProperties(t,r),this.updateNodeObjectKey(t,r,r.dataObj),this.beginChangesNotification(),this.beginNodeInserting(),this.changesListener.notifyNodeInserted.call(this.changesListener,r.dataObj,function(e){n.updateNodeObjectKey(t,r,e),n.endNodeInserting(),n.endChangesNotification(!1)},function(e){n.endNodeInserting(),n.endChangesNotification(!1)})}},t.prototype.areImageUrlsEqual=function(e,t){return e===t||d.StringUtils.isNullOrEmpty(e)&&d.StringUtils.isNullOrEmpty(t)},t.prototype.isNodeObjectModified=function(e,t,n){return this.isItemObjectModified(e,t,this.nodeDataImporter)||t.type!==e.description.key&&!(void 0===t.type&&e.description.key===o.ShapeTypes.Rectangle)||!this.compareStrings(t.text,e.text)||this.nodeDataImporter.setImage&&!this.areImageUrlsEqual(t.image,e.image.actualUrl)||this.nodeDataImporter.setLeft&&!f.MathUtils.numberCloseTo(t.left,u.ModelUtils.getlUnitValue(n,e.position.x))||this.nodeDataImporter.setTop&&!f.MathUtils.numberCloseTo(t.top,u.ModelUtils.getlUnitValue(n,e.position.y))||this.nodeDataImporter.setWidth&&!f.MathUtils.numberCloseTo(t.width,u.ModelUtils.getlUnitValue(n,e.size.width))||this.nodeDataImporter.setHeight&&!f.MathUtils.numberCloseTo(t.height,u.ModelUtils.getlUnitValue(n,e.size.height))},t.prototype.updateNodeObjectProperties=function(e,t,n){if(this.updateItemObjectProperties(t,e,this.nodeDataImporter),this.nodeDataImporter.setType&&(t.type=e.description.key,this.nodeDataImporter.setType(t.dataObj,e.description.key)),this.nodeDataImporter.setText&&(t.text=e.text,this.nodeDataImporter.setText(t.dataObj,e.text)),this.nodeDataImporter.setImage&&(t.image=e.image.actualUrl,this.nodeDataImporter.setImage(t.dataObj,void 0===e.image.actualUrl?null:e.image.actualUrl)),this.nodeDataImporter.setLeft){var r=u.ModelUtils.getlUnitValue(n,e.position.x);t.left=r,this.nodeDataImporter.setLeft(t.dataObj,r)}if(this.nodeDataImporter.setTop){var i=u.ModelUtils.getlUnitValue(n,e.position.y);t.top=i,this.nodeDataImporter.setTop(t.dataObj,i)}if(this.nodeDataImporter.setWidth){var o=u.ModelUtils.getlUnitValue(n,e.size.width);t.width=o,this.nodeDataImporter.setWidth(t.dataObj,o)}if(this.nodeDataImporter.setHeight){var s=u.ModelUtils.getlUnitValue(n,e.size.height);t.height=s,this.nodeDataImporter.setHeight(t.dataObj,s)}},t.prototype.updateNodeObjectConnectedProperties=function(e,t,n){if(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey){var r=this.getParentItemKey(e),i=this.findNode(r);this.updateNodeObjectParentKey(t,i,n)}if(this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey){var o=this.getContainerShapeKey(e),s=this.findNode(o);this.updateNodeObjectContainerKey(t,s,n)}this.useNodeItems&&void 0!==this.nodeDataImporter.setItems&&(r=this.getParentItemKey(e),i=this.findNode(r),this.updateNodeObjectItems(t,i,n)),this.useNodeChildren&&void 0!==this.nodeDataImporter.setChildren&&(o=this.getContainerShapeKey(e),s=this.findNode(o),this.updateNodeObjectChildren(t,s,n))},t.prototype.IsNodeParentIdMode=function(){return this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey},t.prototype.IsNodeItemsMode=function(){return this.useNodeItems&&void 0!==this.nodeDataImporter.setItems},t.prototype.updateNodeObjectParentKey=function(e,t,n){var r=this.nodeDataImporter.getParentKey(e.dataObj),i=t?this.nodeDataImporter.getKey(t.dataObj):void 0;r===i||this.isRootParentKey(r)&&this.isRootParentKey(i)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setParentKey,e.dataObj,i,!1),n&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("shape",e):this.updateNodeObjectContainerOrParentKeyInternal(e,n)))},t.prototype.updateNodeObjectParentKeyInternal=function(e,t){var n=this;this.beginChangesNotification(),t.notifyNodeUpdated.call(t,this.nodeDataImporter.getKey(e.dataObj)||e.key,e.dataObj,function(e,t){n.endChangesNotification(!1)},function(e){n.endChangesNotification(!1)})},t.prototype.updateNodeObjectContainerKey=function(e,t,n){var r=this.nodeDataImporter.getContainerKey(e.dataObj),i=t?this.nodeDataImporter.getKey(t.dataObj):void 0;r===i||this.isRootParentKey(r)&&this.isRootParentKey(i)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setContainerKey,e.dataObj,i,!1),n&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("shape",e):this.updateNodeObjectContainerOrParentKeyInternal(e,n)))},t.prototype.updateNodeObjectContainerOrParentKeyInternal=function(e,t){var n=this;this.beginChangesNotification(),t.notifyNodeUpdated.call(t,this.nodeDataImporter.getKey(e.dataObj)||e.key,e.dataObj,function(e,t){n.endChangesNotification(!1)},function(e){n.endChangesNotification(!1)})},t.prototype.isRootParentKey=function(e){return null==e||!this.findNode(e)},t.prototype.updateNodeObjectItems=function(e,t,n){var r=this;if((t&&e.parentDataObj!==t.dataObj||!t&&e.parentDataObj)&&(!t||!this.checkNodeCyrcleItems(e.dataObj,t.dataObj))){var i=e.parentDataObj?this.nodeDataImporter.getItems(e.parentDataObj):this.nodeDataSource,o=i.indexOf(e.dataObj);i.splice(o,1);var s=t?this.nodeDataImporter.getItems(t.dataObj):this.nodeDataSource;s?s.push(e.dataObj):this.nodeDataImporter.setItems(t.dataObj,[e.dataObj]),e.parentDataObj=t&&t.dataObj,n&&(this.beginChangesNotification(),n.notifyNodeUpdated.call(n,this.nodeDataImporter.getKey(e.dataObj)||e.key,e.dataObj,function(e,t){r.endChangesNotification(!1)},function(e){r.endChangesNotification(!1)}))}},t.prototype.updateNodeObjectChildren=function(e,t,n){var r=this;if(t&&e.containerDataObj!==t.dataObj||!t&&e.containerDataObj){var i=e.containerDataObj?this.nodeDataImporter.getChildren(e.containerDataObj):this.nodeDataSource,o=i.indexOf(e.dataObj);i.splice(o,1);var s=t?this.nodeDataImporter.getChildren(t.dataObj):this.nodeDataSource;s?s.push(e.dataObj):this.nodeDataImporter.setChildren(t.dataObj,[e.dataObj]),e.containerDataObj=t&&t.dataObj,n&&(this.beginChangesNotification(),n.notifyNodeUpdated.call(n,this.nodeDataImporter.getKey(e.dataObj)||e.key,e.dataObj,function(e,t){r.endChangesNotification(!1)},function(e){r.endChangesNotification(!1)}))}},t.prototype.checkNodeCyrcleItems=function(e,t){var n=this,r=!1,i=this.nodeDataImporter.getItems(e);return i&&i.forEach(function(e){r=r||e===t||n.checkNodeCyrcleItems(e,t)}),r},t.prototype.updateNodeObjectKey=function(e,t,n){var r=this.nodeDataImporter.getKey(n),i=!1;if(null!=r&&r!==t.key&&(delete this.autoGeneratedDataKeys[t.key],t.key=r,i=!0),e.dataKey=t.key,t.dataObj!==n){var o=this.getNodeArray(t),s=o.indexOf(t.dataObj);o.splice(s,1,n),t.dataObj=n}i&&this.updateNodeKeyRelatedObjects(e,t)},t.prototype.updateNodeKeyRelatedObjects=function(e,t){var n=this;this.isInNodeInserting()?this.addToUpdateNodeKeyRelatedObjectsStack(e,t):(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey&&this.getChildItems(e).forEach(function(e){var r=n.findNode(e.dataKey);r&&n.updateNodeObjectParentKey(r,t,n.changesListener)}),this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey&&e.children.forEach(function(e){var r=e instanceof s.Shape?n.findNode(e.dataKey):void 0;r&&n.updateNodeObjectContainerKey(r,t,n.changesListener)}),this.useEdgesArray()&&e.attachedConnectors.forEach(function(r){var i=n.findEdge(r.dataKey);i&&(e===r.beginItem&&n.updateEdgeObjectFromProperty(t,i,n.changesListener),e===r.endItem&&n.updateEdgeObjectToProperty(t,i,n.changesListener))}))},t.prototype.deleteNodes=function(e){var t=this;this.deleteItems(this.nodes,function(t){return e.findShapeByDataKey(t)},function(e){return t.getNodeArray(e)},function(e,n){var r=e.dataObj&&t.nodeDataImporter.getKey(e.dataObj)||e.key,i=t.findNode(r);i&&t.nodes.splice(t.nodes.indexOf(i),1),n&&(t.beginChangesNotification(),t.changesListener.notifyNodeRemoved.call(t.changesListener,r,e.dataObj,function(e,n){t.endChangesNotification(!1)},function(e){t.endChangesNotification(!1)}))})},t.prototype.getParentItem=function(e){for(var t=0;t<e.attachedConnectors.length;t++)if(e.attachedConnectors[t].endItem===e)return e.attachedConnectors[t].beginItem},t.prototype.getParentItemKey=function(e){var t=this.getParentItem(e);return t&&t.dataKey},t.prototype.getNodeArray=function(e){var t;return this.useNodeItems&&e.parentDataObj?t=this.nodeDataImporter.getItems(e.parentDataObj):e.containerDataObj&&(t=this.nodeDataImporter.getChildren(e.containerDataObj)),t||this.nodeDataSource},t.prototype.getContainerShapeKey=function(e){return e.container&&e.container.dataKey},t.prototype.getChildItems=function(e){for(var t=[],n=0;n<e.attachedConnectors.length;n++)e.attachedConnectors[n].beginItem===e&&e.attachedConnectors[n].endItem&&t.push(e.attachedConnectors[n].endItem);return t},t.prototype.updateEdge=function(e,t){var n=this,r=t.beginItem?t.beginItem.dataKey:void 0,i=t.endItem?t.endItem.dataKey:void 0,o=this.findEdge(t.dataKey);if(o)this.isEdgeObjectModified(t,o,e.units)&&(this.updateEdgeObjectProperties(t,o,e.units),o.dataObj&&(this.beginChangesNotification(),this.changesListener.notifyEdgeUpdated.call(this.changesListener,this.edgeDataImporter.getKey(o.dataObj)||o.key,o.dataObj,function(e,t){n.endChangesNotification(!1)},function(e){n.endChangesNotification(!1)})));else{var s=this.useEdgesArray()&&this.canUpdateEdgeDataSource?{}:void 0;s&&void 0!==t.dataKey&&null!==t.dataKey&&this.edgeDataImporter.setKey(s,t.dataKey),o=this.addEdgeInternal(s,r,i),s&&(this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setKey,s,o.key,this.addInternalKeyOnInsert),this.edgeDataSource.push(o.dataObj)),this.updateEdgeObjectProperties(t,o,e.units),this.updateEdgeObjectKey(t,o,o.dataObj),s&&(this.beginChangesNotification(),this.beginNodeInserting(),this.changesListener.notifyEdgeInserted.call(this.changesListener,o.dataObj,function(e){n.updateEdgeObjectKey(t,o,e),n.endNodeInserting(),n.endChangesNotification(!1)},function(e){n.endNodeInserting(),n.endChangesNotification(!1)}))}},t.prototype.isEdgeObjectModified=function(e,t,n){return this.isItemObjectModified(e,t,this.edgeDataImporter)||(null!==t.from?t.from:void 0)!==(e.beginItem?e.beginItem.dataKey:void 0)||(null===t.to?void 0:t.to)!==(e.endItem?e.endItem.dataKey:void 0)||this.edgeDataImporter.setFromPointIndex&&t.fromPointIndex!==e.beginConnectionPointIndex||this.edgeDataImporter.setToPointIndex&&t.toPointIndex!==e.endConnectionPointIndex||this.edgeDataImporter.setPoints&&(!t.points||!this.pointsAreEqual(t.points.map(function(e){return e.x}),e.points.map(function(e){return u.ModelUtils.getlUnitValue(n,e.x)}))||!this.pointsAreEqual(t.points.map(function(e){return e.y}),e.points.map(function(e){return u.ModelUtils.getlUnitValue(n,e.y)})))||this.edgeDataImporter.setText&&!this.compareTexts(t,e)||this.edgeDataImporter.setLineOption&&t.lineOption!==e.properties.lineOption||this.edgeDataImporter.setStartLineEnding&&t.startLineEnding!==e.properties.startLineEnding||this.edgeDataImporter.setEndLineEnding&&t.endLineEnding!==e.properties.endLineEnding},t.prototype.pointsAreEqual=function(e,t){var n=e.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!f.MathUtils.numberCloseTo(e[r],t[r]))return!1;return!0},t.prototype.updateEdgeObjectFromProperty=function(e,t,n){if(t.from=e&&e.key,t.dataObj){var r=e&&e.dataObj&&this.nodeDataImporter.getKey(e.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setFrom,t.dataObj,r,!1),n&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("edge",t):this.updateEdgeObjectFromOrToPropertyInternal(t,n))}},t.prototype.updateEdgeObjectFromOrToPropertyInternal=function(e,t){var n=this;this.beginChangesNotification(),t.notifyEdgeUpdated.call(t,this.nodeDataImporter.getKey(e.dataObj)||e.key,e.dataObj,function(e,t){n.endChangesNotification(!1)},function(e){n.endChangesNotification(!1)})},t.prototype.updateEdgeObjectToProperty=function(e,t,n){if(t.to=e&&e.key,t.dataObj){var r=e&&e.dataObj&&this.nodeDataImporter.getKey(e.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setTo,t.dataObj,r,!1),n&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("edge",t):this.updateEdgeObjectFromOrToPropertyInternal(t,n))}},t.prototype.updateEdgeObjectProperties=function(e,t,n){if(this.updateItemObjectProperties(t,e,this.edgeDataImporter),this.edgeDataImporter.setFrom){var r=this.findNode(e.beginItem&&e.beginItem.dataKey);this.updateEdgeObjectFromProperty(r,t)}if(this.edgeDataImporter.setTo){var i=this.findNode(e.endItem&&e.endItem.dataKey);this.updateEdgeObjectToProperty(i,t)}if(this.edgeDataImporter.setFromPointIndex&&(t.fromPointIndex=e.beginConnectionPointIndex,t.dataObj&&this.edgeDataImporter.setFromPointIndex(t.dataObj,e.beginConnectionPointIndex)),this.edgeDataImporter.setToPointIndex&&(t.toPointIndex=e.endConnectionPointIndex,t.dataObj&&this.edgeDataImporter.setToPointIndex(t.dataObj,e.endConnectionPointIndex)),this.edgeDataImporter.setPoints){var o=e.points.map(function(e){return{x:u.ModelUtils.getlUnitValue(n,e.x),y:u.ModelUtils.getlUnitValue(n,e.y)}});t.points=o,t.dataObj&&this.edgeDataImporter.setPoints(t.dataObj,o)}if(this.edgeDataImporter.setText){var s=void 0;1===e.getTextCount()&&e.getText()&&(s=e.getText());var a={};if(e.texts.forEach(function(e){a[e.position]=e.value}),t.texts=a,t.dataObj){var c="";s?c=s:a&&Object.keys(a).length&&(c=a),this.edgeDataImporter.setText(t.dataObj,c)}}this.edgeDataImporter.setLineOption&&(t.lineOption=e.properties.lineOption,t.dataObj&&this.edgeDataImporter.setLineOption(t.dataObj,e.properties.lineOption)),this.edgeDataImporter.setStartLineEnding&&(t.startLineEnding=e.properties.startLineEnding,t.dataObj&&this.edgeDataImporter.setStartLineEnding(t.dataObj,e.properties.startLineEnding)),this.edgeDataImporter.setEndLineEnding&&(t.endLineEnding=e.properties.endLineEnding,t.dataObj&&this.edgeDataImporter.setEndLineEnding(t.dataObj,e.properties.endLineEnding))},t.prototype.updateEdgeObjectKey=function(e,t,n){var r=n&&this.edgeDataImporter.getKey(n);if(null!=r&&r!==t.key&&(delete this.autoGeneratedDataKeys[t.key],t.key=r),e.dataKey=t.key,t.dataObj!==n){var i=this.edgeDataSource,o=i.indexOf(t.dataObj);i.splice(o,1,n),t.dataObj=n}},t.prototype.deleteEdges=function(e){var t=this;this.deleteItems(this.edges,function(t){return e.findConnectorByDataKey(t)},function(e){return t.edgeDataSource},function(e,n){var r=e.dataObj&&t.edgeDataImporter.getKey(e.dataObj)||e.key,i=t.findEdge(r);i&&t.edges.splice(t.edges.indexOf(i),1),n&&(t.beginChangesNotification(),t.changesListener.notifyEdgeRemoved.call(t.changesListener,r,e.dataObj,function(e,n){t.endChangesNotification(!1)},function(e){t.endChangesNotification(!1)}))})},t.prototype.beginNodeInserting=function(){this.nodeInsertingLockCount++},t.prototype.endNodeInserting=function(){this.nodeInsertingLockCount--,0===this.nodeInsertingLockCount&&this.raiseNodeInsertingStack()},t.prototype.isInNodeInserting=function(){return this.nodeInsertingLockCount>0},t.prototype.addToUpdateNodeKeyRelatedObjectsStack=function(e,t){var n=new p(e,t);this.updateNodeKeyRelatedObjectsStack.push(n)},t.prototype.raiseNodeInsertingStack=function(){for(this.beginUpdateNodeKeyRelatedObjects();this.updateNodeKeyRelatedObjectsStack.length>0;){var e=this.updateNodeKeyRelatedObjectsStack[0];this.updateNodeKeyRelatedObjects(e.shape,e.nodeObj),this.updateNodeKeyRelatedObjectsStack.splice(0,1),e.shape.description.hasTemplate&&e.nodeObj&&this.changesListener.reloadInsertedItem(e.nodeObj.key)}this.endUpdateNodeKeyRelatedObjects()},t.prototype.beginUpdateNodeKeyRelatedObjects=function(){this.updateNodeKeyRelatedObjectsCount++},t.prototype.endUpdateNodeKeyRelatedObjects=function(){this.updateNodeKeyRelatedObjectsCount--,0===this.updateNodeKeyRelatedObjectsCount&&this.raiseUpdateNodeKeyRelatedObjectsStack()},t.prototype.isInUpdateNodeKeyRelatedObjects=function(){return this.updateNodeKeyRelatedObjectsCount>0},t.prototype.addToUpdateNodeKeyRelatedObjectsStackAction=function(e,t){for(var n=new A(e,t),r=0;r<this.updateNodeKeyRelatedObjectsStackActions.length;r++)if(this.updateNodeKeyRelatedObjectsStackActions[r].kind===e&&this.updateNodeKeyRelatedObjectsStackActions[r].nodeObj===t)return;this.updateNodeKeyRelatedObjectsStackActions.push(n)},t.prototype.raiseUpdateNodeKeyRelatedObjectsStack=function(){for(;this.updateNodeKeyRelatedObjectsStackActions.length>0;){var e=this.updateNodeKeyRelatedObjectsStackActions[0];switch(e.kind){case"shape":this.updateNodeObjectContainerOrParentKeyInternal(e.nodeObj,this.changesListener);break;case"edge":this.updateEdgeObjectFromOrToPropertyInternal(e.nodeObj,this.changesListener)}this.updateNodeKeyRelatedObjectsStackActions.splice(0,1)}},t.prototype.beginChangesNotification=function(){this.changesListener.beginChangesNotification()},t.prototype.endChangesNotification=function(e){this.changesListener.endChangesNotification(e)},t}(c.DataSource);t.DocumentDataSource=g},9463:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0,function(e){e[e.Disabled=0]="Disabled",e[e.Console=1]="Console",e[e.Document=2]="Document"}(n||(n={}));var r=function(){function e(){}return e.beginAverage=function(e){this.enableLogsAndTimers&&(this.lastAverageGroupName=e)},e.endAverage=function(){this.enableLogsAndTimers&&(this.lastAverageGroupName=null)},e.tryLogAverage=function(e){var t=this;if(this.lastAverageGroupName!==e){var n=Object.keys(this.timers).map(function(e){return t.timers[e]}).filter(function(t){return t.groupName===e});if(!n.filter(function(e){return!e.endTime}).length){var r=n.reduce(function(e,t){return e+(t.endTime-t.startTime)},0)/n.length;this.log("average: "+r)}}},e.timer=function(e){this.enableLogsAndTimers&&(this.lastCreatedTimer={message:e,startTime:performance.now(),groupName:this.lastAverageGroupName})},e.endTimer=function(){var e=this;if(this.enableLogsAndTimers){var t=this.lastCreatedTimer,n=setTimeout(function(){t.endTime=performance.now(),e.showMessage('timer "'+t.message+'": '+(t.endTime-t.startTime)),t.groupName&&e.tryLogAverage(t.groupName)},0);this.timers[n]=t,this.lastCreatedTimer=null}},e.logPerfInfo=function(){var e=document.querySelector(".dxdi-control > svg").querySelectorAll("*").length,t=performance.memory;this.log("nodes: "+e.toLocaleString()+(t?" memory: ":"")+(t?t.usedJSHeapSize.toLocaleString():""))},e.log=function(e){this.showMessage(e)},e.showMessage=function(t){switch(e.mode){case n.Console:console.log(t);break;case n.Document:var r=this.getElement().value;if(this.lastMessage===t){var i=r.indexOf("\r\n");i<0&&(i=r.indexOf("\n"));var o=r.substr(0,i);/( \()([0-9]+)(\))$/.test(o)?o=o.replace(/( \()([0-9]+)(\))$/,function(e,t,n,r){return t+ ++n+r}):o+=" (1)",this.getElement().value=o+r.substr(i)}else this.getElement().value=t+"\r\n"+r,this.lastMessage=t}},e.getElement=function(){var e=this;if(!this.el){this.el=document.createElement("textarea"),this.el.style.top="0px",this.el.style.right="0px",this.el.style.position="fixed",this.el.style.background="transparent",this.el.style.fontSize="11px",this.el.style.fontFamily="monospace",this.el.style.overflow="auto",this.el.style.width="400px",document.body.appendChild(this.el);var t=document.createElement("button");t.innerHTML="x",t.addEventListener("click",function(){e.el.value="",e.lastMessage=""}),t.style.top="0px",t.style.right="400px",t.style.position="fixed",t.style.opacity="0.1",document.body.appendChild(t)}return this.el},e.mode=n.Document,e.optimizeUsingRAF=!0,e.optimizeLayers=!0,e.timers={},e.enableLogsAndTimers=!1,e}();t.Diagnostics=r},2106:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramControl=void 0;var r=n(8900),i=n(1118),o=n(7156),s=n(82),a=n(6613),c=n(9021),u=n(1864),l=n(2230),h=n(8098),d=n(8397),f=n(8717),p=n(240),A=n(6879),g=n(6734),m=n(4867),y=n(3298),v=n(8675),b=n(5656),w=n(7176),C=n(2883),_=n(5714),S=n(1733),x=n(7959),T=n(3503),P=n(6214),E=n(3500),I=n(3607),k=n(8679),B=function(){function e(){this.updateLockCount=0,this.shouldUpdateItemsByModel=!1,this.reloadContentNeeded=!1,this.reloadContentParameters=new P.ReloadContentParameters,this.reloadContentByExternalChangesParameters=new P.ReloadContentParameters,this.instanceId=k.MathUtils.generateGuid(),this.settings=new p.DiagramSettings,this.shapeDescriptionManager=new d.ShapeDescriptionManager,this.shapeDescriptionManager.onShapeDecriptionChanged.add(this),this.model=new a.DiagramModel,this.selection=new c.Selection(this.model),this.onNativeAction=new v.EventDispatcher,this.apiController=new b.ApiController(this.onNativeAction,this.selection,this.model),this.permissionsProvider=new C.PermissionsProvider(this.apiController),this.permissionsProvider.onRequestOperation.add(this),this.routingModel=new _.ConnectorRoutingModel,this.modelManipulator=new i.ModelManipulator(this.model,this.routingModel,this.permissionsProvider,this.shapeDescriptionManager),this.modelManipulator.onModelChanged.add(this.permissionsProvider),this.history=new u.History(this.modelManipulator,this),this.barManager=new l.BarManager(this),this.view=new g.ViewController(this.settings,this.barManager),this.commandManager=new o.CommandManager(this),this.eventManager=new s.EventManager(this),this.settings.onReadOnlyChanged.add(this.eventManager.mouseHandler),this.settings.onReadOnlyChanged.add(this.eventManager.visualizersManager),this.selection.onChanged.add(this.barManager),this.selection.onChanged.add(this.apiController),this.selection.onChanged.add(this.permissionsProvider),this.modelManipulator.commitItemsCreateChanges(),this.history.onChanged.add(this),this.toolboxManager=new y.ToolboxManager(this.shapeDescriptionManager),this.settings.onConnectorRoutingModeChanged.add(this.routingModel),w.ImageCache.instance.onReadyStateChanged.add(this)}return Object.defineProperty(e.prototype,"operationSettings",{get:function(){return this.permissionsProvider.operationSettings},enumerable:!1,configurable:!0}),e.prototype.cleanMarkup=function(e){e=e||function(e){E.RenderUtils.removeElement(e)},this.toolboxManager.clean(e),this.barManager.clean(),this.render&&(this.settings.onZoomChanged.remove(this.render.view),this.settings.onViewChanged.remove(this.render.page),this.settings.onViewChanged.remove(this.render.view),this.settings.onReadOnlyChanged.remove(this.render),this.settings.onReadOnlyChanged.remove(this.render.selection),this.eventManager.cleanToolboxes(this.settings.onReadOnlyChanged),this.eventManager.onTextInputOperation.remove(this.render.input),this.eventManager.onTextInputOperation.remove(this.render.items),this.eventManager.onTextInputOperation.remove(this.render.selection),this.eventManager.onMouseOperation.remove(this.render.items),this.eventManager.onMouseOperation.remove(this.render.selection),this.eventManager.onMouseOperation.remove(this.render.view),this.eventManager.onMouseOperation.remove(this.render),this.eventManager.onVisualizersUpdate.remove(this.render.selection),this.modelManipulator.onModelSizeChanged.remove(this.render.view),this.modelManipulator.onModelSizeChanged.remove(this.render.page),this.modelManipulator.onModelChanged.remove(this.render.items),this.modelManipulator.onModelChanged.remove(this.render.page),this.modelManipulator.onModelChanged.remove(this.render.selection),this.selection.onChanged.remove(this.render.selection),this.selection.onChanged.remove(this.render.items),this.render.clean(e),this.render=void 0),this.measurer&&this.measurer instanceof S.TextMeasurer&&this.measurer.clean()},e.prototype.dispose=function(){w.ImageCache.instance.onReadyStateChanged.remove(this)},e.prototype.createDocument=function(e,t,n){this.measurer||this.initMeasurer(e),this.render?this.render.replaceParent(e,t):(this.render=new h.RenderManager(e,this.eventManager,this.measurer,{pageColor:this.model.pageColor,modelSize:this.model.size,pageLandscape:this.model.pageLandscape,pageSize:this.model.pageSize,simpleView:this.settings.simpleView,readOnly:this.settings.readOnly,contextMenuEnabled:this.settings.contextMenuEnabled,gridSize:this.settings.gridSize,gridVisible:this.settings.showGrid,zoomLevel:this.settings.zoomLevel,autoZoom:this.settings.autoZoom,rectangle:this.model.getRectangle(!0)},this.instanceId,t,n),this.settings.onZoomChanged.add(this.render.view),this.settings.onViewChanged.add(this.render.page),this.settings.onViewChanged.add(this.render.view),this.settings.onReadOnlyChanged.add(this.render),this.settings.onReadOnlyChanged.add(this.render.selection),this.eventManager.onTextInputOperation.add(this.render.input),this.eventManager.onTextInputOperation.add(this.render.items),this.eventManager.onTextInputOperation.add(this.render.selection),this.eventManager.onTextInputOperation.add(this),this.eventManager.onMouseOperation.add(this.render.items),this.eventManager.onMouseOperation.add(this.render.selection),this.eventManager.onMouseOperation.add(this.render.view),this.eventManager.onMouseOperation.add(this.render),this.eventManager.onVisualizersUpdate.add(this.render.selection),this.modelManipulator.onModelSizeChanged.add(this.render.view),this.modelManipulator.onModelSizeChanged.add(this.render.page),this.modelManipulator.onModelChanged.add(this.render.items),this.modelManipulator.onModelChanged.add(this.render.page),this.modelManipulator.onModelChanged.add(this.render.selection),this.selection.onChanged.add(this.render.selection),this.selection.onChanged.add(this.render.items),this.render.update(!1),this.render.onNewModel(this.model.items),this.modelManipulator.commitItemsCreateChanges(),this.view.initialize(this.render.view),this.settings.zoomLevelWasChanged&&this.raiseCanvasViewActualZoomChanged(),this.selection.raiseSelectionChanged())},e.prototype.createToolbox=function(e,t,n,r){var i=this.toolboxManager.create(e,this.settings.readOnly,!0,t,n,this.getToolboxAllowedShapeTypes.bind(this),this.instanceId,r);this.settings.onReadOnlyChanged.add(i),i.onDragOperation.add(this),i.onDragOperation.add(this.apiController),this.eventManager.registerToolbox(i)},e.prototype.createContextToolbox=function(e,t,n,r,i){this.cleanContextToolbox(),this.contextToolbox=this.toolboxManager.create(e,this.settings.readOnly,!1,t,n,this.getToolboxAllowedShapeTypes.bind(this),this.instanceId,r),this.contextToolbox.onClickOperation.add(this),this.contextToolboxOnClick=i},e.prototype.getToolboxAllowedShapeTypes=function(e){var t=this,n=[];return this.permissionsProvider.beginUpdateUI(),e.forEach(function(e){t.permissionsProvider.canAddShapeFromToolbox(e)&&n.push(e)}),this.permissionsProvider.endUpdateUI(),n},e.prototype.cleanContextToolbox=function(){this.contextToolbox&&(this.toolboxManager.clean(void 0,this.contextToolbox),this.contextToolbox=void 0,this.contextToolboxOnClick=void 0)},e.prototype.refreshToolbox=function(e){this.permissionsProvider.clearCache(A.DiagramModelOperation.AddShapeFromToolbox),this.toolboxManager.refresh(e)},e.prototype.applyToolboxFilter=function(e,t){return this.toolboxManager.applyFilter(e,t)},e.prototype.notifyToolboxClick=function(e){this.contextToolboxOnClick&&this.contextToolboxOnClick(e)},e.prototype.initMeasurer=function(e){this.measurer=new S.TextMeasurer(e)},e.prototype.onDimensionChanged=function(){I.Browser.TouchUI||this.updateLayout(!0)},e.prototype.updateLayout=function(e){void 0===e&&(e=!1),this.render&&this.render.update(!e)},e.prototype.captureFocus=function(){this.render&&this.render.input.captureFocus()},e.prototype.isFocused=function(){return!this.render||this.render.input.isFocused()},e.prototype.registerBar=function(e){this.barManager.registerBar(e)},e.prototype.updateBarItemsState=function(e,t){this.barManager.updateBarItemsState(e,t)},e.prototype.getCommand=function(e){return this.commandManager.getCommand(e)},e.prototype.getNativeItemByKey=function(e){var t=this.model.findItem(e);return t&&this.apiController.createNativeItem(t)},e.prototype.getNativeItemByDataKey=function(e){var t=this.model.findItemByDataKey(e);return t&&this.apiController.createNativeItem(t)},e.prototype.getNativeItems=function(){var e=this;return this.model.items.map(function(t){return e.apiController.createNativeItem(t)})},e.prototype.getNativeSelectedItems=function(){var e=this;return this.selection.getKeys().map(function(t){return e.apiController.createNativeItem(e.model.findItem(t))})},e.prototype.setSelectedItems=function(e){this.selection.set(e)},e.prototype.scrollToItems=function(e){var t=this,n=v.GeometryUtils.getCommonRectangle(e.map(function(e){return t.model.findItem(e).rectangle}));this.view.scrollIntoView(n)},e.prototype.setInitialStyleProperties=function(e){this.selection.inputPosition.setInitialStyleProperties(e)},e.prototype.setInitialTextStyleProperties=function(e){this.selection.inputPosition.setInitialTextStyleProperties(e)},e.prototype.setInitialConnectorProperties=function(e){this.selection.inputPosition.setInitialConnectorProperties(e)},e.prototype.addCustomShapes=function(e){var t=this;e.forEach(function(e){e.apiController=t.apiController,e.defaultWidth&&(e.defaultWidth=m.ModelUtils.getTwipsValue(t.model.units,e.defaultWidth)),e.defaultHeight&&(e.defaultHeight=m.ModelUtils.getTwipsValue(t.model.units,e.defaultHeight)),e.minWidth&&(e.minWidth=m.ModelUtils.getTwipsValue(t.model.units,e.minWidth)),e.minHeight&&(e.minHeight=m.ModelUtils.getTwipsValue(t.model.units,e.minHeight)),e.maxWidth&&(e.maxWidth=m.ModelUtils.getTwipsValue(t.model.units,e.maxWidth)),e.maxHeight&&(e.maxHeight=m.ModelUtils.getTwipsValue(t.model.units,e.maxHeight)),t.shapeDescriptionManager.registerCustomShape(e)})},e.prototype.removeCustomShapes=function(e){var t=this;e.forEach(function(e){t.shapeDescriptionManager.unregisterCustomShape(e)})},e.prototype.removeAllCustomShapes=function(){this.shapeDescriptionManager.unregisterAllCustomShapes()},e.prototype.importModel=function(e){e.units=this.model.units,this.model=e,this.model.initializeKeyCounter(),this.apiController.model=e,this.onImportData()},e.prototype.importItemsData=function(){this.onImportData()},e.prototype.onImportData=function(){this.render&&(this.render.clear(),this.render.onNewModel(this.model.items)),this.permissionsProvider.clearCache(),this.selection.initialize(this.model),this.modelManipulator.initialize(this.model,this.routingModel),this.history.clear(),this.eventManager.initialize(),this.modelManipulator.commitPageChanges(),this.modelManipulator.commitItemsCreateChanges(),this.notifyViewChanged(),this.notifyHistoryChanged()},e.prototype.createDocumentDataSource=function(e,t,n,r,i){return this.documentDataSource=new f.DocumentDataSource(this,e,t,n,r,i),this.apiController.setDataSource(this.documentDataSource),this.documentDataSource},e.prototype.deleteDocumentDataSource=function(){this.apiController.setDataSource(null),delete this.documentDataSource},e.prototype.applyShapeSizeSettings=function(e){this.settings.applyShapeSizeSettings(e,this.model.units)},e.prototype.applyOperationSettings=function(e){this.permissionsProvider.operationSettings.applySettings(e)},e.prototype.beginUpdateCanvas=function(){this.render&&(this.render.items.beginUpdate(),this.render.selection.beginUpdate())},e.prototype.endUpdateCanvas=function(){this.render&&(this.render.items.endUpdate(),this.render.selection.endUpdate())},e.prototype.beginUpdate=function(){this.barManager.beginUpdate(),this.apiController.beginUpdate(),this.eventManager.beginUpdate()},e.prototype.endUpdate=function(){this.barManager.endUpdate(),this.apiController.endUpdate(),this.eventManager.endUpdate()},e.prototype.notifyEdgeInserted=function(e,t,n){this.onEdgeInserted?this.onEdgeInserted(e,t,n):t(e)},e.prototype.notifyEdgeUpdated=function(e,t,n,r){this.onEdgeUpdated?this.onEdgeUpdated(e,t,n,r):n(e,t)},e.prototype.notifyEdgeRemoved=function(e,t,n,r){this.onEdgeUpdated?this.onEdgeRemoved(e,t,n,r):n(e,t)},e.prototype.notifyNodeInserted=function(e,t,n){this.onNodeInserted?this.onNodeInserted(e,t,n):t(e)},e.prototype.notifyNodeUpdated=function(e,t,n,r){this.onNodeUpdated?this.onNodeUpdated(e,t,n,r):n(e,t)},e.prototype.notifyNodeRemoved=function(e,t,n,r){this.onNodeRemoved?this.onNodeRemoved(e,t,n,r):n(e,t)},e.prototype.reloadInsertedItem=function(e){this.settings.reloadInsertedItemRequired&&this.reloadContent(e)},e.prototype.reloadContent=function(e,t,n,r){if(this.documentDataSource){this.isChangesLocked()&&(this.reloadContentNeeded=!0);var i=!0===r||void 0===r&&!this.reloadContentNeeded,o=i?this.reloadContentByExternalChangesParameters:this.reloadContentParameters;o.add(e,t,n),this.isChangesLocked()||(this.reloadContentCore(o,i),this.barManager.updateItemsState())}},e.prototype.reloadContentCore=function(e,t){var n=this,r=e.getData&&e.getData(),i=this.documentDataSource.refetchData(r&&r.nodeDataSource,r&&r.edgeDataSource);this.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.documentDataSource.updateModelItems(this.history,this.model,this.shapeDescriptionManager,this.selection,new T.DataLayoutParameters(this.settings,e.layoutParameters),t,e.dataKeys,function(e){n.modelManipulator.commitItemUpdateChanges(e)},i,this.settings.snapToGrid,this.settings.gridSize,this.measurer),this.permissionsProvider.unlockPermissions(),this.endUpdateCanvas(),e.clear()},e.prototype.notifyHistoryChanged=function(){this.documentDataSource?(this.shouldUpdateItemsByModel=!0,this.settings.readOnly||this.notifyDataChanges()):this.raiseOnChanged()},e.prototype.notifyViewChanged=function(){this.settings.notifyViewChanged()},e.prototype.notifyToolboxDragStart=function(e){this.render.notifyToolboxDragStart(e),this.onToolboxDragStart&&this.onToolboxDragStart()},e.prototype.notifyToolboxDragEnd=function(e){this.render.notifyToolboxDragEnd(e),this.onToolboxDragEnd&&this.onToolboxDragEnd()},e.prototype.notifyToolboxDraggingMouseMove=function(e){this.render&&this.render.notifyToolboxDraggingMouseMove(e)},e.prototype.notifyTextInputStart=function(e,t,n,r){this.onTextInputStart&&this.onTextInputStart()},e.prototype.notifyTextInputEnd=function(e,t){this.onTextInputEnd&&this.onTextInputEnd()},e.prototype.notifyTextInputPermissionsCheck=function(e,t){},e.prototype.notifyToggleFullscreen=function(e){this.onToggleFullscreen&&this.onToggleFullscreen(e)},e.prototype.notifyShowContextMenu=function(e,t){if(this.onShowContextMenu&&this.render){var n=void 0;if(this.selection.getSelectedItems(!0).length>0){var i=m.ModelUtils.createRectangle(this.selection.getSelectedItems(!0)),o=this.render.getEventPointByModelPoint(i.createPosition()),s=this.render.view.getAbsoluteSize(i.createSize());n={x:o.x,y:o.y,width:s.width,height:s.height}}if(e)this.contextMenuPosition=new r.Point(e.x,e.y),this.onShowContextMenu(e.x,e.y,n);else if(t){var a=this.render.getEventPointByModelPoint(t);this.contextMenuPosition=a.clone(),this.onShowContextMenu(a.x,a.y,n)}}},e.prototype.notifyHideContextMenu=function(){this.onHideContextMenu&&this.render&&this.onHideContextMenu()},e.prototype.notifyShowContextToolbox=function(e,t,n,r,i){if(this.onShowContextToolbox&&this.render){var o=this.render.getEventPointByModelPoint(e);this.onShowContextToolbox(o.x,o.y,n,r,i),this.render.view.notifyShowContextToolbox()}},e.prototype.notifyHideContextToolbox=function(){this.onHideContextToolbox&&this.render&&(this.onHideContextToolbox(),this.render.view.notifyHideContextToolbox()),this.cleanContextToolbox()},e.prototype.notifyShapeDescriptionChanged=function(e){this.modelManipulator.updateShapeDescription(e)},e.prototype.notifyImageCacheReadyStateChanged=function(e){this.barManager.updateItemsState()},e.prototype.raiseCanvasViewActualZoomChanged=function(){this.render.view.raiseActualZoomChanged()},e.prototype.notifyRequestOperation=function(e,t){this.requestOperationByDataSource(e,t)||this.onRequestOperation&&this.onRequestOperation(e,t)},e.prototype.requestOperationByDataSource=function(e,t){if(!this.documentDataSource||!this.documentDataSource.IsNodeParentIdMode()&&!this.documentDataSource.IsNodeItemsMode())return!1;if(e===A.DiagramModelOperation.ChangeConnection){var n=t,r=n.shape&&this.model.findItem(n.shape.id),i=n.connector&&this.model.findItem(n.connector.id);if(!r||!i)return;if(n.position===x.ConnectorPosition.End)for(var o=0;o<r.attachedConnectors.length;o++){var s=r.attachedConnectors[o];if(s!==i&&s.endItem&&s.endItem===r){n.allowed=!1;break}}n.allowed&&i.beginItem&&i.endItem&&this.isShapeParent(i.endItem,i.beginItem)&&(n.allowed=!1)}return!t.allowed},e.prototype.isShapeParent=function(e,t){if(e===t)return!0;for(var n=0;n<e.attachedConnectors.length;n++){var r=e.attachedConnectors[n];if(r.beginItem===e&&r.endItem){var i=r.endItem;if(i===t||this.isShapeParent(i,t))return!0}}return!1},e.prototype.isChangesLocked=function(){return this.updateLockCount>0},e.prototype.beginChangesNotification=function(){this.isChangesLocked()||this.changesLockChanged&&this.changesLockChanged(!0),this.updateLockCount++},e.prototype.endChangesNotification=function(e){var t=this;this.updateLockCount--,this.isChangesLocked()||(this.changesLockChanged(!1),e||setTimeout(function(){t.notifyReloadContent(),t.notifyDataChanges()},0))},e.prototype.changesLockChanged=function(e){e?this.lockedReadOnly=this.settings.readOnly:e=this.lockedReadOnly,this.commandManager.getCommand(o.DiagramCommand.ToggleReadOnly).execute(e)},e.prototype.notifyDataChanges=function(){this.isChangesLocked()||(this.shouldUpdateItemsByModel&&(this.documentDataSource.updateItemsByModel(this.model),this.shouldUpdateItemsByModel=!1),this.raiseOnChanged())},e.prototype.notifyReloadContent=function(){this.reloadContentNeeded&&(this.reloadContentParameters.empty||this.reloadContentCore(this.reloadContentParameters,!1),this.reloadContentByExternalChangesParameters.empty||this.reloadContentCore(this.reloadContentByExternalChangesParameters,!0),this.reloadContentNeeded=!1)},e.prototype.raiseOnChanged=function(){this.onChanged&&this.onChanged()},e}();t.DiagramControl=B},5383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PageOrientation=t.DiagramUnit=void 0,function(e){e[e.In=0]="In",e[e.Cm=1]="Cm",e[e.Px=2]="Px"}(t.DiagramUnit||(t.DiagramUnit={})),function(e){e[e.Portrait=0]="Portrait",e[e.Landscape=1]="Landscape"}(t.PageOrientation||(t.PageOrientation={}))},9946:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenuHandler=void 0;var o=n(8675),s=n(6031),a=n(2153),c=n(1772),u=n(9279),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.contextMenuVisible=!1,t.textInputStarted=!1,t.canHideContextMenu=!0,t.onVisibilityChanged=new o.EventDispatcher,t}return i(t,e),t.prototype.onMouseDown=function(e){e.button===s.MouseButton.Left&&e.source.type!==s.MouseEventElementType.Undefined&&this.hideContextMenu()},t.prototype.onMouseUp=function(e){(!u.Browser.MacOSPlatform||u.Browser.MacOSPlatform&&this.canHideContextMenu)&&this.hideContextMenu(),this.canHideContextMenu=!0},t.prototype.onContextMenu=function(e){u.Browser.MacOSPlatform&&(this.canHideContextMenu=!1),this.showContextMenu(e.eventPoint,e.modelPoint)},t.prototype.onFocus=function(e){},t.prototype.onBlur=function(e){},t.prototype.onTextInputFocus=function(e){},t.prototype.onTextInputBlur=function(e){},t.prototype.onLongTouch=function(e){},t.prototype.onKeyDown=function(e){e.keyCode===a.KeyCode.Esc&&this.hideContextMenu()},t.prototype.onShortcut=function(e){this.hideContextMenu()},t.prototype.showContextMenu=function(e,t){var n=this;this.textInputStarted||window.setTimeout(function(){n.onVisibilityChanged.raise1(function(n){return n.notifyShowContextMenu(e,t)}),n.contextMenuVisible=!0},1)},t.prototype.hideContextMenu=function(){var e=this;this.contextMenuVisible&&window.setTimeout(function(){e.onVisibilityChanged.raise1(function(e){return e.notifyHideContextMenu()}),e.contextMenuVisible=!1},1)},t.prototype.notifyDragStart=function(e){},t.prototype.notifyDragEnd=function(e){},t.prototype.notifyDragScrollStart=function(){},t.prototype.notifyDragScrollEnd=function(){},t.prototype.notifyShowContextToolbox=function(e,t,n,r,i){},t.prototype.notifyHideContextToolbox=function(){},t.prototype.notifyTextInputStart=function(e,t,n,r){this.textInputStarted=!0},t.prototype.notifyTextInputEnd=function(e,t){this.textInputStarted=!1},t.prototype.notifyTextInputPermissionsCheck=function(e,t){},t.prototype.onUpdateUnlocked=function(e){},t}(c.BatchUpdatableObject);t.ContextMenuHandler=l},151:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenuTouchHandler=void 0;var o=n(6031),s=n(9946),a=n(4867),c=function(e){function t(t){var n=e.call(this)||this;return n.selection=t,n.contextToolboxVisible=!1,n.selection.onChanged.add(n),n}return i(t,e),t.prototype.onMouseDown=function(e){void 0===e.source.key&&this.hideContextMenu()},t.prototype.onMouseUp=function(e){},t.prototype.onFocus=function(e){var t=this;setTimeout(function(){t.showContextMenuAtSelection()},1)},t.prototype.onBlur=function(e){var t=this;setTimeout(function(){t.hideContextMenu()},1)},t.prototype.onTextInputFocus=function(e){var t=this;setTimeout(function(){t.hideContextMenu()},1)},t.prototype.onTextInputBlur=function(e){var t=this;setTimeout(function(){t.showContextMenuAtSelection()},1)},t.prototype.onLongTouch=function(e){e.source.type===o.MouseEventElementType.Document&&this.showContextMenuAtEmptySelection(e.modelPoint)},t.prototype.onKeyDown=function(e){},t.prototype.onShortcut=function(e){},t.prototype.getSelectedItems=function(){return this.selection.getSelectedItems(!0)},t.prototype.showContextMenuAtSelection=function(){if(!this.contextToolboxVisible){var e=this.getSelectedItems();0!==e.length&&this.showContextMenu(void 0,a.ModelUtils.createRectangle(e).createPosition())}},t.prototype.showContextMenuAtEmptySelection=function(e){this.contextToolboxVisible||0===this.getSelectedItems().length&&this.showContextMenu(void 0,e)},t.prototype.notifyDragStart=function(e){this.hideContextMenu()},t.prototype.notifyDragEnd=function(e){this.showContextMenuAtSelection()},t.prototype.notifySelectionChanged=function(e){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},t.prototype.raiseSelectionChanged=function(){0!==this.getSelectedItems().length?this.showContextMenuAtSelection():this.hideContextMenu()},t.prototype.onUpdateUnlocked=function(e){1&e&&this.raiseSelectionChanged()},t.prototype.notifyShowContextToolbox=function(e,t,n,r,i){this.contextToolboxVisible=!0,this.hideContextMenu()},t.prototype.notifyHideContextToolbox=function(){this.contextToolboxVisible=!1,this.showContextMenuAtSelection()},t}(s.ContextMenuHandler);t.ContextMenuTouchHandler=c},4426:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextToolboxHandler=void 0;var r=n(6031),i=n(8675),o=n(2153),s=n(9279),a=function(){function e(){this.contextToolboxVisible=!1,this.onVisibilityChanged=new i.EventDispatcher}return e.prototype.onMouseDown=function(e){e.source.type!==r.MouseEventElementType.Undefined&&this.hideContextToolbox()},e.prototype.onMouseUp=function(e){e.source.type===r.MouseEventElementType.Undefined&&s.Browser.TouchUI||this.hideContextToolbox()},e.prototype.onFocus=function(e){},e.prototype.onBlur=function(e){},e.prototype.onKeyDown=function(e){e.keyCode===o.KeyCode.Esc&&this.hideContextToolbox()},e.prototype.onShortcut=function(e){this.hideContextToolbox()},e.prototype.showContextToolbox=function(e,t,n,r,i,o){this.onVisibilityChanged.raise1(function(o){return o.notifyShowContextToolbox(e,t,n,r,i)}),this.contextToolboxVisible=!0,this.contextToolboxCancelCallback=o},e.prototype.hideContextToolbox=function(e){this.contextToolboxVisible&&(this.onVisibilityChanged.raise1(function(e){return e.notifyHideContextToolbox()}),this.contextToolboxCancelCallback&&(e||this.contextToolboxCancelCallback(),this.contextToolboxCancelCallback=void 0),this.contextToolboxVisible=!1)},e}();t.ContextToolboxHandler=a},6031:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramClipboardEvent=t.DiagramKeyboardEvent=t.DiagramContextMenuEvent=t.DiagramWheelEvent=t.DiagramMouseEvent=t.DiagramMouseEventBase=t.DiagramMouseEventTouch=t.DiagramFocusEvent=t.DiagramEvent=t.ResizeEventSource=t.MouseEventSource=t.MouseEventElementType=t.MouseButton=void 0;var o,s=n(2153);!function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Middle=4]="Middle"}(t.MouseButton||(t.MouseButton={})),function(e){e[e.Undefined=0]="Undefined",e[e.Background=1]="Backgroun
19d",e[e.Document=2]="Document",e[e.Connector=3]="Connector",e[e.ConnectorPoint=4]="ConnectorPoint",e[e.ConnectorSide=5]="ConnectorSide",e[e.ConnectorOrthogonalSide=6]="ConnectorOrthogonalSide",e[e.ConnectorText=7]="ConnectorText",e[e.Shape=8]="Shape",e[e.ShapeResizeBox=9]="ShapeResizeBox",e[e.ShapeParameterBox=10]="ShapeParameterBox",e[e.SelectionRect=11]="SelectionRect",e[e.ShapeConnectionPoint=12]="ShapeConnectionPoint",e[e.ShapeExpandButton=13]="ShapeExpandButton"}(o=t.MouseEventElementType||(t.MouseEventElementType={}));var a=function(){function e(e,t,n){this.type=e,this.key=t,this.value=n}return Object.defineProperty(e.prototype,"isConnector",{get:function(){return this.type===o.Connector||this.type===o.ConnectorText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isShape",{get:function(){return this.type===o.Shape||this.type===o.ShapeConnectionPoint},enumerable:!1,configurable:!0}),e}();t.MouseEventSource=a,function(e){e[e.Undefined=0]="Undefined",e[e.ResizeBox_NW=1]="ResizeBox_NW",e[e.ResizeBox_NE=2]="ResizeBox_NE",e[e.ResizeBox_SE=3]="ResizeBox_SE",e[e.ResizeBox_SW=4]="ResizeBox_SW",e[e.ResizeBox_N=5]="ResizeBox_N",e[e.ResizeBox_E=6]="ResizeBox_E",e[e.ResizeBox_S=7]="ResizeBox_S",e[e.ResizeBox_W=8]="ResizeBox_W"}(t.ResizeEventSource||(t.ResizeEventSource={}));var c=function(e){this.modifiers=e};t.DiagramEvent=c;var u=function(e){function t(t){var n=e.call(this,s.ModifierKey.None)||this;return n.inputText=t,n}return i(t,e),t}(c);t.DiagramFocusEvent=u;var l=function(e,t){this.offsetPoint=e,this.modelPoint=t};t.DiagramMouseEventTouch=l;var h=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.offsetPoint=n,o.modelPoint=r,o.source=i,o}return i(t,e),t}(c);t.DiagramMouseEventBase=h;var d=function(e){function t(t,n,r,i,o,s,a){void 0===s&&(s=[]);var c=e.call(this,t,r,i,o)||this;return c.button=n,c.touches=s,c.isTouchMode=a,c.scrollX=0,c.scrollY=0,c}return i(t,e),t}(h);t.DiagramMouseEvent=d;var f=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,i,o,s)||this;return a.deltaX=n,a.deltaY=r,a}return i(t,e),t}(h);t.DiagramWheelEvent=f;var p=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.eventPoint=n,i.modelPoint=r,i}return i(t,e),t}(c);t.DiagramContextMenuEvent=p;var A=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keyCode=n,i.inputText=r,i}return i(t,e),t.prototype.getShortcutCode=function(){return this.modifiers|this.keyCode},t}(c);t.DiagramKeyboardEvent=A;var g=function(e){function t(t){var n=e.call(this,s.ModifierKey.None)||this;return n.clipboardData=t,n}return i(t,e),t}(c);t.DiagramClipboardEvent=g},82:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventManager=void 0;var r=n(5689),i=n(8675),o=n(8376),s=n(9946),a=n(151),c=n(7733),u=n(7459),l=n(4426),h=n(9279),d=n(2153),f=function(){function e(e){this.onMouseOperation=new i.EventDispatcher,this.onTextInputOperation=new i.EventDispatcher,this.toolboxes=[],this.control=e,this.visualizersManager=i.EventUtils.isTouchMode()?new u.VisualizerTouchManager(e.selection,e.model,this,e.settings):new c.VisualizerManager(e.selection,e.model,this,e.settings),this.onMouseOperation.add(this.visualizersManager),this.contextMenuHandler=h.Browser.TouchUI?new a.ContextMenuTouchHandler(e.selection):new s.ContextMenuHandler,this.contextMenuHandler.onVisibilityChanged.add(e),this.onMouseOperation.add(this.contextMenuHandler),this.onTextInputOperation.add(this.contextMenuHandler),this.contextToolboxHandler=new l.ContextToolboxHandler,this.contextToolboxHandler.onVisibilityChanged.add(e),this.contextToolboxHandler.onVisibilityChanged.add(this.contextMenuHandler),this.mouseHandler=new r.MouseHandler(e.history,e.selection,e.model,this,e.settings.readOnly,e.view,this.visualizersManager,this.contextToolboxHandler,e.shapeDescriptionManager,e.settings,e.permissionsProvider),this.textInputHandler=new o.TextInputHandler(e),this.visualizersManager.onVisualizersUpdate.add(this.mouseHandler)}return Object.defineProperty(e.prototype,"onVisualizersUpdate",{get:function(){return this.visualizersManager.onVisualizersUpdate}
vendor: 646,961 bytes, line 19
19,enumerable:!1,configurable:!0}),e.prototype.registerToolbox=function(e){this.toolboxes.push(e)},e.prototype.cleanToolboxes=function(e){this.toolboxes.forEach(function(t){e.remove(t)}),this.toolboxes=[]},e.prototype.initialize=function(){this.visualizersManager.initialize(this.control.model),this.mouseHandler.initialize(this.control.model)},e.prototype.beginUpdate=function(e){this.contextMenuHandler.beginUpdate(),this.visualizersManager.beginUpdate()},e.prototype.endUpdate=function(){this.contextMenuHandler.endUpdate(),this.visualizersManager.endUpdate()},e.prototype.onMouseDown=function(e){this.mouseHandler.onMouseDown(e),this.contextMenuHandler.onMouseDown(e),this.visualizersManager.onMouseDown(e),this.contextToolboxHandler.onMouseDown(e)},e.prototype.onMouseMove=function(e){this.processDragging(e),this.mouseHandler.onMouseMove(e)},e.prototype.onMouseUp=function(e){this.contextToolboxHandler.onMouseUp(e),this.mouseHandler.onMouseUp(e),this.contextMenuHandler.onMouseUp(e),this.visualizersManager.onMouseUp(e),this.processDragging(e)},e.prototype.onMouseEnter=function(e){this.visualizersManager.onMouseEnter(e)},e.prototype.onMouseLeave=function(e){this.visualizersManager.onMouseLeave(e)},e.prototype.onDblClick=function(e){this.mouseHandler.onMouseDblClick(e),this.textInputHandler.onDblClick(e),this.control.apiController.notifyDblClick(e)},e.prototype.onClick=function(e){this.mouseHandler.onMouseClick(e),this.control.apiController.notifyClick(e)},e.prototype.onContextMenu=function(e){this.contextMenuHandler.onContextMenu(e)},e.prototype.onLongTouch=function(e){this.mouseHandler.onLongTouch(e),this.contextMenuHandler.onLongTouch(e)},e.prototype.onBlur=function(e){this.contextMenuHandler.onBlur(e),this.contextToolboxHandler.onBlur(e),this.visualizersManager.onBlur(e)},e.prototype.onFocus=function(e){this.contextMenuHandler.onFocus(e),this.contextToolboxHandler.onFocus(e),this.visualizersManager.onFocus(e)},e.prototype.onKeyDown=function(e){var t=e.getShortcutCode();this.onShortcut(t)?(this.visualizersManager.updateConnectionPoints(),this.contextMenuHandler.onShortcut(e),this.contextToolboxHandler.onShortcut(e),e.preventDefault=!0):this.isShortcutForFocusInput(t)&&(e.preventDefault=!0),this.contextMenuHandler.onKeyDown(e),this.contextToolboxHandler.onKeyDown(e),this.mouseHandler.onKeyDown(e)},e.prototype.onKeyUp=function(e){this.mouseHandler.onKeyUp(e)},e.prototype.onTextInputBlur=function(e){this.textInputHandler.onBlur(e),this.contextMenuHandler.onTextInputBlur(e)},e.prototype.onTextInputFocus=function(e){this.textInputHandler.onFocus(e),this.contextMenuHandler.onTextInputFocus(e)},e.prototype.onTextInputKeyDown=function(e){this.textInputHandler.onKeyDown(e)},e.prototype.onShortcut=function(e){return!!this.control.commandManager.processShortcut(e)||!!this.mouseHandler.onShortcut(e)||void 0},e.prototype.isShortcutForFocusInput=function(e){return e===d.KeyCode.Delete||e===(d.KeyCode.Delete|d.ModifierKey.Ctrl)||e===(d.KeyCode.Delete|d.ModifierKey.Meta)||e===d.KeyCode.Backspace||e===(d.KeyCode.Backspace|d.ModifierKey.Ctrl)||e===(d.KeyCode.Backspace|d.ModifierKey.Shift)||e===(d.KeyCode.Backspace|d.ModifierKey.Meta)||e===d.KeyCode.Home||e===d.KeyCode.End||e===d.KeyCode.Up||e===(d.KeyCode.Up|d.ModifierKey.Ctrl)||e===(d.KeyCode.Up|d.ModifierKey.Meta)||e===d.KeyCode.Down||e===(d.KeyCode.Down|d.ModifierKey.Ctrl)||e===(d.KeyCode.Down|d.ModifierKey.Meta)||e===d.KeyCode.Left||e===(d.KeyCode.Left|d.ModifierKey.Ctrl)||e===(d.KeyCode.Left|d.ModifierKey.Meta)||e===d.KeyCode.Right||e===(d.KeyCode.Right|d.ModifierKey.Ctrl)||e===(d.KeyCode.Right|d.ModifierKey.Meta)},e.prototype.onPaste=function(e){!this.textInputHandler.isTextInputActive()&&this.control.commandManager.processPaste(e.clipboardData)&&(this.visualizersManager.updateConnectionPoints(),e.preventDefault=!0)},e.prototype.onMouseWheel=function(e){this.mouseHandler.onWheel(e)&&(e.preventDefault=!0)},e.prototype.isFocused=function(){return this.control.isFocused()},e.prototype.processDragging=function(e){var t=this.getDraggingEvent();t&&this.draggingEvent!==t?(this.draggingEvent=t,this.mouseHandler.onDragStart(this.draggingEvent),this.control.captureFocus()):!t&&this.draggingEvent&&(delete this.draggingEvent,this.mouseHandler.onDragEnd(e))},e.prototype.getDraggingEvent=function(){return this.toolboxes.filter(function(e){return e.draggingObject}).map(function(e){return e.draggingObject.evt})[0]},e.prototype.onDocumentDragStart=function(e){this.control.beginUpdate(),this.control.captureFocus(),this.onMouseOperation.raise("notifyDragStart",e)},e.prototype.onDocumentDragEnd=function(e){this.onMouseOperation.raise("notifyDragEnd",e),this.control.endUpdate(),this.control.barManager.updateItemsState()},e.prototype.onDocumentDragScrollStart=function(){this.onMouseOperation.raise1(function(e){return e.notifyDragScrollStart()})},e.prototype.onDocumentDragScrollEnd=function(){this.onMouseOperation.raise1(function(e){return e.notifyDragScrollEnd()})},e.prototype.onDocumentClick=function(e){this.control.beginUpdate(),this.control.endUpdate(),this.control.barManager.updateItemsState()},e.prototype.raiseTextInputStart=function(e,t,n,r){this.onTextInputOperation.raise("notifyTextInputStart",e,t,n,r)},e.prototype.raiseTextInputEnd=function(e,t){this.onTextInputOperation.raise("notifyTextInputEnd",e,t)},e.prototype.raiseTextInputPermissionsCheck=function(e,t){this.onTextInputOperation.raise("notifyTextInputPermissionsCheck",e,t)},e.prototype.canFinishTextEditing=function(){return this.textInputHandler.canFinishTextEditing()},e}();t.EventManager=f},5689:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandler=void 0;var r=n(3250),i=n(6031),o=n(8900),s=n(4867),a=n(8032),c=n(7286),u=n(8502),l=n(2153),h=n(8675),d=function(){function e(e,t,n,r,i,o,s,a,c,u,l){this.history=e,this.selection=t,this.model=n,this.eventManager=r,this.readOnly=i,this.view=o,this.visualizerManager=s,this.contextToolboxHandler=a,this.shapeDescriptionManager=c,this.settings=u,this.permissionsProvider=l,this.finishStateLock=0,this.initialize(n),this.selection.onChanged.add(this)}return e.prototype.initialize=function(e){this.model=e,this.allowMultipleSelection=!0,this.allowCopyDiagramItems=!0,this.allowSnapToCellOnDragDiagramItem=!0,this.allowSnapToCellOnDragPoint=!0,this.allowSnapToCellOnResizeShape=!0,this.allowFixedDrag=!0,this.allowZoomOnWheel=!0,this.allowScrollPage=!0,this.shouldScrollPage=!1,this.copyDiagramItemsByCtrlAndShift=!1,this.startScrollingPageByCtrl=!1,this.initializeDefaultState()},e.prototype.initializeDefaultState=function(){this.defaultState=this.readOnly?h.EventUtils.isTouchMode()?new a.MouseHandlerDefaultReadOnlyTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new c.MouseHandlerDefaultReadOnlyState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):h.EventUtils.isTouchMode()?new u.MouseHandlerDefaultTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new r.MouseHandlerDefaultState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings),this.switchToDefaultState()},e.prototype.onMouseDown=function(e){this.mouseDownEvent=e,this.state.onMouseDown(e)},e.prototype.onMouseMove=function(e){this.state.onMouseMove(e)},e.prototype.onMouseUp=function(e){this.state.onMouseUp(e)},e.prototype.onMouseDblClick=function(e){this.state.onMouseDblClick(e)},e.prototype.onMouseClick=function(e){this.state.onMouseClick(e)},e.prototype.onLongTouch=function(e){if(e.touches&&!(e.touches.length>1)){var t=e.source.key;void 0===t?this.selection.clear():this.selection.hasKey(t)?this.selection.remove(t):this.selection.add(t)}},e.prototype.onShortcut=function(e){return this.state.onShortcut(e)},e.prototype.onWheel=function(e){return this.state.onMouseWheel(e)},e.prototype.onDragStart=function(e){this.state.onDragStart(e)},e.prototype.onDragEnd=function(e){this.state.onDragEnd(e)},e.prototype.onKeyDown=function(e){this.state.onKeyDown(e)},e.prototype.onKeyUp=function(e){this.state.onKeyUp(e)},e.prototype.showContextToolbox=function(e,t,n,r,i,o){this.contextToolboxHandler.showContextToolbox(e,t,n,r,i,o)},e.prototype.hideContextToolbox=function(e){this.contextToolboxHandler.hideContextToolbox(e)},e.prototype.canScrollPage=function(e){return this.startScrollingPageByCtrl?!!this.hasCtrlModifier(e.modifiers)&&(!this.copyDiagramItemsByCtrlAndShift||!e.source.isConnector&&!e.source.isShape):this.allowScrollPage&&this.shouldScrollPage},e.prototype.canMultipleSelection=function(e){return this.allowMultipleSelection&&this.hasCtrlOrShiftModifier(e.modifiers)},e.prototype.canCopySelectedItems=function(e){return!!this.allowCopyDiagramItems&&(this.copyDiagramItemsByCtrlAndShift?this.hasCtrlAndShiftModifier(e.modifiers):this.hasAltModifier(e.modifiers))},e.prototype.canCalculateFixedPosition=function(e){return!(!this.allowFixedDrag||!this.hasShiftModifier(e.modifiers))&&(!this.copyDiagramItemsByCtrlAndShift||!this.hasCtrlModifier(e.modifiers))},e.prototype.canStartZoomOnWheel=function(e){return this.allowZoomOnWheel&&this.hasCtrlModifier(e.modifiers)},e.prototype.canFinishZoomOnWheel=function(e){return this.allowZoomOnWheel&&!this.hasCtrlModifier(e.modifiers)},e.prototype.onStartScrollPageByKeyboard=function(e){this.canStartScrollingPageByKeyboard(e)&&(this.raiseDragScrollStart(),this.shouldScrollPage=!0)},e.prototype.onFinishScrollPageByKeyboard=function(e){this.canEndScrollingPageByKeyboard(e)&&this.finishScrollingPage()},e.prototype.onFinishScrollPageByMouse=function(e){this.canEndScrollingPage(e)&&this.finishScrollingPage()},e.prototype.finishScrollingPage=function(){this.shouldScrollPage=!1,this.raiseDragScrollEnd(),this.switchToDefaultState()},e.prototype.hasCtrlOrShiftModifier=function(e){return this.hasCtrlModifier(e)||this.hasShiftModifier(e)},e.prototype.hasCtrlAndShiftModifier=function(e){return this.hasCtrlModifier(e)&&this.hasShiftModifier(e)},e.prototype.hasCtrlModifier=function(e){return(e&l.ModifierKey.Ctrl)>0},e.prototype.hasAltModifier=function(e){return(e&l.ModifierKey.Alt)>0},e.prototype.hasShiftModifier=function(e){return(e&l.ModifierKey.Shift)>0},e.prototype.canStartScrollingPageByKeyboard=function(e){return!this.startScrollingPageByCtrl&&!this.shouldScrollPage&&e.keyCode===l.KeyCode.Space},e.prototype.canEndScrollingPageByKeyboard=function(e){return!this.startScrollingPageByCtrl&&e.keyCode===l.KeyCode.Space},e.prototype.canEndScrollingPage=function(e){return!this.startScrollingPageByCtrl||this.hasCtrlModifier(e.modifiers)},e.prototype.getSnappedPointOnDragDiagramItem=function(e,t,n,r,i){var s=this.getSnapToCellOnDragDiagramItem(e);return new o.Point(this.getSnappedPos(this.getFixedXPosition(e,t,n,i),!0,s),this.getSnappedPos(this.getFixedYPosition(e,t,r,i),!1,s))},e.prototype.getSnappedPointOnDragPoint=function(e,t,n){var r=this.getSnapToCellOnDragPoint(e),i=this.getSnappedPos(t.x,!0,r),s=this.getSnappedPos(t.y,!1,r);return void 0===n||Math.pow(t.x-i,2)+Math.pow(t.y-s,2)<Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)?new o.Point(i,s):n},e.prototype.getSnappedOffsetOnDragPoint=function(e,t){var n=this.getSnapToCellOnDragPoint(e);return new o.Point(this.getSnappedPos(e.modelPoint.x-t.x,!0,n),this.getSnappedPos(e.modelPoint.y-t.y,!1,n))},e.prototype.lockAspectRatioOnShapeResize=function(e){return this.hasShiftModifier(e.modifiers)},e.prototype.getSnappedPositionOnResizeShape=function(e,t,n){return this.getSnapToCellOnResizeShape(e)?s.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,t,n):t},e.prototype.getSnappedPos=function(e,t,n){return n?s.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,e,t):e},e.prototype.getFixedXPosition=function(e,t,n,r){return n?t.x:t.x+e.modelPoint.x-r.x},e.prototype.getFixedYPosition=function(e,t,n,r){return n?t.y:t.y+e.modelPoint.y-r.y},e.prototype.getSnapToCellOnDragDiagramItem=function(e){return this.allowSnapToCellOnDragDiagramItem&&this.settings.snapToGrid&&!this.hasCtrlModifier(e.modifiers)},e.prototype.getSnapToCellOnDragPoint=function(e){return this.allowSnapToCellOnDragPoint&&this.settings.snapToGrid&&!this.hasCtrlModifier(e.modifiers)},e.prototype.getSnapToCellOnResizeShape=function(e){return this.allowSnapToCellOnResizeShape&&this.settings.snapToGrid&&!this.hasCtrlModifier(e.modifiers)},e.prototype.tryUpdateModelSize=function(e){this.lockPermissions(),s.ModelUtils.tryUpdateModelRectangle(this.history,e),this.unlockPermissions()},e.prototype.canAddDiagramItemToSelection=function(e){return e.source.key&&(e.button===i.MouseButton.Left||e.button===i.MouseButton.Right)},e.prototype.addDiagramItemToSelection=function(e){this.pressedDiagramItemKey=e.source.key,this.pressedDiagramItemInSelection=this.selection.hasKey(this.pressedDiagramItemKey),this.canMultipleSelection(e)?this.selection.add(e.source.key):this.changeSingleSelection(e.source.key)},e.prototype.canRemoveDiagramItemToSelection=function(e){return this.pressedDiagramItemKey&&e.source.key&&this.pressedDiagramItemKey===e.source.key&&(e.button===i.MouseButton.Left||e.button===i.MouseButton.Right)},e.prototype.removeDiagramItemFromSelection=function(e,t){this.pressedDiagramItemInSelection&&this.selection.getKeys().length>1&&e===i.MouseButton.Left&&this.selection.remove(t)},e.prototype.changeSingleSelection=function(e){this.selection.hasKey(e)||this.selection.set([e])},e.prototype.notifySelectionChanged=function(e){this.pressedDiagramItemKey&&!this.selection.hasKey(this.pressedDiagramItemKey)&&(this.pressedDiagramItemKey=void 0,this.pressedDiagramItemInSelection=!1)},e.prototype.raiseDragStart=function(e){this.eventManager.onDocumentDragStart(e)},e.prototype.raiseDragEnd=function(e){this.eventManager.onDocumentDragEnd(e)},e.prototype.raiseDragScrollStart=function(){this.eventManager.onDocumentDragScrollStart()},e.prototype.raiseDragScrollEnd=function(){this.eventManager.onDocumentDragScrollEnd()},e.prototype.raiseClick=function(e){this.eventManager.onDocumentClick(e)},e.prototype.beginStorePermissions=function(){this.permissionsProvider.beginStorePermissions()},e.prototype.endStorePermissions=function(){this.permissionsProvider.endStorePermissions()},e.prototype.isStoredPermissionsGranted=function(){return this.permissionsProvider.isStoredPermissionsGranted()},e.prototype.lockPermissions=function(){this.permissionsProvider.lockPermissions()},e.prototype.unlockPermissions=function(){this.permissionsProvider.unlockPermissions()},e.prototype.canPerformChangeConnection=function(e,t){var n=!0;return e?n=this.permissionsProvider.canChangeConnection(e,t.item,t.oldItem,t.position,t.connectionPointIndex):t.item&&(n=this.permissionsProvider.canChangeConnection(void 0,t.item,t.oldItem,t.position,t.connectionPointIndex)),n},e.prototype.canPerformChangeConnectionOnUpdateUI=function(e,t){this.permissionsProvider.beginUpdateUI();var n=this.canPerformChangeConnection(e,t);return this.permissionsProvider.endUpdateUI(),n},e.prototype.canFinishTextEditing=function(){return this.eventManager.canFinishTextEditing()},e.prototype.restartState=function(){this.state&&!this.finishStateLock&&(this.finishStateLock++,this.state.finish(),this.finishStateLock--),this.state.start()},e.prototype.switchToDefaultState=function(){this.switchState(this.defaultState)},e.prototype.switchState=function(e){this.newState=e,this.state&&!this.finishStateLock&&(this.finishStateLock++,this.state.finish(),this.finishStateLock--),this.newState&&(this.state=this.newState,this.state.start(),this.newState=void 0)},e.prototype.addInteractingItem=function(e,t){this.permissionsProvider.addInteractingItem(e,t)},e.prototype.clearInteractingItems=function(){this.permissionsProvider.clearInteractingItems()},e.prototype.notifyReadOnlyChanged=function(e){this.readOnly=e,this.initializeDefaultState()},e.prototype.notifySelectionRectShow=function(e){},e.prototype.notifySelectionRectHide=function(){},e.prototype.notifyResizeInfoShow=function(e,t){},e.prototype.notifyResizeInfoHide=function(){},e.prototype.notifyConnectionPointsShow=function(e,t,n,r){this.state.onConnectionPointsShow(e,t)},e.prototype.notifyConnectionPointsHide=function(){},e.prototype.notifyConnectionTargetShow=function(e,t){this.state.onConnectionTargetShow(e,t)},e.prototype.notifyConnectionTargetHide=function(){},e.prototype.notifyContainerTargetShow=function(e,t){},e.prototype.notifyContainerTargetHide=function(){},e.prototype.notifyExtensionLinesShow=function(e){},e.prototype.notifyExtensionLinesHide=function(){},e}();t.MouseHandler=d},5627:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerCreateConnectorState=void 0;var o=n(7959),s=n(3477),a=n(9603),c=n(3742),u=n(7060),l=n(4297),h=n(4145),d=n(4867),f=n(8930),p=n(9143),A=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,t,n,r,i)||this;return c.shapeDescriptionManager=o,c.selection=s,c.connectionPointIndex=a,c}return i(t,e),t.prototype.onMouseDown=function(t){void 0===this.connectionPointIndex&&(this.connectionPointIndex=parseInt(t.source.value)),this.connectedItem=this.model.findItem(t.source.key),this.pointIndex=1,this.pointPosition=o.ConnectorPosition.End,e.prototype.onMouseDown.call(this,t)},t.prototype.onMouseUp=function(t){this.connector&&!this.connector.endItem&&this.createNewShapeAtConnectorEnd(t),e.prototype.onMouseUp.call(this,t)},t.prototype.onApplyChanges=function(t){var n=this.getSnappedPoint(t,t.modelPoint);if(this.connector)e.prototype.onApplyChanges.call(this,t);else{var r=new a.AddConnectorHistoryItem([this.connectedItem.getConnectionPointPosition(this.connectionPointIndex,n),n]);this.history.addAndRedo(r),this.connector=this.model.findConnector(r.connectorKey),this.handler.addInteractingItem(this.connector),this.history.addAndRedo(new s.AddConnectionHistoryItem(this.connector,this.connectedItem,this.connectionPointIndex,o.ConnectorPosition.Begin)),d.ModelUtils.updateNewConnectorProperties(this.history,this.selection,this.connector.key)}},t.prototype.checkStoredPermissionsOnFinish=function(){this.connector&&this.connector.endItem&&e.prototype.checkStoredPermissionsOnFinish.call(this)},t.prototype.onFinishWithChanges=function(){e.prototype.onFinishWithChanges.call(this),this.history.addAndRedo(new l.SetSelectionHistoryItem(this.selection,[this.connector.key]))},t.prototype.createNewShapeAtConnectorEnd=function(e){var t=this,n=this.connector&&this.connector.beginItem;if(n)if(!this.connector||this.handler.canPerformChangeConnection(this.connector,{position:o.ConnectorPosition.End,connectionPointIndex:-1})){var r=this.getNewShapeSide(this.connector),i=this.getSnappedPoint(e,e.modelPoint),a=this.shapeDescriptionManager.getCategoryByDescription(n.description);this.handler.showContextToolbox(i,function(n){var o=n.clone();o.position=i.clone();var s=t.getNewShapePosition(o,r);return t.handler.getSnappedPointOnDragPoint(e,s)},r,a,function(n){if(n){t.handler.beginStorePermissions(),t.history.beginTransaction();var a=new h.AddShapeHistoryItem(t.shapeDescriptionManager.get(n),i);t.history.addAndRedo(a);var c=t.model.findShape(a.shapeKey),u=t.targetItem&&t.model.findNearestContainer(t.targetItem.key);u&&d.ModelUtils.insertToContainer(t.history,t.model,c,u);var f=t.getNewShapePosition(c,r);d.ModelUtils.setShapePosition(t.history,t.model,c,t.getSnappedPoint(e,f)),d.ModelUtils.updateNewShapeProperties(t.history,t.selection,c.key),t.history.addAndRedo(new s.AddConnectionHistoryItem(t.connector,c,c.getConnectionPointIndexForSide(r),o.ConnectorPosition.End)),u&&d.ModelUtils.updateConnectorContainer(t.history,t.model,t.connector),d.ModelUtils.updateShapeAttachedConnectors(t.history,t.model,c),t.handler.isStoredPermissionsGranted()?(t.handler.tryUpdateModelSize(),t.history.addAndRedo(new l.SetSelectionHistoryItem(t.selection,[c.key]))):(t.handler.lockPermissions(),t.history.undoTransaction(),t.handler.unlockPermissions(),t.checkNewConnectorPermissions()),t.history.endTransaction(),t.handler.endStorePermissions(),t.handler.hideContextToolbox(!0)}},function(){t.checkNewConnectorPermissions()})}else this.cancelChanges()},t.prototype.checkNewConnectorPermissions=function(){this.connector&&!this.handler.canPerformChangeConnection(this.connector,{position:o.ConnectorPosition.End,connectionPointIndex:-1})&&(this.handler.lockPermissions(),this.history.beginTransaction(),this.history.addAndRedo(new l.SetSelectionHistoryItem(this.selection,[])),this.connector.beginItem&&this.history.addAndRedo(new f.DeleteConnectionHistoryItem(this.connector,o.ConnectorPosition.Begin)),this.connector.endItem&&this.history.addAndRedo(new f.DeleteConnectionHistoryItem(this.connector,o.ConnectorPosition.End)),this.history.addAndRedo(new p.DeleteConnectorHistoryItem(this.connector.key)),this.history.endTransaction(),this.handler.unlockPermissions())},t.prototype.getNewShapePosition=function(e,t){switch(t){case c.ConnectionPointSide.North:return e.position.clone().offset(-e.size.width/2,0);case c.ConnectionPointSide.South:return e.position.clone().offset(-e.size.width/2,-e.size.height);case c.ConnectionPointSide.East:return e.position.clone().offset(-e.size.width,-e.size.height/2);case c.ConnectionPointSide.West:return e.position.clone().offset(0,-e.size.height/2)}},t.prototype.getNewShapeSide=function(e){var n=e.getRenderPoints();return t.getNewShapeSideByConnectorPoints(n[n.length-1],n[n.length-2])},t.prototype.getSourceItem=function(){return this.connectedItem},t.getNewShapeSideByConnectorPoints=function(e,t){return e.x===t.x?e.y>t.y?c.ConnectionPointSide.North:c.ConnectionPointSide.South:e.x>t.x?e.y===t.y?c.ConnectionPointSide.West:e.y>t.y?Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?c.ConnectionPointSide.West:c.ConnectionPointSide.North:Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?c.ConnectionPointSide.West:c.ConnectionPointSide.South:e.y===t.y?c.ConnectionPointSide.East:e.y>t.y?Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?c.ConnectionPointSide.East:c.ConnectionPointSide.North:Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?c.ConnectionPointSide.East:c.ConnectionPointSide.South},t}(u.MouseHandlerMoveConnectorPointStateBase);t.MouseHandlerCreateConnectorState=A},7286:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerDefaultReadOnlyState=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.canDragObjectOnMouseDown=function(e){return!1},t.prototype.canExpandContainerOnMouseDown=function(e){return!1},t.prototype.canClearSelectionOnMouseDown=function(){return!1},t.prototype.canSelectOnMouseUp=function(e){return!0},t.prototype.canClearSelectionOnMouseUp=function(){return!0},t.prototype.updateConnectionsOnMouseMove=function(e){},t}(n(8213).MouseHandlerDefaultStateBase);t.MouseHandlerDefaultReadOnlyState=o},8032:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerDefaultReadOnlyTouchState=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.canDragObjectOnMouseDown=function(e){return!1},t.prototype.canExpandContainerOnMouseDown=function(e){return!1},t.prototype.canClearSelectionOnMouseDown=function(){return!0},t.prototype.canSelectOnMouseUp=function(e){return!this.inSelection(e)},t.prototype.canClearSelectionOnMouseUp=function(){return!1},t}(n(7286).MouseHandlerDefaultReadOnlyState);t.MouseHandlerDefaultReadOnlyTouchState=o},3250:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerDefaultState=void 0;var o=n(6031),s=n(4402),a=n(5609),c=n(481),u=n(4908),l=n(5627),h=n(5209),d=n(6918),f=n(5391),p=n(8213),A=n(9979),g=n(7959),m=n(5168),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.finish=function(){this.visualizerManager.resetConnectionPoints(),e.prototype.finish.call(this)},t.prototype.onMouseDownCore=function(t){this.handler.canScrollPage(t)?this.startScrolling(t):t.button===o.MouseButton.Left&&t.source.type===o.MouseEventElementType.ConnectorText?(this.handler.changeSingleSelection(t.source.key),this.handler.switchState(new f.MouseHandlerMoveConnectorTextState(this.handler,this.history,this.model))):t.button===o.MouseButton.Left&&t.source.type===o.MouseEventElementType.ShapeResizeBox?this.handler.switchState(new a.MouseHandlerResizeShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.settings)):t.button===o.MouseButton.Left&&t.source.type===o.MouseEventElementType.ShapeParameterBox?this.handler.switchState(new u.MouseHandlerDragParameterPointState(this.handler,this.history,this.model)):t.button===o.MouseButton.Left&&t.source.type===o.MouseEventElementType.ConnectorPoint?this.handler.switchState(new s.MouseHandlerMoveConnectorPointState(this.handler,this.history,this.model,this.visualizerManager)):t.button===o.MouseButton.Left&&t.source.type===o.MouseEventElementType.ConnectorSide?this.handler.switchState(new c.MouseHandlerMoveConnectorSideState(this.handler,this.history,this.model)):t.button===o.MouseButton.Left&&t.source.type===o.MouseEventElementType.ConnectorOrthogonalSide?this.handler.switchState(new h.MouseHandlerMoveConnectorOrthogonalSideState(this.handler,this.history,this.model)):t.button===o.MouseButton.Left&&t.source.type===o.MouseEventElementType.ShapeConnectionPoint?this.handler.switchState(new l.MouseHandlerCreateConnectorState(this.handler,this.history,this.model,this.visualizerManager,this.shapeDescriptionManager,this.selection)):e.prototype.onMouseDownCore.call(this,t)},t.prototype.onDragDiagramItemOnMouseDown=function(t){this.handler.canAddDiagramItemToSelection(t)?t.source.isShape?this.handler.switchState(new A.MouseHandlerMoveShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):t.source.isConnector&&this.handler.switchState(new m.MouseHandlerMoveConnectorState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):e.prototype.onDragDiagramItemOnMouseDown.call(this,t)},t.prototype.onDragStart=function(e){this.handler.switchState(new d.MouseHandlerBeforeToolboxDraggingState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager)),this.handler.state.onDragStart(e)},t.prototype.onMouseMoveCore=function(t){this.updateConnectionsOnMouseMove(t),e.prototype.onMouseMoveCore.call(this,t)},t.prototype.onMouseUp=function(t){this.handler.canRemoveDiagramItemToSelection(t)?this.handler.removeDiagramItemFromSelection(t.button,t.source.key):e.prototype.onMouseUp.call(this,t)},t.prototype.updateConnectionsOnMouseMove=function(e){var t=this.model.findItem(e.source.key);this.visualizerManager.updateConnections(t,e.source.type,e.source.value)},t.prototype.canDragObjectOnMouseDown=function(e){return!0},t.prototype.canExpandContainerOnMouseDown=function(e){return!0},t.prototype.canClearSelectionOnMouseDown=function(){return!1},t.prototype.canSelectOnMouseUp=function(e){return!1},t.prototype.canClearSelectionOnMouseUp=function(){return!0},t.prototype.onConnectionPointsShow=function(e,t){var n=this,r=this.model.findShape(e);r&&t.forEach(function(e,t){e.allowed=n.handler.canPerformChangeConnectionOnUpdateUI(void 0,{item:r,position:g.ConnectorPosition.Begin,connectionPointIndex:t})})},t}(p.MouseHandlerDefaultStateBase);t.MouseHandlerDefaultState=y},8213:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerDefaultStateBase=void 0;var o=n(5434),s=n(6031),a=n(5752),c=n(4869),u=n(7189),l=n(9582),h=n(9291),d=n(8461),f=function(e){function t(t,n,r,i,o,s,a,c){var u=e.call(this,t)||this;return u.history=n,u.selection=r,u.model=i,u.view=o,u.visualizerManager=s,u.shapeDescriptionManager=a,u.settings=c,u}return i(t,e),t.prototype.onKeyDown=function(e){this.handler.onStartScrollPageByKeyboard(e)},t.prototype.onKeyUp=function(e){this.handler.onFinishScrollPageByKeyboard(e)},t.prototype.onMouseDown=function(e){this.handler.canFinishTextEditing()&&(this.onMouseDownCore(e),this.handler.state!==this&&this.handler.state.onMouseDown(e))},t.prototype.onMouseDownCore=function(e){this.handler.canScrollPage(e)?this.startScrolling(e):this.hasDiagramItem(e)&&this.canDragObjectOnMouseDown(e.source.key)?this.onDragDiagramItemOnMouseDown(e):e.button===s.MouseButton.Left&&e.source.type===s.MouseEventElementType.ShapeExpandButton&&this.canExpandContainerOnMouseDown(e.source.key)?this.onShapeExpandBtnMouseDown(e):(!this.hasDiagramItem(e)&&this.canClearSelectionOnMouseDown()&&this.clearSelection(),this.startPoint=e.modelPoint)},t.prototype.onDragDiagramItemOnMouseDown=function(e){this.replaceSelection(e)},t.prototype.onMouseMove=function(e){this.onMouseMoveCore(e),this.handler.state!==this&&(this.handler.state.onMouseDown(this.handler.mouseDownEvent),this.handler.state.onMouseMove(e))},t.prototype.onMouseMoveCore=function(e){this.startPoint&&(Math.abs(this.startPoint.x-e.modelPoint.x)>t.startLimit||Math.abs(this.startPoint.y-e.modelPoint.y)>t.startLimit)&&(this.processOnMouseMoveAfterLimit(e),this.startPoint=void 0)},t.prototype.processOnMouseMoveAfterLimit=function(e){e.isTouchMode?e.touches.length>1?this.startZooming(e):this.startScrolling(e):this.startSelection(e)},t.prototype.onMouseUp=function(e){this.onMouseUpCore(e),this.handler.state!==this&&this.handler.state.onMouseUp(e)},t.prototype.onMouseUpCore=function(e){e.source.type===s.MouseEventElementType.Shape&&this.canSelectOnMouseUp(e.source.key)||e.source.type===s.MouseEventElementType.Connector&&this.canSelectOnMouseUp(e.source.key)||e.source.type===s.MouseEventElementType.ShapeExpandButton&&this.canSelectOnMouseUp(e.source.key)?this.replaceSelection(e):this.startPoint&&this.canClearSelectionOnMouseUp()&&this.clearSelection(),this.startPoint=void 0},t.prototype.onMouseWheel=function(e){return!!this.handler.canStartZoomOnWheel(e)&&(this.handler.switchState(new u.MouseHandlerZoomOnWheelState(this.handler,this.settings,this.view)),this.handler.state.onMouseWheel(e),!0)},t.prototype.onLongTouch=function(e){this.replaceMultipleSelection(e.source.key)},t.prototype.finish=function(){this.startPoint=void 0},t.prototype.startSelection=function(e){e.button===s.MouseButton.Left&&this.handler.switchState(new c.MouseHandlerSelectionState(this.handler,this.selection,this.visualizerManager))},t.prototype.startScrolling=function(e){e.button===s.MouseButton.Left&&(this.handler.raiseDragScrollStart(),this.handler.switchState(new l.MouseHandlerScrollingState(this.handler,this.view,this.selection)))},t.prototype.startZooming=function(e){this.handler.switchState(new d.MouseHandlerZoomOnPinchState(this.handler,this.selection,this.settings,this.view))},t.prototype.inSelection=function(e){return this.selection.hasKey(e)},t.prototype.hasDiagramItem=function(e){return e.source.isShape||e.source.isConnector},t.prototype.onShapeExpandBtnMouseDown=function(e){this.handler.addDiagramItemToSelection(e),this.handler.switchState(new a.MouseHandlerToggleShapeExpandedState(this.handler,this.history,this.model,this.selection))},t.prototype.replaceSelection=function(e){this.handler.canMultipleSelection(e)?this.replaceMultipleSelection(e.source.key):this.handler.changeSingleSelection(e.source.key)},t.prototype.replaceMultipleSelection=function(e){this.selection.hasKey(e)?this.selection.remove(e):this.selection.add(e)},t.prototype.clearSelection=function(){this.selection.set([])},t.startLimit=h.UnitConverter.pixelsToTwips(1),t}(o.MouseHandlerStateBase);t.MouseHandlerDefaultStateBase=f},8502:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerDefaultTouchState=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.updateConnectionsOnMouseMove=function(e){},t.prototype.canDragObjectOnMouseDown=function(e){return this.inSelection(e)},t.prototype.canExpandContainerOnMouseDown=function(e){return!0},t.prototype.canClearSelectionOnMouseDown=function(){return!0},t.prototype.canSelectOnMouseUp=function(e){return!this.inSelection(e)},t.prototype.canClearSelectionOnMouseUp=function(){return!1},t}(n(3250).MouseHandlerDefaultState);t.MouseHandlerDefaultTouchState=o},1717:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerDragDiagramItemStateBase=t.DraggingConnector=void 0;var o=n(4867),s=n(6879),a=n(6031),c=n(8816),u=n(4742),l=function(e){this.connector=e,this.startPoints=e.points.map(function(e){return e.clone()}),this.startRenderContext=e.tryCreateRenderPointsContext()};t.DraggingConnector=l;var h=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n)||this;return s.model=r,s.selection=i,s.visualizerManager=o,s.startScrollLeft=0,s.startScrollTop=0,s}return i(t,e),t.prototype.finish=function(){var t;null===(t=this.dragHelper)||void 0===t||t.finish(),this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),e.prototype.finish.call(this)},t.prototype.onMouseDown=function(t){this.handler.addDiagramItemToSelection(t),this.shouldClone=this.handler.canCopySelectedItems(t),this.startPoint=t.modelPoint,this.initDrag(),this.lockInitDrag=!1,e.prototype.onMouseDown.call(this,t)},t.prototype.onMouseMove=function(e){if(this.mouseMoveEvent=e,e.button!==a.MouseButton.Left)return this.cancelChanges(),void this.handler.switchToDefaultState();this.canApplyChangesOnMouseMove(this.startPoint,e.modelPoint)&&(this.handler.canCopySelectedItems(e)&&(this.lockInitDrag||(this.cancelChanges(),this.shouldClone=!0,this.copySelection(),this.initDrag(),this.lockInitDrag=!0)),this.onApplyChanges(e),this.onAfterApplyChanges(),this.updateContainers(e))},t.prototype.updateContainers=function(e){this.visualizerManager.setExtensionLines(this.selection.getSelectedShapes(!1,!0));var t=o.ModelUtils.findContainerByEventKey(this.model,this.selection,e.source.key);t&&this.allowInsertToContainer(e,t)?this.visualizerManager.setContainerTarget(t,e.source.type):this.visualizerManager.resetContainerTarget()},t.prototype.onMouseUp=function(t){e.prototype.onMouseUp.call(this,t),this.handler.canRemoveDiagramItemToSelection(t)&&this.handler.canMultipleSelection(t)&&this.handler.removeDiagramItemFromSelection(t.button,t.source.key)},t.prototype.onApplyChanges=function(e){var t=this;this.calculateFixedPosition(e),this.dragHelper.move(this.shouldClone,function(n){return t.getSnappedPoint(e,n)},function(){t.visualizerManager.resetConnectionTarget(),t.visualizerManager.resetConnectionPoints()},function(e,n){t.visualizerManager.setConnectionTarget(e,a.MouseEventElementType.Shape),t.visualizerManager.setConnectionPoints(e,a.MouseEventElementType.Shape,n,!0)});var n=o.ModelUtils.findContainerByEventKey(this.model,this.selection,e.source.key);n&&this.allowInsertToContainer(e,n)?o.ModelUtils.insertSelectionToContainer(this.history,this.model,this.selection,n):o.ModelUtils.removeSelectionFromContainer(this.history,this.model,this.selection),this.handler.tryUpdateModelSize(function(e,n){return t.dragHelper.onTryUpdateModelSize(e,n)})},t.prototype.getDraggingElementKeys=function(){return this.dragHelper.draggingShapes.map(function(e){return e.shape.key}).concat(this.dragHelper.draggingConnectors.map(function(e){return e.connector.key}))},t.prototype.getSnappedPoint=function(e,t){return this.handler.getSnappedPointOnDragDiagramItem(e,t,this.fixedX,this.fixedY,this.startPoint)},t.prototype.initDrag=function(){this.dragHelper=new u.SelectionDragHelper(this.history,this.model,this.handler.permissionsProvider,this.startPoint,this.selection.getSelectedItems(!0)),this.initDraggingShapes(),this.areValidDraggingShapes?(this.initDraggingConnectors(),this.areValidDraggingConnectors||this.handler.switchToDefaultState()):this.handler.switchToDefaultState()},t.prototype.initDraggingShapes=function(){this.dragHelper.initDraggingShapes(this.selection.getSelectedShapes(!1,!0),this.shouldClone)},t.prototype.initDraggingConnectors=function(){this.dragHelper.initDraggingConnectors(this.selection.getSelectedConnectors(!1,!0),this.shouldClone)},t.prototype.copySelection=function(){var e=this;o.ModelUtils.cloneSelectionToOffset(this.history,this.model,function(t){var n=e.model.findItem(t);n&&e.handler.addInteractingItem(n,s.DiagramModelOperation.AddShape)},this.selection,0,0)},t.prototype.calculateFixedPosition=function(e){this.fixedX=!1,this.fixedY=!1,this.handler.canCalculateFixedPosition(e)&&(Math.abs(this.startPoint.x-e.modelPoint.x)<Math.abs(this.startPoint.y-e.modelPoint.y)?this.fixedX=!0:this.fixedY=!0)},t.prototype.allowInsertToContainer=function(e,t){return!this.handler.canMultipleSelection(e)&&t&&t.expanded&&o.ModelUtils.canInsertSelectionToContainer(this.model,this.selection,t)},t}(c.MouseHandlerDraggingState);t.MouseHandlerDragDiagramItemStateBase=h},4908:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerDragParameterPointState=void 0;var o=n(8816),s=n(329),a=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.model=r,i.startScrollLeft=0,i.startScrollTop=0,i}return i(t,e),t.prototype.onMouseDown=function(t){this.startPoint=t.modelPoint,this.shape=this.model.findShape(t.source.key),this.parameterPointKey=t.source.value,this.startParameters=this.shape.parameters.clone(),e.prototype.onMouseDown.call(this,t)},t.prototype.onApplyChanges=function(e){var t=this.handler.getSnappedOffsetOnDragPoint(e,this.startPoint),n=this.startParameters.clone();this.shape.description.modifyParameters(this.shape,n,t.x,t.y),this.history.addAndRedo(new s.ChangeShapeParametersHistoryItem(this.shape.key,n))},t.prototype.getDraggingElementKeys=function(){return[this.shape.key]},t}(o.MouseHandlerDraggingState);t.MouseHandlerDragParameterPointState=a},8816:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerDraggingState=void 0;var o=n(5434),s=n(6031),a=n(9291),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.history=n,r}return i(t,e),t.prototype.canApplyChangesOnMouseMove=function(e,n){return!e||!n||Math.abs(e.x-n.x)>t.dragStartLimit||Math.abs(e.y-n.y)>t.dragStartLimit},t.prototype.onAfterApplyChanges=function(){this.modified||this.handler.raiseDragStart(this.getDraggingElementKeys()),this.modified=!0,this.mouseDownPoint=void 0},t.prototype.onMouseDown=function(e){this.mouseDownPoint=e.modelPoint.clone()},t.prototype.onMouseMove=function(e){this.mouseMoveEvent=e,e.button!==s.MouseButton.Left?(this.cancelChanges(),this.handler.switchToDefaultState()):e.button===s.MouseButton.Left&&this.canApplyChangesOnMouseMove(this.mouseDownPoint,e.modelPoint)&&(this.onApplyChanges(e),this.onAfterApplyChanges())},t.prototype.onKeyDown=function(e){!this.mouseMoveEvent||16!==e.keyCode&&17!==e.keyCode&&18!==e.keyCode||this.performMouseMoveEvent(e.modifiers)},t.prototype.onKeyUp=function(e){!this.mouseMoveEvent||16!==e.keyCode&&17!==e.keyCode&&18!==e.keyCode||this.performMouseMoveEvent(e.modifiers)},t.prototype.onMouseUp=function(e){this.mouseDownPoint=void 0,this.mouseMoveEvent=void 0,this.handler.switchToDefaultState()},t.prototype.performMouseMoveEvent=function(e){this.mouseMoveEvent.modifiers=e,this.onMouseMove(this.mouseMoveEvent)},t.prototype.start=function(){this.handler.beginStorePermissions(),this.history.beginTransaction()},t.prototype.finish=function(){this.checkStoredPermissionsOnFinish(),this.modified?(this.onFinishWithChanges(),this.modified=!1,this.history.endTransaction(),this.handler.raiseDragEnd(this.getDraggingElementKeys())):this.history.endTransaction(),this.handler.endStorePermissions(),this.handler.clearInteractingItems()},t.prototype.checkStoredPermissionsOnFinish=function(){this.handler.isStoredPermissionsGranted()||(this.cancelChanges(),this.modified=!1)},t.prototype.onFinishWithChanges=function(){},t.prototype.cancelChanges=function(){this.handler.lockPermissions(),this.history.undoTransaction(),this.handler.unlockPermissions(),this.modified&&this.handler.raiseDragEnd(this.getDraggingElementKeys()),this.modified=!1},t.prototype.getSnappedPoint=function(e,t){return this.handler.getSnappedPointOnDragPoint(e,t)},t.dragStartLimit=a.UnitConverter.pixelsToTwips(4),t}(o.MouseHandlerCancellableState);t.MouseHandlerDraggingState=c},5209:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerMoveConnectorOrthogonalSideState=void 0;var o=n(8900),s=n(7959),a=n(3742),c=n(4867),u=n(8816),l=n(8675),h=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.model=r,i.canCreatePoints=!0,i}return i(t,e),t.prototype.saveSidePoints=function(e,t){var n=this,r=this.connector.getRenderPoints(!0);this.isHorizontal=r[e].y===r[t].y,this.iterateRenderPoints(r,e,!1,function(e,t){-1!==e.pointIndex&&(n.leftPointIndex=e.pointIndex),n.leftRenderPointIndex=t},function(t){return!l.GeometryUtils.arePointsOfOrthogonalLine(r[e],t,n.isHorizontal)}),this.iterateRenderPoints(r,this.leftRenderPointIndex,!0,function(e,t){-1!==e.pointIndex&&(n.rightPointIndex=e.pointIndex),n.rightRenderPointIndex=t},function(t){return!l.GeometryUtils.arePointsOfOrthogonalLine(r[e],t,n.isHorizontal)})},t.prototype.iterateRenderPoints=function(e,t,n,r,i){for(var o=t;n?o<e.length:o>=0;n?o++:o--){var s=e[o];if(i&&i(s,o))break;r(s,o)}},t.prototype.onMouseDown=function(t){this.startPoint=t.modelPoint,this.connector=this.model.findConnector(t.source.key),this.handler.addInteractingItem(this.connector);var n=t.source.value.split("_");this.saveSidePoints(parseInt(n[0]),parseInt(n[1])),e.prototype.onMouseDown.call(this,t)},t.prototype.shouldCreatePoint=function(e){if(!this.canCreatePoints)return!1;if(e&&(void 0===this.leftPointIndex||0===this.leftPointIndex))return!0;if(!e&&(void 0===this.rightPointIndex||this.rightPointIndex===this.connector.points.length-1))return!0;var t=this.connector.getRenderPoints(!0);return!(!e||this.connector.points[this.leftPointIndex].equals(t[this.leftRenderPointIndex]))||!e&&!this.connector.points[this.rightPointIndex].equals(t[this.rightRenderPointIndex])},t.prototype.onApplyChanges=function(e){var t=this;if(this.shouldCreatePoint(!0)||this.shouldCreatePoint(!1)){var n=this.connector.getRenderPoints(!0),r=n[this.leftRenderPointIndex],i=n[this.rightRenderPointIndex];if(this.shouldCreatePoint(!0)){var s=new o.Point(r.x,r.y);0===this.leftPointIndex?(this.leftPointIndex=1,this.correctEdgePoint(s,i,this.connector.beginItem,this.connector.beginConnectionPointIndex)):void 0===this.leftPointIndex&&this.iterateRenderPoints(n,this.leftRenderPointIndex,!0,function(e){-1!==e.pointIndex&&(t.leftPointIndex=e.pointIndex)},function(){return void 0!==t.leftPointIndex}),c.ModelUtils.addConnectorPoint(this.history,this.connector.key,this.leftPointIndex,s),void 0!==this.rightPointIndex&&this.rightPointIndex++}if(this.shouldCreatePoint(!1)){n=this.connector.getRenderPoints(!0);var a=new o.Point(i.x,i.y);this.rightPointIndex===this.connector.points.length-1?(this.correctEdgePoint(a,r,this.connector.endItem,this.connector.endConnectionPointIndex),this.rightPointIndex--):void 0===this.rightPointIndex&&this.iterateRenderPoints(n,this.rightRenderPointIndex,!1,function(e){-1!==e.pointIndex&&(t.rightPointIndex=e.pointIndex)},function(){return t.rightPointIndex===t.leftPointIndex}),this.rightPointIndex++,c.ModelUtils.addConnectorPoint(this.history,this.connector.key,this.rightPointIndex,a)}}this.canCreatePoints=!1;var u=this.getSnappedPoint(e,e.modelPoint);c.ModelUtils.moveConnectorRightAnglePoints(this.history,this.connector,this.leftPointIndex,this.rightPointIndex,this.isHorizontal?void 0:u.x,this.isHorizontal?u.y:void 0),this.handler.tryUpdateModelSize()},t.prototype.onFinishWithChanges=function(){c.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),c.ModelUtils.fixConnectorBeginEndConnectionIndex(this.history,this.connector),this.handler.tryUpdateModelSize()},t.prototype.correctEdgePoint=function(e,t,n,r){var i=0;if(n){var o=n.getConnectionPointSideByIndex(r),c=n.rectangle;switch(i=s.Connector.minOffset,o){case a.ConnectionPointSide.South:i+=c.bottom-e.y;break;case a.ConnectionPointSide.North:i+=e.y-c.y;break;case a.ConnectionPointSide.East:i+=c.right-e.x;break;case a.ConnectionPointSide.West:i+=e.x-c.x}}this.isHorizontal?e.x>t.x?e.x-=Math.min(i,e.x-t.x):e.x+=Math.min(i,t.x-e.x):e.y>t.y?e.y-=Math.min(i,e.y-t.y):e.y+=Math.min(i,t.y-e.y)},t.prototype.getDraggingElementKeys=function(){return[this.connector.key]},t}(u.MouseHandlerDraggingState);t.MouseHandlerMoveConnectorOrthogonalSideState=h},4402:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerMoveConnectorPointState=void 0;var o=n(8900),s=n(7060),a=n(7959),c=n(4867),u=n(4612),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.onMouseDown=function(t){this.connector=this.model.findConnector(t.source.key),this.pointIndex=parseInt(t.source.value),0===this.pointIndex?this.pointPosition=a.ConnectorPosition.Begin:this.pointIndex===this.connector.points.length-1&&(this.pointPosition=a.ConnectorPosition.End),this.handler.addInteractingItem(this.connector),e.prototype.onMouseDown.call(this,t)},t.prototype.onApplyChanges=function(t){this.connector.properties.lineOption===u.ConnectorLineOption.Orthogonal&&0!==this.pointIndex&&this.pointIndex!==this.connector.points.length-1||e.prototype.onApplyChanges.call(this,t)},t.prototype.onFinishWithChanges=function(){e.prototype.onFinishWithChanges.call(this),c.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),this.handler.tryUpdateModelSize()},t.prototype.getSnappedPoint=function(e,t){var n=this.connector.points,r=this.pointIndex;if(0<r&&r<n.length-1){var i=(n[r+1].y-n[r-1].y)/(n[r+1].x-n[r-1].x),s=t.x,a=n[r+1].y-(n[r+1].x-s)*i;return this.handler.getSnappedPointOnDragPoint(e,t,new o.Point(s,a))}return this.handler.getSnappedPointOnDragPoint(e,t)},t}(s.MouseHandlerMoveConnectorPointStateBase);t.MouseHandlerMoveConnectorPointState=l},7060:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerMoveConnectorPointStateBase=void 0;var o=n(7959),s=n(6031),a=n(8816),c=n(8930),u=n(3477),l=n(4867),h=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.model=r,o.visualizerManager=i,o}return i(t,e),t.prototype.finish=function(){this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),e.prototype.finish.call(this)},t.prototype.onMouseDown=function(t){e.prototype.onMouseDown.call(this,t),this.connector&&this.handler.addInteractingItem(this.connector)},t.prototype.onMouseMove=function(t){if(e.prototype.onMouseMove.call(this,t),this.allowAttachToObjects(t,!1,!1)){if(this.connector){var n=this.connector.getExtremeItem(this.pointPosition);this.visualizerManager.setConnectionTarget(n,t.source.type);var r=this.connector.getExtremeConnectionPointIndex(this.pointPosition);(n||-1===this.oppositeConnectionPointIndex)&&this.allowAttachToObjects(t,!0,!1)||(n=this.model.findItem(t.source.key)),this.visualizerManager.setConnectionPoints(n,t.source.type,r,!0)}}else this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints()},t.prototype.onApplyChanges=function(e){var t=this.getSnappedPoint(e,e.modelPoint);if(void 0!==this.pointPosition){void 0===this.oppositePointPosition&&(this.oppositePointPosition=this.getOppositePointPosition(),this.oppositeItem=this.connector.getExtremeItem(this.oppositePointPosition),this.oppositeConnectionPointIndex=this.connector.getExtremeConnectionPointIndex(this.oppositePointPosition)),this.targetItem=this.model.findItem(e.source.key);var n=this.allowAttachToObjects(e,!0,!0)?this.targetItem:void 0,r=-1;e.source.type===s.MouseEventElementType.ShapeConnectionPoint&&(r=parseInt(e.source.value)),!n||e.source.type!==s.MouseEventElementType.Shape&&e.source.type!==s.MouseEventElementType.ShapeConnectionPoint||this.connector.getExtremeItem(this.oppositePointPosition)===n&&(-1===r||-1===this.oppositeConnectionPointIndex||r===this.oppositeConnectionPointIndex)?this.connector.getExtremeItem(this.pointPosition)&&(this.history.addAndRedo(new c.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(this.oppositeConnectionPointIndex)):(this.connector.getExtremeItem(this.pointPosition)===n&&this.connector.getExtremeConnectionPointIndex(this.pointPosition)===r||(this.connector.getExtremeItem(this.pointPosition)&&this.history.addAndRedo(new c.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.history.addAndRedo(new u.AddConnectionHistoryItem(this.connector,n,r,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(r)),t=n.getConnectionPointPosition(r,this.connector.points[this.pointIndex+(this.pointPosition===o.ConnectorPosition.End?-1:1)]),this.visualizerManager.setConnectionPointIndex(r))}l.ModelUtils.moveConnectorPoint(this.history,this.connector,this.pointIndex,t),l.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,this.connector),this.handler.tryUpdateModelSize()},t.prototype.updateOppositeItemConnectionPointIndex=function(e){var t=-1===e?-1:this.oppositeConnectionPointIndex;t!==this.connector.getExtremeConnectionPointIndex(this.oppositePointPosition)&&(this.history.addAndRedo(new c.DeleteConnectionHistoryItem(this.connector,this.oppositePointPosition)),this.history.addAndRedo(new u.AddConnectionHistoryItem(this.connector,this.oppositeItem,t,this.oppositePointPosition)))},t.prototype.onFinishWithChanges=function(){l.ModelUtils.updateConnectorContainer(this.history,this.model,this.connector),l.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),this.handler.tryUpdateModelSize()},t.prototype.getDraggingElementKeys=function(){return this.connector?[this.connector.key]:[]},t.prototype.getOppositePointPosition=function(){return this.pointPosition===o.ConnectorPosition.Begin?o.ConnectorPosition.End:o.ConnectorPosition.Begin},t.prototype.allowAttachToObjects=function(e,t,n){if(this.handler.canMultipleSelection(e))return!1;var r=this.connector;if(r&&e.source.type===s.MouseEventElementType.Shape){var i=this.model.findItem(e.source.key);if(t&&this.model.findItemContainerCore(r,function(e){return e===i}))return!1;if(t&&this.oppositeItem&&this.model.findItemContainerCore(this.oppositeItem,function(e){return e===i}))return!1;if(n&&this.oppositeItem===i&&-1===this.oppositeConnectionPointIndex)return!1}return!0},t.prototype.onConnectionPointsShow=function(e,t){var n=this;if(this.connector&&void 0!==this.pointPosition&&(this.connector.endItem&&this.connector.endItem.key===e||this.connector.beginItem&&this.connector.beginItem.key===e)){var r=this.connector.beginItem&&this.connector.beginItem.key===e?o.ConnectorPosition.Begin:o.ConnectorPosition.End;t.forEach(function(e,t){e.allowed=n.handler.canPerformChangeConnectionOnUpdateUI(n.connector,{item:n.connector.getExtremeItem(r),position:r,connectionPointIndex:t})})}},t.prototype.onConnectionTargetShow=function(e,t){if(this.connector&&void 0!==this.pointPosition&&(this.connector.endItem&&this.connector.endItem.key===e||this.connector.beginItem&&this.connector.beginItem.key===e)){var n=this.connector.beginItem&&this.connector.beginItem.key===e?o.ConnectorPosition.Begin:o.ConnectorPosition.End;t.allowed=this.handler.canPerformChangeConnectionOnUpdateUI(this.connector,{item:this.connector.getExtremeItem(n),position:n,connectionPointIndex:-1})}},t}(a.MouseHandlerDraggingState);t.MouseHandlerMoveConnectorPointStateBase=h},481:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerMoveConnectorSideState=void 0;var o=n(8816),s=n(4867),a=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.model=r,i}return i(t,e),t.prototype.onMouseDown=function(t){this.startPoint=t.modelPoint,this.connectorKey=t.source.key,this.pointIndex=parseInt(t.source.value)+1,e.prototype.onMouseDown.call(this,t)},t.prototype.onApplyChanges=function(e){var t=this.getSnappedPoint(e,e.modelPoint),n=this.model.findConnector(this.connectorKey);this.pointCreated?s.ModelUtils.moveConnectorPoint(this.history,n,this.pointIndex,t):(this.handler.addInteractingItem(n),s.ModelUtils.addConnectorPoint(this.history,this.connectorKey,this.pointIndex,t.clone()),this.pointCreated=!0),this.handler.tryUpdateModelSize()},t.prototype.onFinishWithChanges=function(){var e=this.model.findConnector(this.connectorKey);s.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,e),s.ModelUtils.fixConnectorBeginEndConnectionIndex(this.history,e),this.handler.tryUpdateModelSize()},t.prototype.getDraggingElementKeys=function(){return[this.connectorKey]},t}(o.MouseHandlerDraggingState);t.MouseHandlerMoveConnectorSideState=a},5168:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerMoveConnectorState=void 0;var o=n(4867),s=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r,i,o)||this;return s.model=r,s.selection=i,s.visualizerManager=o,s}return i(t,e),Object.defineProperty(t.prototype,"areValidDraggingShapes",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areValidDraggingConnectors",{get:function(){var e=this;return this.shouldClone?this.dragHelper.draggingShapes.length>0||this.dragHelper.draggingConnectors.length>0:!!this.dragHelper.draggingConnectors.length&&(this.dragHelper.draggingShapes.length?o.ModelUtils.canMoveConnector(this.dragHelper.selectedItems,this.dragHelper.draggingConnectors[this.dragHelper.draggingConnectorsIndexByKey[this.handler.mouseDownEvent.source.key]].connector):!this.dragHelper.draggingConnectors.some(function(t){return!o.ModelUtils.canMoveConnector(e.dragHelper.selectedItems,t.connector)}))},enumerable:!1,configurable:!0}),t}(n(1717).MouseHandlerDragDiagramItemStateBase);t.MouseHandlerMoveConnectorState=s},5391:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerMoveConnectorTextState=void 0;var o=n(8816),s=n(45),a=n(5144),c=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.model=r,i}return i(t,e),t.prototype.onMouseDown=function(t){this.connector=this.model.findConnector(t.source.key),this.position=parseFloat(t.source.value),this.text=this.connector.getText(this.position),this.savedText="",e.prototype.onMouseDown.call(this,t)},t.prototype.onApplyChanges=function(e){var t=this.connector.getTextPositionByPoint(e.modelPoint);if(t!==this.position){var n=this.connector.getText(t);""!==n&&n!==this.text&&(this.history.addAndRedo(new a.ChangeConnectorTextHistoryItem(this.connector,t,"")),this.savedText=n),this.history.addAndRedo(new s.ChangeConnectorTextPositionHistoryItem(this.connector,this.position,t)),""!==this.savedText&&this.savedText!==n&&(this.history.addAndRedo(new a.ChangeConnectorTextHistoryItem(this.connector,this.position,this.savedText)),this.savedText=""),this.position=t}},t.prototype.getDraggingElementKeys=function(){return[this.connector.key]},t}(o.MouseHandlerDraggingState);t.MouseHandlerMoveConnectorTextState=c},9979:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerMoveShapeState=void 0;var o=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r,i,o)||this;return s.model=r,s.selection=i,s.visualizerManager=o,s}return i(t,e),Object.defineProperty(t.prototype,"areValidDraggingShapes",{get:function(){return this.shouldClone||this.dragHelper.draggingShapes.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areValidDraggingConnectors",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(n(1717).MouseHandlerDragDiagramItemStateBase);t.MouseHandlerMoveShapeState=o},5609:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerResizeShapeState=void 0;var o=n(6353),s=n(8900),a=n(6031),c=n(8816),u=n(4867),l=n(6794),h=n(6879),d=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n)||this;return a.model=r,a.selection=i,a.visualizerManager=o,a.settings=s,a.startScrollLeft=0,a.startScrollTop=0,a.rotation=0,a}return i(t,e),t.prototype.finish=function(){this.visualizerManager.resetResizeInfo(),this.visualizerManager.resetExtensionLines(),e.prototype.finish.call(this)},t.prototype.onMouseDown=function(t){var n=this,r=parseInt(t.source.value);this.resizeEventSource=r,this.startPoint=t.modelPoint,this.lockH=r===a.ResizeEventSource.ResizeBox_S||r===a.ResizeEventSource.ResizeBox_N,this.lockV=r===a.ResizeEventSource.ResizeBox_E||r===a.ResizeEventSource.ResizeBox_W,this.sideH=r===a.ResizeEventSource.ResizeBox_E||r===a.ResizeEventSource.ResizeBox_NE||r===a.ResizeEventSource.ResizeBox_SE,this.sideV=r===a.ResizeEventSource.ResizeBox_SE||r===a.ResizeEventSource.ResizeBox_S||r===a.ResizeEventSource.ResizeBox_SW,this.shapes=this.selection.getSelectedShapes(),0!==this.shapes.length?(this.shapes.forEach(function(e){n.handler.addInteractingItem(e,h.DiagramModelOperation.ResizeShape),n.handler.addInteractingItem(e,h.DiagramModelOperation.MoveShape)}),this.connectors=this.selection.getSelectedConnectors(),this.startRectangle=u.ModelUtils.createRectangle(this.shapes),this.startShapeSizes=this.shapes.map(function(e){return e.size.clone()}),this.startShapePositions=this.shapes.map(function(e){return e.position.clone()}),this.startConnectorPoints=this.connectors.map(function(e){return e.points.map(function(e){return e.clone()})}),e.prototype.onMouseDown.call(this,t)):this.handler.switchToDefaultState()},t.prototype.onMouseMove=function(t){e.prototype.onMouseMove.call(this,t);var n=this.selection.getSelectedShapes();this.visualizerManager.setExtensionLines(n)},t.prototype.onApplyChanges=function(e){var t=this,n=u.ModelUtils.createRectangle(this.shapes),r=1===this.shapes.length?this.shapes[0].getMinWidth(this.settings.shapeMinWidth):l.ShapeMinDimension,i=1===this.shapes.length?this.shapes[0].getMinHeight(this.settings.shapeMinHeight):l.ShapeMinDimension,a=1===this.shapes.length?this.shapes[0].getMaxWidth(this.settings.shapeMaxWidth):void 0,c=1===this.shapes.length?this.shapes[0].getMaxHeight(this.settings.shapeMaxHeight):void 0,h=this.getSize(e,n.createPosition(),this.startRectangle.createSize(),r,i,a,c,this.handler.lockAspectRatioOnShapeResize(e)),d=this.getPosition(e,h,this.startRectangle.createSize(),this.startRectangle.createPosition()),f=h.width/this.startRectangle.width,p=h.height/this.startRectangle.height;this.shapes.forEach(function(e,n){var r=t.startShapeSizes[n].width*(e.allowResizeHorizontally?f:1);r=t.getNormalizedSize(r,e.getMinWidth(t.settings.shapeMinWidth),e.getMaxWidth(t.settings.shapeMaxWidth));var i=t.startShapeSizes[n].height*(e.allowResizeVertically?p:1);i=t.getNormalizedSize(i,e.getMinHeight(t.settings.shapeMinHeight),e.getMaxHeight(t.settings.shapeMaxHeight));var a=e.allowResizeHorizontally?d.x+(t.startShapePositions[n].x-t.startRectangle.x)*f:t.startShapePositions[n].x,c=e.allowResizeVertically?d.y+(t.startShapePositions[n].y-t.startRectangle.y)*p:t.startShapePositions[n].y;u.ModelUtils.setShapeSize(t.history,t.model,e,new s.Point(a,c),new o.Size(r,i))}),this.connectors.forEach(function(e,n){for(var r=e.beginItem?1:0,i=e.endItem?e.points.length-2:e.points.length-1,o=r;o<=i;o++){var a=new s.Point(d.x+(t.startConnectorPoints[n][o].x-t.startRectangle.x)*f,d.y+(t.startConnectorPoints[n][o].y-t.startRectangle.y)*p);u.ModelUtils.moveConnectorPoint(t.history,e,o,a)}}),this.selection.getSelectedShapes(!1,!0).forEach(function(e){u.ModelUtils.updateShapeAttachedConnectors(t.history,t.model,e)}),this.tryUpdateModelSize(),this.visualizerManager.setResizeInfo(this.shapes)},t.prototype.tryUpdateModelSize=function(){var e=this;this.handler.tryUpdateModelSize(function(t,n){e.startShapePositions.forEach(function(e){e.x+=t,e.y+=n}),e.startConnectorPoints.forEach(function(e){e.forEach(function(e){e.x+=t,e.y+=n})}),e.startRectangle.x+=t,e.startRectangle.y+=n,e.startPoint.x+=t,e.startPoint.y+=n})},t.prototype.getDraggingElementKeys=function(){return this.shapes.map(function(e){return e.key})},t.prototype.getNormalizedSize=function(e,t,n){return void 0!==t&&(e=Math.max(e,t)),void 0!==n&&(e=Math.min(e,n)),e},t.prototype.getSize=function(e,t,n,r,i,s,a,c){var u,l,h=e.modelPoint.x-(this.startScrollLeft-e.scrollX)-this.startPoint.x,d=e.modelPoint.y-(this.startScrollTop-e.scrollY)-this.startPoint.y,f=h*Math.cos(this.rotation)- -d*Math.sin(this.rotation),p=-(h*Math.sin(this.rotation)+-d*Math.cos(this.rotation));return p=!this.sideV&&p>0?Math.min(n.height+1,p):p,f=!this.sideH&&f>0?Math.min(n.width+1,f):f,this.lockH||this.lockV||!c?(f=this.lockH?0:f,p=this.lockV?0:p,u=this.getNormalizedSize(this.sideH?n.width+f:n.width-f,r,s),l=this.getNormalizedSize(this.sideV?n.height+p:n.height-p,i,a)):Math.abs(f)>Math.abs(p)?(u=this.getNormalizedSize(this.sideH?n.width+f:n.width-f,r,s),l=n.height*(u/n.width)):(l=this.getNormalizedSize(this.sideV?n.height+p:n.height-p,i,a),u=n.width*(l/n.height)),this.lockH||(u=this.getSnappedPosition(e,t.x+u,!0)-t.x),this.lockV||(l=this.getSnappedPosition(e,t.y+l,!1)-t.y),new o.Size(u,l)},t.prototype.getPosition=function(e,t,n,r){var i=r.x,o=r.y;if(this.resizeEventSource===a.ResizeEventSource.ResizeBox_N||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NE||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NW){o+=n.height-t.height;var c=this.getSnappedPosition(e,o,!1);t.height+=o-c,o=c}if(this.resizeEventSource===a.ResizeEventSource.ResizeBox_W||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NW||this.resizeEventSource===a.ResizeEventSource.ResizeBox_SW){i+=n.width-t.width;var u=this.getSnappedPosition(e,i,!0);t.width+=i-u,i=u}return new s.Point(i,o)},t.prototype.getSnappedPosition=function(e,t,n){return this.handler.getSnappedPositionOnResizeShape(e,t,n)},t}(c.MouseHandlerDraggingState);t.MouseHandlerResizeShapeState=d},9582:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerScrollingState=void 0;var o=n(5434),s=n(6031),a=n(8900),c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.view=n,i.selection=r,i.lastOffset=new a.Point(0,0),i}return i(t,e),t.prototype.onKeyUp=function(e){this.handler.onFinishScrollPageByKeyboard(e)},t.prototype.onMouseDown=function(e){e.preventDefault=!0,this.startPoint=this.getPointByEvent(e)},t.prototype.onMouseMove=function(e){if(e.button===s.MouseButton.Left){var t=this.currentPoint||this.startPoint;e.preventDefault=!0;var n=this.getPointByEvent(e),r=this.view.scrollBy(new a.Point(n.x-t.x,n.y-t.y));this.lastOffset=this.lastOffset.clone().offset(r.x,r.y),this.currentPoint=n}else this.handler.onFinishScrollPageByMouse(e)},t.prototype.onMouseUp=function(e){e.button===s.MouseButton.Left&&this.handler.onFinishScrollPageByMouse(e),this.handler.switchToDefaultState()},t.prototype.cancelChanges=function(){this.currentPoint&&this.view.scrollBy(this.lastOffset.clone().multiply(-1,-1))},t.prototype.finish=function(){this.currentPoint&&this.startPoint&&!this.currentPoint.equals(this.startPoint)||this.selection.set([]),e.prototype.finish.call(this)},t.prototype.getPointByEvent=function(e){return e.offsetPoint},t}(o.MouseHandlerCancellableState);t.MouseHandlerScrollingState=c},4869:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerSelectionState=void 0;var o=n(6031),s=n(8011),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selection=n,i.visualizerManager=r,i}return i(t,e),t.prototype.finish=function(){this.handler.raiseDragEnd([]),this.visualizerManager.resetSelectionRectangle(),e.prototype.finish.call(this)},t.prototype.cancelChanges=function(){},t.prototype.onMouseDown=function(e){this.startPoint=e.modelPoint,this.handler.raiseDragStart([])},t.prototype.onMouseMove=function(e){e.button!==o.MouseButton.Left?this.handler.switchToDefaultState():(this.rectangle=s.Rectangle.fromPoints(this.startPoint,e.modelPoint),this.visualizerManager.setSelectionRectangle(this.rectangle))},t.prototype.onMouseUp=function(e){void 0!==this.rectangle?this.selection.selectRect(this.rectangle):this.selection.set([]),this.rectangle=void 0,this.handler.switchToDefaultState()},t}(n(5434).MouseHandlerCancellableState);t.MouseHandlerSelectionState=a},5434:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerCancellableState=t.MouseHandlerStateBase=void 0;var o=n(2153),s=function(){function e(e){this.handler=e}return e.prototype.start=function(){},e.prototype.finish=function(){},e.prototype.onMouseClick=function(e){},e.prototype.onMouseDblClick=function(e){this.handler.switchToDefaultState()},e.prototype.onMouseDown=function(e){},e.prototype.onMouseUp=function(e){},e.prototype.onMouseMove=function(e){},e.prototype.onMouseWheel=function(e){return!1},e.prototype.onDragStart=function(e){},e.prototype.onDragEnd=function(e){},e.prototype.onShortcut=function(e){return!1},e.prototype.onKeyDown=function(e){},e.prototype.onKeyUp=function(e){},e.prototype.onConnectionPointsShow=function(e,t){},e.prototype.onConnectionTargetShow=function(e,t){},e}();t.MouseHandlerStateBase=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.onShortcut=function(e){return e===o.KeyCode.Esc&&(this.cancelChanges(),this.handler.switchToDefaultState(),!0)},t}(s);t.MouseHandlerCancellableState=a},5752:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerToggleShapeExpandedState=void 0;var o=n(5434),s=n(442),a=n(4867),c=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.history=n,o.model=r,o.selection=i,o}return i(t,e),t.prototype.onMouseUp=function(e){var t=this.model.findShape(e.source.key);t&&!t.isLocked&&(this.history.beginTransaction(),this.history.addAndRedo(new s.ToggleShapeExpandedHistoryItem(t)),a.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,t),a.ModelUtils.updateContainerConnectorsAttachedPoints(this.history,this.model,t),a.ModelUtils.updateSelection(this.history,this.selection),this.handler.tryUpdateModelSize(),this.history.endTransaction(),this.handler.raiseClick([t.key])),this.handler.switchToDefaultState()},t}(o.MouseHandlerStateBase);t.MouseHandlerToggleShapeExpandedState=c},6918:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerToolboxDraggingState=t.MouseHandlerBeforeToolboxDraggingState=void 0;var o=n(6031),s=n(8900),a=n(4145),c=n(4297),u=n(8816),l=n(1704),h=n(4867),d=n(5434),f=n(6879),p=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.history=n,a.model=r,a.selection=i,a.visualizerManager=o,a.shapeDescriptionManager=s,a.isModelEmpty=0===r.items.length,a}return i(t,e),t.prototype.cancelChanges=function(){this.tryRemoveTimer()},t.prototype.onDragStart=function(e){this.dragging=e},t.prototype.onDragEnd=function(e){this.cancelChanges(),this.handler.switchToDefaultState()},t.prototype.onMouseMove=function(e){var t=this;e.source.type>o.MouseEventElementType.Background?(this.tryRemoveTimer(),this.switchToDraggingState(e,!1)):e.source.type!==o.MouseEventElementType.Background||this.isModelEmpty?void 0!==this.nonPageAreaTimer&&this.tryRemoveTimer():(this.savedEvt=e,void 0===this.nonPageAreaTimer&&(this.nonPageAreaTimer=setTimeout(function(){return t.switchToDraggingState(t.savedEvt,!0)},500)))},t.prototype.switchToDraggingState=function(e,t){this.handler.switchState(new A(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager,t)),this.handler.state.onDragStart(this.dragging),this.handler.state.onMouseMove(e)},t.prototype.tryRemoveTimer=function(){void 0!==this.nonPageAreaTimer&&(clearTimeout(this.nonPageAreaTimer),delete this.nonPageAreaTimer)},t.prototype.finish=function(){this.tryRemoveTimer()},t}(d.MouseHandlerCancellableState);t.MouseHandlerBeforeToolboxDraggingState=p;var A=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,t,n)||this;return c.model=r,c.selection=i,c.visualizerManager=o,c.shapeDescriptionManager=s,a||(c.updatePageSizeTimer=setTimeout(function(){c.processAndRemoveUpdatePageSizeTimer()},300)),c}return i(t,e),t.prototype.cancelChanges=function(){this.tryRemoveUpdatePageSizeTimer(),e.prototype.cancelChanges.call(this)},t.prototype.tryRemoveUpdatePageSizeTimer=function(){void 0!==this.updatePageSizeTimer&&(clearTimeout(this.updatePageSizeTimer),delete this.updatePageSizeTimer)},t.prototype.processAndRemoveUpdatePageSizeTimer=function(){void 0!==this.updatePageSizeTimer&&(this.handler.tryUpdateModelSize(),delete this.updatePageSizeTimer)},t.prototype.onMouseMove=function(t){e.prototype.onMouseMove.call(this,t);var n=this.model.findShape(this.shapeKey);if(n){this.visualizerManager.setExtensionLines([n]);var r=h.ModelUtils.findContainerByEventKey(this.model,this.selection,t.source.key);r&&this.allowInsertToContainer(t,n,r)?this.visualizerManager.setContainerTarget(r,t.source.type):this.visualizerManager.resetContainerTarget()}},t.prototype.getDraggingElementKeys=function(){return void 0===this.shapeKey?[]:[this.shapeKey]},t.prototype.onApplyChanges=function(e){var t=this;if(e.source.type===o.MouseEventElementType.Undefined){if(this.dragging.onCaptured(!1),void 0!==this.shapeKey&&!this.deleteHistoryItem){var n=this.model.findShape(this.shapeKey);h.ModelUtils.detachConnectors(this.history,n),h.ModelUtils.removeFromContainer(this.history,this.model,n),this.deleteHistoryItem=new l.DeleteShapeHistoryItem(this.shapeKey,!0),this.history.addAndRedo(this.deleteHistoryItem)}}else{if(this.dragging.onCaptured(!0),void 0===this.shapeKey){this.startPoint=e.modelPoint,this.shapeKey=this.insertToolboxItem(e);var r=this.model.findShape(this.shapeKey);r&&this.handler.addInteractingItem(r,f.DiagramModelOperation.AddShape)}this.deleteHistoryItem&&(this.history.undoTransactionTo(this.deleteHistoryItem),delete this.deleteHistoryItem);var i=this.getPosition(e,this.startShapePosition);n=this.model.findShape(this.shapeKey),h.ModelUtils.setShapePosition(this.history,this.model,n,i),h.ModelUtils.updateMovingShapeConnections(this.history,n,this.connectorsWithoutBeginItemInfo,this.connectorsWithoutEndItemInfo,function(){t.visualizerManager.resetConnectionTarget(),t.visualizerManager.resetConnectionPoints()},function(e,n){t.visualizerManager.setConnectionTarget(e,o.MouseEventElementType.Shape),t.visualizerManager.setConnectionPoints(e,o.MouseEventElementType.Shape,n,!0)},function(e){return t.handler.addInteractingItem(e)}),h.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,n);var s=h.ModelUtils.findContainerByEventKey(this.model,this.selection,e.source.key);n&&s&&this.allowInsertToContainer(e,n,s)?h.ModelUtils.insertToContainer(this.history,this.model,n,s):h.ModelUtils.removeFromContainer(this.history,this.model,n),void 0===this.updatePageSizeTimer&&this.handler.tryUpdateModelSize(function(e,n){t.connectorsWithoutBeginItemInfo.forEach(function(t){t.point.x+=e,t.point.y+=n}),t.connectorsWithoutEndItemInfo.forEach(function(t){t.point.x+=e,t.point.y+=n})})}},t.prototype.onFinishWithChanges=function(){this.deleteHistoryItem||this.history.addAndRedo(new c.SetSelectionHistoryItem(this.selection,[this.shapeKey]))},t.prototype.onDragStart=function(e){this.dragging=e,this.connectorsWithoutBeginItemInfo=h.ModelUtils.getConnectorsWithoutBeginItemInfo(this.model),this.connectorsWithoutEndItemInfo=h.ModelUtils.getConnectorsWithoutEndItemInfo(this.model)},t.prototype.onDragEnd=function(e){void 0!==this.shapeKey&&e.source.type===o.MouseEventElementType.Undefined&&this.cancelChanges(),this.handler.switchToDefaultState()},t.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),this.processAndRemoveUpdatePageSizeTimer(),this.dragging.onFinishDragging(),e.prototype.finish.call(this)},t.prototype.insertToolboxItem=function(e){var t=this.shapeDescriptionManager.get(this.dragging.data);this.startShapePosition=this.getSnappedPoint(e,new s.Point(e.modelPoint.x-t.defaultSize.width/2,e.modelPoint.y-t.defaultSize.height/2));var n=new a.AddShapeHistoryItem(t,this.startShapePosition);return this.history.addAndRedo(n),h.ModelUtils.updateNewShapeProperties(this.history,this.selection,n.shapeKey),n.shapeKey},t.prototype.allowInsertToContainer=function(e,t,n){return!this.handler.canMultipleSelection(e)&&n&&n.expanded&&h.ModelUtils.canInsertToContainer(this.model,t,n)},t.prototype.getPosition=function(e,t){return this.getSnappedPoint(e,new s.Point(t.x+e.modelPoint.x-this.startPoint.x,t.y+e.modelPoint.y-this.startPoint.y))},t}(u.MouseHandlerDraggingState);t.MouseHandlerToolboxDraggingState=A},8461:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerZoomOnPinchState=void 0;var o=n(240),s=n(8900),a=n(9582),c=n(5596),u=function(e){function t(t,n,r,i){var o=e.call(this,t,i,n)||this;return o.selection=n,o.settings=r,o.view=i,o}return i(t,e),t.prototype.onMouseDown=function(t){e.prototype.onMouseDown.call(this,t),t.touches.length>1&&(this.startDistance=this.getTouchDistance(t),this.startZoomLevel=this.settings.zoomLevel,this.prevDistance=this.startDistance)},t.prototype.onMouseMove=function(t){if(t.touches.length>1){var n=this.getTouchDistance(t);Math.abs(this.prevDistance-n)>1&&(this.settings.zoomLevel=this.startZoomLevel*(n/this.startDistance),this.view.scrollTo(this.getMiddleLayoutPoint(t),this.getMiddleAbsPoint(t)),this.view.normalize(),this.prevDistance=n)}e.prototype.onMouseMove.call(this,t)},t.prototype.onMouseUp=function(e){0===e.touches.length&&setTimeout(function(){this.handler.switchToDefaultState()}.bind(this),1)},t.prototype.start=function(){e.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=o.AutoZoomMode.Disabled},t.prototype.getTouchDistance=function(e){var t=new s.Point(e.touches[0].offsetPoint.x,e.touches[0].offsetPoint.y),n=new s.Point(e.touches[1].offsetPoint.x,e.touches[1].offsetPoint.y);return c.Metrics.euclideanDistance(t,n)},t.prototype.getPointByEvent=function(e){return this.getMiddleAbsPoint(e)},t.prototype.getMiddleAbsPoint=function(e){return e.touches.length>1?t.getMiddlePointByEvent(e,function(e){return e.offsetPoint}):e.offsetPoint},t.prototype.getMiddleLayoutPoint=function(e){return e.touches.length>1?t.getMiddlePointByEvent(e,function(e){return e.modelPoint}):e.modelPoint},t.getMiddlePointByEvent=function(e,t){if(e.touches.length>1)return new s.Point((t(e.touches[0]).x+t(e.touches[1]).x)/2,(t(e.touches[0]).y+t(e.touches[1]).y)/2)},t}(a.MouseHandlerScrollingState);t.MouseHandlerZoomOnPinchState=u},7189:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MouseHandlerZoomOnWheelState=void 0;var o=n(5434),s=n(6031),a=n(240),c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.settings=n,i.view=r,i}return i(t,e),t.prototype.onMouseWheel=function(e){return this.trySwitchToDefault(e)?this.handler.state.onMouseWheel(e):(this.settings.zoomLevel=this.view.getNextStepZoom(e.deltaY<0),e.source.type===s.MouseEventElementType.Background?this.view.resetScroll():(this.view.scrollTo(e.modelPoint,e.offsetPoint),this.view.normalize()),e.preventDefault=!0,!0)},t.prototype.onMouseUp=function(e){this.handler.switchToDefaultState(),this.handler.state.onMouseUp(e)},t.prototype.onMouseDown=function(e){this.handler.switchToDefaultState(),this.handler.state.onMouseDown(e)},t.prototype.onMouseMove=function(e){this.trySwitchToDefault(e)&&this.handler.state.onMouseMove(e)},t.prototype.trySwitchToDefault=function(e){return!!this.handler.canFinishZoomOnWheel(e)&&(this.handler.switchToDefaultState(),!0)},t.prototype.start=function(){e.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=a.AutoZoomMode.Disabled},t}(o.MouseHandlerStateBase);t.MouseHandlerZoomOnWheelState=c},8376:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextInputHandler=void 0;var r=n(6516),i=n(6031),o=n(2153),s=n(5503),a=n(7959),c=n(5144),u=function(){function e(e){this.control=e}return e.prototype.startTextInput=function(e,t){if(!e.isLocked&&e.enableText&&e.allowEditText&&!this.control.settings.readOnly&&this.canFinishTextEditing()){this.control.beginUpdate(),this.textInputItem=e;var n=!0;if(this.textInputItem instanceof s.Shape){var r=this.textInputItem.textEditRectangle;(n=this.control.permissionsProvider.canChangeShapeText(this.textInputItem))&&this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.text,r.createPosition(),r.createSize())}else this.textInputItem instanceof a.Connector&&(this.textInputPosition=t,(n=this.control.permissionsProvider.canChangeConnectorText(this.textInputItem,this.textInputPosition))&&this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.getText(this.textInputPosition),this.textInputItem.getTextPoint(this.textInputPosition)));n||(delete this.textInputItem,this.control.endUpdate())}},e.prototype.endTextInput=function(e){var t=this.textInputItem;delete this.textInputItem,this.control.eventManager.raiseTextInputEnd(t,e),this.control.endUpdate(),this.control.barManager.updateItemsState()},e.prototype.raiseTextInputPermissionsCheck=function(e){this.control.eventManager.raiseTextInputPermissionsCheck(this.textInputItem,e)},e.prototype.applyTextInput=function(e,t){if(this.canFinishTextEditing(e)){var n=this.textInputItem,i=this.textInputPosition;this.endTextInput(t),n instanceof s.Shape?n.text!==e&&this.control.history.addAndRedo(new r.ChangeShapeTextHistoryItem(n,e)):n instanceof a.Connector&&n.getText(i)!==e&&this.control.history.addAndRedo(new c.ChangeConnectorTextHistoryItem(n,i,e))}},e.prototype.canFinishTextEditing=function(e){var t=!0;if(this.isTextInputActive()){var n=e||this.getTextInputElementValue();this.textInputItem instanceof s.Shape?t=this.control.permissionsProvider.canApplyShapeTextChange(this.textInputItem,n):this.textInputItem instanceof a.Connector&&(t=this.control.permissionsProvider.canApplyConnectorTextChange(this.textInputItem,this.textInputPosition,n)),this.raiseTextInputPermissionsCheck(t)}return t},e.prototype.getTextInputElementValue=function(){return this.control.render?this.control.render.input.getTextInputElementValue():""},e.prototype.cancelTextInput=function(){this.raiseTextInputPermissionsCheck(!0),this.endTextInput(!0)},e.prototype.isTextInputActive=function(){return void 0!==this.textInputItem},e.prototype.processDblClick=function(e){if(e.source.type===i.MouseEventElementType.Shape){var t=this.control.model.findShape(e.source.key);this.startTextInput(t)}else if(e.source.type===i.MouseEventElementType.Connector){var n=(r=this.control.model.findConnector(e.source.key)).getTextPositionByPoint(e.modelPoint);this.startTextInput(r,n)}else if(e.source.type===i.MouseEventElementType.ConnectorText){var r=this.control.model.findConnector(e.source.key);n=parseFloat(e.source.value),this.startTextInput(r,n)}},e.prototype.onDblClick=function(e){var t=this;setTimeout(function(){t.processDblClick(e)},10)},e.prototype.onKeyDown=function(e){this.isTextInputActive()&&(13===e.keyCode&&this.hasCtrlModifier(e.modifiers)&&(e.preventDefault=!0,this.applyTextInput(e.inputText,!0)),27===e.keyCode&&this.cancelTextInput())},e.prototype.onBlur=function(e){this.isTextInputActive()&&this.applyTextInput(e.inputText)},e.prototype.onFocus=function(e){},e.prototype.hasCtrlModifier=function(e){return(e&o.ModifierKey.Ctrl)>0},e}();t.TextInputHandler=u},3541:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPointsVisualizer=t.ConnectionPointInfo=void 0;var n=function(e,t){this.point=e,this.side=t,this.allowed=!0};t.ConnectionPointInfo=n;var r=function(){function e(e){this.dispatcher=e}return e.prototype.getKey=function(){return this.key},e.prototype.setPoints=function(e,t,n,r){this.key===e&&this.pointIndex===n||(this.key=e,this.points=t,this.pointIndex=n,this.outsideRectangle=r,this.raiseShow())},e.prototype.setPointIndex=function(e){0<=e&&e<this.points.length&&this.pointIndex!==e&&(this.pointIndex=e,this.raiseShow())},e.prototype.update=function(){this.raiseShow()},e.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.points=[],this.pointIndex=-1,this.outsideRectangle=void 0,this.raiseHide())},e.prototype.raiseShow=function(){var e=this;this.dispatcher.raise1(function(t){return t.notifyConnectionPointsShow(e.key,e.points,e.pointIndex,e.outsideRectangle)})},e.prototype.raiseHide=function(){this.dispatcher.raise1(function(e){return e.notifyConnectionPointsHide()})},e}();t.ConnectionPointsVisualizer=r},3702:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionTargetVisualizer=t.ConnectionTargetInfo=void 0;var o=n(3785),s=function(e,t){this.rect=e,this.strokeWidth=t,this.allowed=!0};t.ConnectionTargetInfo=s;var a=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.raiseShow=function(){var e=this,t=new s(this.targetRect,this.targetStrokeWidth);this.dispatcher.raise1(function(n){return n.notifyConnectionTargetShow(e.key,t)})},t.prototype.raiseHide=function(){this.dispatcher.raise1(function(e){return e.notifyConnectionTargetHide()})},t}(o.TargetVisualizerBase);t.ConnectionTargetVisualizer=a},9198:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerTargetVisualizer=t.ContainerTargetInfo=void 0;var o=n(3785),s=function(e,t){this.rect=e,this.strokeWidth=t};t.ContainerTargetInfo=s;var a=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.raiseShow=function(){var e=this,t=new s(this.targetRect,this.targetStrokeWidth);this.dispatcher.raise1(function(n){return n.notifyContainerTargetShow(e.key,t)})},t.prototype.raiseHide=function(){this.dispatcher.raise1(function(e){return e.notifyContainerTargetHide()})},t}(o.TargetVisualizerBase);t.ContainerTargetVisualizer=a},371:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionLinesVisualizer=t.ExtensionLine=t.ExtensionLineType=void 0,function(e){e[e.LeftToLeftAbove=0]="LeftToLeftAbove",e[e.LeftToLeftBelow=1]="LeftToLeftBelow",e[e.RightToRightAbove=2]="RightToRightAbove",e[e.RightToRightBelow=3]="RightToRightBelow",e[e.LeftToRightAbove=4]="LeftToRightAbove",e[e.LeftToRightBelow=5]="LeftToRightBelow",e[e.RightToLeftAbove=6]="RightToLeftAbove",e[e.RightToLeftBelow=7]="RightToLeftBelow",e[e.TopToTopBefore=8]="TopToTopBefore",e[e.TopToTopAfter=9]="TopToTopAfter",e[e.BottomToBottomBefore=10]="BottomToBottomBefore",e[e.BottomToBottomAfter=11]="BottomToBottomAfter",e[e.TopToBottomBefore=12]="TopToBottomBefore",e[e.TopToBottomAfter=13]="TopToBottomAfter",e[e.BottomToTopBefore=14]="BottomToTopBefore",e[e.BottomToTopAfter=15]="BottomToTopAfter",e[e.HorizontalCenterAbove=16]="HorizontalCenterAbove",e[e.HorizontalCenterBelow=17]="HorizontalCenterBelow",e[e.VerticalCenterBefore=18]="VerticalCenterBefore",e[e.VerticalCenterAfter=19]="VerticalCenterAfter",e[e.VerticalCenterToPageCenter=20]="VerticalCenterToPageCenter",e[e.HorizontalCenterToPageCenter=21]="HorizontalCenterToPageCenter",e[e.LeftToPageCenter=22]="LeftToPageCenter",e[e.RightToPageCenter=23]="RightToPageCenter",e[e.TopToPageCenter=24]="TopToPageCenter",e[e.BottomToPageCenter=25]="BottomToPageCenter"}(t.ExtensionLineType||(t.ExtensionLineType={}));var n=function(e,t,n){this.type=e,this.segment=t,this.text=n};t.ExtensionLine=n;var r=function(){function e(e){this.dispatcher=e,this.lines=[],this.lineIndexByType={}}return e.prototype.addSegment=function(e,t,r){var i=this.lineIndexByType[e];if(void 0===i){var o=new n(e,t,r),s=this.lines.push(o);this.lineIndexByType[o.type]=s-1,this.raiseShow()}else t.length<this.lines[i].segment.length&&(o=new n(e,t,r),this.lines.splice(i,1,o),this.raiseShow())},e.prototype.update=function(){this.raiseShow()},e.prototype.reset=function(){this.lines.length&&(this.lines=[],this.lineIndexByType={},this.raiseHide())},e.prototype.raiseShow=function(){var e=this;this.dispatcher.raise1(function(t){return t.notifyExtensionLinesShow(e.lines)})},e.prototype.raiseHide=function(){this.dispatcher.raise1(function(e){return e.notifyExtensionLinesHide()})},e}();t.ExtensionLinesVisualizer=r},6569:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeInfoVisualizer=void 0;var n=function(){function e(e){this.dispatcher=e}return e.prototype.set=function(e,t){this.point=e,this.text=t,this.raiseShow()},e.prototype.reset=function(){void 0!==this.point&&(this.point=void 0,this.text=void 0,this.raiseHide())},e.prototype.raiseShow=function(){var e=this;this.dispatcher.raise1(function(t){return t.notifyResizeInfoShow(e.point,e.text)})},e.prototype.raiseHide=function(){this.dispatcher.raise1(function(e){return e.notifyResizeInfoHide()})},e}();t.ResizeInfoVisualizer=n},4753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRectVisualizer=void 0;var n=function(){function e(e){this.dispatcher=e}return e.prototype.setRectangle=function(e){this.rect=e,this.raiseShow()},e.prototype.reset=function(){this.rect=void 0,this.raiseHide()},e.prototype.raiseShow=function(){var e=this;this.dispatcher.raise1(function(t){return t.notifySelectionRectShow(e.rect)})},e.prototype.raiseHide=function(){this.dispatcher.raise1(function(e){return e.notifySelectionRectHide()})},e}();t.SelectionRectVisualizer=n},3785:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TargetVisualizerBase=void 0;var n=function(){function e(e){this.dispatcher=e}return e.prototype.getKey=function(){return this.key},e.prototype.setTargetRect=function(e,t,n){this.key!==e&&(this.key=e,this.targetRect=t,this.targetStrokeWidth=n,this.raiseShow())},e.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.targetRect=void 0,this.targetStrokeWidth=0,this.raiseHide())},e}();t.TargetVisualizerBase=n},7733:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VisualizerManager=void 0;var o=n(3702),s=n(9198),a=n(371),c=n(6031),u=n(3541),l=n(5503),h=n(8675),d=n(1335),f=n(8900),p=n(4e3),A=n(4867),g=n(6569),m=n(4753),y=n(1772),v=n(6224),b=function(e){function t(t,n,r,i,c){void 0===c&&(c=i.readOnly);var l=e.call(this)||this;return l.selection=t,l.model=n,l.eventManager=r,l.settings=i,l.readOnly=c,l.onVisualizersUpdate=new h.EventDispatcher,l.connectionPointsVisualizer=new u.ConnectionPointsVisualizer(l.onVisualizersUpdate),l.connectionPointsVisualizer=new u.ConnectionPointsVisualizer(l.onVisualizersUpdate),l.connectionTargetVisualizer=new o.ConnectionTargetVisualizer(l.onVisualizersUpdate),l.containerTargetVisualizer=new s.ContainerTargetVisualizer(l.onVisualizersUpdate),l.extensionLinesVisualizer=new a.ExtensionLinesVisualizer(l.onVisualizersUpdate),l.resizeInfoVisualizer=new g.ResizeInfoVisualizer(l.onVisualizersUpdate),l.selectionRectangleVisualizer=new m.SelectionRectVisualizer(l.onVisualizersUpdate),l}return i(t,e),t.prototype.initialize=function(e){this.model=e},t.prototype.onMouseDown=function(e){},t.prototype.onMouseUp=function(e){},t.prototype.onMouseEnter=function(e){},t.prototype.onMouseLeave=function(e){this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle()},t.prototype.onBlur=function(e){},t.prototype.onFocus=function(e){},t.prototype.updateConnections=function(e,t,n){var r=-1;n&&t===c.MouseEventElementType.ShapeConnectionPoint&&(r=parseInt(n));var i=e&&(!e.allowResizeHorizontally&&!e.allowResizeVertically||e.isLocked);this.setConnectionPoints(e,t,r,i)},t.prototype.setConnectionPoints=function(e,t,n,r){if(this.eventManager.isFocused())if(!e||t!==c.MouseEventElementType.Shape&&t!==c.MouseEventElementType.ShapeResizeBox&&t!==c.MouseEventElementType.ShapeConnectionPoint||void 0===e)this.connectionPointsVisualizer.reset();else{var i=e.key,o=this.selection.hasKey(i),s=e.getConnectionPoints();this.connectionPointsVisualizer.setPoints(i,s.map(function(t){return new u.ConnectionPointInfo(t,e.getConnectionPointSide(t))}),n,o&&!r&&e.rectangle)}},t.prototype.setConnectionPointIndex=function(e){this.connectionPointsVisualizer.setPointIndex(e)},t.prototype.updateConnectionPoints=function(){void 0!==this.model.findItem(this.connectionPointsVisualizer.getKey())?this.connectionPointsVisualizer.update():this.connectionPointsVisualizer.reset()},t.prototype.resetConnectionPoints=function(){this.connectionPointsVisualizer.reset()},t.prototype.setConnectionTarget=function(e,t){!e||t!==c.MouseEventElementType.Shape&&t!==c.MouseEventElementType.ShapeConnectionPoint?this.connectionTargetVisualizer.reset():this.connectionTargetVisualizer.setTargetRect(e.key,e.rectangle,e.strokeWidth)},t.prototype.resetConnectionTarget=function(){this.connectionTargetVisualizer.reset()},t.prototype.setContainerTarget=function(e,t){e&&!e.isLocked&&t===c.MouseEventElementType.Shape&&e.enableChildren?this.containerTargetVisualizer.setTargetRect(e.key,e.rectangle,e.strokeWidth):this.containerTargetVisualizer.reset()},t.prototype.resetContainerTarget=function(){this.containerTargetVisualizer.reset()},t.prototype.setExtensionLines=function(e){var t=this;if(this.eventManager.isFocused()){this.extensionLinesVisualizer.reset();var n=A.ModelUtils.createRectangle(e.filter(function(e){return e}));this.addPageExtensionLines(n),this.model.items.forEach(function(r){e.indexOf(r)>-1||r instanceof l.Shape&&t.addShapeExtensionLines(r,n)})}},t.prototype.addPageExtensionLines=function(e){for(var t=Math.round(this.model.size.width/this.model.pageWidth),n=Math.round(this.model.size.height/this.model.pageHeight),r=0;r<t;r++)for(var i=0;i<n;i++){var o=new f.Point(r*this.model.pageWidth+this.model.pageWidth/2,i*this.model.pageHeight+this.model.pageHeight/2);if(Math.abs(e.center.x-o.x)<this.settings.gridSize/2){var s=new d.Segment(new f.Point(e.center.x,0),new f.Point(e.center.x,this.model.size.height));this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.HorizontalCenterToPageCenter,s,"")}Math.abs(e.center.y-o.y)<this.settings.gridSize/2&&(s=new d.Segment(new f.Point(0,e.center.y),new f.Point(this.model.size.width,e.center.y)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.VerticalCenterToPageCenter,s,"")),Math.abs(e.x-o.x)<this.settings.gridSize/2&&(s=new d.Segment(new f.Point(e.x,0),new f.Point(e.x,this.model.size.height)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.LeftToPageCenter,s,"")),Math.abs(e.y-o.y)<this.settings.gridSize/2&&(s=new d.Segment(new f.Point(0,e.y),new f.Point(this.model.size.width,e.y)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.TopToPageCenter,s,"")),Math.abs(e.right-o.x)<this.settings.gridSize/2&&(s=new d.Segment(new f.Point(e.right,0),new f.Point(e.right,this.model.size.height)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.RightToPageCenter,s,"")),Math.abs(e.bottom-o.y)<this.settings.gridSize/2&&(s=new d.Segment(new f.Point(0,e.bottom),new f.Point(this.model.size.width,e.bottom)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.BottomToPageCenter,s,""))}},t.prototype.addShapeExtensionLines=function(e,t){var n,r,i,o,s,c,u,l,h=e.rectangle,A=e.strokeWidth-p.CanvasSelectionManager.extensionLineWidth,g=!0;if(t.right<h.x?(n=t.right,i=h.x,s=n+A+p.CanvasSelectionManager.extensionLineOffset,u=i-p.CanvasSelectionManager.extensionLineOffset):t.x>h.right&&(n=t.x,i=h.right,s=n-p.CanvasSelectionManager.extensionLineOffset,u=i+A+p.CanvasSelectionManager.extensionLineOffset),t.bottom<h.y?(r=t.bottom,o=h.y,c=r+A+p.CanvasSelectionManager.extensionLineOffset,l=o-p.CanvasSelectionManager.extensionLineOffset):t.y>h.bottom&&(r=t.y,o=h.bottom,c=r-p.CanvasSelectionManager.extensionLineOffset,l=o+A+p.CanvasSelectionManager.extensionLineOffset),void 0!==s&&void 0!==u){var m=this.getViewUnitText(Math.abs(n-i));if(t.center.y===h.center.y){var y=new d.Segment(new f.Point(s,t.center.y),new f.Point(u,h.center.y));this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.VerticalCenterAfter:a.ExtensionLineType.VerticalCenterBefore,y,g?m:""),g=!1}t.y===h.y&&(y=new d.Segment(new f.Point(s,t.y),new f.Point(u,h.y)),this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.TopToTopAfter:a.ExtensionLineType.TopToTopBefore,y,g?m:"")),t.bottom===h.bottom&&(y=new d.Segment(new f.Point(s,t.bottom+A),new f.Point(u,h.bottom+A)),this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.BottomToBottomAfter:a.ExtensionLineType.BottomToBottomBefore,y,g?m:"")),t.y===h.bottom&&(y=new d.Segment(new f.Point(s,t.y),new f.Point(u,h.bottom+A)),this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.TopToBottomAfter:a.ExtensionLineType.TopToBottomBefore,y,g?m:"")),t.bottom===h.y&&(y=new d.Segment(new f.Point(s,t.bottom+A),new f.Point(u,h.y)),this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.BottomToTopAfter:a.ExtensionLineType.BottomToTopBefore,y,g?m:""))}void 0!==c&&void 0!==l&&(m=this.getViewUnitText(Math.abs(r-o)),t.center.x===h.center.x&&(y=new d.Segment(new f.Point(t.center.x,c),new f.Point(h.center.x,l)),this.extensionLinesVisualizer.addSegment(c>l?a.ExtensionLineType.HorizontalCenterBelow:a.ExtensionLineType.HorizontalCenterAbove,y,g?m:""),g=!1),t.x===h.x&&(y=new d.Segment(new f.Point(t.x,c),new f.Point(h.x,l)),this.extensionLinesVisualizer.addSegment(c>l?a.ExtensionLineType.LeftToLeftBelow:a.ExtensionLineType.LeftToLeftAbove,y,g?m:"")),t.right===h.right&&(y=new d.Segment(new f.Point(t.right+A,c),new f.Point(h.right+A,l)),this.extensionLinesVisualizer.addSegment(c>l?a.ExtensionLineType.RightToRightBelow:a.ExtensionLineType.RightToRightAbove,y,g?m:"")),t.x===h.right&&(y=new d.Segment(new f.Point(t.x,c),new f.Point(h.right+A,l)),this.extensionLinesVisualizer.addSegment(c>l?a.ExtensionLineType.LeftToRightBelow:a.ExtensionLineType.LeftToRightAbove,y,g?m:"")),t.right===h.x&&(y=new d.Segment(new f.Point(t.right+A,c),new f.Point(h.x,l)),this.extensionLinesVisualizer.addSegment(c>l?a.ExtensionLineType.RightToLeftBelow:a.ExtensionLineType.RightToLeftAbove,y,g?m:"")))},t.prototype.resetExtensionLines=function(){this.extensionLinesVisualizer.reset()},t.prototype.setResizeInfo=function(e){var t=A.ModelUtils.createRectangle(e),n=new f.Point(t.center.x,t.bottom+p.CanvasSelectionManager.resizeInfoOffset),r=this.getViewUnitText(t.width)+" x "+this.getViewUnitText(t.height);this.resizeInfoVisualizer.set(n,r)},t.prototype.resetResizeInfo=function(){this.resizeInfoVisualizer.reset()},t.prototype.setSelectionRectangle=function(e){this.selectionRectangleVisualizer.setRectangle(e)},t.prototype.resetSelectionRectangle=function(){this.selectionRectangleVisualizer.reset()},t.prototype.getViewUnitText=function(e){return A.ModelUtils.getUnitText(this.settings.viewUnits,v.DiagramLocalizationService.unitItems,v.DiagramLocalizationService.formatUnit,e)},t.prototype.notifyReadOnlyChanged=function(e){this.readOnly=e,this.readOnly&&(this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle())},t.prototype.notifyDragStart=function(e){},t.prototype.notifyDragEnd=function(e){},t.prototype.notifyDragScrollStart=function(){},t.prototype.notifyDragScrollEnd=function(){},t.prototype.onUpdateUnlocked=function(e){},t}(y.BatchUpdatableObject);t.VisualizerManager=b},7459:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VisualizerTouchManager=void 0;var o=n(7733),s=n(6031),a=function(e){function t(t,n,r,i,o){void 0===o&&(o=i.readOnly);var s=e.call(this,t,n,r,i,o)||this;return t.onChanged.add(s),s}return i(t,e),t.prototype.onBlur=function(e){var t=this;setTimeout(function(){t.hideConnections()},1)},t.prototype.onFocus=function(e){var t=this;setTimeout(function(){t.showConnections()},1)},t.prototype.hideConnections=function(){this.readOnly||this.resetConnectionPoints()},t.prototype.showConnections=function(){if(!this.readOnly&&this.needShowConnections()){var e=this.selection.getSelectedShapes();1===e.length&&this.setConnectionPoints(e[0],s.MouseEventElementType.ShapeConnectionPoint,-1,!e[0].allowResizeHorizontally&&!e[0].allowResizeVertically||e[0].isLocked)}},t.prototype.needShowConnections=function(){var e=this.selection.getSelectedItems(),t=this.selection.getSelectedShapes();return 1===e.length&&1===t.length},t.prototype.notifySelectionChanged=function(e){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},t.prototype.raiseSelectionChanged=function(){this.needShowConnections()?this.showConnections():this.hideConnections()},t.prototype.onUpdateUnlocked=function(e){1&e&&this.raiseSelectionChanged()},t.prototype.notifyDragStart=function(e){this.hideConnections()},t.prototype.notifyDragEnd=function(e){this.showConnections()},t}(o.VisualizerManager);t.VisualizerTouchManager=a},3477:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SetConnectionPointIndexHistoryItem=t.AddConnectionHistoryItem=void 0;var o=n(4412),s=n(7959),a=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.connectorKey=t.key,o.itemKey=n.key,o.connectionPointIndex=r,o.position=i,o}return i(t,e),t.prototype.redo=function(e){var t=e.model.findConnector(this.connectorKey),n=e.model.findItem(this.itemKey);e.addConnection(t,n,this.connectionPointIndex,this.position)},t.prototype.undo=function(e){var t=e.model.findConnector(this.connectorKey);e.deleteConnection(t,this.position)},t}(o.HistoryItem);t.AddConnectionHistoryItem=a;var c=function(e){function t(t,n,r){var i=e.call(this)||this;return i.connectorKey=t.key,i.connectionPointIndex=n,i.position=r,i}return i(t,e),t.prototype.redo=function(e){var t=e.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===s.ConnectorPosition.Begin?t.beginConnectionPointIndex:t.endConnectionPointIndex,e.setConnectionPointIndex(t,this.connectionPointIndex,this.position)},t.prototype.undo=function(e){var t=e.model.findConnector(this.connectorKey);e.setConnectionPointIndex(t,this.oldConnectionPointIndex,this.position)},t}(o.HistoryItem);t.SetConnectionPointIndexHistoryItem=c},9603:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddConnectorHistoryItem=void 0;var o=n(4412),s=n(7959),a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.points=t,i.dataKey=n,i.renderPointsContext=r,i}return i(t,e),t.prototype.redo=function(e){var t=new s.Connector(this.points);void 0!==this.dataKey&&(t.dataKey=this.dataKey),void 0!==this.renderPointsContext&&t.replaceRenderPoints(this.renderPointsContext),e.addConnector(t,this.connectorKey),this.connectorKey=t.key},t.prototype.undo=function(e){var t=e.model.findConnector(this.connectorKey);e.deleteConnector(t)},t}(o.HistoryItem);t.AddConnectorHistoryItem=a},4430:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddConnectorPointHistoryItem=void 0;var o=function(e){function t(t,n,r){var i=e.call(this)||this;return i.connectorKey=t,i.pointIndex=n,i.point=r,i}return i(t,e),t.prototype.redo=function(e){var t=this,n=e.model.findConnector(this.connectorKey);this.renderContext=n.tryCreateRenderPointsContext(),e.addDeleteConnectorPoint(n,function(e){e.addPoint(t.pointIndex,t.point),e.onAddPoint(t.pointIndex,t.point)})},t.prototype.undo=function(e){var t=this,n=e.model.findConnector(this.connectorKey);e.addDeleteConnectorPoint(n,function(e){e.deletePoint(t.pointIndex),e.replaceRenderPoints(t.renderContext)})},t}(n(4412).HistoryItem);t.AddConnectorPointHistoryItem=o},4145:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddShapeHistoryItem=void 0;var o=n(4412),s=n(5503),a=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.shapeDescription=t,o.position=n,o.text=r,o.dataKey=i,o}return i(t,e),t.prototype.redo=function(e){var t=new s.Shape(this.shapeDescription,this.position);"string"==typeof this.text&&(t.text=this.text),void 0!==this.dataKey&&(t.dataKey=this.dataKey),e.addShape(t,this.shapeKey),this.shapeKey=t.key},t.prototype.undo=function(e){e.deleteShape(e.model.findShape(this.shapeKey),!0)},t}(o.HistoryItem);t.AddShapeHistoryItem=a},58:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaceConnectorPointsHistoryItem=t.ChangeConnectorPointsHistoryItem=t.UpdateConnectorPointsHistoryItem=void 0;var o=function(e){function t(t,n){var r=e.call(this)||this;return r.connectorKey=t,r.newPoints=n,r}return i(t,e),t.prototype.redo=function(e){var t=this,n=e.model.findConnector(this.connectorKey);this.oldRenderContext=n.tryCreateRenderPointsContext(),this.oldPoints=n.points.map(function(e){return e.clone()}),e.changeConnectorPoints(n,function(e){e.points=t.newPoints,t.updateRenderPoints(e)})},t.prototype.undo=function(e){var t=this,n=e.model.findConnector(this.connectorKey);e.changeConnectorPoints(n,function(e){e.points=t.oldPoints,e.replaceRenderPoints(t.oldRenderContext)})},t}(n(4412).HistoryItem);t.UpdateConnectorPointsHistoryItem=o;var s=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.connectorKey=t,i.newPoints=n,i.newRenderContext=r,i}return i(t,e),t.prototype.updateRenderPoints=function(e){e.replaceRenderPoints(this.newRenderContext)},t}(o);t.ChangeConnectorPointsHistoryItem=s;var a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.connectorKey=t,r.newPoints=n,r}return i(t,e),t.prototype.updateRenderPoints=function(e){e.clearRenderPoints()},t}(o);t.ReplaceConnectorPointsHistoryItem=a},329:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeShapeParametersHistoryItem=void 0;var o=function(e){function t(t,n){var r=e.call(this)||this;return r.shapeKey=t,r.parameters=n,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findShape(this.shapeKey);this.oldParameters=t.parameters.clone(),e.changeShapeParameters(t,this.parameters)},t.prototype.undo=function(e){var t=e.model.findShape(this.shapeKey);e.changeShapeParameters(t,this.oldParameters)},t}(n(4412).HistoryItem);t.ChangeShapeParametersHistoryItem=o},56:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeShapeTypeHistoryItem=void 0;var o=n(6629),s=function(e){function t(t,n){var r=e.call(this)||this;return r.shapeKey=t.key,r.newType=n,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findShape(this.shapeKey);this.oldType=t.description.key,this.oldParameters=t.parameters.clone(),e.updateShapeType(t,this.newType,new o.ShapeParameters)},t.prototype.undo=function(e){var t=e.model.findShape(this.shapeKey);e.updateShapeType(t,this.oldType,this.oldParameters)},t}(n(4412).HistoryItem);t.ChangeShapeTypeHistoryItem=s},8930:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteConnectionHistoryItem=void 0;var o=n(4412),s=n(7959),a=function(e){function t(t,n){var r=e.call(this)||this;return r.connectorKey=t.key,r.position=n,r.itemKey=t.getExtremeItem(r.position).key,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===s.ConnectorPosition.Begin?t.beginConnectionPointIndex:t.endConnectionPointIndex,e.deleteConnection(t,this.position)},t.prototype.undo=function(e){var t=e.model.findConnector(this.connectorKey),n=e.model.findItem(this.itemKey);e.addConnection(t,n,this.oldConnectionPointIndex,this.position)},t}(o.HistoryItem);t.DeleteConnectionHistoryItem=a},9143:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteConnectorHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.connectorKey=t,n}return i(t,e),t.prototype.redo=function(e){var t=e.model.findConnector(this.connectorKey);this.connector=t.clone(),e.deleteConnector(t)},t.prototype.undo=function(e){e.addConnector(this.connector,this.connector.key)},t}(n(4412).HistoryItem);t.DeleteConnectorHistoryItem=o},1704:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteShapeHistoryItem=void 0;var o=function(e){function t(t,n){void 0===n&&(n=!0);var r=e.call(this)||this;return r.shapeKey=t,r.allowed=n,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findShape(this.shapeKey);this.shape=t.clone(),e.deleteShape(t,this.allowed)},t.prototype.undo=function(e){e.addShape(this.shape,this.shape.key)},t}(n(4412).HistoryItem);t.DeleteShapeHistoryItem=o},3849:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ImportConnectorHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.connector=t,n}return i(t,e),t.prototype.redo=function(e){this.connectorKey=this.connector.key,e.insertConnector(this.connector)},t.prototype.undo=function(e){var t=e.model.findConnector(this.connectorKey);e.removeConnector(t)},t}(n(4412).HistoryItem);t.ImportConnectorHistoryItem=o},4383:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ImportShapeHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.shape=t,n}return i(t,e),t.prototype.redo=function(e){this.shapeKey=this.shape.key,e.insertShape(this.shape)},t.prototype.undo=function(e){e.removeShape(e.model.findShape(this.shapeKey),!0)},t}(n(4412).HistoryItem);t.ImportShapeHistoryItem=o},9310:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InsertToContainerHistoryItem=void 0;var o=function(e){function t(t,n){var r=e.call(this)||this;return r.containerKey=n.key,r.itemKey=t.key,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findItem(this.itemKey),n=e.model.findShape(this.containerKey);e.insertToContainer(t,n)},t.prototype.undo=function(e){var t=e.model.findItem(this.itemKey);e.removeFromContainer(t)},t}(n(4412).HistoryItem);t.InsertToContainerHistoryItem=o},8338:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MoveConnectorRightAnglePointsHistoryItem=t.MoveConnectorPointHistoryItem=void 0;var o=n(8900),s=n(4412),a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.connectorKey=t,i.pointIndex=n,i.newPoint=r,i}return i(t,e),t.prototype.redo=function(e){var t=this,n=e.model.findConnector(this.connectorKey);this.oldPoint=n.points[this.pointIndex].clone(),this.renderContext=n.tryCreateRenderPointsContext(),e.moveConnectorPoint(n,this.pointIndex,function(e){e.movePoint(t.pointIndex,t.newPoint),e.onMovePoint(t.pointIndex,t.newPoint)})},t.prototype.undo=function(e){var t=this,n=e.model.findConnector(this.connectorKey);e.moveConnectorPoint(n,this.pointIndex,function(e){e.movePoint(t.pointIndex,t.oldPoint),e.replaceRenderPoints(t.renderContext)})},t}(s.HistoryItem);t.MoveConnectorPointHistoryItem=a;var c=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s.connectorKey=t,s.beginPointIndex=n,s.lastPointIndex=r,s.newX=i,s.newY=o,s.oldPoints=[],s}return i(t,e),t.prototype.redo=function(e){var t=this,n=e.model.findConnector(this.connectorKey);this.renderContext=n.tryCreateRenderPointsContext(),this.oldPoints=n.points.slice(this.beginPointIndex,this.lastPointIndex+1).map(function(e){return e.clone()});var r=[];e.changeConnectorPoints(n,function(e){for(var n=t.beginPointIndex;n<=t.lastPointIndex;n++){var i=new o.Point(void 0===t.newX?e.points[n].x:t.newX,void 0===t.newY?e.points[n].y:t.newY);r.push(i),e.movePoint(n,i)}e.onMovePoints(t.beginPointIndex,t.lastPointIndex,r)})},t.prototype.undo=function(e){var t=this,n=e.model.findConnector(this.connectorKey);e.changeConnectorPoints(n,function(e){for(var n=t.beginPointIndex;n<=t.lastPointIndex;n++)e.movePoint(n,t.oldPoints[n-t.beginPointIndex]);e.replaceRenderPoints(t.renderContext)})},t}(s.HistoryItem);t.MoveConnectorRightAnglePointsHistoryItem=c},4160:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MoveShapeHistoryItem=void 0;var o=function(e){function t(t,n){var r=e.call(this)||this;return r.shapeKey=t,r.position=n,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findShape(this.shapeKey);this.oldPosition=t.position.clone(),e.moveShape(t,this.position)},t.prototype.undo=function(e){var t=e.model.findShape(this.shapeKey);e.moveShape(t,this.oldPosition)},t}(n(4412).HistoryItem);t.MoveShapeHistoryItem=o},9753:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveFromContainerHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.itemKey=t.key,n}return i(t,e),t.prototype.redo=function(e){var t=e.model.findItem(this.itemKey);this.containerKey=t.container&&t.container.key,e.removeFromContainer(t)},t.prototype.undo=function(e){var t=e.model.findContainer(this.containerKey),n=e.model.findItem(this.itemKey);e.insertToContainer(n,t)},t}(n(4412).HistoryItem);t.RemoveFromContainerHistoryItem=o},4629:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeShapeHistoryItem=void 0;var o=function(e){function t(t,n,r){var i=e.call(this)||this;return i.shapeKey=t,i.position=n,i.size=r,i}return i(t,e),t.prototype.redo=function(e){var t=e.model.findShape(this.shapeKey);this.oldPosition=t.position.clone(),this.oldSize=t.size.clone(),e.resizeShape(t,this.position,this.size)},t.prototype.undo=function(e){var t=e.model.findShape(this.shapeKey);e.resizeShape(t,this.oldPosition,this.oldSize)},t}(n(4412).HistoryItem);t.ResizeShapeHistoryItem=o},7626:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollIntoViewOnUndoHistoryItem=t.ScrollIntoViewOnRedoHistoryItem=void 0;var o=n(4412),s=function(e){function t(t,n){var r=e.call(this)||this;return r.view=t,r.rectangle=n,r.view=t,r.rectangle=n.clone(),r}return i(t,e),t.prototype.redo=function(e){this.view.scrollIntoView(this.rectangle)},t.prototype.undo=function(e){},t}(o.HistoryItem);t.ScrollIntoViewOnRedoHistoryItem=s;var a=function(e){function t(t,n){var r=e.call(this)||this;return r.view=t,r.rectangle=n,r.view=t,r.rectangle=n.clone(),r}return i(t,e),t.prototype.redo=function(e){},t.prototype.undo=function(e){this.view.scrollIntoView(this.rectangle)},t}(o.HistoryItem);t.ScrollIntoViewOnUndoHistoryItem=a},4297:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SetSelectionHistoryItem=void 0;var o=function(e){function t(t,n,r){var i=e.call(this)||this;return i.selectedKeys=n,i.selection=t,i.forceChange=r,i}return i(t,e),t.prototype.redo=function(){this.oldSelection=this.selection.getKeys().slice(0),this.selection.set(this.selectedKeys,this.forceChange)},t.prototype.undo=function(){this.selection.set(this.oldSelection,this.forceChange)},t}(n(4412).HistoryItem);t.SetSelectionHistoryItem=o},1864:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.History=void 0;var r=n(4412),i=n(8675),o=function(){function e(e,t){this.modelManipulator=e,this.diagram=t,this.historyItems=[],this.currentIndex=-1,this.incrementalId=-1,this.transactionLevel=-1,this.unmodifiedIndex=-1,this.currTransactionId=0,this.onChanged=new i.EventDispatcher}return e.prototype.isModified=function(){if(this.unmodifiedIndex===this.currentIndex)return!1;for(var e=Math.min(this.unmodifiedIndex,this.currentIndex),t=Math.max(this.unmodifiedIndex,this.currentIndex),n=e+1;n<=t;n++)if(this.historyItems[n].changeModified())return!0;return!1},e.prototype.undo=function(){this.canUndo()&&(this.historyItems[this.currentIndex].undo(this.modelManipulator),this.currentIndex--,this.raiseChanged())},e.prototype.redo=function(){this.canRedo()&&(this.startDataSyncItem&&(this.startDataSyncItem.undo(this.modelManipulator),this.startDataSyncItem=void 0),this.currentIndex++,this.historyItems[this.currentIndex].redo(this.modelManipulator),this.raiseChanged())},e.prototype.canUndo=function(){return this.currentIndex>=0},e.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},e.prototype.beginTransaction=function(){return this.transactionLevel++,0===this.transactionLevel&&(this.transaction=new r.CompositionHistoryItem),this.currTransactionId++},e.prototype.endTransaction=function(e){if(!(--this.transactionLevel>=0)){var t=this.transaction.historyItems.length;if(t>0){var n=t>1?this.transaction:this.transaction.historyItems.pop();e?this.addDataSyncItem(n):this.addInternal(n)}t>0&&!e&&this.raiseChanged(),delete this.transaction}},e.prototype.addAndRedo=function(e){this.add(e),e.redo(this.modelManipulator),this.raiseChanged()},e.prototype.add=function(e){this.transactionLevel>=0?this.transaction.add(e):this.addInternal(e)},e.prototype.addInternal=function(e){this.currentIndex<this.historyItems.length-1&&(this.historyItems.splice(this.currentIndex+1),this.unmodifiedIndex=Math.min(this.unmodifiedIndex,this.currentIndex)),this.historyItems.push(e),this.currentIndex++,this.deleteOldItems()},e.prototype.addDataSyncItem=function(e){var t=this.historyItems[this.currentIndex];if(t){var n=void 0;t instanceof r.CompositionHistoryItem?n=t:(this.historyItems.splice(this.currentIndex,1),n=new r.CompositionHistoryItem,this.historyItems.push(n),n.historyItems.push(t)),n.dataSyncItems.push(e)}else this.historyItems.length&&(this.startDataSyncItem=e)},e.prototype.deleteOldItems=function(){var t=this.historyItems.length-e.MAX_HISTORY_ITEM_COUNT;t>0&&this.currentIndex>t&&(this.historyItems.splice(0,t),this.currentIndex-=t)},e.prototype.getNextId=function(){return this.incrementalId++,this.incrementalId},e.prototype.clear=function(){this.currentIndex=-1,this.unmodifiedIndex=-1,this.incrementalId=-1,this.historyItems=[],delete this.transaction,this.transactionLevel=-1},e.prototype.resetModified=function(){this.unmodifiedIndex=this.currentIndex},e.prototype.getCurrentItemId=function(){if(-1===this.currentIndex)return-1;var e=this.historyItems[this.currentIndex];return-1===e.uniqueId&&(e.uniqueId=this.getNextId()),e.uniqueId},e.prototype.undoTransaction=function(){this.diagram.beginUpdateCanvas();for(var e=this.transaction.historyItems;e.length;)e.pop().undo(this.modelManipulator);this.diagram.endUpdateCanvas()},e.prototype.undoTransactionTo=function(e){this.diagram.beginUpdateCanvas();for(var t=this.transaction.historyItems;t.length;){var n=t.pop();if(n.undo(this.modelManipulator),n===e)break}this.diagram.endUpdateCanvas()},e.prototype.raiseChanged=function(){-1===this.transactionLevel&&this.onChanged.raise("notifyHistoryChanged")},e.MAX_HISTORY_ITEM_COUNT=100,e}();t.History=o},4412:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHistoryItem=t.HistoryItem=void 0;var i=function(){function e(){this.uniqueId=-1}return e.prototype.changeModified=function(){return!0},e.prototype.getName=function(){return this.constructor.name},e}();t.HistoryItem=i;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.historyItems=[],t.dataSyncItems=[],t}return r(t,e),t.prototype.changeModified=function(){for(var e,t=0;e=this.historyItems[t];t++)if(e.changeModified())return!0;return!1},t.prototype.redo=function(e){for(var t,n=0;t=this.historyItems[n];n++)t.redo(e)},t.prototype.undo=function(e){for(var t,n=this.dataSyncItems.length-1;t=this.dataSyncItems[n];n--)t.undo(e);for(this.dataSyncItems=[],n=this.historyItems.length-1;t=this.historyItems[n];n--)t.undo(e)},t.prototype.add=function(e){if(null==e)throw new Error("cannot be null");this.historyItems.push(e)},t}(i);t.CompositionHistoryItem=o},7195:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangePageColorHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return i(t,e),t.prototype.redo=function(e){this.oldValue=e.model.pageColor,e.changePageColor(this.value)},t.prototype.undo=function(e){e.changePageColor(this.oldValue)},t}(n(4412).HistoryItem);t.ChangePageColorHistoryItem=o},1380:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangePageLandscapeHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return i(t,e),t.prototype.redo=function(e){this.oldValue=e.model.pageLandscape,e.changePageLandscape(this.value)},t.prototype.undo=function(e){e.changePageLandscape(this.oldValue)},t}(n(4412).HistoryItem);t.ChangePageLandscapeHistoryItem=o},1044:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangePageSizeHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.size=t,n}return i(t,e),t.prototype.redo=function(e){this.oldSize=e.model.pageSize,e.changePageSize(this.size)},t.prototype.undo=function(e){e.changePageSize(this.oldSize)},t}(n(4412).HistoryItem);t.ChangePageSizeHistoryItem=o},7479:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeUnitsHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.units=t,n}return i(t,e),t.prototype.redo=function(e){this.oldUnits=e.model.units,e.model.units=this.units},t.prototype.undo=function(e){e.model.units=this.oldUnits},t}(n(4412).HistoryItem);t.ChangeUnitsHistoryItem=o},1729:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ModelResizeHistoryItem=void 0;var o=n(4412),s=n(4125),a=n(6353),c=function(e){function t(t){var n=e.call(this)||this;return n.offset=t,n}return i(t,e),t.prototype.redo=function(e){this.oldSize=e.model.size.clone(),this.backOffset=new s.Offsets(-this.offset.left,-this.offset.right,-this.offset.top,-this.offset.bottom);var t=Math.max(this.oldSize.width+this.offset.left+this.offset.right,e.model.pageWidth),n=Math.max(this.oldSize.height+this.offset.top+this.offset.bottom,e.model.pageHeight);e.changeModelSize(new a.Size(t,n),this.offset)},t.prototype.undo=function(e){e.changeModelSize(this.oldSize,this.backOffset)},t}(o.HistoryItem);t.ModelResizeHistoryItem=c},4518:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdatePositionsOnPageResizeHistoryItem=void 0;var o=n(7959),s=n(5503),a=function(e){function t(t){var n=e.call(this)||this;return n.offset=t,n}return i(t,e),t.prototype.redo=function(e){var t=this;e.model.iterateItems(function(n){n instanceof s.Shape&&e.moveShape(n,t.applyOffset(n.position,t.offset.x,t.offset.y)),n instanceof o.Connector&&e.changeConnectorPoints(n,function(e){return e.updatePointsOnPageResize(t.offset.x,t.offset.y)})})},t.prototype.undo=function(e){var t=this;e.model.iterateItems(function(n){n instanceof s.Shape&&e.moveShape(n,t.applyOffset(n.position,-t.offset.x,-t.offset.y)),n instanceof o.Connector&&e.changeConnectorPoints(n,function(e){return e.updatePointsOnPageResize(-t.offset.x,-t.offset.y)})})},t.prototype.applyOffset=function(e,t,n){return e.clone().offset(t,n)},t}(n(4412).HistoryItem);t.UpdatePositionsOnPageResizeHistoryItem=a},8236:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorPropertyHistoryItem=void 0;var o=function(e){function t(t,n,r){var i=e.call(this)||this;return i.connectorKey=t,i.propertyName=n,i.value=r,i}return i(t,e),t.prototype.redo=function(e){var t=e.model.findConnector(this.connectorKey);this.oldValue=t.properties[this.propertyName],e.changeConnectorProperty(t,this.propertyName,this.value)},t.prototype.undo=function(e){var t=e.model.findConnector(this.connectorKey);e.changeConnectorProperty(t,this.propertyName,this.oldValue)},t}(n(4412).HistoryItem);t.ChangeConnectorPropertyHistoryItem=o},5144:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorTextHistoryItem=void 0;var o=function(e){function t(t,n,r){var i=e.call(this)||this;return i.connectorKey=t.key,i.text=r,i.position=n,i}return i(t,e),t.prototype.redo=function(e){var t=e.model.findConnector(this.connectorKey);this.oldText=t.getText(this.position),e.changeConnectorText(t,this.text,this.position)},t.prototype.undo=function(e){var t=e.model.findConnector(this.connectorKey);e.changeConnectorText(t,this.oldText,this.position)},t}(n(4412).HistoryItem);t.ChangeConnectorTextHistoryItem=o},45:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorTextPositionHistoryItem=void 0;var o=function(e){function t(t,n,r){var i=e.call(this)||this;return i.connectorKey=t.key,i.position=n,i.newPosition=r,i}return i(t,e),t.prototype.redo=function(e){var t=e.model.findConnector(this.connectorKey);e.changeConnectorTextPosition(t,this.position,this.newPosition)},t.prototype.undo=function(e){var t=e.model.findConnector(this.connectorKey);e.changeConnectorTextPosition(t,this.newPosition,this.position)},t}(n(4412).HistoryItem);t.ChangeConnectorTextPositionHistoryItem=o},9559:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeCustomDataHistoryItem=void 0;var o=n(4412),s=n(8675),a=function(e){function t(t,n){var r=e.call(this)||this;return r.itemKey=t,r.customData=s.ObjectUtils.cloneObject(n),r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findItem(this.itemKey);this.oldCustomData=s.ObjectUtils.cloneObject(t.customData),e.changeCustomData(t,this.customData)},t.prototype.undo=function(e){var t=e.model.findItem(this.itemKey);e.changeCustomData(t,this.oldCustomData)},t}(o.HistoryItem);t.ChangeCustomDataHistoryItem=a},7443:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeLockedHistoryItem=void 0;var o=function(e){function t(t,n){var r=e.call(this)||this;return r.itemKey=t.key,r.locked=n,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findItem(this.itemKey);this.oldLocked=t.locked,e.changeLocked(t,this.locked)},t.prototype.undo=function(e){var t=e.model.findItem(this.itemKey);e.changeLocked(t,this.oldLocked)},t}(n(4412).HistoryItem);t.ChangeLockedHistoryItem=o},8210:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeShapeImageHistoryItem=void 0;var o=n(4412),s=n(6617),a=function(e){function t(t,n){var r=e.call(this)||this;return r.shapeKey=t.key,r.imageUrl=n,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findShape(this.shapeKey);this.oldImage=t.image,e.changeShapeImage(t,new s.ImageInfo(this.imageUrl))},t.prototype.undo=function(e){var t=e.model.findShape(this.shapeKey);e.changeShapeImage(t,this.oldImage)},t}(o.HistoryItem);t.ChangeShapeImageHistoryItem=a},6516:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeShapeTextHistoryItem=void 0;var o=function(e){function t(t,n){var r=e.call(this)||this;return r.shapeKey=t.key,r.text=n,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findShape(this.shapeKey);this.oldText=t.text,e.changeShapeText(t,this.text)},t.prototype.undo=function(e){var t=e.model.findShape(this.shapeKey);e.changeShapeText(t,this.oldText)},t}(n(4412).HistoryItem);t.ChangeShapeTextHistoryItem=o},5982:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeZindexHistoryItem=void 0;var o=function(e){function t(t,n){var r=e.call(this)||this;return r.itemKey=t.key,r.zIndex=n,r}return i(t,e),t.prototype.redo=function(e){var t=e.model.findItem(this.itemKey);this.oldZIndex=t.zIndex,e.changeZIndex(t,this.zIndex)},t.prototype.undo=function(e){var t=e.model.findItem(this.itemKey);e.changeZIndex(t,this.oldZIndex)},t}(n(4412).HistoryItem);t.ChangeZindexHistoryItem=o},442:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleShapeExpandedHistoryItem=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.shapeKey=t.key,n.expanded=t.expanded,n}return i(t,e),t.prototype.redo=function(e){var t=e.model.findShape(this.shapeKey);e.changeShapeExpanded(t,!this.expanded)},t.prototype.undo=function(e){var t=e.model.findShape(this.shapeKey);e.changeShapeExpanded(t,this.expanded)},t}(n(4412).HistoryItem);t.ToggleShapeExpandedHistoryItem=o},4634:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStyleHistoryItem=void 0;var o=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return i(t,e),t.prototype.redo=function(e){var t=e.model.findItem(this.itemKey);this.oldStyleValue=t.style[this.styleProperty],e.changeStyle(t,this.styleProperty,this.styleValue)},t.prototype.undo=function(e){var t=e.model.findItem(this.itemKey);e.changeStyle(t,this.styleProperty,this.oldStyleValue)},t}(n(3259).ChangeStyleHistoryItemBase);t.ChangeStyleHistoryItem=o},3259:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStyleHistoryItemBase=void 0;var o=function(e){function t(t,n,r){var i=e.call(this)||this;return i.itemKey=t,i.styleProperty=n,i.styleValue=r,i}return i(t,e),t.prototype.redo=function(e){var t=e.model.findItem(this.itemKey);this.oldStyleValue=t.style[this.styleProperty],e.changeStyle(t,this.styleProperty,this.styleValue)},t.prototype.undo=function(e){var t=e.model.findItem(this.itemKey);e.changeStyle(t,this.styleProperty,this.oldStyleValue)},t}(n(4412).HistoryItem);t.ChangeStyleHistoryItemBase=o},926:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStyleTextHistoryItem=void 0;var o=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return i(t,e),t.prototype.redo=function(e){var t=e.model.findItem(this.itemKey);this.oldStyleValue=t.styleText[this.styleProperty],e.changeStyleText(t,this.styleProperty,this.styleValue)},t.prototype.undo=function(e){var t=e.model.findItem(this.itemKey);e.changeStyleText(t,this.styleProperty,this.oldStyleValue)},t}(n(3259).ChangeStyleHistoryItemBase);t.ChangeStyleTextHistoryItem=o},7176:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageCache=t.CacheImageInfo=void 0;var r=n(6477),i=n(6617),o=n(8675),s=function(){function e(e,t,n,i,o){this._base64=void 0!==e?r.Base64Utils.normalizeToDataUrl(e,"image/png"):void 0,this.actualId=t,this._referenceInfo=i,this._isLoaded=void 0!==o&&o,this.imageUrl=n}return Object.defineProperty(e.prototype,"isLoaded",{get:function(){return this._referenceInfo?this._referenceInfo._isLoaded:this._isLoaded},set:function(e){this._isLoaded=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"base64",{get:function(){return this._base64},set:function(e){this._base64=r.Base64Utils.normalizeToDataUrl(e,"image/png")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"referenceInfo",{get:function(){return this._referenceInfo},set:function(e){this._referenceInfo=e,this._base64=void 0,this._isLoaded=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._referenceInfo?this.referenceInfo._isLoading:this._isLoading},enumerable:!1,configurable:!0}),e.prototype.startLoading=function(){this._referenceInfo?this._referenceInfo.startLoading():this._isLoading=!0},e.prototype.finalizeLoading=function(){this._referenceInfo?this._referenceInfo.finalizeLoading():this._isLoading=!1},e}();t.CacheImageInfo=s;var a=function(){function e(){this.emptyImageId=0,this.lastActualId=0,this.onReadyStateChanged=new o.EventDispatcher,this.cache=[],this.nonLoadedImages=[],this.createUnloadedInfoByBase64(i.ImageInfo.transparentOnePixelImage).isLoaded=!0}return e.prototype.reset=function(){this.cache.splice(1),this.nonLoadedImages=[],this.lastActualId=1},Object.defineProperty(e.prototype,"emptyImage",{get:function(){return this.cache[this.emptyImageId]},enumerable:!1,configurable:!0}),e.prototype.getImageData=function(e){return this.cache[e]},e.prototype.createUnloadedInfoByUrl=function(e){var t=this.findInfoByUrl(e);return t||this.registerImageData(new s(void 0,this.getNextActualId(),e))},e.prototype.createUnloadedInfoByBase64=function(e){var t=this.findInfoByBase64(e);return t||this.registerImageData(new s(e,this.getNextActualId()))},e.prototype.createUnloadedInfoByShapeImageInfo=function(e){var t=e.exportUrl;return r.Base64Utils.checkPrependDataUrl(t)?this.createUnloadedInfoByBase64(t):this.createUnloadedInfoByUrl(t)},e.prototype.registerImageData=function(e){var t=this.cache[e.actualId];return t||(t=e),void 0!==e.actualId&&(this.cache[e.actualId]=t),0!==e.actualId&&(this.nonLoadedImages.push(e),1===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!1)),t},e.prototype.loadAllImages=function(e){var t=this;this.cache.forEach(function(n){t.emptyImageId===n.actualId||n.isLoaded||n.isLoading||e.load(n)})},e.prototype.finalizeLoading=function(e,t){e.finalizeLoading(),e.isLoaded=!0;var n=this.nonLoadedImages.indexOf(e);if(this.nonLoadedImages.splice(n,1),0===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!0),!e.referenceInfo&&t.base64){var i=r.Base64Utils.normalizeToDataUrl(t.base64,"image/png");this.cache.forEach(function(t){var n=t.base64===i&&t!==e&&t.isLoaded;return n&&(e.referenceInfo=t.referenceInfo?t.referenceInfo:t),n}),e.base64=i}},e.prototype.hasNonLoadedImages=function(){return 0!==this.nonLoadedImages.length},e.prototype.getNextActualId=function(){return this.lastActualId++},e.prototype.findInfoByBase64=function(e){return e=r.Base64Utils.normalizeToDataUrl(e,"image/png"),this.findInfoCore(function(t){return t.base64===e})},e.prototype.findInfoByUrl=function(e){return this.findInfoCore(function(t){return t.imageUrl===e})},e.prototype.findInfoCore=function(e){var t;return this.cache.forEach(function(n){e(n)&&(t=n)}),t},e.prototype.raiseReadyStateChanged=function(e){this.onReadyStateChanged.raise1(function(t){return t.notifyImageCacheReadyStateChanged(e)})},e.instance=new e,e}();t.ImageCache=a},6617:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageInfo=void 0;var r=n(6477),i=function(){function e(e){this.url=void 0,this.base64=void 0,e&&(r.Base64Utils.checkPrependDataUrl(e)?this.base64=e:this.url=e),this.loadFailed=!1}return e.prototype.clone=function(){var t=new e;return t.url=this.url,t.base64=this.base64,t},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return void 0===this.url&&void 0===this.base64},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unableToLoad",{get:function(){return this.loadFailed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderUrl",{get:function(){return this.base64||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportUrl",{get:function(){return this.base64?this.base64:this.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualUrl",{get:function(){return this.url?this.url:this.base64},enumerable:!1,configurable:!0}),Object.defineProperty(e,"transparentOnePixelImage",{get:function(){return this.transparentWhiteImage1_1},enumerable:!1,configurable:!0}),e.prototype.loadBase64Content=function(e){this.base64=r.Base64Utils.normalizeToDataUrl(e,"image/png")},e.prototype.setUnableToLoadFlag=function(){this.loadFailed=!0},e.transparentWhiteImage1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAANSURBVBhXY/j///9/AAn7A/0FQ0XKAAAAAElFTkSuQmCC",e}();t.ImageInfo=i},590:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLoader=void 0;var r=n(7176),i=function(){function e(e){this.loadedCallback=e}return e.prototype.load=function(e){e.isLoaded?this.loadedCallback(e):e.isLoading||this.loadInner(e)},e.prototype.loadInner=function(e){var t=this;return e.imageUrl?this.loadPictureByUrl(e,function(){return t.finalizeLoading(e,e)}):e.base64&&this.loadPictureByBase64(e,function(){return t.finalizeLoading(e,e)}),e},e.prototype.finalizeLoading=function(e,t){t||(t=r.ImageCache.instance.getImageData(e.actualId)),t.isLoaded||r.ImageCache.instance.finalizeLoading(t,e),this.loadedCallback(t)},e.prototype.loadPictureByBase64=function(e,t){var n=new Image;n.onload=function(){t(e)},n.src=e.base64},e.prototype.loadPictureByUrl=function(e,t){var n=this,r=new XMLHttpRequest;try{r.onload=function(){var i=new FileReader;i.onloadend=function(){e.base64=i.result,n.loadPictureByBase64(e,function(e){return t(e)})},i.readAsDataURL(r.response)},r.onerror=function(){return t(e)},r.onloadend=function(){404===r.status&&t(e)},r.open("GET",e.imageUrl,!0),r.responseType="blob",e.startLoading(),r.send()}catch(e){}},e}();t.ImageLoader=i},5941:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BPMNNode=t.BPMNImporter=void 0;var o=n(213),s=n(2259),a=n(8217),c=n(6572),u=function(){function e(e){this.doc=c.ImportUtils.createDocument(e),this.graph=new o.Graph([],[])}return e.prototype.import=function(){for(var e=void 0,t=0;e=this.doc.children[t];t++)"DEFINITIONS"===e.nodeName.toUpperCase()&&this.onDefinitionsElement(e);return this.validate(),this.graph},e.prototype.validate=function(){var e={};this.graph.nodes.forEach(function(t){return e[t]=!0});for(var t=0,n=void 0;n=this.graph.edges[t];t++)e[n.from]&&e[n.to]||(this.graph.edges.splice(t,1),t--)},e.prototype.onDefinitionsElement=function(e){this.dataSourceKey=e.getAttribute("id");for(var t=void 0,n=0;t=e.children[n];n++)"PROCESS"===t.nodeName.toUpperCase()&&this.onProcessElement(t)},e.prototype.onProcessElement=function(e){for(var t=void 0,n=0;t=e.children[n];n++)switch(t.nodeName.toUpperCase()){case"STARTEVENT":this.onStartEventElement(t);break;case"SEQUENCEFLOW":this.onSequenceFlowElement(t);break;case"SCRIPTTASK":this.onScriptTaskElement(t);break;case"USERTASK":this.onUserTaskElement(t);break;case"SERVICETASK":this.onServiceTaskElement(t);break;case"SENDTASK":this.onSendTaskElement(t);break;case"EXCLUSIVEGATEWAY":this.onExclusiveGateway(t);break;case"ENDEVENT":this.onEndEventGateway(t)}},e.prototype.onStartEventElement=function(e){var t=this.createNode(e);t.type=s.ShapeTypes.Ellipse,t.text=e.getAttribute("name"),this.graph.addNode(t)},e.prototype.onSequenceFlowElement=function(e){var t=e.getAttribute("sourceRef"),n=e.getAttribute("targetRef"),r=this.createEdge(e,t,n);e.hasAttribute("name")&&(r.text=e.getAttribute("name")),this.graph.addEdge(r)},e.prototype.onScriptTaskElement=function(e){var t=this.createNode(e);t.text=e.getAttribute("name"),this.graph.addNode(t)},e.prototype.onUserTaskElement=function(e){var t=this.createNode(e);t.text=e.getAttribute("name"),this.graph.addNode(t)},e.prototype.onServiceTaskElement=function(e){var t=this.createNode(e);t.text=e.getAttribute("name"),this.graph.addNode(t)},e.prototype.onSendTaskElement=function(e){var t=this.createNode(e);t.text=e.getAttribute("name"),this.graph.addNode(t)},e.prototype.onExclusiveGateway=function(e){var t=this.createNode(e);t.text=e.getAttribute("name"),t.type=s.ShapeTypes.Decision,this.graph.addNode(t)},e.prototype.onEndEventGateway=function(e){var t=this.createNode(e);t.text=e.getAttribute("name"),t.type=s.ShapeTypes.Ellipse,this.graph.addNode(t)},e.prototype.createNode=function(e){return new l(this.dataSourceKey,e.getAttribute("id"))},e.prototype.createEdge=function(e,t,n){return new h(this.dataSourceKey,e.getAttribute("id"),t,n)},e}();t.BPMNImporter=u;var l=function(e,t){this.sourceKey=e,this.key=t,this.type=s.ShapeTypes.Rectangle};t.BPMNNode=l;var h=function(e){function t(t,n,r,i){var o=e.call(this,n,r,i)||this;return o.sourceKey=t,o}return i(t,e),t}(a.Edge)},5885:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Exporter=void 0;var r=n(5503),i=n(7959),o=n(8675),s=function(){function e(){}return e.prototype.export=function(e){var t={page:{},connectors:[],shapes:[]};return t.page={width:e.size.width,height:e.size.height,pageColor:e.pageColor,pageWidth:e.pageSize.width,pageHeight:e.pageSize.height,pageLandscape:e.pageLandscape},this.exportItemsCore(e.items,t),JSON.stringify(t)},e.prototype.exportItems=function(e){var t={connectors:[],shapes:[]};return this.exportItemsCore(e,t),JSON.stringify(t)},e.prototype.exportItemsCore=function(e,t){var n=this;e.forEach(function(e){if(e instanceof r.Shape)t.shapes.push(n.exportShape(e));else if(e instanceof i.Connector){var o=n.exportConnector(e);e.beginItem&&(o.beginItemKey=e.beginItem.key,o.beginConnectionPointIndex=e.beginConnectionPointIndex),e.endItem&&(o.endItemKey=e.endItem.key,o.endConnectionPointIndex=e.endConnectionPointIndex),t.connectors.push(o)}})},e.prototype.exportItem=function(e){return{key:e.key,dataKey:e.dataKey,customData:o.ObjectUtils.cloneObject(e.customData),locked:e.locked,zIndex:e.zIndex}},e.prototype.exportShape=function(e){var t=this.exportItem(e);t.type=e.description.key,t.text=e.text,e.image.isEmpty||(t.imageUrl=e.image.exportUrl),t.x=e.position.x,t.y=e.position.y,t.width=e.size.width,t.height=e.size.height;var n=e.parameters.toObject();n&&(t.parameters=n);var r=e.style.toObject();r&&(t.style=r);var i=e.styleText.toObject();return i&&(t.styleText=i),e.children.length&&(t.childKeys=e.children.map(function(e){return e.key})),e.expanded||(t.expanded=!1),e.expandedSize&&(t.expandedWidth=e.expandedSize.width,t.expandedHeight=e.expandedSize.height),t},e.prototype.exportConnector=function(e){var t=this.exportItem(e);t.points=e.points.map(function(e){return{x:e.x,y:e.y}});var n=e.texts.toObject();n&&(t.texts=n);var r=e.properties.toObject();r&&(t.properties=r);var i=e.style.toObject();i&&(t.style=i);var o=e.styleText.toObject();o&&(t.styleText=o);var s=e.tryCreateRenderPointsContext();return s&&(t.context=s.toObject()),t},e.prototype.exportSvg=function(e,t,n,r){n.exportSvgImage(e,t,r)},e.prototype.exportPng=function(e,t,n,r,i){n.exportPngImage(e,t,r,i)},e.prototype.exportJpg=function(e,t,n,r,i){n.exportJpgImage(e,t,r,i)},e}();t.Exporter=s},6572:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImportUtils=void 0;var n=function(){function e(){}return e.parseJSON=function(e){if(!e||""===e)return{};try{return JSON.parse(e)}catch(e){return{}}},e.createDocument=function(e){return(new DOMParser).parseFromString(e,"application/xml")},e}();t.ImportUtils=n},2406:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Importer=void 0;var o=n(5503),s=n(8675),a=n(6353),c=n(8900),u=n(8397),l=n(7959),h=n(6617),d=n(8577),f=n(6572),p=n(13),A=n(1510),g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.obj=f.ImportUtils.parseJSON(n),r}return i(t,e),t.prototype.getObject=function(){return this.obj},t.prototype.getPageObject=function(e){return e.page},t.prototype.getShapeObjects=function(e){return e.shapes},t.prototype.getConnectorObjects=function(e){return e.connectors},t.prototype.importPageSettings=function(e,t){t&&(this.assert(t.width,"number"),this.assert(t.height,"number"),"number"==typeof t.width&&(e.size.width=t.width),"number"==typeof t.height&&(e.size.height=t.height),"number"==typeof t.pageColor?e.pageColor=t.pageColor:"string"==typeof t.pageColor&&(e.pageColor=p.ColorUtils.fromString(t.pageColor)),"number"==typeof t.pageWidth&&(e.pageSize.width=t.pageWidth),"number"==typeof t.pageHeight&&(e.pageSize.height=t.pageHeight),"boolean"==typeof t.pageLandscape&&(e.pageLandscape=t.pageLandscape))},t.prototype.importShape=function(e){this.assert(e.key,"string"),this.assert(e.x,"number"),this.assert(e.y,"number"),this.assert(e.type,"string");var t=e.type,n=this.shapeDescriptionManager.get(t),r=new c.Point(e.x,e.y),i=new o.Shape(n||u.ShapeDescriptionManager.default,r);return i.key=e.key,"string"!=typeof e.dataKey&&"number"!=typeof e.dataKey||(i.dataKey=e.dataKey),"object"==typeof e.customData&&(i.customData=s.ObjectUtils.cloneObject(e.customData)),"boolean"==typeof e.locked&&(i.locked=e.locked),"number"==typeof e.width&&(i.size.width=e.width),"number"==typeof e.height&&(i.size.height=e.height),"string"==typeof e.text&&(i.text=e.text),"string"==typeof e.imageUrl&&(i.image=new h.ImageInfo(e.imageUrl)),e.parameters&&(i.parameters.fromObject(e.parameters),i.description.normalizeParameters(i,i.parameters)),e.style&&i.style.fromObject(e.style),e.styleText&&i.styleText.fromObject(e.styleText),"number"==typeof e.zIndex&&(i.zIndex=e.zIndex),Array.isArray(e.childKeys)&&(i.childKeys=e.childKeys.slice()),"boolean"==typeof e.expanded&&(i.expanded=e.expanded),"number"==typeof e.expandedWidth&&"number"==typeof e.expandedHeight&&(i.expandedSize=new a.Size(e.expandedWidth,e.expandedHeight)),i},t.prototype.importShapeChildren=function(e,t){return[]},t.prototype.importConnector=function(e){var t=this;if(this.assert(e.key,"string"),!Array.isArray(e.points))throw Error("Invalid Format");var n=e.points.map(function(e){return t.assert(e.x,"number"),t.assert(e.y,"number"),new c.Point(e.x,e.y)}),r=new l.Connector(n);return r.key=e.key,"string"!=typeof e.dataKey&&"number"!=typeof e.dataKey||(r.dataKey=e.dataKey),"object"==typeof e.customData&&(r.customData=s.ObjectUtils.cloneObject(e.customData)),"boolean"==typeof e.locked&&(r.locked=e.locked),r.endConnectionPointIndex="number"==typeof e.endConnectionPointIndex?e.endConnectionPointIndex:-1,r.beginConnectionPointIndex="number"==typeof e.beginConnectionPointIndex?e.beginConnectionPointIndex:-1,void 0!==e.endItemKey&&this.assert(e.endItemKey,"string"),void 0!==e.beginItemKey&&this.assert(e.beginItemKey,"string"),r.endItemKey=e.endItemKey,r.beginItemKey=e.beginItemKey,e.texts&&r.texts.fromObject(e.texts),e.properties&&r.properties.fromObject(e.properties),e.style&&r.style.fromObject(e.style),e.styleText&&r.styleText.fromObject(e.styleText),"number"==typeof e.zIndex&&(r.zIndex=e.zIndex),void 0!==e.context&&r.replaceRenderPoints(A.ConnectorRenderPointsContext.fromObject(e.context),!1),r},t}(d.ImporterBase);t.Importer=g},8577:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImporterBase=void 0;var r=n(6613),i=n(5503),o=function(){function e(e){this.shapeDescriptionManager=e}return e.prototype.import=function(){var e=new r.DiagramModel,t=this.getObject();this.importPageSettings(e,this.getPageObject(t));for(var n=this.importShapes(this.getShapeObjects(t)),i=0;i<n.length;i++){var o=n[i];if(e.findItem(o.key))throw Error("Item key is duplicated");e.pushItem(o)}var s=this.importConnectors(this.getConnectorObjects(t));for(i=0;i<s.length;i++){var a=s[i];if(a.endItem=e.findItem(a.endItemKey)||void 0,delete a.endItemKey,a.beginItem=e.findItem(a.beginItemKey)||void 0,delete a.beginItemKey,e.findItem(a.key))throw Error("Item key is duplicated");e.pushItem(a),this.updateConnections(a)}return this.updateChildren(e.items,function(t){return e.findItem(t)}),e},e.prototype.importItems=function(e){for(var t,n=[],r=this.getObject(),i={},o=this.importShapes(this.getShapeObjects(r)),s=0;s<o.length;s++){var a=o[s],c=a.key;t=e.getNextKey(),a.key=t,i[c]=a,void 0!==a.dataKey&&(a.dataKey=void 0),n.push(a)}var u=this.importConnectors(this.getConnectorObjects(r));for(s=0;s<u.length;s++){var l=u[s];c=l.key,t=e.getNextKey(),l.key=t,i[c]=l,void 0!==l.dataKey&&(l.dataKey=void 0);var h=l.endItemKey;l.endItem=i[h],delete l.endItemKey;var d=l.beginItemKey;l.beginItem=i[d],delete l.beginItemKey,n.push(l),this.updateConnections(l)}return this.updateChildren(n,function(e){return i[e]}),n},e.prototype.importItemsData=function(e){for(var t=this.getObject(),n=this.importShapes(this.getShapeObjects(t)),r={},i=0;i<n.length;i++){var o=n[i],s=void 0;void 0!==o.dataKey&&(s=e.findShapeByDataKey(o.dataKey)),s&&(s.dataKey=o.dataKey,r[o.key]=o.dataKey,s.locked=o.locked,s.position=o.position.clone(),s.expanded=o.expanded,o.expandedSize&&(s.expandedSize=o.expandedSize.clone()),s.size=o.size.clone(),s.parameters=o.parameters.clone(),s.style=o.style.clone(),s.styleText=o.styleText.clone(),s.zIndex=o.zIndex,s.text=o.text,s.description=o.description,s.image=o.image.clone())}var a=this.importConnectors(this.getConnectorObjects(t));for(i=0;i<a.length;i++){var c=a[i],u=void 0;void 0!==c.dataKey&&(u=e.findConnectorByDataKey(c.dataKey)),u||(u=e.findConnectorByBeginEndDataKeys(r[c.beginItemKey],r[c.endItemKey])),u&&(u.dataKey=c.dataKey,u.locked=c.locked,u.points=c.points.slice(),u.properties=c.properties.clone(),u.style=c.style.clone(),u.endConnectionPointIndex=c.endConnectionPointIndex,u.beginConnectionPointIndex=c.beginConnectionPointIndex,u.texts=c.texts.clone(),u.styleText=c.styleText.clone(),u.zIndex=c.zIndex)}},e.prototype.importShapes=function(e){var t=[];if(!e)return t;if(!Array.isArray(e))throw Error("Invalid Format");for(var n=0;n<e.length;n++){var r=e[n],i=this.importShape(r);t.push(i),t=t.concat(this.importShapeChildren(r,i))}return t},e.prototype.importConnectors=function(e){var t=[];if(!e)return t;if(!Array.isArray(e))throw Error("Invalid Format");for(var n=0;n<e.length;n++){var r=e[n];t.push(this.importConnector(r))}return t},e.prototype.updateChildren=function(e,t){e.forEach(function(e){e instanceof i.Shape&&e.childKeys&&(e.childKeys.forEach(function(n){var r=t(n);r&&(-1===e.children.indexOf(r)&&e.children.push(r),r.container=e)}),delete e.childKeys)})},e.prototype.updateConnections=function(e){e.endItem&&(e.endItem instanceof i.Shape?(e.endItem.attachedConnectors.push(e),e.points[e.points.length-1]=e.endItem.getConnectionPointPosition(e.endConnectionPointIndex,e.points[e.points.length-2])):(e.endItem=void 0,e.endConnectionPointIndex=-1)),e.beginItem&&(e.beginItem instanceof i.Shape?(e.beginItem.attachedConnectors.push(e),e.points[0]=e.beginItem.getConnectionPointPosition(e.beginConnectionPointIndex,e.points[1])):(e.beginItem=void 0,e.beginConnectionPointIndex=-1))},e.prototype.assert=function(e,t){if(void 0===e)throw Error("Invalid Format");if(void 0!==t&&typeof e!==t)throw Error("Invalid Format")},e}();t.ImporterBase=o},780:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.XmlImporter=void 0;var o=n(7959),s=n(5503),a=n(8577),c=n(2259),u=n(8397),l=n(6353),h=n(8900),d=n(6572),f=n(13),p=n(9291),A=function(e){function t(t,n){var r=e.call(this,t)||this;return r.doc=d.ImportUtils.createDocument(n),r}return i(t,e),t.prototype.getObject=function(){return this.doc},t.prototype.getPageObject=function(e){var t=this.doc.querySelectorAll("[ItemKind='DiagramRoot']");return t&&t[0]},t.prototype.getShapeObjects=function(e){var t=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramShape']").forEach(function(e){t.push(e)}),this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramContainer']").forEach(function(e){t.push(e)}),t},t.prototype.getConnectorObjects=function(e){var t=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramConnector']").forEach(function(e){t.push(e)}),t},t.prototype.importPageSettings=function(e,t){if(t){var n=t.getAttribute("PageSize"),r=this.getSize(n);r&&(e.size=r.clone(),e.pageSize=r.clone())}},t.prototype.importShape=function(e){var t=e.getAttribute("Position"),n=this.getPoint(t),r=e.getAttribute("Shape"),i=this.getShapeType(r),o=this.shapeDescriptionManager.get(i),a=new s.Shape(o||u.ShapeDescriptionManager.default,n);a.key=this.getItemKey(e);var c=e.getAttribute("Size"),l=this.getSize(c);l&&(a.size=l);var h=e.getAttribute("Content");if("string"==typeof h)a.text=h;else{var d=e.getAttribute("Header");"string"==typeof d&&(a.text=d)}return this.importStyle(e,a),a},t.prototype.importShapeChildren=function(e,t){var n=[];e.setAttribute("dxDiagram",""),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramShape']").forEach(function(e){n.push(e)}),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramContainer']").forEach(function(e){n.push(e)}),e.removeAttribute("dxDiagram");var r=[];if(!n)return r;for(var i=0;i<n.length;i++){var o=n[i],s=this.importShape(o);s.key=t.key+","+s.key;var a=t.clientRectangle;s.position=s.position.clone().offset(a.x,a.y),t.childKeys||(t.childKeys=[]),t.childKeys.push(s.key),r.push(s),r=r.concat(this.importShapeChildren(o,s))}return r},t.prototype.importConnector=function(e){var t=this,n=[],r=e.getAttribute("BeginPoint"),i=this.getPoint(r);i&&n.push(i),e.getAttribute("Points").split(" ").forEach(function(e){var r=t.getPoint(e);r&&n.push(r)});var s=e.getAttribute("EndPoint"),a=this.getPoint(s);a&&n.push(a);var c=new o.Connector(n);c.key=this.getItemKey(e);var u=e.getAttribute("EndItemPointIndex"),l=parseInt(u);c.endConnectionPointIndex=isNaN(l)?-1:l;var h=e.getAttribute("BeginItemPointIndex"),d=parseInt(h);c.beginConnectionPointIndex=isNaN(d)?-1:d;var f=e.getAttribute("EndItem");void 0!==f&&this.assert(f,"string");var p=e.getAttribute("BeginItem");void 0!==p&&this.assert(p,"string"),c.endItemKey=f,c.beginItemKey=p;var A=e.getAttribute("Content");return"string"==typeof A&&c.setText(A),this.importStyle(e,c),c},t.prototype.importStyle=function(e,t){var n=e.getAttribute("Background");"string"==typeof n&&(t.style.fill=this.getColor(n));var r=e.getAttribute("Stroke");"string"==typeof r&&(t.style.stroke=this.getColor(r));var i=e.getAttribute("Foreground");"string"==typeof i&&(t.styleText.fill=this.getColor(i));var o=e.getAttribute("FontFamily");"string"==typeof o&&(t.styleText["font-family"]=o);var s=e.getAttribute("FontSize");"string"==typeof s&&(t.styleText["font-size"]=s),"Bold"===e.getAttribute("FontWeight")&&(t.styleText["font-weight"]="bold"),"Italic"===e.getAttribute("FontStyle")&&(t.styleText["font-style"]="italic"),"Underline"===e.getAttribute("TextDecorations")&&(t.styleText["text-decoration"]="underline");var a=e.getAttribute("TextAlignment");"Left"===a?t.styleText["text-anchor"]="start":"Right"===a?t.styleText["text-anchor"]="end":"Center"===a&&(t.styleText["text-anchor"]="middle")},t.prototype.getShapeType=function(e){return t.shapeTypes[e]?t.shapeTypes[e]:e&&e.toLowerCase().indexOf("container")>-1?c.ShapeTypes.VerticalContainer:c.ShapeTypes.Rectangle},t.prototype.getItemKey=function(e){return(parseInt(e.tagName.replace("Item",""))-1).toString()},t.prototype.getNumbers=function(e){var t=e.split(",");return t&&t.length?t.map(function(e){return+e}):[]},t.prototype.getSize=function(e){if(e){var t=this.getNumbers(e);if(t.length>=2)return this.assert(t[0],"number"),this.assert(t[1],"number"),new l.Size(p.UnitConverter.pixelsToTwips(t[0]),p.UnitConverter.pixelsToTwips(t[1]))}},t.prototype.getPoint=function(e){if(e){var t=this.getNumbers(e);if(t.length>=2)return this.assert(t[0],"number"),this.assert(t[1],"number"),new h.Point(p.UnitConverter.pixelsToTwips(t[0]),p.UnitConverter.pixelsToTwips(t[1]))}},t.prototype.getColor=function(e){e="#"===e.charAt(0)?e.substr(1):e;var t=parseInt(e,16);return isNaN(t)?void 0:f.ColorUtils.colorToHash(t)},t.shapeTypes={"BasicShapes.Rectangle":c.ShapeTypes.Rectangle,"BasicShapes.Ellipse":c.ShapeTypes.Ellipse,"BasicShapes.Triangle":c.ShapeTypes.Triangle,"BasicShapes.Pentagon":c.ShapeTypes.Pentagon,"BasicShapes.Hexagon":c.ShapeTypes.Hexagon,"BasicShapes.Octagon":c.ShapeTypes.Octagon,"BasicShapes.Diamond":c.ShapeTypes.Diamond,"BasicShapes.Cross":c.ShapeTypes.Cross,"BasicShapes.Star5":c.ShapeTypes.Star,"BasicFlowchartShapes.StartEnd":c.ShapeTypes.Terminator,"BasicFlowchartShapes.Data":c.ShapeTypes.Data,"BasicFlowchartShapes.Database":c.ShapeTypes.Database,"BasicFlowchartShapes.ExternalData":c.ShapeTypes.StoredData,"BasicFlowchartShapes.Process":c.ShapeTypes.Process,"BasicFlowchartShapes.Decision":c.ShapeTypes.Decision,"BasicFlowchartShapes.Subprocess":c.ShapeTypes.PredefinedProcess,"BasicFlowchartShapes.Document":c.ShapeTypes.Document,"BasicFlowchartShapes.Custom1":c.ShapeTypes.ManualInput,"BasicFlowchartShapes.Custom2":c.ShapeTypes.ManualOperation,"ArrowShapes.SimpleArrow":c.ShapeTypes.ArrowLeft,"ArrowShapes.SimpleDoubleArrow":c.ShapeTypes.ArrowLeftRight},t}(a.ImporterBase);t.XmlImporter=A},5227:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutBuilder=void 0;var r=n(8710),i=function(){function e(e,t){this.settings=e,this.graph=t}return e.prototype.getBreadthNodeSizeCore=function(e,t){var n=this.settings.orientation===r.DataLayoutOrientation.Vertical?e.size.width:e.size.height;return t||(n+=this.settings.orientation===r.DataLayoutOrientation.Vertical?e.margin.left+e.margin.right:e.margin.top+e.margin.bottom),n},e.prototype.getDepthNodeSizeCore=function(e){return this.settings.orientation===r.DataLayoutOrientation.Horizontal?e.size.width+e.margin.left+e.margin.right:e.size.height+e.margin.top+e.margin.bottom},e.prototype.chooseDirectionValue=function(e,t){return this.settings.direction===r.LogicalDirectionKind.Forward?e:t},e.prototype.getDirectionValue=function(e){return this.settings.direction===r.LogicalDirectionKind.Forward?e:-e},e.prototype.getComponentOffset=function(e){var t=e.getRectangle(!0);return(this.settings.orientation===r.DataLayoutOrientation.Vertical?t.width:t.height)+this.settings.componentSpacing},e.prototype.setComponentOffset=function(e,t){return this.settings.orientation===r.DataLayoutOrientation.Vertical?e.offsetNodes(t):e.offsetNodes(0,t)},e}();t.LayoutBuilder=i},1256:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EdgeOnLayer=t.NodeOnLayer=t.SugiyamaNodesOrderer=t.SugiyamaLayerDistributor=t.SugiyamaLayoutBuilder=void 0;var o=n(5227),s=n(213),a=n(617),c=n(8217),u=n(701),l=n(2400),h=n(8900),d=n(8710),f=n(8119),p=n(7959),A=n(7309),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.build=function(){var e=this,t=0,n=new f.GraphLayout,r=new y;return this.graph.getConnectedComponents().forEach(function(i){var o=A.CycleRemover.removeCycles(i),s=m.getLayers(o.graph),a=r.orderNodes(o.graph,s),c=Object.keys(o.removedEdges).map(function(e){return i.getEdge(e)}),u=r.assignAbsCoordinates(a),l=e.createInfoGraphLayout(u,o.reversedEdges,c);n.extend(e.setComponentOffset(l,t)),t+=e.getComponentOffset(l)}),n},t.prototype.createInfoGraphLayout=function(e,t,n){for(var r=this,i=new h.Point(0,0),o=e.items,s=new u.HashSet(o.map(function(e){return e.layer}).sort(function(e,t){return e-t})),a=this.getAbsOffsetInfo(e.items),c={},l=0,p=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,A=Number.MIN_SAFE_INTEGER||Number.MAX_VALUE,g=function(e){var t=s.item(e),n=0;o.filter(function(e){return e.layer===t}).sort(function(e,t){return e.position-t.position}).forEach(function(e){var t=r.getDepthNodeSize(e),o=r.chooseDirectionValue(0,t),s=r.getAbsPosition(e.position,r.getBreadthNodeSize(e),a);i=r.setBreadth(i,s);var u=r.setDepthOffset(i,-o);if(c[e.key]=u,!e.isDummy){var l=r.settings.orientation===d.DataLayoutOrientation.Horizontal?u.y:u.x;p=Math.min(p,l),A=Math.max(A,l+r.getBreadthNodeSize(e)),n=Math.max(n,r.getDepthNodeSize(e))}}),l+=n,i=m.setBreadth(i,0),i=m.setDepthOffset(i,m.getDirectionValue(n+m.settings.layerSpacing))},m=this,y=0;y<s.length;y++)g(y);l+=(s.length-1)*this.settings.layerSpacing;var v=new f.GraphLayout;return this.createNodesLayout(e,v,p,l,c),this.createEdgesLayout(e,v,t,n),v},t.prototype.createNodesLayout=function(e,t,n,r,i){var o=this,s=this.settings.orientation===d.DataLayoutOrientation.Vertical?new h.Point(-n,this.chooseDirectionValue(0,r)):new h.Point(this.chooseDirectionValue(0,r),-n);e.items.forEach(function(e){if(!e.isDummy){var n=o.graph.getNode(e.key);t.addNode(new a.NodeLayout(n,i[e.key].clone().offset(s.x,s.y)))}})},t.prototype.createEdgesLayout=function(e,t,n,r){var i=this.getDirectEdgeLayout(),o=this.getDiffLevelEdgeLayout(!0),s=this.getDiffLevelEdgeLayout(!1),c=this.getSameLevelEdgeLayout(!0),u=this.getSameLevelEdgeLayout(!1),l={};e.edges.filter(function(e){return!e.isDummy}).concat(r.map(function(e){return new w(e.key,!1,e.from,e.to)})).sort(function(t,n){return e.getNode(t.originFrom).layer-e.getNode(n.originFrom).layer||e.getNode(t.to).layer-e.getNode(n.to).layer}).forEach(function(r){var h=n[r.key],d=e.getNode(h?r.to:r.originFrom),f=e.getNode(h?r.originFrom:r.to);if(f.layer-d.layer==1)t.addEdge(new a.EdgeLayout(r.key,i.from,i.to));else{var A=[];if(f.position-d.position>=1)A.push(o),A.push({from:i.from,to:o.to}),A.push({from:o.from,to:i.to});else if(f.position-d.position<=-1)A.push(s),A.push({from:i.from,to:s.to}),A.push({from:s.from,to:i.to});else{var g=d.position===f.position&&0===f.position?[c,u]:[u,c];g.forEach(function(e){return A.push(e)}),g.forEach(function(e){A.push({from:e.from,to:i.to}),A.push({from:i.from,to:e.to})})}A.push(i);for(var m=0,y=void 0;y=A[m];m++){var v=d.key+"_"+y.from,b=f.key+"_"+y.to;if(l[v]!==p.ConnectorPosition.End&&l[b]!==p.ConnectorPosition.Begin){t.addEdge(new a.EdgeLayout(r.key,y.from,y.to)),l[v]=p.ConnectorPosition.Begin,l[b]=p.ConnectorPosition.End;break}}}})},t.prototype.getDirectEdgeLayout=function(){return this.settings.orientation===d.DataLayoutOrientation.Horizontal?this.settings.direction===d.LogicalDirectionKind.Forward?{from:1,to:3}:{from:3,to:1}:this.settings.direction===d.LogicalDirectionKind.Forward?{from:2,to:0}:{from:0,to:2}},t.prototype.getDiffLevelEdgeLayout=function(e){return this.settings.orientation===d.DataLayoutOrientation.Horizontal?e?{from:2,to:0}:{from:0,to:2}:e?{from:3,to:1}:{from:1,to:3}},t.prototype.getSameLevelEdgeLayout=function(e){return this.settings.orientation===d.DataLayoutOrientation.Horizontal?e?{from:0,to:0}:{from:2,to:2}:e?{from:3,to:3}:{from:1,to:1}},t.prototype.getAbsOffsetInfo=function(e){var t=this,n={},r=function(e,r){void 0===n[r]&&(n[r]=t.getBreadthNodeSize(e)),n[r]=Math.max(n[r],t.getBreadthNodeSize(e))};e.forEach(function(e){var t=C(e.position);r(e,t),n[t]%1!=0&&r(e,t+1)});var i={},o=0;return Object.keys(n).sort(function(e,t){return parseFloat(e)-parseFloat(t)}).forEach(function(e){i[e]={leftOffset:o,width:n[e]},o+=n[e]+t.settings.columnSpacing}),i},t.prototype.setBreadth=function(e,t){return this.settings.orientation===d.DataLayoutOrientation.Vertical?new h.Point(t,e.y):new h.Point(e.x,t)},t.prototype.setDepthOffset=function(e,t){return this.settings.orientation===d.DataLayoutOrientation.Horizontal?new h.Point(e.x+t,e.y):new h.Point(e.x,e.y+t)},t.prototype.getAbsPosition=function(e,t,n){var r=C(e),i=n[r].leftOffset,o=n[r].width;return e%1==0?i+(o-t)/2:i+o-(t-this.settings.columnSpacing)/2},t.prototype.getBreadthNodeSize=function(e){return e.isDummy?0:this.getBreadthNodeSizeCore(this.graph.getNode(e.key))},t.prototype.getDepthNodeSize=function(e){return e.isDummy?0:this.getDepthNodeSizeCore(this.graph.getNode(e.key))},t}(o.LayoutBuilder);t.SugiyamaLayoutBuilder=g;var m=function(){function e(){}return e.getLayers=function(e){var t=this.getFeasibleTree(e);return this.calcNodesLayers(t)},e.getFeasibleTree=function(e){var t=this.initLayerAssignment(e);return e.getSpanningGraph(e.nodes[0],c.ConnectionMode.OutgoingAndIncoming,function(e){return t[e.to]-t[e.from]})},e.initLayerAssignment=function(e){for(var t={},n=0,r={},i=e.nodes.filter(function(t){return!e.getAdjacentEdges(t,c.ConnectionMode.Incoming).length}),o=function(){i.forEach(function(e){t[e]=n,r[e]=!0}),Object.keys(r).forEach(function(n){0===e.getAdjacentEdges(n,c.ConnectionMode.Outgoing).filter(function(e){return void 0===t[e.to]}).length&&delete r[n]});var o={};Object.keys(r).forEach(function(n){e.getAdjacentEdges(n,c.ConnectionMode.Outgoing).map(function(e){return e.to}).filter(function(n){return void 0===t[n]&&e.getAdjacentEdges(n,c.ConnectionMode.Incoming).reduce(function(e,n){return e&&void 0!==t[n.from]},!0)}).forEach(function(e){return o[e]=!0})}),i=Object.keys(o),n++};i.length;)o();return t},e.calcNodesLayers=function(e){var t={},n=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,r=0,i=e.createIterator(c.ConnectionMode.OutgoingAndIncoming);for(var o in i.visitEachEdgeOnce=!1,i.onNode=function(e){t[e.key]=r,n=Math.min(n,r)},i.skipNode=function(e){return void 0!==t[e.key]},i.skipEdge=function(e){return void 0!==t[e.from]&&void 0!==t[e.to]},i.onEdge=function(e,n){r=n?t[e.from]+1:t[e.to]-1},i.iterate(e.nodes[0]),t)Object.prototype.hasOwnProperty.call(t,o)&&(t[o]-=n);return t},e}();t.SugiyamaLayerDistributor=m;var y=function(){function e(){this.idCounter=-1e4}return e.prototype.orderNodes=function(e,t){for(var n=1,r=this.initGraphInfo(e,t),i=r.items,o=this.initOrder(i),s=this.getNodeToPositionMap(i),a=this.getCrossCount(o,r),c=!0;n<14&&0!==a;){o=this.getNodesOrder(o,r,c);var u=this.getCrossCount(o,r);u<a&&(s=this.getNodeToPositionMap(r.items),a=u),c=!c,n++}return r.items.forEach(function(e){return e.position=s[e.key]}),r},e.prototype.getNodesOrder=function(e,t,n){var r=this,i={},o=function(o){if(!Object.prototype.hasOwnProperty.call(e,o))return"continue";var a={},c=[];e[o].forEach(function(e){var i=(n?t.getChildren(e.key):t.getParents(e.key)).map(function(e){return t.getNode(e).position});c.push(e.key),a[e.key]=r.getNodePosition(i)}),i[o]=s.sortNodes(c,a,t)},s=this;for(var a in e)o(a);return i},e.prototype.sortNodes=function(e,t,n){return e.sort(function(e,n){return t[e]-t[n]}).map(function(e,t){var r=n.getNode(e);return r.position=t,r})},e.prototype.getNodePosition=function(e){if(!(e=e.sort(function(e,t){return e-t})).length)return 0;var t=Math.floor(e.length/2);if(2===e.length||e.length%2==1)return e[t];var n=e[t-1]-e[0],r=e[e.length-1]-e[t];return Math.floor((e[t-1]*r+e[t]*n)/(n+r))},e.prototype.initOrder=function(e){var t={};return e.forEach(function(e){return(t[e.layer]||(t[e.layer]=[])).push(e)}),t},e.prototype.getCrossCount=function(e,t){var n=0,r=function(r){if(!Object.prototype.hasOwnProperty.call(e,r))return"continue";var i=[];e[r].forEach(function(e){var r=t.getChildren(e.key).map(function(e){return t.getNode(e).position});r.forEach(function(e){n+=i.filter(function(t){return e<t}).length}),i=i.concat(r)})};for(var i in e)r(i);return n},e.prototype.initGraphInfo=function(e,t){var n=this,r={},i={},o=[],a=[];return e.nodes.forEach(function(e){var n=t[e];void 0===r[n]&&(r[n]=0);var s=new v(e,!1,n,r[n]++);i[e]=s,o.push(s)}),e.edges.forEach(function(e){var s=t[e.to]-t[e.from];if(s>1){for(var c=i[e.from],u=1;u<s;u++){var l=new v(n.createDummyID(),!0,t[e.from]+u,r[t[e.from]+u]++);a.push(new w(n.createDummyID(),!0,c.key,l.key)),o.push(l),c=l}a.push(new w(e.key,!1,c.key,i[e.to].key,i[e.from].key))}else a.push(new w(e.key,!1,i[e.from].key,i[e.to].key))}),new s.FastGraph(o,a)},e.prototype.createDummyID=function(){return"dummy_"+--this.idCounter},e.prototype.getNodeToPositionMap=function(e){return e.reduce(function(e,t){return e[t.key]=t.position,e},{})},e.prototype.assignAbsCoordinates=function(e){var t=this.getAbsCoodinate(e);return new s.FastGraph(e.items.map(function(e){return new v(e.key,e.isDummy,e.layer,t[e.key])}),e.edges.slice(0))},e.prototype.getAbsCoodinate=function(e){var t=this,n=e.items.reduce(function(e,t){e[t.layer]=e[t.layer]||[];var n=l.SearchUtils.binaryIndexOf(e[t.layer],function(e){return e.position-t.position});return e[t.layer].splice(n<0?~n:n,0,t),e},{}),r=[b.TopLeft,b.TopRight,b.BottomLeft,b.BottomRight].map(function(r){return t.getPositionByMedian(e,r,n)}),i={};return e.items.forEach(function(e){var t=r.map(function(t){return t[e.key]}).sort(function(e,t){return e-t});i[e.key]=(t[1]+t[2])/2}),i},e.prototype.getPositionByMedian=function(e,t,n){var r=e.items,i=this.getNodeToPositionMap(r),o=this.getMedians(e,r,t);return o=this.resolveMedianConflicts(e,n,o,t),this.getSortedBlocks(e,r,o,t).forEach(function(e){var t=e.reduce(function(e,t){return i[t.key]>e?i[t.key]:e},-2);e.forEach(function(e){var r=t-i[e.key];r>0&&n[e.layer].filter(function(t){return t.position>e.position}).forEach(function(e){return i[e.key]+=r}),i[e.key]=t})}),i},e.prototype.getSortedBlocks=function(e,t,n,r){for(var i=[],o=r===b.BottomLeft||r===b.BottomRight,s=new u.HashSet(t.slice(0).sort(function(e,t){return o?e.layer-t.layer:t.layer-e.layer}),function(e){return e.key}),a=new u.HashSet;s.length;){var c=s.item(0),l=this.getBlock(e,c,n,r).filter(function(e){return a.tryPush(e.key)});i.push(l),l.forEach(function(e){return s.remove(e)})}return i.sort(function(e,t){var n=e.reduce(function(e,t){return t.position<e.position?t:e},e[0]),r=t.filter(function(e){return e.layer===n.layer})[0];if(r)return n.position>r.position?1:-1;var i=t.reduce(function(e,t){return t.position<e.position?t:e},t[0]),o=e.filter(function(e){return e.layer===i.layer})[0];return o?o.position>i.position?1:-1:n.layer>i.layer?1:-1}),i},e.prototype.getBlock=function(e,t,n,r){var i=[],o=null;do{o&&(t=r===b.TopLeft||r===b.TopRight?e.getNode(o.from):e.getNode(o.to)),i.push(t),o=n[t.key]}while(o);return i},e.prototype.resolveMedianConflicts=function(e,t,n,r){var i=this,o={},s=function(s){if(!Object.prototype.hasOwnProperty.call(t,s))return"continue";var a,c,u=t[s];r!==b.TopRight&&r!==b.BottomRight||(u=u.slice(0).sort(function(e,t){return t.position-e.position})),u.forEach(function(t){var s=n[t.key];if(s){var u=r===b.TopLeft||r===b.TopRight?s.from:s.to,l=e.getNode(u).position;i.checkMedianConfict(a,c,l,r)?o[t.key]=null:(a=void 0===a?l:Math.min(a,l),c=void 0===c?l:Math.max(c,l),o[t.key]=s)}else o[t.key]=null})};for(var a in t)s(a);return o},e.prototype.checkMedianConfict=function(e,t,n,r){return void 0!==e&&void 0!==t&&(r===b.TopLeft||r===b.BottomLeft?t>=n:e<=n)},e.prototype.getMedians=function(e,t,n){var r=this,i={};return t.forEach(function(t){var o=r.getActualAdjacentEdges(e,t,n),s=r.getMedianPosition(o.length,n);i[t.key]=o[s]}),i},e.prototype.getMedianPosition=function(e,t){if(0===e)return-1;if(e%2!=0)return Math.floor(e/2);if(t===b.TopLeft||t===b.BottomLeft)return Math.floor(e/2)-1;if(t===b.TopRight||t===b.BottomRight)return Math.floor(e/2);throw new Error("Invalid Operation")},e.prototype.getActualAdjacentEdges=function(e,t,n){return n===b.TopLeft||n===b.TopRight?e.getAdjacentEdges(t.key,c.ConnectionMode.Incoming).sort(function(t,n){return e.getNode(t.from).position-e.getNode(n.from).position}):e.getAdjacentEdges(t.key,c.ConnectionMode.Outgoing).sort(function(t,n){return e.getNode(t.to).position-e.getNode(n.to).position})},e}();t.SugiyamaNodesOrderer=y;var v=function(){function e(e,t,n,r){this.key=e,this.isDummy=t,this.layer=n,this.position=r}return e.prototype.getHashCode=function(){return this.key.toString()},e}();t.NodeOnLayer=v;var b,w=function(){function e(e,t,n,r,i){this.key=e,this.isDummy=t,this.from=n,this.to=r,this._originFrom=i}return e.prototype.getHashCode=function(){return this.from+"-"+this.to},Object.defineProperty(e.prototype,"originFrom",{get:function(){return void 0!==this._originFrom?this._originFrom:this.from},enumerable:!1,configurable:!0}),e}();function C(e){return Math.trunc?Math.trunc(e):isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}t.EdgeOnLayer=w,function(e){e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight"}(b||(b={}))},9533:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TreeLayoutBuilder=void 0;var o=n(8119),s=n(5148),a=n(617),c=n(8675),u=n(8900),l=n(5227),h=n(8217),d=n(3742),f=n(8710),p=n(213),A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.nodeToLevel={},t.levelDepthSize={},t}return i(t,e),t.prototype.build=function(){var e=this,t=new o.GraphLayout,n=0;return this.graph.getConnectedComponents().forEach(function(r){for(var i=s.Tree.createSpanningTree(r),o=e.processTree(i),a=e.getComponentOffset(o);o.nodeKeys.length<r.nodes.length;){var c=new p.Graph(r.nodes.filter(function(e){return!o.nodeToLayout[e]}).map(function(e){return r.getNode(e)}),r.edges.filter(function(e){return!o.edgeToPosition[e.key]})),u=s.Tree.createSpanningTree(c),l=e.processTree(u);o.extend(e.setComponentOffset(l,a)),a+=e.getComponentOffset(l)}t.extend(e.setComponentOffset(o,n)),n+=e.getComponentOffset(o)}),t},t.prototype.preProcessTree=function(e,t,n){var r=this;if((t=t.filter(function(e){return(void 0===r.nodeToLevel[e.key]?r.nodeToLevel[e.key]=n:-1)>=0})).length){var i=this.getMaxDepthSize(t);this.levelDepthSize[n]=i,this.preProcessTree(e,[].concat.apply([],t.map(function(t){return e.getChildren(t)})),n+1)}},t.prototype.loadNodes=function(e,t,n){return n?e.getChildren(n.info).map(function(e){return t.hasNode(e.key)?void 0:t.addNode(new a.NodeLayout(e,u.Point.zero()))}).filter(function(e){return e}):[t.addNode(new a.NodeLayout(e.root,u.Point.zero()))]},t.prototype.processTree=function(e){var t=this,n=new o.GraphLayout;if(this.preProcessTree(e,[e.root],0),this.processLevel(e,n,0,new c.Range(0),0),this.settings.direction===f.LogicalDirectionKind.Backward){var r=Object.keys(this.levelDepthSize).map(function(e){return t.levelDepthSize[e]}),i=r.reduce(function(e,t){return e+t},0)+(r.length-1)*this.settings.layerSpacing;n.forEachNode(function(e){return t.setDepthPos(e,t.getDepthPos(e)+i)})}return n},t.prototype.processLevel=function(e,t,n,r,i,o){var s,a=this,u=this.addNodes(e,t,i,o),l=o?this.graph.getAdjacentEdges(o.key,h.ConnectionMode.Outgoing):[],d=this.getDirectionValue(this.levelDepthSize[i]),f=this.getDirectionValue(this.settings.layerSpacing);if(u.forEach(function(o){var u=c.Range.fromLength(s?s.to+a.settings.columnSpacing:r.from,a.getBreadthNodeSizeCore(o.info));o.position=a.getNodePosition(u.from,n,d).clone().offset(o.info.margin.left,o.info.margin.top),a.processLevel(e,t,n+d+f,u,i+1,o),a.updateEdgeConnections(t,l,o),r.extend(u),s=u}),o&&u.length){var p=u[u.length-1],A=new c.Range(this.getBreadthPos(u[0]),this.getBreadthPos(p)+this.getBreadthNodeSizeCore(p.info,!0));this.alignParent(o,A,r)}},t.prototype.addNodes=function(e,t,n,r){var i=this;return 0===n?[t.addNode(new a.NodeLayout(e.root,u.Point.zero()))]:e.getChildren(r.info).reduce(function(e,r){return i.nodeToLevel[r.key]!==n||t.hasNode(r.key)||e.push(t.addNode(new a.NodeLayout(r,u.Point.zero()))),e},[])},t.prototype.getMaxDepthSize=function(e){var t=this;return e.reduce(function(e,n){return Math.max(e,t.getDepthNodeSizeCore(n))},0)},t.prototype.getNodePosition=function(e,t,n){return this.settings.direction===f.LogicalDirectionKind.Forward?this.settings.orientation===f.DataLayoutOrientation.Vertical?new u.Point(e,t):new u.Point(t,e):this.settings.orientation===f.DataLayoutOrientation.Vertical?new u.Point(e,t+n):new u.Point(t+n,e)},t.prototype.updateEdgeConnections=function(e,t,n){var r=this;t.filter(function(e){return e.to===n.key}).forEach(function(t){var n=r.getBeginEdgeIndex(),i=r.getEndEdgeIndex();e.addEdge(new a.EdgeLayout(t.key,n,i))})},t.prototype.getBeginEdgeIndex=function(){return this.settings.direction===f.LogicalDirectionKind.Forward?this.isVertical()?d.ConnectionPointSide.South:d.ConnectionPointSide.East:this.isVertical()?d.ConnectionPointSide.North:d.ConnectionPointSide.West},t.prototype.getEndEdgeIndex=function(){return this.settings.direction===f.LogicalDirectionKind.Forward?this.isVertical()?d.ConnectionPointSide.North:d.ConnectionPointSide.West:this.isVertical()?d.ConnectionPointSide.South:d.ConnectionPointSide.East},t.prototype.alignParent=function(e,t,n){if(this.settings.alignment===f.Alignment.Center){var r=t.from+t.length/2-this.getBreadthNodeSizeCore(e.info,!0)/2;this.settings.orientation===f.DataLayoutOrientation.Vertical?(e.position.x=Math.max(n.from+e.info.margin.left,r),e.position.x=Math.min(n.to-e.info.size.width-e.info.margin.right,e.position.x)):(e.position.y=Math.max(n.from+e.info.margin.top,r),e.position.y=Math.min(n.to-e.info.size.height-e.info.margin.bottom,e.position.y))}},t.prototype.getDepthPos=function(e){return this.settings.orientation===f.DataLayoutOrientation.Vertical?e.position.y:e.position.x},t.prototype.getBreadthPos=function(e){return this.settings.orientation===f.DataLayoutOrientation.Vertical?e.position.x:e.position.y},t.prototype.setDepthPos=function(e,t){this.settings.orientation===f.DataLayoutOrientation.Vertical?e.position.y=t:e.position.x=t},t.prototype.isVertical=function(){return this.settings.orientation===f.DataLayoutOrientation.Vertical},t}(l.LayoutBuilder);t.TreeLayoutBuilder=A},213:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GraphIterator=t.FastGraph=t.Graph=void 0;var o=n(8217),s=n(5503),a=n(2400),c=n(701),u=function(){function e(e,t){this.nodeMap={},this.edgeMap={},this.nodes=[],this.edges=[],this.onInit(),e.forEach(this.addNode.bind(this)),t.forEach(this.addEdge.bind(this))}return Object.defineProperty(e.prototype,"items",{get:function(){return this.nodes.map(this.getNode.bind(this))},enumerable:!1,configurable:!0}),e.prototype.onInit=function(){},e.prototype.addEdge=function(e){this.edgeMap[e.key]=e,this.edges.push(e)},e.prototype.addNode=function(e){this.nodeMap[e.key]=e,this.nodes.push(e.key)},e.prototype.getNode=function(e){return this.nodeMap[e]},e.prototype.getEdge=function(e){return this.edgeMap[e]},e.prototype.isEmpty=function(){return!this.nodes.length&&!this.edges.length},e.prototype.getAdjacentEdges=function(e,t){return void 0===t&&(t=o.ConnectionMode.OutgoingAndIncoming),this.edges.filter(function(n){return t&o.ConnectionMode.Incoming&&n.to===e||t&o.ConnectionMode.Outgoing&&n.from===e})},e}(),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.cast=function(e,n){var r=this;return new t(this.nodes.map(function(t){return e(r.getNode(t))}),this.edges.map(function(e){return n?n(e):e}))},t.prototype.getConnectedComponents=function(){var e=this.createIterator(o.ConnectionMode.OutgoingAndIncoming);e.visitEachEdgeOnce=!0;for(var n=[],r=function(r){var o=[],s=[];e.onNode=function(e){return o.push(e)},e.onEdge=function(e){return s.push(e)},e.iterate(i.nodes[r]),o.length&&n.push(new t(o,s))},i=this,s=0;s<this.nodes.length;s++)r(s);return n},t.prototype.createIterator=function(e){var t=new d(this,e);return t.comparer=function(e,t){return e.weight-t.weight},t},t.prototype.getSpanningGraph=function(e,n,r){var i=this;if(void 0===r&&(r=void 0),!this.nodes.length)return new t([],[]);r||(r=function(e){return e.weight});var o=[],s=new c.HashSet,a=new c.HashSet([],function(e){return e.getHashKey()});for(this.addNodeToSpanningGraph(e,n,o,s,a,r);o.length&&s.length!==this.nodes.length;){var u=o.shift();a.tryPush(u);var l=s.contains(u.from)?u.to:u.from;this.addNodeToSpanningGraph(l,n,o,s,a,r),o=o.filter(function(e){return!s.contains(e.from)||!s.contains(e.to)})}return new t(s.list().map(function(e){return i.getNode(e)}),a.list())},t.prototype.addNodeToSpanningGraph=function(e,t,n,r,i,s){r.tryPush(e),this.getAdjacentEdges(e,t).filter(function(e){return!i.contains(e)}).forEach(function(e){var t=s(e),r=a.SearchUtils.binaryIndexOf(n,function(e){return e.weight-t});for(r=r<0?~r:r;r<n.length&&s(n[r])===t;)r++;n.splice(r,0,new o.Edge(e.key,e.from,e.to,t))})},t.create=function(e,n){return new t(e,n.filter(function(e){return e.beginItem&&e.endItem instanceof s.Shape&&e.endItem&&e.endItem instanceof s.Shape&&e.beginItem!==e.endItem}).map(function(e){return new o.Edge(e.key,e.beginItem&&e.beginItem.key,e.endItem&&e.endItem.key)}))},t}(u);t.Graph=l;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.onInit=function(){this.parentToChildren={},this.childToParents={}},t.prototype.addEdge=function(t){e.prototype.addEdge.call(this,t),(this.parentToChildren[t.from]||(this.parentToChildren[t.from]=[])).push(t.to),(this.childToParents[t.to]||(this.childToParents[t.to]=[])).push(t.from)},t.prototype.getChildren=function(e){return this.parentToChildren[e]||[]},t.prototype.getParents=function(e){return this.childToParents[e]||[]},t.prototype.createIterator=function(e){return new d(this,e)},t}(u);t.FastGraph=h;var d=function(){function e(e,t){void 0===t&&(t=o.ConnectionMode.OutgoingAndIncoming),this.graph=e,this.connectionMode=t,this.visitEachEdgeOnce=!0,this.visitEachNodeOnce=!0,this.visitedNodes={},this.visitedEdges={}}return e.prototype.iterate=function(e){if(!this.visitEachNodeOnce&&!this.visitEachEdgeOnce&&!this.skipNode)throw"skipNode or visitEachNodeOnce or visitEachEdgeOnce must be set to avoid SOF";this.iterateCore(e)},e.prototype.iterateCore=function(e){var t=this,n=this.graph.getNode(e);if(!(!n||this.skipNode&&this.skipNode(n)||this.visitEachNodeOnce&&this.isNodeVisited(e))){this.visitedNodes[e]=!0,this.onNode&&this.onNode(n);var r=this.graph.getAdjacentEdges(e,this.connectionMode);if(this.skipEdge&&(r=r.filter(function(e){return!t.skipEdge(e)})),this.connectionMode&o.ConnectionMode.Outgoing){var i=r.filter(function(t){return t.from===e});this.comparer&&i.sort(this.comparer),i.forEach(function(e){t.visitEachEdgeOnce&&t.visitedEdges[e.key]||(t.visitedEdges[e.key]=!0,t.onEdge&&t.onEdge(e,!0),t.iterateCore(e.to),t.onAfterEdge&&t.onAfterEdge(e,!0))})}if(this.onAllEdges&&this.onAllEdges(n,!0),this.connectionMode&o.ConnectionMode.Incoming){var s=r.filter(function(t){return t.to===e});this.comparer&&s.sort(this.comparer),s.forEach(function(e){t.visitEachEdgeOnce&&t.visitedEdges[e.key]||(t.visitedEdges[e.key]=!0,t.onEdge&&t.onEdge(e,!1),t.iterateCore(e.from),t.onAfterEdge&&t.onAfterEdge(e,!1))})}this.onAllEdges&&this.onAllEdges(n,!1)}},e.prototype.isNodeVisited=function(e){return!!this.visitedNodes[e]},e.prototype.isEdgeVisited=function(e){return!!this.visitedEdges[e]},e}();t.GraphIterator=d},7819:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphInfo=void 0;var r=n(1755),i=function(){function e(e,t){this.container=e,this.sourceGraph=t}return Object.defineProperty(e.prototype,"graph",{get:function(){return this._graph||(this._graph=this.getNodeInfoGraph())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"level",{get:function(){return void 0!==this._level?this._level:this._level=this.getLevel()},enumerable:!1,configurable:!0}),e.prototype.getNodeInfoGraph=function(){return this.sourceGraph.cast(r.LayoutUtils.shapeToLayout)},e.prototype.getLevel=function(){var e=0;return this.container&&(e=this.getContainerLevel(this.container)),e},e.prototype.getContainerLevel=function(e){var t=1,n=e.container;return n&&(t+=this.getContainerLevel(n)),t},e}();t.GraphInfo=i},8119:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphLayout=void 0;var r=n(8675),i=n(617),o=function(){function e(){this.nodeKeys=[],this.nodeToLayout={},this.edgeToPosition={}}return e.prototype.forEachNode=function(e){var t=this;this.nodeKeys.forEach(function(n){return e(t.nodeToLayout[n],n)})},e.prototype.reduce=function(e,t){var n=this;return this.nodeKeys.reduce(function(t,r,i){return e(t,n.nodeToLayout[r],i)},t)},e.prototype.addNode=function(e){if(this.nodeToLayout[e.key])throw Error("Node layout is already registered");return this.nodeKeys.push(e.key),this.nodeToLayout[e.key]=e,e},e.prototype.hasNode=function(e){return!!this.nodeToLayout[e]},e.prototype.addEdge=function(e){if(this.edgeToPosition[e.key])throw Error("Edge layout is already registered");this.edgeToPosition[e.key]=e},e.prototype.getRectangle=function(e){var t=this;return r.GeometryUtils.getCommonRectangle(this.nodeKeys.map(function(e){return t.nodeToLayout[e].rectangle}))},e.prototype.offsetNodes=function(t,n){var r=this;void 0===t&&(t=0),void 0===n&&(n=0);var o=new e;return this.nodeKeys.forEach(function(e){var s=r.nodeToLayout[e];o.addNode(new i.NodeLayout(s.info,s.position.clone().offset(t,n)))}),o.copyEdges(this),o},e.prototype.extend=function(e){var t=this;e.forEachNode(function(e){return t.addNode(e)}),this.copyEdges(e)},e.prototype.copyEdges=function(e){var t=this;Object.keys(e.edgeToPosition).forEach(function(n){var r=e.edgeToPosition[n];t.addEdge(new i.EdgeLayout(r.key,r.beginIndex,r.endIndex))})},e}();t.GraphLayout=o},8710:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Alignment=t.DataLayoutOrientation=t.LogicalDirectionKind=t.TreeLayoutSettings=t.LayoutSettings=void 0;var o=n(7959),s=function(e){this.orientation=c.Vertical,this.direction=a.Forward;var t=e&&2*e>o.Connector.minOffset?2*e:o.Connector.minOffset;this.columnSpacing=t,this.layerSpacing=2*t,this.containerPadding=2*t,this.componentSpacing=2*t};t.LayoutSettings=s;var a,c,u,l=function(e){function t(t){var n=e.call(this,t)||this;return n.alignment=u.Center,n.subTreeColumnSpacing=n.componentSpacing/2,n}return i(t,e),t}(s);t.TreeLayoutSettings=l,function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(a=t.LogicalDirectionKind||(t.LogicalDirectionKind={})),function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"}(c=t.DataLayoutOrientation||(t.DataLayoutOrientation={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center"}(u=t.Alignment||(t.Alignment={}))},1755:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutUtils=void 0;var r=n(617),i=function(){function e(){}return e.shapeToLayout=function(e){var t=new r.Margin(0),n=e.rectangle;e.attachedConnectors.filter(function(e){return!e.beginItem||!e.endItem}).forEach(function(e){var r=e.rectangle;t.left=Math.max(t.left,n.x-r.x),t.right=Math.max(t.right,r.right-n.right),t.top=Math.max(t.top,n.y-r.y),t.bottom=Math.max(t.bottom,r.bottom-n.bottom)});var i=new r.NodeInfo(e.key,t,e.size.clone());return i.connectionPoints=e.description.getConnectionPoints(),i},e}();t.LayoutUtils=i},617:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Margin=t.EdgeLayout=t.NodeLayout=t.NodeInfo=void 0;var r=n(8011),i=function(e,t,n,r){void 0===r&&(r=[]),this.key=e,this.margin=t,this.size=n,this.connectionPoints=r};t.NodeInfo=i;var o=function(){function e(e,t){this.info=e,this.position=t}return Object.defineProperty(e.prototype,"key",{get:function(){return this.info.key},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectangle",{get:function(){return r.Rectangle.fromGeometry(this.position,this.info.size)},enumerable:!1,configurable:!0}),e}();t.NodeLayout=o;var s=function(e,t,n){this.key=e,this.beginIndex=t,this.endIndex=n};t.EdgeLayout=s;var a=function(){function e(e,t,n,r){void 0===t&&(t=e),void 0===n&&(n=e),void 0===r&&(r=e),this.top=e,this.right=t,this.bottom=n,this.left=r}return e.empty=function(){return new e(0)},e}();t.Margin=a},8217:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionMode=t.PositionInfo=t.Edge=void 0;var n=function(){function e(e,t,n,r){void 0===r&&(r=1),this.weight=r,this.key=e,this.from=t,this.to=n}return e.prototype.getHashKey=function(){return this.from+"_"+this.to},e.prototype.reverse=function(){return new e(this.key,this.to,this.from,this.weight)},e}();t.Edge=n;var r=function(e,t){this.item=e,this.position=t};t.PositionInfo=r,function(e){e[e.Outgoing=1]="Outgoing",e[e.Incoming=2]="Incoming",e[e.OutgoingAndIncoming=3]="OutgoingAndIncoming"}(t.ConnectionMode||(t.ConnectionMode={}))},5148:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Tree=void 0;var r=n(8217),i=function(){function e(e,t){var n=this;this.childToParent={},this.root=e,this.parentToChildren=t;var r=function(e){if(!Object.prototype.hasOwnProperty.call(t,e))return"continue";t[e].forEach(function(t){return n.childToParent[t.key]=e})};for(var i in t)r(i)}return e.prototype.getChildren=function(e){return e&&this.parentToChildren[e.key]?this.parentToChildren[e.key]:[]},e.prototype.hasChildren=function(e){return this.parentToChildren[e.key]&&this.parentToChildren[e.key].length>0},e.prototype.iterate=function(e){this.iterateCore(this.root,0,e)},e.createSpanningTree=function(t){var n=e.findRoot(t),i=t.createIterator(r.ConnectionMode.Outgoing),o={};return i.skipEdge=function(e){return void 0===e.to||i.isNodeVisited(e.to)},i.onNode=function(e){return o[e.key]=[]},i.onEdge=function(e){var n=t.getNode(e.to);n&&o[e.from].push(n)},i.iterate(n),new e(t.getNode(n),o)},e.prototype.iterateCore=function(e,t,n){var r=this;n(e,t),this.getChildren(e).forEach(function(e){return r.iterateCore(e,t+1,n)})},e.findRoot=function(e){return e.nodes.reduce(function(t,n){var r=e.getAdjacentEdges(n),i=r.filter(function(e){return e.to===n}).length,o=r.filter(function(e){return e.from===n}).length;return(void 0===t.candidate||0===i&&t.inc>0||0!==t.inc&&t.out-t.inc<o-i)&&(t.candidate=n,t.inc=i,t.out=o),t},{inc:-1,out:-1,candidate:void 0}).candidate},e}();t.Tree=i},7309:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CycleRemover=void 0;var r=n(213),i=n(8217),o=n(701),s=function(){function e(){}return e.removeCycles=function(e){var t=this.getFeedbackSet(e);return this.reverseEdges(e,t)},e.getFeedbackSet=function(e){for(var t=this,n={},r=this.getNonTrivialStronglyConnectedComponents(e);r.length;)r.forEach(function(e){var r=t.getMaxCyclicEdges(e);r.forEach(function(e){return delete n[e.reverse().getHashKey()]}),r.forEach(function(e){return n[e.getHashKey()]=!0})}),r=this.getNonTrivialStronglyConnectedComponents(this.reverseEdges(e,n).graph);return n},e.getMaxCyclicEdges=function(e){var t={},n={},r={},s=[],a=[],c=e.createIterator(i.ConnectionMode.Outgoing);c.visitEachEdgeOnce=!1,c.onNode=function(e){n[e.key]=!0},c.skipNode=function(e){if(n[e.key]){for(var i=[],o=0;o<s.length;o++){var c=s[o];if(void 0===r[c.key]&&(r[c.key]=0),r[c.key]++,i.push(c),c.from===e.key)break}a.push(i)}return n[e.key]||t[e.key]},c.skipEdge=function(e){return!1},c.onEdge=function(e){s.splice(0,0,e)},c.onAfterEdge=function(e){s.splice(0,1)},c.onAllEdges=function(e){t[e.key]=!0,n[e.key]=!1},c.iterate(e.nodes[0]);var u=new o.HashSet([],function(e){return e.key});return a.forEach(function(e){u.tryPush(e.reduce(function(e,t){return r[t.key]>r[e.key]?t:e},e[0]))}),u.list()},e.reverseEdges=function(e,t){var n=new o.HashSet([],function(e){return e.getHashKey()}),i={},s={};return e.edges.forEach(function(e){t[e.getHashKey()]&&(e=e.reverse(),i[e.key]=!0),n.tryPush(e)||(s[e.key]=!0,delete i[e.key])}),{graph:new r.Graph(e.nodes.map(function(t){return e.getNode(t)}),n.list()),reversedEdges:i,removedEdges:s}},e.getNonTrivialStronglyConnectedComponents=function(e){return this.getStronglyConnectedComponents(e).filter(function(e){return e.edges.length})},e.getStronglyConnectedComponents=function(e){for(var t=this,n=[],r=0,o={},s={},a={},c=[],u={},l=0;l<e.nodes.length;l++){var h=e.nodes[l],d=e.createIterator(i.ConnectionMode.Outgoing);d.visitEachEdgeOnce=!1,d.visitEachNodeOnce=!1,d.onNode=function(e){u[e.key]=!0,n.push(e),a[e.key]=!0,s[e.key]=r,o[e.key]=r,r++},d.skipNode=function(e){return u[e.key]},d.skipEdge=function(e){var t=u[e.to];return t&&a[e.to]&&(s[e.from]=Math.min(s[e.from],o[e.to])),t},d.onAfterEdge=function(e){s[e.from]=Math.min(s[e.from],s[e.to])},d.onAllEdges=function(r,i){i&&s[r.key]===o[r.key]&&c.push(t.getStronglyConnectedComponent(e,r,n,a))},d.iterate(h)}return c},e.getStronglyConnectedComponent=function(e,t,n,o){var s,a={},c=[],u=[];do{s=n.pop(),a[s.key]||c.push(s),a[s.key]=!0,o[s.key]=!1}while(s!==t);return c.forEach(function(t){var n=e.getAdjacentEdges(t.key,i.ConnectionMode.Outgoing);u=u.concat(n.filter(function(e){return!a[e.key]&&a[e.to]})),n.forEach(function(e){return a[e.key]=!0})}),new r.Graph(c,u)},e}();t.CycleRemover=s},1057:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RTree=void 0;var o=n(8011),s=function(){function e(e){void 0===e&&(e=6),this.maxWidth=e,this.minWidth=Math.floor(e/2),this.root=new u(new o.Rectangle(0,0,0,0),[])}return e.prototype.search=function(e){var t=[];if(!this.root.rect.containsPoint(e))return t;var n=[];for(n.push(this.root.nodes);n.length;)for(var r=n.pop(),i=r.length-1,o=void 0;o=r[i];i--)o.rect.containsPoint(e)&&(l(o)?n.push(o.nodes):t.push(o.obj));return t},e.prototype.insert=function(e,t){var n=new c(e.clone(),t);if(!this.root.nodes.length)return this.root.rect=e.clone(),void this.root.nodes.push(n);for(var r,i,o=this.chooseLeafSubtree(n),s=n;o.length;){if(r&&l(r)&&!r.nodes.length){i=r,r=o.pop();for(var u=0,h=void 0;h=r.nodes[u];u++)if(l(h)&&(h===i||!h.nodes.length)){h.nodes.splice(u,1);break}}else r=o.pop();if(s instanceof a||Array.isArray(s)){if(Array.isArray(s)){u=0;for(var f=void 0;f=s[u];u++)d(r.rect,f.rect);r.nodes=r.nodes.concat(s)}else d(r.rect,s.rect),r.nodes.push(s);if(r.nodes.length<=this.maxWidth)s=r.rect.clone();else{var p=this.linearSplit(r.nodes);s=p,o.length||(r.nodes.push(p[0]),o.push(r),s=p[1])}}else d(r.rect,s),s=r.rect.clone()}},e.prototype.chooseLeafSubtree=function(e){var t,n=[],r=-1,i=!0;n.push(this.root);for(var o=this.root.nodes;i||-1!==r;){i?i=!1:(n.push(o[r]),o=o[r].nodes,r=-1);for(var s=o.length-1,a=void 0;a=o[s];s--){if(!l(a)){r=-1;break}var c=h(a.rect.width,a.rect.height,a.nodes.length+1),u=h(Math.max(a.rect.x+a.rect.width,e.rect.x+e.rect.width)-Math.min(a.rect.x,e.rect.x),Math.max(a.rect.y+a.rect.height,e.rect.y+e.rect.height)-Math.min(a.rect.y,e.rect.y),a.nodes.length+2);(r<0||Math.abs(u-c)<t)&&(t=Math.abs(u-c),r=s)}}return n},e.prototype.linearSplit=function(e){for(var t=this.pickLinear(e);e.length>0;)this.pickNext(e,t[0],t[1]);return t},e.prototype.pickLinear=function(e){for(var t,n,r=e.length-1,i=0,o=e.length-1,s=0,a=e.length-2,c=void 0;c=e[a];a--)c.rect.x>e[i].rect.x?i=a:c.rect.right<e[r].rect.right&&(r=a),c.rect.y>e[s].rect.y?s=a:c.rect.bottom<e[o].rect.bottom&&(o=a);return Math.abs(e[r].rect.right-e[i].rect.x)>Math.abs(e[o].rect.bottom-e[s].rect.y)?r>i?(t=e.splice(r,1)[0],n=e.splice(i,1)[0]):(n=e.splice(i,1)[0],t=e.splice(r,1)[0]):o>s?(t=e.splice(o,1)[0],n=e.splice(s,1)[0]):(n=e.splice(s,1)[0],t=e.splice(o,1)[0]),[new u(t.rect.clone(),[t]),new u(n.rect.clone(),[n])]},e.prototype.pickNext=function(e,t,n){for(var r,i,s,a=h(t.rect.width,t.rect.height,t.nodes.length+1),c=h(n.rect.width,n.rect.height,n.nodes.length+1),u=e.length-1,l=void 0;l=e[u];u--){var f=new o.Rectangle(Math.min(t.rect.x,l.rect.x),Math.min(t.rect.y,l.rect.y),0,0);f.width=Math.max(t.rect.right,l.rect.right)-f.x,f.height=Math.max(t.rect.bottom,l.rect.bottom)-f.y;var p=Math.abs(h(f.width,f.height,t.nodes.length+2)-a),A=new o.Rectangle(Math.min(n.rect.x,l.rect.x),Math.min(n.rect.y,l.rect.y),0,0);A.width=Math.max(n.rect.right,l.rect.right)-A.x,A.height=Math.max(n.rect.bottom,l.rect.bottom)-A.y;var g=Math.abs(h(A.width,A.height,n.nodes.length+2)-c);(!i||!r||Math.abs(g-p)<r)&&(i=u,r=Math.abs(g-p),s=g<p?n:t)}var m=e.splice(i,1)[0];t.nodes.length+e.length+1<=this.minWidth?(t.nodes.push(m),d(t.rect,m.rect)):n.nodes.length+e.length+1<=this.minWidth?(n.nodes.push(m),d(n.rect,m.rect)):(s.nodes.push(m),d(s.rect,m.rect))},e}();t.RTree=s;var a=function(e){this.rect=e},c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.obj=n,r}return i(t,e),t}(a),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.nodes=n,r}return i(t,e),t}(a);function l(e){return"nodes"in e}function h(e,t,n){var r=(e+t)/2,i=e*t;return i*n/(i/(r*r))}function d(e,t){var n=Math.max(e.right,t.right),r=Math.max(e.bottom,t.bottom);e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),e.width=n-e.x,e.height=r-e.y}},701:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HashSet=void 0;var n=function(){function e(e,t){var n=this;void 0===e&&(e=[]),void 0===t&&(t=function(e){return e.toString()}),this.items=[],this.map={},this.getHashCode=t,e.forEach(function(e){return n.tryPush(e)})}return e.prototype.tryPush=function(e){var t=this.getHashCode(e);return void 0===this.map[t]&&(this.map[t]=this.items.push(e)-1,!0)},e.prototype.contains=function(e){return void 0!==this.map[this.getHashCode(e)]},e.prototype.forEach=function(e){this.items.forEach(e)},e.prototype.filter=function(e){return this.items.filter(e)},e.prototype.list=function(){return this.items.slice(0)},e.prototype.item=function(e){return this.items[e]},e.prototype.first=function(){return this.items[0]},e.prototype.remove=function(e){var t=this.getHashCode(e),n=this.map[t];if("number"!=typeof n)throw"Item not found";delete this.map[t],this.items.splice(n,1);for(var r=n;r<this.items.length;r++)this.map[this.getHashCode(this.items[r])]--},Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e}();t.HashSet=n},6224:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramLocalizationService=void 0;var r=n(2259),i=n(5383),o=function(){function e(){}return e.unitItems={},e.formatUnit=function(e){return e.toString()},e.shapeTexts={},e}();t.DiagramLocalizationService=o,o.unitItems[i.DiagramUnit.In]="in",o.unitItems[i.DiagramUnit.Cm]="cm",o.unitItems[i.DiagramUnit.Px]="px",o.shapeTexts[r.ShapeTypes.Text]="Text",o.shapeTexts[r.ShapeTypes.Rectangle]="Rectangle",o.shapeTexts[r.ShapeTypes.Ellipse]="Ellipse",o.shapeTexts[r.ShapeTypes.Cross]="Cross",o.shapeTexts[r.ShapeTypes.Triangle]="Triangle",o.shapeTexts[r.ShapeTypes.Diamond]="Diamond",o.shapeTexts[r.ShapeTypes.Heart]="Heart",o.shapeTexts[r.ShapeTypes.Pentagon]="Pentagon",o.shapeTexts[r.ShapeTypes.Hexagon]="Hexagon",o.shapeTexts[r.ShapeTypes.Octagon]="Octagon",o.shapeTexts[r.ShapeTypes.Star]="Star",o.shapeTexts[r.ShapeTypes.ArrowLeft]="Left Arrow",o.shapeTexts[r.ShapeTypes.ArrowUp]="Up Arrow",o.shapeTexts[r.ShapeTypes.ArrowRight]="Right Arrow",o.shapeTexts[r.ShapeTypes.ArrowDown]="Down Arrow",o.shapeTexts[r.ShapeTypes.ArrowUpDown]="Up Down Arrow",o.shapeTexts[r.ShapeTypes.ArrowLeftRight]="Left Right Arrow",o.shapeTexts[r.ShapeTypes.Process]="Process",o.shapeTexts[r.ShapeTypes.Decision]="Decision",o.shapeTexts[r.ShapeTypes.Terminator]="Terminator",o.shapeTexts[r.ShapeTypes.PredefinedProcess]="Predefined Process",o.shapeTexts[r.ShapeTypes.Document]="Document",o.shapeTexts[r.ShapeTypes.MultipleDocuments]="Multiple Documents",o.shapeTexts[r.ShapeTypes.ManualInput]="Manual Input",o.shapeTexts[r.ShapeTypes.Preparation]="Preparation",o.shapeTexts[r.ShapeTypes.Data]="Data",o.shapeTexts[r.ShapeTypes.Database]="Database",o.shapeTexts[r.ShapeTypes.HardDisk]="Hard Disk",o.shapeTexts[r.ShapeTypes.InternalStorage]="Internal Storage",o.shapeTexts[r.ShapeTypes.PaperTape]="Paper Tape",o.shapeTexts[r.ShapeTypes.ManualOperation]="Manual Operation",o.shapeTexts[r.ShapeTypes.Delay]="Delay",o.shapeTexts[r.ShapeTypes.StoredData]="Stored Data",o.shapeTexts[r.ShapeTypes.Display]="Display",o.shapeTexts[r.ShapeTypes.Merge]="Merge",o.shapeTexts[r.ShapeTypes.Connector]="Connector",o.shapeTexts[r.ShapeTypes.Or]="Or",o.shapeTexts[r.ShapeTypes.SummingJunction]="Summing Junction",o.shapeTexts[r.ShapeTypes.Container]="Container",o.shapeTexts[r.ShapeTypes.VerticalContainer]="Vertical Container",o.shapeTexts[r.ShapeTypes.HorizontalContainer]="Horizontal Container",o.shapeTexts[r.ShapeTypes.Card]="Person's Name",o.shapeTexts[r.ShapeTypes.CardWithImageOnLeft]="Card with Image on the Left",o.shapeTexts[r.ShapeTypes.CardWithImageOnTop]="Card with Image on the Top",o.shapeTexts[r.ShapeTypes.CardWithImageOnRight]="Card with Image on the Right"},6879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramModelOperation=t.ModelOperationSettings=void 0;var n=function(){function e(){this._addShape=!0,this._addShapeFromToolbox=!0,this._deleteShape=!0,this._deleteConnector=!0,this._changeConnection=!0,this._changeConnectorPoints=!0,this._changeShapeText=!0,this._changeConnectorText=!0,this._resizeShape=!0,this._moveShape=!0}return Object.defineProperty(e.prototype,"addShape",{get:function(){return this._addShape},set:function(e){e!==this._addShape&&(this._addShape=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"addShapeFromToolbox",{get:function(){return this._addShapeFromToolbox},set:function(e){e!==this._addShapeFromToolbox&&(this._addShapeFromToolbox=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deleteShape",{get:function(){return this._deleteShape},set:function(e){e!==this._deleteShape&&(this._deleteShape=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deleteConnector",{get:function(){return this._deleteConnector},set:function(e){e!==this._deleteConnector&&(this._deleteConnector=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeConnection",{get:function(){return this._changeConnection},set:function(e){e!==this._changeConnection&&(this._changeConnection=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeConnectorPoints",{get:function(){return this._changeConnectorPoints},set:function(e){e!==this._changeConnectorPoints&&(this._changeConnectorPoints=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeShapeText",{get:function(){return this._changeShapeText},set:function(e){e!==this._changeShapeText&&(this._changeShapeText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeConnectorText",{get:function(){return this._changeConnectorText},set:function(e){e!==this._changeConnectorText&&(this._changeConnectorText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resizeShape",{get:function(){return this._resizeShape},set:function(e){e!==this._resizeShape&&(this._resizeShape=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"moveShape",{get:function(){return this._moveShape},set:function(e){e!==this._moveShape&&(this._moveShape=e)},enumerable:!1,configurable:!0}),e.prototype.applySettings=function(e){e&&("boolean"==typeof e.addShape&&(this.addShape=e.addShape),"boolean"==typeof e.addShapeFromToolbox&&(this.addShapeFromToolbox=e.addShapeFromToolbox),"boolean"==typeof e.deleteShape&&(this.deleteShape=e.deleteShape),"boolean"==typeof e.deleteConnector&&(this.deleteConnector=e.deleteConnector),"boolean"==typeof e.changeConnection&&(this.changeConnection=e.changeConnection),"boolean"==typeof e.changeConnectorPoints&&(this.changeConnectorPoints=e.changeConnectorPoints),"boolean"==typeof e.changeShapeText&&(this.changeShapeText=e.changeShapeText),"boolean"==typeof e.changeConnectorText&&(this.changeConnectorText=e.changeConnectorText),"boolean"==typeof e.resizeShape&&(this.resizeShape=e.resizeShape),"boolean"==typeof e.moveShape&&(this.moveShape=e.moveShape))},e}();t.ModelOperationSettings=n,function(e){e[e.AddShape=0]="AddShape",e[e.AddShapeFromToolbox=1]="AddShapeFromToolbox",e[e.DeleteShape=2]="DeleteShape",e[e.DeleteConnector=3]="DeleteConnector",e[e.ChangeConnection=4]="ChangeConnection",e[e.ChangeConnectorPoints=5]="ChangeConnectorPoints",e[e.BeforeChangeShapeText=6]="BeforeChangeShapeText",e[e.ChangeShapeText=7]="ChangeShapeText",e[e.BeforeChangeConnectorText=8]="BeforeChangeConnectorText",e[e.ChangeConnectorText=9]="ChangeConnectorText",e[e.ResizeShape=10]="ResizeShape",e[e.MoveShape=11]="MoveShape"}(t.DiagramModelOperation||(t.DiagramModelOperation={}))},7228:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPoint=void 0;var o=n(8900),s=n(3742),a=function(e){function t(t,n,r){void 0===r&&(r=s.ConnectionPointSide.Undefined);var i=e.call(this,t,n)||this;return i.side=r,i}return i(t,e),t.prototype.offset=function(t,n){return e.prototype.offset.call(this,t,n),this.side=s.ConnectionPointSide.Undefined,this},t.prototype.multiply=function(t,n){return e.prototype.multiply.call(this,t,n),this.side=s.ConnectionPointSide.Undefined,this},t.prototype.clone=function(){return new t(this.x,this.y,this.side)},t.prototype.toPoint=function(){return new o.Point(this.x,this.y)},t}(o.Point);t.ConnectionPoint=a},5800:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsCalculator=void 0;var o=n(7595),s=n(4717),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getPoints=function(){return this.connector.points.map(function(e,t){return new s.ConnectorRenderPoint(e.x,e.y,t)})},t}(o.ConnectorPointsCalculatorBase);t.ConnectorPointsCalculator=a},7595:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsCalculatorBase=void 0;var n=function(e){this.connector=e};t.ConnectorPointsCalculatorBase=n},2342:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsOrthogonalCalculator=void 0;var o=n(8011),s=n(3742),a=n(7595),c=n(1686),u=n(1774),l=n(993),h=n(2290),d=n(7369),f=n(4717),p=n(4867),A=function(e){function t(t){var n=e.call(this,t)||this;return n.sideCalculators={},n.sideCalculators[s.ConnectionPointSide.Undefined]=new c.ConnectorPointsOrthogonalUndefinedSideCalculator(n),n.sideCalculators[s.ConnectionPointSide.South]=new u.ConnectorPointsOrthogonalSouthSideCalculator(n),n.sideCalculators[s.ConnectionPointSide.North]=new l.ConnectorPointsOrthogonalNorthSideCalculator(n),n.sideCalculators[s.ConnectionPointSide.East]=new h.ConnectorPointsOrthogonalEastSideCalculator(n),n.sideCalculators[s.ConnectionPointSide.West]=new d.ConnectorPointsOrthogonalWestSideCalculator(n),n}return i(t,e),Object.defineProperty(t.prototype,"beginRect",{get:function(){return this.connector.beginItem?this.connector.beginItem.rectangle:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endRect",{get:function(){return this.connector.endItem?this.connector.endItem.rectangle:void 0},enumerable:!1,configurable:!0}),t.prototype.getPoints=function(){var e=this.connector.points.map(function(e,t){return new f.ConnectorRenderPoint(e.x,e.y,t)});p.ModelUtils.skipUnnecessaryRenderPoints(e,!0);var t=0,n=e.length-1,r=this.getPointSide(e,0),i=this.getPointSide(e,1),o=this.getPointSide(e,e.length-1),s=this.getPointSide(e,e.length-1-1),a=this.getSideCalculator(r),c=this.getSideCalculator(o),u=this.beginRect,l=a.getCorrectOriginPoint(e[t],u),h=e[t+1];if(2===e.length&&a.isOnSidePoint(l,h)&&a.isDirectConnectionAllowed(i,l,h))a.getDirectConnectionPoints(l,h).forEach(function(r){e.splice(t+1,0,r),t++,n++});else{var d=a.getBeginOffsetPoints(i,e[t],e[t+1],this.beginRect);d.forEach(function(n){e.splice(t+1,0,n)}),t+=d.length,n+=d.length,c.getEndOffsetPoints(s,e[n],e[n-1],this.endRect).forEach(function(t,r){e.splice(n+r,0,t)}),this.addMiddlePoints(e,t,n)}return p.ModelUtils.skipUnnecessaryRenderPoints(e,!0),e},t.prototype.getSideCalculator=function(e){return this.sideCalculators[e]},t.prototype.getPointSide=function(e,t){if(0===t&&this.connector.beginItem){var n=this.connector.beginConnectionPointIndex;return this.connector.beginItem.getConnectionPointSideByIndex(n,e[1])}return t===e.length-1&&this.connector.endItem?(n=this.connector.endConnectionPointIndex,this.connector.endItem.getConnectionPointSideByIndex(n,e[e.length-2])):s.ConnectionPointSide.Undefined},t.prototype.addMiddlePoints=function(e,t,n){for(var r=t;r<n;r++){var i=r+1,o=this.getMiddlePoint(e[r],e[r-1],r-1==0,e[i],e[i+1],i+1===e.length-1);void 0!==o&&(e.splice(r+1,0,o),r++,n++)}},t.prototype.getMiddlePoints=function(e,t){return e.x===t.x||e.y===t.y?[]:[new f.ConnectorRenderPoint(e.x,t.y),new f.ConnectorRenderPoint(t.x,e.y)]},t.prototype.getMiddlePoint=function(e,t,n,r,i,s){var a,c=this,u=this.getMiddlePoints(e,r);return u.forEach(function(n){var s=c.createPointsRect(e,n),u=c.createPointsRect(n,r),l=c.connector.beginItem?c.connector.beginItem.rectangle:void 0,h=c.connector.endItem?c.connector.endItem.rectangle:void 0;l&&(o.Rectangle.areIntersected(l,s)||o.Rectangle.areIntersected(l,u))||h&&(o.Rectangle.areIntersected(h,s)||o.Rectangle.areIntersected(h,u))||c.isReturnPoint(n,e,t)&&!c.isIntermediatePoints(e,t)||c.isReturnPoint(n,r,i)&&!c.isIntermediatePoints(r,i)||(void 0===a||c.isPriorMiddlePoint(n,e,t,r,i))&&(a=n)}),void 0===a&&u.length>0&&(a=u[0]),a},t.prototype.createPointsRect=function(e,t){var n=o.Rectangle.fromPoints(e,t);return n.width>0&&(n=n.clone().inflate(-1,0)),n.height>0&&(n=n.clone().inflate(0,-1)),n},t.prototype.isPriorMiddlePoint=function(e,t,n,r,i){return!(!n||e.x!==n.x&&e.y!==n.y)||!(!i||e.x!==i.x&&e.y!==i.y)},t.prototype.isReturnPoint=function(e,t,n){if(void 0!==t&&void 0!==n){if(e.x===n.x&&(t.y<e.y&&e.y<n.y||t.y>e.y&&e.y>n.y))return!0;if(e.y===n.y&&(t.x<e.x&&e.x<n.x||t.x>e.x&&e.x>n.x))return!0}return!1},t.prototype.isIntermediatePoints=function(e,t){return 0<e.pointIndex&&e.pointIndex<this.connector.points.length-1&&0<t.pointIndex&&t.pointIndex<this.connector.points.length-1},t}(a.ConnectorPointsCalculatorBase);t.ConnectorPointsOrthogonalCalculator=A},2290:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsOrthogonalEastSideCalculator=void 0;var o=n(3742),s=n(1816),a=n(4717),c=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getCorrectOriginPoint=function(e,t){return e.x<t.right&&(e=e.clone().offset(t.right-e.x,0)),e},t.prototype.getSameShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.North:case o.ConnectionPointSide.South:case o.ConnectionPointSide.East:return[t.clone().offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:return this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset())}},t.prototype.getOverlappedPointsOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:return[t.clone().offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:return[t.clone().offset(-this.getMinOffset(),0)]}return[]},t.prototype.getBeginOverlappedShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.North:return t.x<n.x?t.y<n.y?[]:[t.clone().offset(this.getMinOffset(),0)]:t.x>this.endRect.right?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!0):[t.clone().offset(this.getMinOffset(),0)];case o.ConnectionPointSide.South:return t.x<n.x?t.y>n.y?[]:[t.clone().offset(this.getMinOffset(),0)]:t.x>this.endRect.right?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!1):[t.clone().offset(this.getMinOffset(),0)];case o.ConnectionPointSide.East:return[t.clone().offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:return this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),t.y<n.y)}},t.prototype.getEndOverlappedShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:return[t.clone().offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:var i=this.getMinOffset();return this.beginRect.right>t.x&&(i+=this.beginRect.right-t.x),[t.clone().offset(i,0)];case o.ConnectionPointSide.North:return n.x<t.x?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!0):t.y>n.y?[t.clone().offset(this.getMinOffset(),0)]:[];case o.ConnectionPointSide.South:return n.x<t.x?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!1):t.y<n.y?[t.clone().offset(this.getMinOffset(),0)]:[]}},t.prototype.getBeginOnSideOffsetPoints=function(e,t,n,r){return[t.clone().offset(this.getScaleableOffsetX(t,n,!1),0)]},t.prototype.getEndOnSideOffsetPoints=function(e,t,n,r){return[t.clone().offset(this.getScaleableOffsetX(t,n,!0),0)]},t.prototype.getBeginOffSideOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(t,n,r,!1,!1);break;case o.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(t,n,r,!1,!0);break;case o.ConnectionPointSide.East:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(t,n,r,!1);break;case o.ConnectionPointSide.Undefined:case o.ConnectionPointSide.West:return this.getScaleableAsideOffsetPoints(t,n,r,!1)}return[t.clone().offset(this.getScaleableOffsetX(t,n,!1),0)]},t.prototype.getEndOffSideOffsetPoints=function(e,t,n,r){if(e===o.ConnectionPointSide.Undefined)return this.getScaleableAsideOffsetPoints(t,n,r,!0);if(this.isBeginEndOverlappedY()){var i=this.beginRect.center.y>this.endRect.center.y;return this.getScaleableAsideOffsetPoints(t,n,r,!0,i)}return[t.clone().offset(this.getScaleableOffsetX(t,n,!0),0)]},t.prototype.getAsideOffsetPoints=function(e,t,n,r,i,o){var s=[];return void 0!==n&&(void 0===o&&(o=t.y<e.y),o?s.push(e.clone().offset(r,-(e.y-n.y+i))):s.push(e.clone().offset(r,n.bottom-e.y+i))),s.push(e.clone().offset(r,0)),s},t.prototype.getScaleableAsideOffsetPoints=function(e,t,n,r,i){var o=this.getScaleableOffsetX(e,t,r),s=this.getScaleableOffsetY(e,t,r);return this.getAsideOffsetPoints(e,t,n,o,s,i)},t.prototype.getScaleableOffsetX=function(e,t,n){if(this.beginRect&&this.endRect){var r=n?this.beginRect.x-e.x:this.endRect.x-e.x;if(r>0&&r<2*this.getMinOffset())return r/2}return this.getMinOffset()},t.prototype.getScaleableOffsetY=function(e,t,n){if(this.beginRect&&this.endRect&&!n&&!this.isBeginEndOverlappedY()){var r=void 0;if((r=t.y<e.y?this.beginRect.y-this.endRect.bottom:this.endRect.y-this.beginRect.bottom)<2*this.getMinOffset())return r/2}return this.getMinOffset()},t.prototype.isOnSidePoint=function(e,t){return t.x>e.x},t.prototype.isDirectConnectionAllowed=function(e,t,n){return e===o.ConnectionPointSide.West||e===o.ConnectionPointSide.Undefined},t.prototype.getDirectConnectionPoints=function(e,t){var n=e.x+(t.x-e.x)/2;return[new a.ConnectorRenderPoint(n,e.y),new a.ConnectorRenderPoint(n,t.y)]},t}(s.ConnectorPointsOrthogonalSideCalculatorBase);t.ConnectorPointsOrthogonalEastSideCalculator=c},993:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsOrthogonalNorthSideCalculator=void 0;var o=n(3742),s=n(1816),a=n(4717),c=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getCorrectOriginPoint=function(e,t){return e.y>t.y&&(e=e.clone().offset(0,t.y-e.y)),e},t.prototype.getSameShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:case o.ConnectionPointSide.West:case o.ConnectionPointSide.North:return[t.clone().offset(0,-this.getMinOffset())];case o.ConnectionPointSide.South:return this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset())}},t.prototype.getOverlappedPointsOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.South:return[t.clone().offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:return[t.clone().offset(0,-this.getMinOffset())]}return[]},t.prototype.getBeginOverlappedShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:return t.y>n.y?t.x>n.x?[]:[t.clone().offset(0,-this.getMinOffset())]:t.y<this.endRect.y?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!1):[t.clone().offset(0,-this.getMinOffset())];case o.ConnectionPointSide.West:return t.y>n.y?t.x<n.x?[]:[t.clone().offset(0,-this.getMinOffset())]:t.y<this.endRect.y?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!0):[t.clone().offset(0,-this.getMinOffset())];case o.ConnectionPointSide.North:return[t.clone().offset(0,-this.getMinOffset())];case o.ConnectionPointSide.South:return this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),t.x<n.x)}},t.prototype.getEndOverlappedShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:return n.y>t.y?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!1):t.x<n.x?[t.clone().offset(0,-this.getMinOffset())]:[];case o.ConnectionPointSide.West:return n.y>t.y?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!0):t.x>n.x?[t.clone().offset(0,-this.getMinOffset())]:[];case o.ConnectionPointSide.North:return[t.clone().offset(0,-this.getMinOffset())];case o.ConnectionPointSide.South:var i=-this.getMinOffset();return this.beginRect.y<t.y&&(i-=t.y-this.beginRect.y),[t.clone().offset(0,i)]}},t.prototype.getBeginOnSideOffsetPoints=function(e,t,n,r){return[t.clone().offset(0,-this.getScaleableOffsetY(t,n,!1))]},t.prototype.getEndOnSideOffsetPoints=function(e,t,n,r){return[t.clone().offset(0,-this.getScaleableOffsetY(t,n,!0))]},t.prototype.getBeginOffSideOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(t,n,r,!1,!1);break;case o.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(t,n,r,!1,!0);break;case o.ConnectionPointSide.North:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(t,n,r,!1);break;case o.ConnectionPointSide.Undefined:case o.ConnectionPointSide.South:return this.getScaleableAsideOffsetPoints(t,n,r,!1)}return[t.clone().offset(0,-this.getScaleableOffsetY(t,n,!1))]},t.prototype.getEndOffSideOffsetPoints=function(e,t,n,r){if(e===o.ConnectionPointSide.Undefined)return this.getScaleableAsideOffsetPoints(t,n,r,!0);if(this.isBeginEndOverlappedX()){var i=this.beginRect.center.x>this.endRect.center.x;return this.getScaleableAsideOffsetPoints(t,n,r,!0,i)}return[t.clone().offset(0,-this.getScaleableOffsetY(t,n,!0))]},t.prototype.getAsideOffsetPoints=function(e,t,n,r,i,o){var s=[];return void 0!==n&&(void 0===o&&(o=t.x<e.x),o?s.push(e.clone().offset(-(e.x-n.x+i),-r)):s.push(e.clone().offset(n.right-e.x+i,-r))),s.push(e.clone().offset(0,-r)),s},t.prototype.getScaleableAsideOffsetPoints=function(e,t,n,r,i){var o=this.getScaleableOffsetY(e,t,r),s=this.getScaleableOffsetX(e,t,r);return this.getAsideOffsetPoints(e,t,n,o,s,i)},t.prototype.getScaleableOffsetX=function(e,t,n){if(this.beginRect&&this.endRect&&!n&&!this.isBeginEndOverlappedX()){var r=void 0;if((r=t.x<e.x?this.beginRect.x-this.endRect.right:this.endRect.x-this.beginRect.right)<2*this.getMinOffset())return r/2}return this.getMinOffset()},t.prototype.getScaleableOffsetY=function(e,t,n){if(this.beginRect&&this.endRect){var r=n?e.y-this.beginRect.bottom:e.y-this.endRect.bottom;if(r>0&&r<2*this.getMinOffset())return r/2}return this.getMinOffset()},t.prototype.isOnSidePoint=function(e,t){return t.y<e.y},t.prototype.isDirectConnectionAllowed=function(e,t,n){return e===o.ConnectionPointSide.South||e===o.ConnectionPointSide.Undefined},t.prototype.getDirectConnectionPoints=function(e,t){var n=t.y+(e.y-t.y)/2;return[new a.ConnectorRenderPoint(e.x,n),new a.ConnectorRenderPoint(t.x,n)]},t}(s.ConnectorPointsOrthogonalSideCalculatorBase);t.ConnectorPointsOrthogonalNorthSideCalculator=c},1816:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsOrthogonalSideCalculatorBase=void 0;var r=n(8011),i=n(3742),o=n(7959),s=function(){function e(e){this.parent=e}return Object.defineProperty(e.prototype,"connector",{get:function(){return this.parent.connector},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"beginRect",{get:function(){return this.parent.beginRect},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endRect",{get:function(){return this.parent.endRect},enumerable:!1,configurable:!0}),e.prototype.getBeginOffsetPoints=function(e,t,n,r){if(t=this.getCorrectOriginPoint(t,r),e!==i.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(e,t,n,r);if(this.isBeginEndOverlappedPoints(t,n))return this.getOverlappedPointsOffsetPoints(e,t,n,r);if(this.isBeginEndOverlapped())return this.getBeginOverlappedShapeOffsetPoints(e,t,n,r)}else if(this.isOriginRectContainsTargetPoint(r,n))return this.getOverlappedPointsOffsetPoints(e,t,n,r);return this.isOnSidePoint(t,n)?this.getBeginOnSideOffsetPoints(e,t,n,r):this.getBeginOffSideOffsetPoints(e,t,n,r)},e.prototype.getEndOffsetPoints=function(e,t,n,r){if(t=this.getCorrectOriginPoint(t,r),e!==i.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(e,t,n,r);if(this.isBeginEndOverlappedPoints(n,t))return this.getOverlappedPointsOffsetPoints(e,t,n,r);if(this.isBeginEndOverlapped())return this.getEndOverlappedShapeOffsetPoints(e,t,n,r)}else if(this.isOriginRectContainsTargetPoint(r,n))return this.getOverlappedPointsOffsetPoints(e,t,n,r);return this.isOnSidePoint(t,n)?this.getEndOnSideOffsetPoints(e,t,n,r):this.getEndOffSideOffsetPoints(e,t,n,r)},e.prototype.getSide=function(e,t){return Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?t.x>e.x?i.ConnectionPointSide.East:i.ConnectionPointSide.West:t.y>e.y?i.ConnectionPointSide.South:i.ConnectionPointSide.North},e.prototype.getSideCalculator=function(e,t){return this.parent.getSideCalculator(this.getSide(e,t))},e.prototype.getMinOffset=function(){return o.Connector.minOffset},e.prototype.isBeginEndSame=function(){return this.connector.beginItem===this.connector.endItem},e.prototype.isBeginEndOverlapped=function(){return this.beginRect&&this.endRect&&r.Rectangle.areIntersected(this.beginRect,this.endRect)},e.prototype.isBeginEndOverlappedX=function(){return this.beginRect&&this.endRect&&!!r.Rectangle.getHorizIntersection(this.beginRect,this.endRect)},e.prototype.isBeginEndOverlappedY=function(){return this.beginRect&&this.endRect&&!!r.Rectangle.getVertIntersection(this.beginRect,this.endRect)},e.prototype.isBeginEndOverlappedPoints=function(e,t){return this.beginRect&&this.endRect&&(this.beginRect.containsPoint(t)||this.endRect.containsPoint(e))},e.prototype.isOriginRectContainsTargetPoint=function(e,t){return e&&t&&e.containsPoint(t)},e}();t.ConnectorPointsOrthogonalSideCalculatorBase=s},1774:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsOrthogonalSouthSideCalculator=void 0;var o=n(3742),s=n(1816),a=n(4717),c=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getCorrectOriginPoint=function(e,t){return e.y<t.bottom&&(e=e.clone().offset(0,t.bottom-e.y)),e},t.prototype.getSameShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:case o.ConnectionPointSide.West:case o.ConnectionPointSide.South:return[t.clone().offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:return this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset())}},t.prototype.getOverlappedPointsOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.South:return[t.clone().offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:return[t.clone().offset(0,-this.getMinOffset())]}return[]},t.prototype.getBeginOverlappedShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:return t.y<n.y?t.x>n.x?[]:[t.clone().offset(0,this.getMinOffset())]:t.y>this.endRect.bottom?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!1):[t.clone().offset(0,this.getMinOffset())];case o.ConnectionPointSide.West:return t.y<n.y?t.x<n.x?[]:[t.clone().offset(0,this.getMinOffset())]:t.y>this.endRect.bottom?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!0):[t.clone().offset(0,this.getMinOffset())];case o.ConnectionPointSide.South:return[t.clone().offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:return this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),t.x<n.x)}},t.prototype.getEndOverlappedShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:return n.y<t.y?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!1):t.x<n.x?[t.clone().offset(0,this.getMinOffset())]:[];case o.ConnectionPointSide.West:return n.y<t.y?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!0):t.x>n.x?[t.clone().offset(0,this.getMinOffset())]:[];case o.ConnectionPointSide.South:return[t.clone().offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:var i=this.getMinOffset();return this.beginRect.bottom>t.y&&(i+=this.beginRect.bottom-t.y),[t.clone().offset(0,i)]}},t.prototype.getBeginOnSideOffsetPoints=function(e,t,n,r){return[t.clone().offset(0,this.getScaleableOffsetY(t,n,!1))]},t.prototype.getEndOnSideOffsetPoints=function(e,t,n,r){return[t.clone().offset(0,this.getScaleableOffsetY(t,n,!0))]},t.prototype.getBeginOffSideOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(t,n,r,!1,!1);break;case o.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(t,n,r,!1,!0);break;case o.ConnectionPointSide.South:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(t,n,r,!1);break;case o.ConnectionPointSide.Undefined:case o.ConnectionPointSide.North:return this.getScaleableAsideOffsetPoints(t,n,r,!1)}return[t.clone().offset(0,this.getScaleableOffsetY(t,n,!1))]},t.prototype.getEndOffSideOffsetPoints=function(e,t,n,r){if(e===o.ConnectionPointSide.Undefined)return this.getScaleableAsideOffsetPoints(t,n,r,!0);if(this.isBeginEndOverlappedX()){var i=this.beginRect.center.x>this.endRect.center.x;return this.getScaleableAsideOffsetPoints(t,n,r,!0,i)}return[t.clone().offset(0,this.getScaleableOffsetY(t,n,!0))]},t.prototype.getAsideOffsetPoints=function(e,t,n,r,i,o){var s=[];return void 0!==n&&(void 0===o&&(o=t.x<e.x),o?s.push(e.clone().offset(-(e.x-n.x+i),r)):s.push(e.clone().offset(n.right-e.x+i,r))),s.push(e.clone().offset(0,r)),s},t.prototype.getScaleableAsideOffsetPoints=function(e,t,n,r,i){var o=this.getScaleableOffsetY(e,t,r),s=this.getScaleableOffsetX(e,t,r);return this.getAsideOffsetPoints(e,t,n,o,s,i)},t.prototype.getScaleableOffsetX=function(e,t,n){if(this.beginRect&&this.endRect&&!n&&!this.isBeginEndOverlappedX()){var r=void 0;if((r=t.x<e.x?this.beginRect.x-this.endRect.right:this.endRect.x-this.beginRect.right)<2*this.getMinOffset())return r/2}return this.getMinOffset()},t.prototype.getScaleableOffsetY=function(e,t,n){if(this.beginRect&&this.endRect){var r=n?this.beginRect.y-e.y:this.endRect.y-e.y;if(r>0&&r<2*this.getMinOffset())return r/2}return this.getMinOffset()},t.prototype.isOnSidePoint=function(e,t){return t.y>e.y},t.prototype.isDirectConnectionAllowed=function(e,t,n){return e===o.ConnectionPointSide.North||e===o.ConnectionPointSide.Undefined},t.prototype.getDirectConnectionPoints=function(e,t){var n=e.y+(t.y-e.y)/2;return[new a.ConnectorRenderPoint(e.x,n),new a.ConnectorRenderPoint(t.x,n)]},t}(s.ConnectorPointsOrthogonalSideCalculatorBase);t.ConnectorPointsOrthogonalSouthSideCalculator=c},1686:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsOrthogonalUndefinedSideCalculator=void 0;var o=n(1816),s=n(4717),a=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getCorrectOriginPoint=function(e,t){return e},t.prototype.getSameShapeOffsetPoints=function(e,t,n,r){return[]},t.prototype.getOverlappedPointsOffsetPoints=function(e,t,n,r){return[]},t.prototype.getBeginOverlappedShapeOffsetPoints=function(e,t,n,r){return[]},t.prototype.getEndOverlappedShapeOffsetPoints=function(e,t,n,r){return[]},t.prototype.getBeginOnSideOffsetPoints=function(e,t,n,r){return[]},t.prototype.getEndOnSideOffsetPoints=function(e,t,n,r){return[]},t.prototype.getBeginOffSideOffsetPoints=function(e,t,n,r){return[]},t.prototype.getEndOffSideOffsetPoints=function(e,t,n,r){return[]},t.prototype.isOnSidePoint=function(e,t){return!0},t.prototype.isDirectConnectionAllowed=function(e,t,n){var r=this.getSideCalculator(t,n);return void 0===r||r.isDirectConnectionAllowed(e,t,n)},t.prototype.getDirectConnectionPoints=function(e,t){var n=Math.abs(t.x-e.x),r=Math.abs(t.y-e.y);if(n>r){var i=Math.min(e.x,t.x)+n/2;return[new s.ConnectorRenderPoint(i,e.y),new s.ConnectorRenderPoint(i,t.y)]}var o=Math.min(e.y,t.y)+r/2;return[new s.ConnectorRenderPoint(e.x,o),new s.ConnectorRenderPoint(t.x,o)]},t}(o.ConnectorPointsOrthogonalSideCalculatorBase);t.ConnectorPointsOrthogonalUndefinedSideCalculator=a},7369:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorPointsOrthogonalWestSideCalculator=void 0;var o=n(3742),s=n(1816),a=n(4717),c=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getCorrectOriginPoint=function(e,t){return e.x>t.x&&(e=e.clone().offset(t.x-e.x,0)),e},t.prototype.getSameShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.North:case o.ConnectionPointSide.South:case o.ConnectionPointSide.West:return[t.clone().offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.East:return this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset())}},t.prototype.getOverlappedPointsOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:return[t.clone().offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:return[t.clone().offset(-this.getMinOffset(),0)]}return[]},t.prototype.getBeginOverlappedShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.North:return t.x>n.x?t.y<n.y?[]:[t.clone().offset(-this.getMinOffset(),0)]:t.x<this.endRect.x?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!0):[t.clone().offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.South:return t.x>n.x?t.y>n.y?[]:[t.clone().offset(-this.getMinOffset(),0)]:t.x<this.endRect.x?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!1):[t.clone().offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.West:return[t.clone().offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.East:return this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),t.y<n.y)}},t.prototype.getEndOverlappedShapeOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.East:var i=-this.getMinOffset();return this.beginRect.x<t.x&&(i-=t.x-this.beginRect.x),[t.clone().offset(i,0)];case o.ConnectionPointSide.West:return[t.clone().offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.North:return n.x>t.x?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!0):t.y>n.y?[t.clone().offset(-this.getMinOffset(),0)]:[];case o.ConnectionPointSide.South:return n.x>t.x?this.getAsideOffsetPoints(t,n,r,this.getMinOffset(),this.getMinOffset(),!1):t.y<n.y?[t.clone().offset(-this.getMinOffset(),0)]:[]}},t.prototype.getBeginOnSideOffsetPoints=function(e,t,n,r){return[t.clone().offset(-this.getScaleableOffsetX(t,!1),0)]},t.prototype.getEndOnSideOffsetPoints=function(e,t,n,r){return[t.clone().offset(-this.getScaleableOffsetX(t,!0),0)]},t.prototype.getBeginOffSideOffsetPoints=function(e,t,n,r){switch(e){case o.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(t,n,r,!1,!1);break;case o.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(t,n,r,!1,!0);break;case o.ConnectionPointSide.West:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(t,n,r,!1);break;case o.ConnectionPointSide.Undefined:case o.ConnectionPointSide.East:return this.getScaleableAsideOffsetPoints(t,n,r,!1)}return[t.clone().offset(-this.getScaleableOffsetX(t,!1),0)]},t.prototype.getEndOffSideOffsetPoints=function(e,t,n,r){if(e===o.ConnectionPointSide.Undefined)return this.getScaleableAsideOffsetPoints(t,n,r,!0);if(this.isBeginEndOverlappedY()){var i=this.beginRect.center.y>this.endRect.center.y;return this.getScaleableAsideOffsetPoints(t,n,r,!0,i)}return[t.clone().offset(-this.getScaleableOffsetX(t,!0),0)]},t.prototype.getAsideOffsetPoints=function(e,t,n,r,i,o){var s=[];return void 0!==n&&(void 0===o&&(o=t.y<e.y),o?s.push(e.clone().offset(-r,-(e.y-n.y+i))):s.push(e.clone().offset(-r,n.bottom-e.y+i))),s.push(e.clone().offset(-r,0)),s},t.prototype.getScaleableAsideOffsetPoints=function(e,t,n,r,i){var o=this.getScaleableOffsetX(e,r),s=this.getScaleableOffsetY(e,t,r);return this.getAsideOffsetPoints(e,t,n,o,s,i)},t.prototype.getScaleableOffsetX=function(e,t){if(this.beginRect&&this.endRect){var n=t?e.x-this.beginRect.right:e.x-this.endRect.right;if(n>0&&n<2*this.getMinOffset())return n/2}return this.getMinOffset()},t.prototype.getScaleableOffsetY=function(e,t,n){if(this.beginRect&&this.endRect&&!n&&!this.isBeginEndOverlappedY()){var r=void 0;if((r=t.y<e.y?this.beginRect.y-this.endRect.bottom:this.endRect.y-this.beginRect.bottom)<2*this.getMinOffset())return r/2}return this.getMinOffset()},t.prototype.isOnSidePoint=function(e,t){return t.x<e.x},t.prototype.isDirectConnectionAllowed=function(e,t,n){return e===o.ConnectionPointSide.East||e===o.ConnectionPointSide.Undefined},t.prototype.getDirectConnectionPoints=function(e,t){var n=t.x+(e.x-t.x)/2;return[new a.ConnectorRenderPoint(n,e.y),new a.ConnectorRenderPoint(n,t.y)]},t}(s.ConnectorPointsOrthogonalSideCalculatorBase);t.ConnectorPointsOrthogonalWestSideCalculator=c},7959:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Connector=t.CONNECTOR_DEFAULT_TEXT_POSITION=t.ConnectorPosition=void 0;var o,s=n(9291),a=n(8011),c=n(1335),u=n(6353),l=n(7716),h=n(7185),d=n(6031),f=n(4246),p=n(7724),A=n(9416),g=n(3500),m=n(240),y=n(8675),v=n(3742),b=n(4867),w=n(5800),C=n(2342),_=n(5454),S=n(4612),x=n(4351),T=n(1510);!function(e){e[e.Begin=0]="Begin",e[e.End=1]="End"}(o=t.ConnectorPosition||(t.ConnectorPosition={})),t.CONNECTOR_DEFAULT_TEXT_POSITION=.5;var P=function(e){function n(t){var n=e.call(this)||this;if(n.beginConnectionPointIndex=-1,n.endConnectionPointIndex=-1,n.properties=new S.ConnectorProperties,n.points=t.map(function(e){return e.clone()}),t.length<2)throw Error("Points count should be greater than 1");return n.texts=new x.ConnectorTexts,n}return i(n,e),Object.defineProperty(n.prototype,"rectangle",{get:function(){return y.GeometryUtils.createRectagle(this.getRenderPoints(!0))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"skippedRenderPoints",{get:function(){return this.renderPoints?this.renderPoints.filter(function(e){return e.skipped}):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"shouldChangeRenderPoints",{get:function(){return void 0!==this.renderPoints&&void 0!==this.routingStrategy},enumerable:!1,configurable:!0}),n.prototype.assign=function(t){e.prototype.assign.call(this,t),t.beginItem=this.beginItem,t.beginConnectionPointIndex=this.beginConnectionPointIndex,t.endItem=this.endItem,t.endConnectionPointIndex=this.endConnectionPointIndex,t.properties=this.properties.clone(),t.texts=this.texts.clone(),void 0!==this.routingStrategy&&(t.routingStrategy=this.routingStrategy.clone()),void 0!==this.renderPoints&&(t.renderPoints=this.renderPoints.map(function(e){return e.clone()})),void 0!==this.renderPointsWithoutSkipped&&(t.renderPointsWithoutSkipped=this.renderPointsWithoutSkipped.map(function(e){return e.clone()})),void 0!==this.actualRoutingMode&&(t.actualRoutingMode=this.actualRoutingMode),void 0!==this.lockCreateRenderPoints&&(t.lockCreateRenderPoints=this.lockCreateRenderPoints),void 0!==this.shouldInvalidateRenderPoints&&(t.shouldInvalidateRenderPoints=this.shouldInvalidateRenderPoints)},n.prototype.clone=function(){var e=new n(this.points);return this.assign(e),e},n.prototype.getTextCount=function(){return this.texts.count()},n.prototype.getText=function(e){void 0===e&&(e=t.CONNECTOR_DEFAULT_TEXT_POSITION);var n=this.texts.get(e);return n?n.value:""},n.prototype.setText=function(e,n){void 0===n&&(n=t.CONNECTOR_DEFAULT_TEXT_POSITION),e&&""!==e?this.texts.set(n,new x.ConnectorText(n,e)):this.texts.remove(n)},n.prototype.getTextPoint=function(e){var t=this.getRenderPoints();return y.GeometryUtils.getPathPointByPosition(t,e)[0]},n.prototype.getTextPositionByPoint=function(e){var t=this.getRenderPoints(),n=y.GeometryUtils.getPathLength(t),r=y.GeometryUtils.getPathPositionByPoint(t,e),i=s.UnitConverter.pointsToTwips(parseInt(this.styleText["font-size"]));return i>r*n?i/n:i>n-r*n?(n-i)/n:r},n.prototype.getTextRectangle=function(e){return a.Rectangle.fromGeometry(this.getTextPoint(e),new u.Size(0,0))},n.prototype.changeRoutingStrategy=function(e){this.routingStrategy=e,this.invalidateRenderPoints()},n.prototype.clearRoutingStrategy=function(){delete this.routingStrategy,delete this.renderPoints,delete this.renderPointsWithoutSkipped,delete this.lockCreateRenderPoints,delete this.actualRoutingMode,delete this.shouldInvalidateRenderPoints,this.invalidateRenderPoints()},n.prototype.getCustomRenderPoints=function(e){void 0===e&&(e=!1);var t=this.getRenderPoints(e),n=[];return t.forEach(function(e,r){r>0&&r<t.length-1&&n.push(e)}),n},n.prototype.getRenderPoints=function(e){if(void 0===e&&(e=!1),(void 0===this.shouldInvalidateRenderPoints||this.shouldInvalidateRenderPoints)&&(this.shouldInvalidateRenderPoints=!1,this.routingStrategy&&this.lockCreateRenderPoints||this.changeRenderPoints(this.getCalculator().getPoints()),this.routingStrategy&&!this.lockCreateRenderPoints&&this.actualRoutingMode!==m.ConnectorRoutingMode.None&&this.points&&this.renderPoints)){var t=this.points[0],n=this.points[this.points.length-1];if(!t.equals(n)){var r=this.routingStrategy.createRenderPoints(this.points,this.renderPoints,this.beginItem,this.endItem,this.beginConnectionPointIndex,this.endConnectionPointIndex,b.ModelUtils.getConnectorContainer(this));r?(this.changeRenderPoints(r),this.actualRoutingMode=m.ConnectorRoutingMode.AllShapesOnly):this.actualRoutingMode=m.ConnectorRoutingMode.None}}return e?this.renderPoints:this.renderPointsWithoutSkipped},n.prototype.tryCreateRenderPointsContext=function(e){return e||this.shouldChangeRenderPoints?new T.ConnectorRenderPointsContext(this.renderPoints.map(function(e){return e.clone()}),this.lockCreateRenderPoints,this.actualRoutingMode):void 0},n.prototype.updatePointsOnPageResize=function(e,t){this.points=this.points.map(function(n){return n.clone().offset(e,t)}),this.renderPoints&&this.changeRenderPoints(this.renderPoints.map(function(n){var r=n.clone().offset(e,t);return r.pointIndex=n.pointIndex,r.skipped=n.skipped,r}))},n.prototype.addPoint=function(e,t){this.points.splice(e,0,t)},n.prototype.deletePoint=function(e){this.points.splice(e,1)},n.prototype.movePoint=function(e,t){this.points[e]=t},n.prototype.onAddPoint=function(e,t){this.shouldChangeRenderPoints?this.replaceRenderPointsCore(this.routingStrategy.onAddPoint(this.points,e,t,this.renderPoints),!0,m.ConnectorRoutingMode.AllShapesOnly):this.invalidateRenderPoints()},n.prototype.onDeletePoint=function(e){this.shouldChangeRenderPoints?this.replaceRenderPointsCore(this.routingStrategy.onDeletePoint(this.points,e,this.renderPoints),this.points.length>2,m.ConnectorRoutingMode.AllShapesOnly):this.invalidateRenderPoints()},n.prototype.onMovePoint=function(e,t){this.shouldChangeRenderPoints?(0!==e&&e!==this.points.length-1||(this.lockCreateRenderPoints=!1),this.replaceRenderPointsCore(this.routingStrategy.onMovePoint(this.points,e,t,this.renderPoints),this.lockCreateRenderPoints,m.ConnectorRoutingMode.AllShapesOnly)):this.invalidateRenderPoints()},n.prototype.onMovePoints=function(e,t,n){this.shouldChangeRenderPoints?(0!==e&&t!==this.points.length-1||(this.lockCreateRenderPoints=!1),this.replaceRenderPointsCore(this.routingStrategy.onMovePoints(this.points,e,t,n,this.renderPoints),this.lockCreateRenderPoints,m.ConnectorRoutingMode.AllShapesOnly)):this.invalidateRenderPoints()},n.prototype.replaceRenderPoints=function(e,t){void 0!==e?(this.replaceRenderPointsCore(e.renderPoints,e.lockCreateRenderPoints,e.actualRoutingMode),void 0!==t&&(this.shouldInvalidateRenderPoints=t)):this.invalidateRenderPoints()},n.prototype.clearRenderPoints=function(){this.changeRenderPoints(void 0),this.lockCreateRenderPoints=!1,this.actualRoutingMode=void 0,this.invalidateRenderPoints()},n.prototype.unlockCreateRenderPoints=function(){this.lockCreateRenderPoints=!1},n.prototype.replaceRenderPointsCore=function(e,t,n){this.changeRenderPoints(e),this.lockCreateRenderPoints=t,this.actualRoutingMode=n,this.invalidateRenderPoints()},n.prototype.changeRenderPoints=function(e){this.renderPoints=e,this.renderPointsWithoutSkipped=e?this.renderPoints.filter(function(e){return!e.skipped}):void 0},n.prototype.getCalculator=function(){return this.properties.lineOption===S.ConnectorLineOption.Straight?new w.ConnectorPointsCalculator(this):new C.ConnectorPointsOrthogonalCalculator(this)},n.prototype.invalidateRenderPoints=function(){this.shouldInvalidateRenderPoints=!0},n.prototype.createPrimitives=function(e){var t=[],n=this.getRenderPoints(),r=new p.PathPrimitive(n.map(function(e,t){return 0===t?new p.PathPrimitiveMoveToCommand(e.x,e.y):new p.PathPrimitiveLineToCommand(e.x,e.y)}),this.style);return t.push(r),(t=t.concat(this.createLineEndingPrimitives(n,r))).concat(this.createTextPrimitives(e))},n.prototype.createLineEndingPrimitives=function(e,t){var n=[];return e.length>1&&[{strategy:this.createLineEndingStrategy(this.properties.startLineEnding),point1:e[0],point2:e[1]},{strategy:this.createLineEndingStrategy(this.properties.endLineEnding),point1:e[e.length-1],point2:e[e.length-2]}].forEach(function(e){var r=e.strategy;if(r.hasCommands()){var i=t;r.needCreateSeparatePrimitive()&&n.push(i=r.createPrimitive()),i.commands=i.commands.concat(r.createCommands(e.point1,e.point2))}}),n},n.prototype.createLineEndingStrategy=function(e){switch(e){case S.ConnectorLineEnding.None:return new _.ConnectorLineEndingNoneStrategy(this.style);case S.ConnectorLineEnding.Arrow:return new _.ConnectorLineEndingArrowStrategy(this.style);case S.ConnectorLineEnding.OutlinedTriangle:return new _.ConnectorLineEndingOutlinedTriangleStrategy(this.style);case S.ConnectorLineEnding.FilledTriangle:return new _.ConnectorLineEndingFilledTriangleStrategy(this.style);default:return new _.ConnectorLineEndingStrategy(this.style)}},n.prototype.createSelectorPrimitives=function(){var e=[],t=this.getRenderPoints();return e.push(new p.PathPrimitive(t.map(function(e,t){return 0===t?new p.PathPrimitiveMoveToCommand(e.x,e.y):new p.PathPrimitiveLineToCommand(e.x,e.y)}),null,"selector")),e},n.prototype.createTextPrimitives=function(e){var t=this;if(!this.enableText)return[];var n=[];return this.texts.forEach(function(r){var i=t.getText(r.position);if(i&&""!==i){var o=t.getTextPoint(r.position);n=n.concat([new A.TextPrimitive(o.x,o.y,i,f.TextOwner.Connector,void 0,void 0,void 0,t.styleText,!0,null,l.PAGE_BG_TEXTFLOOR_FILTER_IDPREFIX+e,void 0,function(e){g.RenderUtils.setElementEventData(e,d.MouseEventElementType.ConnectorText,t.key,r.position)})])}}),n},n.prototype.getExtremeItem=function(e){return e===o.Begin?this.beginItem:e===o.End?this.endItem:null},n.prototype.getExtremeConnectionPointIndex=function(e){return e===o.Begin?this.beginConnectionPointIndex:e===o.End?this.endConnectionPointIndex:-1},n.prototype.getMinX=function(){return this.getRenderPoints().map(function(e){return e.x}).reduce(function(e,t){return Math.min(e,t)},Number.MAX_VALUE)},n.prototype.getMinY=function(){return this.getRenderPoints().map(function(e){return e.y}).reduce(function(e,t){return Math.min(e,t)},Number.MAX_VALUE)},n.prototype.getConnectionPoints=function(){return[]},n.prototype.getConnectionPointSide=function(e,t){return v.ConnectionPointSide.Undefined},n.prototype.getSegments=function(){var e=[],t=this.getRenderPoints();return t.forEach(function(n,r){r>0&&e.push(new c.Segment(t[r-1],n))}),e},n.prototype.intersectedByRect=function(e){return this.getSegments().some(function(t){return t.isIntersectedByRect(e)})},n.prototype.toNative=function(e){var t=new h.NativeConnector(this.key,this.dataKey);return t.fromKey=this.beginItem&&this.beginItem.dataKey,t.toKey=this.endItem&&this.endItem.dataKey,t.texts=this.texts.map(function(e){return e}).sort(function(e,t){return e.position-t.position}).map(function(e){return e.value}),t.fromId=this.beginItem&&this.beginItem.key,t.fromPointIndex=this.beginConnectionPointIndex,t.toId=this.endItem&&this.endItem.key,t.toPointIndex=this.endConnectionPointIndex,t.points=this.points.map(function(e){return e.clone()}),t.applyUnits(e),t},n.minOffset=s.UnitConverter.pixelsToTwips(24),n.minTextHeight=s.UnitConverter.pixelsToTwips(12),n}(v.DiagramItem);t.Connector=P},5454:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorLineEndingFilledTriangleStrategy=t.ConnectorLineEndingOutlinedTriangleStrategy=t.ConnectorLineEndingArrowStrategy=t.ConnectorLineEndingNoneStrategy=t.ConnectorLineEndingStrategy=void 0;var o=n(8675),s=n(7724),a=function(){function e(e){this.style=e}return e.prototype.hasCommands=function(){return!0},e.prototype.needCreateSeparatePrimitive=function(){return!1},e.prototype.createPrimitive=function(){return new s.PathPrimitive([],this.getStyle(),this.getCssClass())},e.prototype.createCommands=function(e,t){return[]},e.prototype.getStyle=function(){var e=this.style.clone();return e.resetStrokeDashArray(),e},e.prototype.getCssClass=function(){},e}();t.ConnectorLineEndingStrategy=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.hasCommands=function(){return!1},t}(a);t.ConnectorLineEndingNoneStrategy=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"arrowHeight",{get:function(){return 6*this.style.strokeWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowWidth",{get:function(){return 2*this.style.strokeWidth},enumerable:!1,configurable:!0}),t.prototype.needCreateSeparatePrimitive=function(){return!this.style.isDefaultStrokeDashArray()},t.prototype.createCommands=function(e,t){var n=this.getArrowPoints(e,t),r=[new s.PathPrimitiveMoveToCommand(n.point1.x,n.point1.y),new s.PathPrimitiveLineToCommand(e.x,e.y),new s.PathPrimitiveLineToCommand(n.point2.x,n.point2.y)];return this.style.isDefaultStrokeDashArray()||(r=r.concat([new s.PathPrimitiveMoveToCommand(e.x,e.y),new s.PathPrimitiveLineToCommand(n.point3.x,n.point3.y)])),r},t.prototype.getArrowPoints=function(e,t){var n,r=this.arrowHeight;return e.x===t.x&&(n=Math.abs(e.y-t.y))<r&&(r=n),e.y===t.y&&(n=Math.abs(e.x-t.x))<r&&(r=n),o.GeometryUtils.getArrowPoints(e,t,r,this.arrowWidth)},t}(a);t.ConnectorLineEndingArrowStrategy=u;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.needCreateSeparatePrimitive=function(){return!0},t.prototype.createCommands=function(e,t){var n=this.getArrowPoints(e,t);return[new s.PathPrimitiveMoveToCommand(n.point1.x,n.point1.y),new s.PathPrimitiveLineToCommand(e.x,e.y),new s.PathPrimitiveLineToCommand(n.point2.x,n.point2.y),new s.PathPrimitiveClosePathCommand]},t.prototype.getCssClass=function(){return"outlined-line-ending"},t}(u);t.ConnectorLineEndingOutlinedTriangleStrategy=l;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getStyle=function(){var t=e.prototype.getStyle.call(this);return t.fill=t.stroke,t},t.prototype.getCssClass=function(){return"filled-line-ending"},t}(l);t.ConnectorLineEndingFilledTriangleStrategy=h},4612:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorProperties=t.DEFAULT_CONNECTOR_ENDLINEENDING=t.DEFAULT_CONNECTOR_STARTLINEENDING=t.DEFAULT_CONNECTOR_LINEOPTION=t.ConnectorLineEnding=t.ConnectorLineOption=void 0,function(e){e[e.Straight=0]="Straight",e[e.Orthogonal=1]="Orthogonal"}(n=t.ConnectorLineOption||(t.ConnectorLineOption={})),function(e){e[e.None=0]="None",e[e.Arrow=1]="Arrow",e[e.OutlinedTriangle=2]="OutlinedTriangle",e[e.FilledTriangle=3]="FilledTriangle"}(r=t.ConnectorLineEnding||(t.ConnectorLineEnding={})),t.DEFAULT_CONNECTOR_LINEOPTION=n.Orthogonal,t.DEFAULT_CONNECTOR_STARTLINEENDING=r.None,t.DEFAULT_CONNECTOR_ENDLINEENDING=r.Arrow;var i=function(){function e(){this.lineOption=t.DEFAULT_CONNECTOR_LINEOPTION,this.startLineEnding=t.DEFAULT_CONNECTOR_STARTLINEENDING,this.endLineEnding=t.DEFAULT_CONNECTOR_ENDLINEENDING}return e.prototype.clone=function(){var t=new e;return t.lineOption=this.lineOption,t.startLineEnding=this.startLineEnding,t.endLineEnding=this.endLineEnding,t},e.prototype.forEach=function(e){for(var t in this)Object.prototype.hasOwnProperty.call(this,t)&&e(t)},e.prototype.toObject=function(){var e={},n=!1;return this.lineOption!==t.DEFAULT_CONNECTOR_LINEOPTION&&(e.lineOption=this.lineOption,n=!0),this.startLineEnding!==t.DEFAULT_CONNECTOR_STARTLINEENDING&&(e.startLineEnding=this.startLineEnding,n=!0),this.endLineEnding!==t.DEFAULT_CONNECTOR_ENDLINEENDING&&(e.endLineEnding=this.endLineEnding,n=!0),n?e:null},e.prototype.fromObject=function(e){"number"==typeof e.lineOption&&(this.lineOption=e.lineOption),"number"==typeof e.startLineEnding&&(this.startLineEnding=e.startLineEnding),"number"==typeof e.endLineEnding&&(this.endLineEnding=e.endLineEnding)},e}();t.ConnectorProperties=i},4717:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorRenderPoint=void 0;var o=function(e){function t(t,n,r,i){void 0===r&&(r=-1),void 0===i&&(i=!1);var o=e.call(this,t,n)||this;return o.pointIndex=r,o.skipped=i,o}return i(t,e),t.prototype.offset=function(t,n){return e.prototype.offset.call(this,t,n),this.pointIndex=-1,this.skipped=!1,this},t.prototype.multiply=function(t,n){return e.prototype.multiply.call(this,t,n),this.pointIndex=-1,this.skipped=!1,this},t.prototype.clone=function(){return new t(this.x,this.y,this.pointIndex,this.skipped)},t.equal=function(e,t){return e.equals(t)&&e.pointIndex===t.pointIndex&&e.skipped===t.skipped},t.prototype.toObject=function(){return{x:this.x,y:this.y,pointIndex:this.pointIndex,skipped:this.skipped}},t.fromObject=function(e){return new t(e.x,e.y,e.pointIndex,e.skipped)},t}(n(8900).Point);t.ConnectorRenderPoint=o},4351:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorTexts=t.ConnectorText=void 0;var n=function(e,t){this.position=e,this.value=t};t.ConnectorText=n;var r=function(){function e(){this.items={}}return e.prototype.get=function(e){return this.items[e]},e.prototype.set=function(e,t){this.items[e]=t},e.prototype.remove=function(e){delete this.items[e]},e.prototype.map=function(e){var t=[];return this.forEach(function(n){return t.push(e(n))}),t},e.prototype.forEach=function(e){for(var t in this.items)Object.prototype.hasOwnProperty.call(this.items,t)&&e(this.items[t])},e.prototype.count=function(){return Object.keys(this.items).length},e.prototype.clone=function(){var t=new e;return this.forEach(function(e){t.set(e.position,new n(e.position,e.value))}),t},e.prototype.toObject=function(){var e={},t=!1;return this.forEach(function(n){e[n.position]=n.value,t=!0}),t?e:null},e.prototype.fromObject=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=parseFloat(t);isNaN(r)||"string"!=typeof e[t]||this.set(r,new n(r,e[t]))}},e}();t.ConnectorTexts=r},3975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AStarCalculator=void 0;var n=function(){function e(){}return e.calculate=function(e){if(e)for(var t=this.start(e);t;)t=t(e)},e.start=function(t){return t.start(),t.shouldStartContinue?e.startContinue:e.finishWithPath},e.startContinue=function(t){return t.startContinue(),t.shouldFinish?e.finishWithPath:e.endContinue},e.endContinue=function(t){return t.endContinue(),t.shouldStartContinue?e.startContinue:e.finishWithoutPath},e.finishWithPath=function(e){e.finishWithPath()},e.finishWithoutPath=function(e){e.finishWithoutPath()},e}();t.AStarCalculator=n},2180:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AStarContext=t.AStarContextBase=void 0;var o=n(3225),s=n(1039),a=n(684),c=n(1335),u=n(5074),l=n(8675),h=function(){function e(e,t,n){this.startPosition=e,this.targetPosition=t,this.maxStepsCount=n,this.prohibitedPoints={}}return Object.defineProperty(e.prototype,"shouldStartContinue",{get:function(){return this.updatableSet.count>0&&this.stepsCount<this.maxStepsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldFinish",{get:function(){return this.currentNode.position.equals(this.targetPosition)},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.generalSet=new o.SortedQueues(function(e){return e.key}),this.updatableSet=new s.UniqueAStarNodePositions;var e=new a.AStarNode(this.startPosition,this.getDistance(this.startPosition,this.targetPosition));this.currentNode=e,this.generalSet.enqueue(e),this.updatableSet.add(e.position,e),this.stepsCount=0,this.openNode=void 0},e.prototype.startContinue=function(){this.currentNode=this.generalSet.dequeueMin()},e.prototype.endContinue=function(){var e=this,t=this.currentNode.position;this.updatableSet.remove(t),this.addProhibitedPoint(t),this.getNeighborPoints(t).forEach(function(t){var n=e.getPenalty(e.currentNode,t),r=e.updatableSet.getNode(t);if(void 0===r)(r=new a.AStarNode(t,e.getDistance(t,e.targetPosition))).parent=e.currentNode,r.penalty=n,e.generalSet.enqueue(r),e.updatableSet.add(t,r);else if(r.penalty>n){var i=e.generalSet;i.remove(r),r.parent=e.currentNode,r.penalty=n,i.enqueue(r)}e.openNode=r}),this.stepsCount++},e.prototype.finishWithPath=function(){this.path=this.currentNode.getPath()},e.prototype.finishWithoutPath=function(){this.path=[]},e}();t.AStarContextBase=h;var d=function(e){function t(t,n,r,i,o,s){var a=e.call(this,n,r,1e4)||this;return a.routingContext=t,a.startPosition=n,a.targetPosition=r,a.prohibitedSegments=i,a.grid=o,a.metrics=s,a}return i(t,e),t.prototype.addProhibitedPoint=function(e){this.prohibitedPoints[e.x+"_"+e.y]=e},t.prototype.getNeighborPoints=function(e){var t=this;return this.grid.getNeighborPoints(e).filter(function(e){return t.allowPoint(e)})},t.prototype.getDistance=function(e,t){return this.metrics.distance(e,t)},t.prototype.getPenalty=function(e,t){var n=e.parent,r=e.position,i=this.getTurnDirection(n?l.GeometryUtils.createAngle(n.position,r,t):0),o=this.getDistance(r,t),s=new c.Segment(r,t).center;return e.penalty+this.metrics.penalty(o,s,i,this.getIntersectedItems(s))},t.prototype.allowPoint=function(e){return!(e.x+"_"+e.y in this.prohibitedPoints)&&(!this.prohibitedSegments||this.prohibitedSegments.allowPoint(e))},t.prototype.getTurnDirection=function(e){return u.RightAngleConnectorRoutingMathOperations.getTurnDirection(e)},t.prototype.getIntersectedItems=function(e){var t=this,n=this.routingContext.shapeMargins;return this.routingContext.getIntersectedItems(e,n).filter(function(e){return t.hasOneShapeConnection(e)||!t.itemContainsConnectionPoints(e)})},t.prototype.itemContainsConnectionPoints=function(e){var t=e.rectangle;return t.containsPoint(this.routingContext.beginPoint)&&t.containsPoint(this.routingContext.endPoint)},t.prototype.hasOneShapeConnection=function(e){var t=e.getConnectionPoints();return this.isConnectionPoint(t,this.routingContext.beginPoint)&&this.isConnectionPoint(t,this.routingContext.endPoint)},t.prototype.isConnectionPoint=function(e,t){return e.filter(function(e){return e.equals(t)}).length>0},t}(h);t.AStarContext=d},9927:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IntersectedShapeZone=t.AStarMetrics=t.IntersectedShapesMetrics=t.TurnDirectionMetrics=t.IntersectedShapeMetrics=t.RightAngleTurnDirection=void 0;var r,i=n(8900),o=n(5596);!function(e){e[e.Straight=0]="Straight",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Backwards=3]="Backwards"}(r=t.RightAngleTurnDirection||(t.RightAngleTurnDirection={}));var s=function(){function e(e,t){this.description=e,this.shapeMargin=t}return e.prototype.penalty=function(e,t,n,r){var i=r.rectangle;if(i.containsPoint(n))return e+this.description.shape*t;var o=this.createRelativeMarginPenalty(n,i,this.shapeMargin);return o>0?e+this.description.margin*o*t:e},e.prototype.createRelativeMarginPenalty=function(e,t,n){var r=this.isTopPosition(e,t,n),s=this.isLeftPosition(e,t,n),a=this.isBottomPosition(e,t,n),c=this.isRightPosition(e,t,n);if(r){if(s){var u=(d=t.clone().inflate(n)).createPosition(),l=t.createPosition(),h=o.Metrics.euclideanDistance(l,u);return 1-o.Metrics.euclideanDistance(l,e)/h}if(c){var d=t.clone().inflate(n),f=new i.Point(d.right,d.y),p=new i.Point(t.right,t.y),A=o.Metrics.euclideanDistance(p,f);return 1-o.Metrics.euclideanDistance(p,e)/A}return 1-(t.y-e.y)/n}if(a){if(s){d=t.clone().inflate(n);var g=new i.Point(d.x,d.bottom),m=new i.Point(t.x,t.bottom),y=o.Metrics.euclideanDistance(m,g);return 1-o.Metrics.euclideanDistance(m,e)/y}if(c){d=t.clone().inflate(n);var v=new i.Point(d.right,d.bottom),b=new i.Point(t.right,t.bottom),w=o.Metrics.euclideanDistance(b,v);return 1-o.Metrics.euclideanDistance(b,e)/w}return 1-(e.y-t.bottom)/n}return s?1-(t.x-e.x)/n:c?1-(e.x-t.right)/n:0},e.prototype.isTopPosition=function(e,t,n){return e.x>t.x-n&&e.x<t.right+n&&e.y>t.y-n&&e.y<t.y},e.prototype.isBottomPosition=function(e,t,n){return e.x>t.x-n&&e.x<t.right+n&&e.y>t.bottom&&e.y<t.bottom+n},e.prototype.isLeftPosition=function(e,t,n){return e.x>t.x-n&&e.x<t.x&&e.y>t.y-n&&e.y<t.bottom+n},e.prototype.isRightPosition=function(e,t,n){return e.x>t.right&&e.x<t.right+n&&e.y>t.y-n&&e.y<t.bottom+n},e}();t.IntersectedShapeMetrics=s;var a=function(){function e(e){this.description=e}return e.prototype.penalty=function(e,t){switch(t){case r.Backwards:return e*this.description.turnBack;case r.Left:return e*this.description.turnLeft;case r.Right:return e*this.description.turnRight}return e},e}();t.TurnDirectionMetrics=a;var c=function(){function e(e){this.shapeMetrics=e}return e.prototype.penalty=function(e,t,n,r){var i=this;if(!r||!r.length)return e;var o=e;return r.forEach(function(e){return o=i.shapeMetrics.penalty(o,t,n,e)}),o},e}();t.IntersectedShapesMetrics=c;var u=function(){function e(e,t){this.turnDirectionMetrics=e,this.shapesMetrics=t}return e.prototype.distance=function(e,t){return o.Metrics.manhattanDistance(e,t)},e.prototype.penalty=function(e,t,n,r){var i=e;return i=this.shapesMetrics.penalty(i,e,t,r),this.turnDirectionMetrics.penalty(i,n)},e}();t.AStarMetrics=u,function(e){e[e.None=0]="None",e[e.Shape=1]="Shape",e[e.Margin=2]="Margin"}(t.IntersectedShapeZone||(t.IntersectedShapeZone={}))},684:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AStarNode=void 0;var n=function(){function e(e,t){this.position=e,this.distance=t,this.penalty=0}return Object.defineProperty(e.prototype,"key",{get:function(){return this.distance+this.penalty},enumerable:!1,configurable:!0}),e.prototype.getPath=function(){for(var e=[],t=this;void 0!==t;)e.splice(0,0,t.position),t=t.parent;return e},e}();t.AStarNode=n},3225:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedQueues=void 0;var r=n(2400),i=function(){function e(e){this.getKey=e,this._itemsArrays={},this._sortedKeys=[]}return Object.defineProperty(e.prototype,"sortedKeys",{get:function(){return this._sortedKeys},enumerable:!1,configurable:!0}),e.prototype.getQueue=function(e){return this._itemsArrays[e]},e.prototype.enqueue=function(e){var t=this.getKey(e);void 0===this._itemsArrays[t]?(this._itemsArrays[t]=[e],this.addSortedKey(t)):this._itemsArrays[t].push(e)},e.prototype.remove=function(e){var t=this.getKey(e),n=this._itemsArrays[t];void 0!==n&&(n.length?n[0]===e?(n.shift(),n.length||this.removeCore(t)):this._itemsArrays[t]=n.filter(function(t){return t!==e}):this.removeCore(t))},e.prototype.dequeueMin=function(){if(this._sortedKeys.length){var e=this._sortedKeys[0],t=this._itemsArrays[e],n=t.shift();return t.length||this.removeCore(e),n}},e.prototype.removeCore=function(e){delete this._itemsArrays[e],this.removeSortedKey(e)},e.prototype.removeSortedKey=function(e){var t=r.SearchUtils.binaryIndexOf(this._sortedKeys,function(t){return t-e});t>=0&&this.sortedKeys.splice(t,1)},e.prototype.addSortedKey=function(e){var t=r.SearchUtils.binaryIndexOf(this._sortedKeys,function(t){return t-e});t<0&&this._sortedKeys.splice(-(t+1),0,e)},e}();t.SortedQueues=i},1039:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueAStarNodePositions=void 0;var n=function(){function e(e){void 0===e&&(e=function(e){return e.toString()}),this.getKey=e,this.items={},this.length=0}return Object.defineProperty(e.prototype,"count",{get:function(){return this.length},enumerable:!1,configurable:!0}),e.prototype.getNode=function(e){var t=this.items[this.getKey(e)];return void 0!==t?t.node:void 0},e.prototype.add=function(e,t){var n=this.getKey(e);void 0===this.items[n]&&(this.length++,this.items[n]={position:e,node:t})},e.prototype.remove=function(e){var t=this.getKey(e);void 0!==this.items[t]&&(this.length--,delete this.items[t])},e}();t.UniqueAStarNodePositions=n},1768:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorProhibitedSegments=void 0;var n=function(){function e(){this.segments=[],this.exludedPoints={}}return e.prototype.addSegment=function(e){this.segments.push(e)},e.prototype.addExludedPoint=function(e){this.exludedPoints[e.x+"_"+e.y]=!0},e.prototype.allowPoint=function(e){if(!(e.x+"_"+e.y in this.exludedPoints))for(var t=0;t<this.segments.length;t++)if(this.segments[t].containsPoint(e))return!1;return!0},e}();t.ConnectorProhibitedSegments=n},1510:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorRenderPointsContext=void 0;var r=n(4717),i=function(){function e(e,t,n){this.renderPoints=e,this.lockCreateRenderPoints=t,this.actualRoutingMode=n}return e.prototype.toObject=function(){return{actualRoutingMode:this.actualRoutingMode,lockCreateRenderPoints:this.lockCreateRenderPoints,renderPoints:this.renderPoints.map(function(e){return e.toObject()})}},e.fromObject=function(t){return new e(t.renderPoints.map(function(e){return r.ConnectorRenderPoint.fromObject(e)}),t.lockCreateRenderPoints,t.actualRoutingMode)},e}();t.ConnectorRenderPointsContext=i},2868:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorRenderSegment=void 0;var r=n(1335),i=n(1768),o=function(){function e(e,t,n,r){this.startInfo=e,this.endInfo=t,this.startPointIndex=n,this.previousCustomSegment=r}return Object.defineProperty(e.prototype,"startPathPoint",{get:function(){return this.startInfo instanceof r.Segment?this.startInfo.endPoint:this.startInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endPathPoint",{get:function(){return this.endInfo instanceof r.Segment?this.endInfo.startPoint:this.endInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startPoint",{get:function(){return this.startInfo instanceof r.Segment?this.startInfo.startPoint:this.startInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endPoint",{get:function(){return this.endInfo instanceof r.Segment?this.endInfo.endPoint:this.endInfo},enumerable:!1,configurable:!0}),e.prototype.createGridPoints=function(){var e=[];return this.endInfo instanceof r.Segment?(e.push(this.endInfo.startPoint),e.push(this.endInfo.endPoint)):e.push(this.endInfo),e},e.prototype.createProhibitedSegments=function(){if(this.startInfo instanceof r.Segment){var e=this.createProhibitedSegmentsCore(this.startInfo);return this.endInfo instanceof r.Segment&&(e.addSegment(this.endInfo),e.addExludedPoint(this.endInfo.startPoint)),this.previousCustomSegment&&e.addSegment(this.previousCustomSegment),e}return this.endInfo instanceof r.Segment?((e=this.createProhibitedSegmentsCore(this.endInfo)).addExludedPoint(this.endInfo.startPoint),this.previousCustomSegment&&e.addSegment(this.previousCustomSegment),e):this.previousCustomSegment?this.createProhibitedSegmentsCore(this.previousCustomSegment):void 0},e.prototype.createProhibitedSegmentsCore=function(e){var t=new i.ConnectorProhibitedSegments;return t.addSegment(e),t},e}();t.ConnectorRenderSegment=o},5714:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorRoutingModel=t.ConnectorRoutingPenaltyDescription=void 0;var r=n(240),i=n(5503),o=n(7959),s=n(4612),a=n(3597),c=function(){this.shape=20,this.margin=2,this.turnBack=20,this.turnLeft=3.1,this.turnRight=3};t.ConnectorRoutingPenaltyDescription=c;var u=function(){function e(){this.connectorRoutingMode=r.ConnectorRoutingMode.AllShapesOnly,this.shapeMargins=o.Connector.minOffset,this.shouldReverseConnections=!0,this.shouldResizeConnections=!0,this.penaltyDescription=new c}return e.prototype.initialize=function(e){this.model=e},e.prototype.createStrategy=function(e){if(void 0!==this.model&&this.connectorRoutingMode!==r.ConnectorRoutingMode.None&&e===s.ConnectorLineOption.Orthogonal)return new a.RightAngleConnectorRoutingStrategy(this)},e.prototype.getItems=function(){return this.getShapes()},e.prototype.notifyConnectorRoutingModeChanged=function(e){this.connectorRoutingMode=e},e.prototype.getShapes=function(){return void 0===this.model||void 0===this.connectorRoutingMode||this.connectorRoutingMode===r.ConnectorRoutingMode.None?[]:this.model.items.filter(function(e){return e instanceof i.Shape})},e}();t.ConnectorRoutingModel=u},1254:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RoutingGrid=void 0;var r=n(2400),i=function(){function e(e,t,n){this.verticalGridLines=e,this.horizontalGridLines=t,this.createPoint=n}return e.create=function(t,n,r){var i=this,o=[],s=[],a={},c={};return n.forEach(function(e){i.addLine(e.x,o,a),i.addLine(e.right,o,a),i.addLine(e.y,s,c),i.addLine(e.bottom,s,c)}),t.forEach(function(e){i.addLine(e.x,o,a),i.addLine(e.y,s,c)}),o.sort(function(e,t){return e-t}),s.sort(function(e,t){return e-t}),new e(o,s,r)},e.addLine=function(e,t,n){n[e]||(t.push(e),n[e]=!0)},e.prototype.getNeighborPoints=function(e){var t=[];if(!(this.horizontalGridLines&&this.horizontalGridLines.length&&this.verticalGridLines&&this.verticalGridLines.length))return t;var n=r.SearchUtils.binaryIndexOf(this.verticalGridLines,function(t){return t-e.x});n<0?(n=~n,this.isValidArrayIndex(this.verticalGridLines,n)&&t.push(this.createPoint(this.verticalGridLines[n],e.y))):this.isValidArrayIndex(this.verticalGridLines,n+1)&&t.push(this.createPoint(this.verticalGridLines[n+1],e.y)),this.isValidArrayIndex(this.verticalGridLines,n-1)&&t.push(this.createPoint(this.verticalGridLines[n-1],e.y));var i=r.SearchUtils.binaryIndexOf(this.horizontalGridLines,function(t){return t-e.y});return i<0?(i=~i,this.isValidArrayIndex(this.horizontalGridLines,i)&&t.push(this.createPoint(e.x,this.horizontalGridLines[i]))):this.isValidArrayIndex(this.horizontalGridLines,i+1)&&t.push(this.createPoint(e.x,this.horizontalGridLines[i+1])),this.isValidArrayIndex(this.horizontalGridLines,i-1)&&t.push(this.createPoint(e.x,this.horizontalGridLines[i-1])),t},e.prototype.isValidArrayIndex=function(e,t){return e&&t>=0&&t<e.length},e}();t.RoutingGrid=i},1794:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RightAngleConnectorRoutingContext=t.IntersectingItemsByPointsContext=t.CuttingItemsContext=void 0;var r=n(8900),i=n(1335),o=n(9716),s=n(3742),a=n(5074),c=n(2868),u=n(1254),l=n(4867),h=n(9927),d=n(2180),f=n(3975),p=n(8675),A=n(1057),g=function(){function e(){this.cuttingItemKeys=[]}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.cuttingItemKeys.length},enumerable:!1,configurable:!0}),e.prototype.registerShape=function(e,t,n){return!!p.GeometryUtils.areSegmentsCutRectangle(n,t)&&(this.cuttingItemKeys.push(e),!0)},e}();t.CuttingItemsContext=g;var m=function(){function e(e){this.routingModel=e,this.trees={}}return e.prototype.getItems=function(e,t){return this.getOrCreateTree(t).search(e)},e.prototype.getOrCreateTree=function(e){if(!this.trees[e]){this.trees[e]=new A.RTree;for(var t=this.routingModel.getItems(),n=0,r=void 0;r=t[n];n++)this.trees[e].insert(e?r.rectangle.inflate(e,e):r.rectangle,r)}return this.trees[e]},e}();t.IntersectingItemsByPointsContext=m;var y=function(){function e(e,t,n,r,i,o,s){this.routingModel=e,this.points=t,this.supportRenderPoints=n,this.beginConnectionShape=r,this.endConnectionShape=i,this.beginConnectionSide=this.getConnectionSide(this.beginConnectionShape,o,this.beginPoint),this.endConnectionSide=this.getConnectionSide(this.endConnectionShape,s,this.endPoint),this.ignorableItemKeys={},this.cuttingShapesContext=new g,this.intersectedItemsByPointsContext=new m(this.routingModel),this.isInvalidRenderSegments=!0}return Object.defineProperty(e.prototype,"shapeMargins",{get:function(){return this.routingModel.shapeMargins},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"beginPoint",{get:function(){return this.points[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endPoint",{get:function(){return this.points[this.points.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasIntersecting",{get:function(){return!this.cuttingShapesContext.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldCreateRenderPoints",{get:function(){return this.isInvalidRenderSegments||!this.isSmallPath&&(this.hasIntersecting||this.isReversedStartConnection||this.isReversedEndConnection)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"beginPathPoint",{get:function(){return this.beginConnectionSegment instanceof i.Segment?this.beginConnectionSegment.startPoint:this.beginConnectionSegment},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endPathPoint",{get:function(){return this.endConnectionSegment instanceof i.Segment?this.endConnectionSegment.endPoint:this.endConnectionSegment},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReversedStartConnection",{get:function(){if(!this.beginConnectionShape||this.beginConnectionSide===s.ConnectionPointSide.Undefined)return!1;var e=this.beginConnectionSegment;return!(e instanceof r.Point)&&this.isReversedConnectionSegment(this.supportSegments[0],e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReversedEndConnection",{get:function(){if(!this.endConnectionShape||this.endConnectionSide===s.ConnectionPointSide.Undefined)return!1;var e=this.endConnectionSegment;return!(e instanceof r.Point)&&this.isReversedConnectionSegment(this.supportSegments[this.supportSegments.length-1],e)},enumerable:!1,configurable:!0}),e.prototype.isReversedConnectionSegment=function(e,t){return o.Vector.scalarProduct(o.Vector.fromSegment(e),o.Vector.fromPoints(t.startPoint,t.endPoint))<=0},Object.defineProperty(e.prototype,"isSmallPath",{get:function(){var e=2*this.routingModel.shapeMargins;return Math.abs(this.beginPathPoint.x-this.endPathPoint.x)<e&&Math.abs(this.beginPathPoint.y-this.endPathPoint.y)<e},enumerable:!1,configurable:!0}),e.prototype.initialize=function(e){this.processContainers(e),this.processSupportSegments(),this.processIntersection(),this.processConnections(),this.processRenderSegments()},e.prototype.setup=function(){this.processRoutingGrid(),this.processRoutingMetrics()},e.prototype.createRoutedPoints=function(e,t,n){var i=e instanceof r.Point?e:e.endPoint,o=t instanceof r.Point?t:t.startPoint,s=this.createAStarContext(i,o,n);f.AStarCalculator.calculate(s);var c=s.path;return this.addConnectionRoutedPoints(c,e,t),a.RightAngleConnectorRoutingMathOperations.unionPoints(c),c},e.prototype.getIntersectedItems=function(e,t){var n=this;return this.intersectedItemsByPointsContext.getItems(e,t).filter(function(e){return!n.isIgnorableItem(e)})},e.prototype.validateRenderPoints=function(e){this.isInvalidRenderSegments&&(a.RightAngleConnectorRoutingMathOperations.unionPoints(e),l.ModelUtils.validateRenderPointIndexes(this.points,e,0)),l.ModelUtils.skipUnnecessaryRightAngleRenderPoints(e)},e.prototype.processContainers=function(e){if(e&&this.registerIgnorableShape(e),this.beginConnectionShape){var t=this.beginConnectionShape.container;t&&this.registerIgnorableShape(t)}if(this.endConnectionShape){var n=this.endConnectionShape.container;n&&this.registerIgnorableShape(n)}},e.prototype.processSupportSegments=function(){this.supportSegments=this.createSupportSegments()},e.prototype.processIntersection=function(){var e=this,t=this.routingModel.getItems();t&&t.forEach(function(t){var n=t.key,r=t.rectangle;e.cuttingShapesContext.registerShape(n,r,e.supportSegments)?void 0!==e.ignorableItemKeys[n]&&delete e.ignorableItemKeys[n]:(!e.isConnectedByStart(t)&&r.containsPoint(e.beginPoint)||!e.isConnectedByEnd(t)&&r.containsPoint(e.endPoint))&&e.registerIgnorableShape(t)})},e.prototype.processConnections=function(){var e=!1,t=!1;this.beginConnectionShape!==this.endConnectionShape&&(e=this.shapeContainsOtherConnection(this.beginConnectionShape,this.endConnectionShape,this.endPoint),t=this.shapeContainsOtherConnection(this.endConnectionShape,this.beginConnectionShape,this.beginPoint),e&&this.registerIgnorableShape(this.beginConnectionShape),t&&this.registerIgnorableShape(this.endConnectionShape));var n=this.routingModel.shapeMargins;this.beginConnectionSegment=this.createBeginConnectionSegment(n,e),this.endConnectionSegment=this.createEndConnectionSegment(n,t)},e.prototype.processRenderSegments=function(){this.isInvalidRenderSegments=!1,this.renderSegments=this.createRenderSegments();for(var e=0;e<this.renderSegments.length-1;e++){var t=this.renderSegments[e],n=this.renderSegments[e+1];if(t.endPoint.equals(n.startPoint))return void(this.isInvalidRenderSegments=!0)}},e.prototype.createGridPoints=function(){var e=[];return this.renderSegments.forEach(function(t){return t.createGridPoints().forEach(function(t){return e.push(t)})}),e},e.prototype.processRoutingGrid=function(){this.routingGrid=this.createGrid()},e.prototype.processRoutingMetrics=function(){this.metrics=this.createAStarMetrics()},e.prototype.createAStarMetrics=function(){return new h.AStarMetrics(new h.TurnDirectionMetrics(this.routingModel.penaltyDescription),new h.IntersectedShapesMetrics(new h.IntersectedShapeMetrics(this.routingModel.penaltyDescription,this.routingModel.shapeMargins)))},e.prototype.createAStarContext=function(e,t,n){return new d.AStarContext(this,e,t,n,this.routingGrid,this.metrics)},e.prototype.addConnectionRoutedPoints=function(e,t,n){t instanceof i.Segment&&e.splice(0,0,t.startPoint),n instanceof i.Segment&&e.push(n.endPoint)},e.prototype.createSupportSegments=function(){var e=this;return this.supportRenderPoints.length<=1?[]:p.GeometryUtils.createSegments(this.supportRenderPoints).filter(function(t){return!e.isCustomSegment(t,e.supportRenderPoints[0],e.supportRenderPoints[e.supportRenderPoints.length-1])})},e.prototype.isCustomSegment=function(e,t,n){var r=e.startPoint;if(r.equals(t))return!1;var i=e.endPoint;return!i.equals(n)&&i.pointIndex-r.pointIndex==1},e.prototype.createRenderSegments=function(){var e=this,t=a.RightAngleConnectorRoutingMathOperations.createUnionSegments(this.supportSegments,function(t,n){return e.shouldCreateSegment(t,n)}),n=t.length-1;return t.map(function(t,i){return new c.ConnectorRenderSegment(i>0?new r.Point(t.startPoint.x,t.startPoint.y):e.beginConnectionSegment,i<n?new r.Point(t.endPoint.x,t.endPoint.y):e.endConnectionSegment,t.startPoint.pointIndex,e.createPreviousCustomSegment(t.startPoint))})},e.prototype.createPreviousCustomSegment=function(e){var t=e.pointIndex-1;return t>=0?new i.Segment(this.points[t].clone(),new r.Point(e.x,e.y)):void 0},e.prototype.shouldCreateSegment=function(e,t){return!e.equals(t)||t.pointIndex>0},e.prototype.isPathNormal=function(e){return e===s.ConnectionPointSide.Undefined||a.RightAngleConnectorRoutingMathOperations.isSegmentNormal(new i.Segment(this.beginPoint,this.endPoint),e===s.ConnectionPointSide.East||e===s.ConnectionPointSide.West)},e.prototype.registerIgnorableShape=function(e){this.ignorableItemKeys[e.key]=!0},e.prototype.isConnectedByStart=function(e){return this.beginConnectionShape&&this.beginConnectionShape.key===e.key&&this.beginConnectionSide!==s.ConnectionPointSide.Undefined},e.prototype.isConnectedByEnd=function(e){return this.endConnectionShape&&this.endConnectionShape.key===e.key&&this.endConnectionSide!==s.ConnectionPointSide.Undefined},e.prototype.getConnectionSide=function(e,t,n){return e?e.getConnectionPointSideByIndex(t,n):s.ConnectionPointSide.Undefined},e.prototype.shapeContainsOtherConnection=function(e,t,n){if(!e)return!1;var r=e.rectangle;return r.containsPoint(n)&&(!t||!t.rectangle.equals(r))},e.prototype.createBeginConnectionSegment=function(e,t){if(this.beginConnectionSide===s.ConnectionPointSide.Undefined)return this.createBeginConnectionSegmentCore(e);if(!t||!this.routingModel.shouldReverseConnections){var n=this.createBeginConnectionSegmentCore(e);if(n instanceof r.Point||!this.routingModel.shouldResizeConnections)return n;for(var i=n.startPoint,o=n.endPoint,a=e;this.hasIntersectedItemsByPoint(o,i,this.beginConnectionShape);)a/=2,o=(n=this.createBeginConnectionSegmentCore(a)).endPoint;return n}if(!this.endConnectionShape)return this.createBeginConnectionSegmentCore(-e);if(this.isPathNormal(this.endConnectionSide))return this.createBeginConnectionSegmentCore(-e);var c=this.createBeginConnectionSegmentCore(-2*e);return this.isEndConnectionRectanleLineIntersected(c,!1,!0)?this.createBeginConnectionSegmentCore(e):this.createBeginConnectionSegmentCore(-e)},e.prototype.hasIntersectedItemsByPoint=function(e,t,n){return this.getIntersectedItems(e,0).some(function(e){return e.key!==n.key&&!e.rectangle.containsPoint(t)})},e.prototype.createEndConnectionSegment=function(e,t){if(this.endConnectionSide===s.ConnectionPointSide.Undefined)return this.createEndConnectionSegmentCore(e);if(!t||!this.routingModel.shouldReverseConnections){var n=this.createEndConnectionSegmentCore(e);if(n instanceof r.Point||!this.routingModel.shouldResizeConnections)return n;for(var i=n.endPoint,o=n.startPoint,a=e;this.hasIntersectedItemsByPoint(o,i,this.endConnectionShape);)a/=2,o=(n=this.createEndConnectionSegmentCore(a)).startPoint;return n}if(!this.beginConnectionShape)return this.createEndConnectionSegmentCore(-e);if(this.isPathNormal(this.beginConnectionSide))return this.createEndConnectionSegmentCore(-e);var c=this.createEndConnectionSegmentCore(-2*e);return this.isBeginConnectionRectanleLineIntersected(c,!0,!1)?this.createEndConnectionSegmentCore(e):this.createEndConnectionSegmentCore(-e)},e.prototype.createBeginConnectionSegmentCore=function(e){return a.RightAngleConnectorRoutingMathOperations.createBeginConnectionSegment(this.beginConnectionSide,this.beginPoint,e,function(e,t){return new r.Point(e,t)})},e.prototype.createEndConnectionSegmentCore=function(e){return a.RightAngleConnectorRoutingMathOperations.createEndConnectionSegment(this.endConnectionSide,this.endPoint,e,function(e,t){return new r.Point(e,t)})},e.prototype.isBeginConnectionRectanleLineIntersected=function(e,t,n){return a.RightAngleConnectorRoutingMathOperations.isConnectionRectanleLineIntersected(this.beginConnectionShape.rectangle,e,this.beginConnectionSide,t,n,function(e,t){return new r.Point(e,t)})},e.prototype.isEndConnectionRectanleLineIntersected=function(e,t,n){return a.RightAngleConnectorRoutingMathOperations.isConnectionRectanleLineIntersected(this.endConnectionShape.rectangle,e,this.endConnectionSide,t,n,function(e,t){return new r.Point(e,t)})},e.prototype.isIgnorableItem=function(e){return e.key in this.ignorableItemKeys},e.prototype.createExtendedShapesBounds=function(){var e=this;return this.routingModel.getItems().map(function(t){return t.rectangle.clone().inflate(e.routingModel.shapeMargins)})},e.prototype.createGrid=function(){return u.RoutingGrid.create(this.createGridPoints(),this.createExtendedShapesBounds(),function(e,t){return new r.Point(e,t)})},e}();t.RightAngleConnectorRoutingContext=y},5074:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RightAngleConnectorRoutingMathOperations=void 0;var r=n(1335),i=n(8679),o=n(9927),s=n(8675),a=n(3742),c=function(){function e(){}return e.createUnionSegments=function(e,t){for(var n=[],i=e[0].startPoint,o=e[0].endPoint,s=1;s<e.length;s++){var a=e[s];t(o,a.startPoint)&&(n.push(new r.Segment(i.clone(),o.clone())),i=a.startPoint),o=a.endPoint}return n.push(new r.Segment(i,o)),n},e.unionPoints=function(e){for(var t=0;t<e.length-2;)s.GeometryUtils.isCorner(e[t],e[t+1],e[t+2])?t++:(e.splice(t+1,1),t=Math.max(0,t-1))},e.getTurnDirection=function(e){return i.MathUtils.numberCloseTo(e,0)?o.RightAngleTurnDirection.Straight:i.MathUtils.numberCloseTo(e,Math.PI)?o.RightAngleTurnDirection.Backwards:e<Math.PI?o.RightAngleTurnDirection.Left:o.RightAngleTurnDirection.Right},e.isSegmentNormal=function(e,t){return t?i.MathUtils.numberCloseTo(e.startPoint.y,e.endPoint.y):i.MathUtils.numberCloseTo(e.startPoint.x,e.endPoint.x)},e.isConnectionRectanleLineIntersected=function(e,t,n,r,i,o){switch(n){case a.ConnectionPointSide.North:return s.GeometryUtils.isLineIntersected(o(e.x,e.y),o(e.right,e.y),t,r,i);case a.ConnectionPointSide.South:return s.GeometryUtils.isLineIntersected(o(e.right,e.bottom),o(e.x,e.bottom),t,r,i);case a.ConnectionPointSide.West:return s.GeometryUtils.isLineIntersected(o(e.x,e.y),o(e.x,e.bottom),t,r,i);case a.ConnectionPointSide.East:return s.GeometryUtils.isLineIntersected(o(e.right,e.y),o(e.right,e.bottom),t,r,i);default:return!1}},e.createBeginConnectionSegment=function(e,t,n,i){switch(e){case a.ConnectionPointSide.North:return new r.Segment(t,i(t.x,t.y-n));case a.ConnectionPointSide.South:return new r.Segment(t,i(t.x,t.y+n));case a.ConnectionPointSide.West:return new r.Segment(t,i(t.x-n,t.y));case a.ConnectionPointSide.East:return new r.Segment(t,i(t.x+n,t.y));default:return t}},e.createEndConnectionSegment=function(e,t,n,i){switch(e){case a.ConnectionPointSide.North:return new r.Segment(i(t.x,t.y-n),t);case a.ConnectionPointSide.South:return new r.Segment(i(t.x,t.y+n),t);case a.ConnectionPointSide.West:return new r.Segment(i(t.x-n,t.y),t);case a.ConnectionPointSide.East:return new r.Segment(i(t.x+n,t.y),t);default:return t}},e}();t.RightAngleConnectorRoutingMathOperations=c},3597:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RightAngleConnectorRoutingStrategy=void 0;var r=n(1335),i=n(4717),o=n(1794),s=n(4867),a=function(){function e(e){this.model=e}return e.prototype.createRenderPoints=function(e,t,n,r,i,s,a){if(t.length>1){var c=new o.RightAngleConnectorRoutingContext(this.model,e,t,n,r,i,s);if(c.initialize(a),c.shouldCreateRenderPoints)return this.createRenderPointsCore(c)}},e.prototype.clone=function(){return new e(this.model)},e.prototype.onAddPoint=function(e,t,n,o){var a=o.map(function(e){return new i.ConnectorRenderPoint(e.x,e.y,e.pointIndex)}),c=s.ModelUtils.findFirstPointIndex(a,function(e){return e.equals(n)});if(0===c)return a.splice(1,0,new i.ConnectorRenderPoint(n.x,n.y,t)),s.ModelUtils.validateRenderPointIndexes(e,a,2);var u=a.length-1;if(c===u)return a.splice(u,0,new i.ConnectorRenderPoint(n.x,n.y,t)),a[u+1].pointIndex=t+1,a;if(c>0){var l=a[c];return a[c]=new i.ConnectorRenderPoint(l.x,l.y,t,l.skipped),s.ModelUtils.validateRenderPointIndexes(e,a,c+1)}var h=new r.Segment(a[0],a[1]),d=new i.ConnectorRenderPoint(n.x,n.y);return h.containsPoint(d)?(a.splice(1,0,new i.ConnectorRenderPoint(d.x,d.y,-1)),a.splice(2,0,new i.ConnectorRenderPoint(d.x,d.y,t)),s.ModelUtils.validateRenderPointIndexes(e,a,3)):new r.Segment(a[u-1],a[u]).containsPoint(d)?(a.splice(u,0,new i.ConnectorRenderPoint(d.x,d.y,t)),a.splice(u+1,0,new i.ConnectorRenderPoint(d.x,d.y,-1)),a[u+2].pointIndex=t+1,a):o},e.prototype.onDeletePoint=function(e,t,n){var r=n.map(function(e){return new i.ConnectorRenderPoint(e.x,e.y,e.pointIndex)}),o=this.getRenderPointIndexByPointIndex(r,t);if(1===o){var a=r[0],c=r[1];return a.equals(c)?(r.splice(1,1),s.ModelUtils.validateRenderPointIndexes(e,r,1)):(r[1]=new i.ConnectorRenderPoint(c.x,c.y,-1,c.skipped),s.ModelUtils.validateRenderPointIndexes(e,r,2))}if(2===o){a=r[1];var u=r[2];return a.equals(u)?(r.splice(1,2),s.ModelUtils.validateRenderPointIndexes(e,r,1)):(r[2]=new i.ConnectorRenderPoint(u.x,u.y,-1,u.skipped),s.ModelUtils.validateRenderPointIndexes(e,r,3))}var l=r.length-1;if(o===l-1){var h=r[l-1],d=r[l];return h.equals(d)?(r.splice(l-1,1),s.ModelUtils.validateRenderPointIndexes(e,r,l-1)):(r[l-1]=new i.ConnectorRenderPoint(h.x,h.y,-1,h.skipped),s.ModelUtils.validateRenderPointIndexes(e,r,l))}if(o===l-2){var f=r[l-2];return d=r[l-1],f.equals(d)?(r.splice(l-2,2),s.ModelUtils.validateRenderPointIndexes(e,r,l-2)):(r[l-2]=new i.ConnectorRenderPoint(f.x,f.y,-1,f.skipped),s.ModelUtils.validateRenderPointIndexes(e,r,l-1))}var p=r[o];return r[o]=new i.ConnectorRenderPoint(p.x,p.y,-1,p.skipped),s.ModelUtils.validateRenderPointIndexes(e,r,o+1)},e.prototype.onMovePoint=function(e,t,n,r){if(0===t||t===e.length-1)return r;var o=r.map(function(e){return new i.ConnectorRenderPoint(e.x,e.y,e.pointIndex)});return this.onMovePointCore(o,t,n),s.ModelUtils.skipUnnecessaryRightAngleRenderPoints(o),o},e.prototype.onMovePoints=function(e,t,n,r,o){if(0===t||n===e.length-1)return o;for(var a=o.map(function(e){return new i.ConnectorRenderPoint(e.x,e.y,e.pointIndex)}),c=t;c<=n;c++)this.onMovePointCore(a,c,r[c-t]);return s.ModelUtils.skipUnnecessaryRightAngleRenderPoints(a),a},e.prototype.onMovePointCore=function(e,t,n){var r=this.getRenderPointIndexByPointIndex(e,t);if(r>=0){var o=e[r];e[r]=new i.ConnectorRenderPoint(n.x,n.y,t,o.skipped)}},e.prototype.createRenderPointsCore=function(e){var t,n=[],r=-1,i=-1;e.setup();var o=e.renderSegments,s=o[o.length-1].endPoint,a=e.points;do{this.registerCustomPoints(n,a,i+2,o[r+1].startPointIndex-1),i=(t=o[++r]).startPointIndex,this.registerRenderPoints(n,e.createRoutedPoints(t.startInfo,t.endInfo,t.createProhibitedSegments()),i)}while(!t.endPoint.equals(s));return e.validateRenderPoints(n),n},e.prototype.getRenderPointIndexByPointIndex=function(e,t){return s.ModelUtils.findFirstPointIndex(e,function(e){return e.pointIndex===t})},e.prototype.registerRenderPoints=function(e,t,n){var r=this;t.forEach(function(i,o){var s=0===o?n:o===t.length-1?n+1:-1;r.registerPoint(e,i,s)})},e.prototype.registerCustomPoints=function(e,t,n,r){for(var i=n;i<=r;i++)this.registerPoint(e,t[i],i)},e.prototype.registerPoint=function(e,t,n){e.push(new i.ConnectorRenderPoint(t.x,t.y,n))},e}();t.RightAngleConnectorRoutingStrategy=a},3742:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramItem=t.DEFAULT_ZINDEX=t.ConnectionPointSide=void 0;var r,i=n(8011),o=n(5596),s=n(8675),a=n(1552);!function(e){e[e.Undefined=-1]="Undefined",e[e.North=0]="North",e[e.East=1]="East",e[e.South=2]="South",e[e.West=3]="West"}(r=t.ConnectionPointSide||(t.ConnectionPointSide={})),t.DEFAULT_ZINDEX=0;var c=function(){function e(){this.key=void 0,this.dataKey=void 0,this.customData=void 0,this.attachedConnectors=[],this.zIndex=t.DEFAULT_ZINDEX,this.locked=!1,this.container=void 0,this.style=new a.Style,this.styleText=new a.TextStyle}return e.prototype.assign=function(e){e.key=this.key,e.dataKey=this.dataKey,e.customData=s.ObjectUtils.cloneObject(this.customData),e.locked=this.locked,e.attachedConnectors=this.attachedConnectors.slice(),e.style=this.style.clone(),e.styleText=this.styleText.clone(),e.zIndex=this.zIndex,e.container=this.container},e.prototype.getConnectionPointPosition=function(e,t){return this.getConnectionPoint(e,t).toPoint()},e.prototype.getConnectionPoint=function(e,t){e<0&&t&&(e=this.getNearestConnectionPoint(t));var n=this.getConnectionPoints();return n[e]||n[0]},e.prototype.getNearestConnectionPoint=function(e){var t,n=Number.MAX_VALUE;return this.getConnectionPoints().forEach(function(r,i){var s=o.Metrics.euclideanDistance(r,e);s<n&&(n=s,t=i)}),t},e.prototype.getConnectionPointIndex=function(e){var t=this.getConnectionPoints();return t.reduce(function(n,i,o){return e===r.North&&i.y<t[n].y||e===r.South&&i.y>t[n].y||e===r.West&&i.x<t[n].x||e===r.East&&i.x>t[n].x?o:n},0)},e.prototype.getConnectionPointSideByIndex=function(e,t){var n=this.getConnectionPoint(e,t);return this.getConnectionPointSide(n,t)},e.prototype.getConnectionPointIndexForSide=function(e){return e},Object.defineProperty(e.prototype,"enableText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowEditText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enableChildren",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLocked",{get:function(){return this.locked||this.container&&this.container.isLocked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowResizeHorizontally",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowResizeVertically",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.style.strokeWidth},enumerable:!1,configurable:!0}),e.prototype.intersectedByRect=function(e){return i.Rectangle.areIntersected(this.rectangle,e)},e}();t.DiagramItem=c},4742:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DraggingConnector=t.SelectionDragHelper=void 0;var r=n(9716),i=n(58),o=n(1510),s=n(4867),a=n(4717),c=n(6879),u=function(){function e(e,t,n,r,i){var o=this;this.history=e,this.model=t,this.permissionsProvider=n,this.startPoint=r,this.draggingShapes=[],this.draggingConnectors=[],this.selectedItems={},this.draggingConnectorsIndexByKey={},i.forEach(function(e){return o.selectedItems[e.key]=e})}return e.prototype.initDraggingShapes=function(e,t){var n=this;this.draggingShapes=e.map(function(e){return new h(e)}),t||this.draggingShapes.forEach(function(e){return n.permissionsProvider.addInteractingItem(e.shape,c.DiagramModelOperation.MoveShape)})},e.prototype.initDraggingConnectors=function(e,t){var n=this;this.draggingConnectors=[],this.draggingConnectorsIndexByKey={},e.forEach(function(e){return n.registerConnector(e)}),t||this.draggingShapes.forEach(function(e){var t=e.shape.attachedConnectors;t&&t.forEach(function(e){n.containsDraggingConnectorByKey(e.key)||n.registerConnector(e)})}),this.modelConnectorsWithoutBeginItemInfo=this.createModelConnectorsWithoutBeginItemInfo(),this.modelConnectorsWithoutEndItemInfo=this.createModelConnectorsWithoutEndItemInfo()},e.prototype.move=function(e,t,n,i){var o=this;if(this.draggingShapes.length){var s=this.draggingShapes.map(function(e){return e.shape});this.draggingShapes.forEach(function(e){for(var r=e.shape;r.container;){if(-1!==s.indexOf(r.container))return!1;r=r.container}o.moveShape(e,t,n,i)});var a=this.draggingShapes[0],c=r.Vector.fromPoints(a.startPosition.clone(),a.shape.position.clone());(c.x||c.y)&&this.draggingConnectors.forEach(function(t){return o.moveConnectorCore(t.connector,t.startPoints,t.startRenderContext,c,e)})}else this.draggingConnectors.forEach(function(n){return o.moveConnector(n,e,t)})},e.prototype.containsDraggingConnectorByKey=function(e){return void 0!==this.draggingConnectorsIndexByKey[e]},e.prototype.onTryUpdateModelSize=function(e,t){this.modelConnectorsWithoutBeginItemInfo.forEach(function(n){n.point.x+=e,n.point.y+=t}),this.modelConnectorsWithoutEndItemInfo.forEach(function(n){n.point.x+=e,n.point.y+=t})},e.prototype.finish=function(){this.draggingConnectors.forEach(function(e){return e.connector.unlockCreateRenderPoints()})},e.prototype.moveConnector=function(e,t,n){var i=e.startPoints,o=r.Vector.fromPoints(i[0].clone(),n(i[0]).clone());(o.x||o.y)&&this.moveConnectorCore(e.connector,i,e.startRenderContext,o,t)},e.prototype.moveConnectorCore=function(e,t,n,r,i){i||s.ModelUtils.canMoveConnector(this.selectedItems,e)?this.offsetConnector(e,t,n,r):this.changeConnector(e)},e.prototype.moveShape=function(e,t,n,r){var i=this,o=e.shape,a=t(e.startPosition);s.ModelUtils.setShapePosition(this.history,this.model,o,a),s.ModelUtils.updateMovingShapeConnections(this.history,o,this.modelConnectorsWithoutBeginItemInfo,this.modelConnectorsWithoutEndItemInfo,n,r,function(e){return i.permissionsProvider.addInteractingItem(e)}),this.draggingConnectors.filter(function(e){return!!i.selectedItems[e.connector.key]}).length||s.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,o)},e.prototype.offsetConnector=function(e,t,n,r){var o=this,s=t.map(function(e){return o.offsetPoint(e,r)});s[0].equals(e.points[0])||this.history.addAndRedo(new i.ChangeConnectorPointsHistoryItem(e.key,s,this.offsetRenderContext(n,r)))},e.prototype.offsetRenderContext=function(e,t){var n=this;if(void 0!==e)return new o.ConnectorRenderPointsContext(e.renderPoints.map(function(e){var r=n.offsetPoint(e,t);return new a.ConnectorRenderPoint(r.x,r.y,e.pointIndex,e.skipped)}),!0,e.actualRoutingMode)},e.prototype.offsetPoint=function(e,t){var n=r.Vector.fromPoints(e,this.startPoint);return this.startPoint.clone().offset(t.x-n.x,t.y-n.y)},e.prototype.changeConnector=function(e){s.ModelUtils.tryRemoveConnectorIntermediatePoints(this.history,e),s.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,e)},e.prototype.registerConnector=function(e){this.draggingConnectorsIndexByKey[e.key]=this.draggingConnectors.push(new l(e))-1},e.prototype.createModelConnectorsWithoutBeginItemInfo=function(){var e=this;return this.model.findConnectorsCore(function(t){return!t.beginItem&&!e.containsDraggingConnectorByKey(t.key)}).map(function(e){return{connector:e,point:e.points[0].clone()}})},e.prototype.createModelConnectorsWithoutEndItemInfo=function(){var e=this;return this.model.findConnectorsCore(function(t){return!t.endItem&&!e.containsDraggingConnectorByKey(t.key)}).map(function(e){return{connector:e,point:e.points[e.points.length-1].clone()}})},e}();t.SelectionDragHelper=u;var l=function(e){this.connector=e,this.startPoints=e.points.map(function(e){return e.clone()}),this.startRenderContext=e.tryCreateRenderPointsContext()};t.DraggingConnector=l;var h=function(e){this.shape=e,this.startPosition=e.position.clone()}},6613:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramModel=void 0;var r=n(5503),i=n(7959),o=n(8675),s=n(8011),a=n(6353),c=n(8900),u=n(7176),l=n(13),h=n(5383),d=n(4867),f=function(){function e(t){void 0===t&&(t=new a.Size(8391,11906)),this.items=[],this.itemIndexByKey={},this.keyCounter=0,this.pageSize=new a.Size(8391,11906),this.pageLandscape=!1,this.pageColor=e.defaultPageColor,this.units=h.DiagramUnit.In,this.snapStartPoint=new c.Point(0,0),this.pageSize=t,this.size=this.pageSize.clone(),this.rectangle=s.Rectangle.fromGeometry(new c.Point(0,0),new a.Size(0,0)),this.initializeKeyCounter()}return Object.defineProperty(e.prototype,"pageWidth",{get:function(){return this.pageLandscape?this.pageSize.height:this.pageSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageHeight",{get:function(){return this.pageLandscape?this.pageSize.width:this.pageSize.height},enumerable:!1,configurable:!0}),e.prototype.getRectangle=function(e){return e&&(this.rectangle=d.ModelUtils.createRectangle(this.items)),this.rectangle},e.prototype.pushItem=function(e){var t=this.items.push(e);this.itemIndexByKey[e.key]=t-1,e instanceof r.Shape&&!e.image.isEmpty&&this.cacheShapeImage(e)},e.prototype.removeItem=function(e){var t=this.getItemIndex(e);delete this.itemIndexByKey[e.key],this.items.splice(t,1),this.updateIndicesHash(t)},e.prototype.updateIndicesHash=function(e){for(var t=e;t<this.items.length;t++)this.itemIndexByKey[this.items[t].key]=t},e.prototype.getItemIndex=function(e){return this.itemIndexByKey[e.key]},e.prototype.findShape=function(e){var t=this.findItem(e);return t instanceof r.Shape?t:void 0},e.prototype.findShapesCore=function(e){var t=[];return this.items.forEach(function(n){n instanceof r.Shape&&e(n)&&t.push(n)}),t},e.prototype.findShapeCore=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n instanceof r.Shape&&e(n))return n}},e.prototype.findShapeAtPosition=function(e){return this.findShapeCore(function(t){return t.position.equals(e)})},e.prototype.findShapeByDataKey=function(e){return this.findShapeCore(function(t){return t.dataKey===e})},e.prototype.findShapesByImageUrl=function(e){return this.findShapesCore(function(t){return t.image.url===e})},e.prototype.findShapesByDescription=function(e){return this.findShapesCore(function(t){return t.description.key===e.key})},e.prototype.cacheShapeImage=function(e){var t=u.ImageCache.instance.createUnloadedInfoByShapeImageInfo(e.image);t.isLoaded&&e.image.loadBase64Content(t.base64)},e.prototype.loadAllImages=function(e){u.ImageCache.instance.loadAllImages(e)},e.prototype.findContainer=function(e){var t=this.findShape(e);return t&&t.enableChildren?t:void 0},e.prototype.findNearestContainer=function(e){var t=this.findShape(e);return t?t.enableChildren?t:t.container:void 0},e.prototype.getChildren=function(e){var t=this;return e.children.map(function(e){return t.findItem(e.key)}).filter(function(e){return e})},e.prototype.findChild=function(e,t,n){var i,o=this;return void 0===n&&(n=!0),e.children.forEach(function(e){i||(e.key!==t?n&&e instanceof r.Shape&&(i=o.findChild(e,t,n)):i=e)}),i},e.prototype.findItemContainerCore=function(e,t){for(var n=e.container;n&&t&&!t(n);)n=n.container;return n},e.prototype.findItemContainer=function(e){return this.findItemContainerCore(e)},e.prototype.findItemCollapsedContainer=function(e){return this.findItemContainerCore(e,function(e){return!e.expanded})},e.prototype.findItemTopCollapsedContainer=function(e){for(var t,n=e.container;n;)n.expanded||(t=n),n=n.container;return t},e.prototype.isContainerItem=function(e,t){return void 0!==this.findItemContainerCore(t,function(t){return t.key===e.key})},e.prototype.findConnector=function(e){var t=this.findItem(e);return t instanceof i.Connector?t:void 0},e.prototype.findConnectorCore=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n instanceof i.Connector&&e(n))return n}},e.prototype.findConnectorAtPoints=function(e){return this.findConnectorCore(function(t){return o.GeometryUtils.arePointsEqual(t.points,e)})},e.prototype.findConnectorByDataKey=function(e){return this.findConnectorCore(function(t){return t.dataKey===e})},e.prototype.findConnectorByBeginEndDataKeys=function(e,t){return this.findConnectorCore(function(n){return n.beginItem&&n.beginItem.dataKey===e&&n.endItem&&n.endItem.dataKey===t})},e.prototype.findConnectorsCore=function(e){var t=[];return this.items.forEach(function(n){n instanceof i.Connector&&e(n)&&t.push(n)}),t},e.prototype.findConnectorsWithoutBeginItem=function(){return this.findConnectorsCore(function(e){return!e.beginItem})},e.prototype.findConnectorsWithoutEndItem=function(){return this.findConnectorsCore(function(e){return!e.endItem})},e.prototype.findItem=function(e){return this.items[this.itemIndexByKey[e]]},e.prototype.findItemByDataKey=function(e){return this.findItemCore(function(t){return t.dataKey===e})},e.prototype.findItemCore=function(e){for(var t=0;t<this.items.length;t++)if(e(this.items[t]))return this.items[t]},e.isIntersectedItems=function(e,t){var n=!1;return e instanceof r.Shape?n=t.intersectedByRect(e.rectangle):e instanceof i.Connector&&e.getSegments().forEach(function(e){t instanceof r.Shape?n=n||e.isIntersectedByRect(t.rectangle):t instanceof i.Connector&&t.getSegments().forEach(function(t){n=n||e.isIntersected(t)})}),n},e.prototype.getIntersectItems=function(t){var n=[];return this.items.forEach(function(r){r.container===t.container&&(t===r||r instanceof i.Connector&&-1!==t.attachedConnectors.indexOf(r)||!e.isIntersectedItems(r,t)||n.push(r))}),n},e.prototype.getIntersectItemsMinZIndex=function(e){return this.getIntersectItems(e).map(function(e){return e.zIndex}).reduce(function(e,t){return Math.min(e,t)},Number.MAX_VALUE)},e.prototype.getIntersectItemsMaxZIndex=function(e){return this.getIntersectItems(e).map(function(e){return e.zIndex}).reduce(function(e,t){return Math.max(e,t)},-Number.MAX_VALUE)},e.prototype.iterateItems=function(e){this.items.forEach(e)},e.prototype.getNextKey=function(){return(this.keyCounter++).toString()},e.prototype.initializeKeyCounter=function(){this.keyCounter=this.items.reduce(function(e,t){var n=parseInt(t.key);return Math.max(e,isNaN(n)?0:n+1)},this.items.length)},e.defaultPageColor=l.ColorUtils.LIGHT_COLOR,e}();t.DiagramModel=f},2004:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ItemChange=t.ItemChangeType=void 0,function(e){e[e.Create=0]="Create",e[e.UpdateProperties=1]="UpdateProperties",e[e.UpdateStructure=2]="UpdateStructure",e[e.Update=3]="Update",e[e.Remove=4]="Remove",e[e.UpdateClassName=5]="UpdateClassName"}(t.ItemChangeType||(t.ItemChangeType={}));var n=function(){function e(e,t,n){void 0===n&&(n=!0),this.item=e,this.type=t,this.isValid=n}return Object.defineProperty(e.prototype,"key",{get:function(){return this.item.key},enumerable:!1,configurable:!0}),e}();t.ItemChange=n},1118:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ModelManipulator=void 0;var r=n(4125),i=n(6353),o=n(9463),s=n(7176),a=n(590),c=n(6879),u=n(8675),l=n(7959),h=n(2004),d=n(4867),f=function(){function e(e,t,n,r){this.onModelChanged=new u.EventDispatcher,this.onModelSizeChanged=new u.EventDispatcher,this.initializeCore(e,t),this.permissionsProvider=n,this.descriptionManager=r,this.imageLoader=new a.ImageLoader(this.updateShapeImage.bind(this))}return e.prototype.initialize=function(e,t){this.initializeCore(e,t),this.model.loadAllImages(this.imageLoader),this.updateModelSize()},e.prototype.initializeCore=function(e,t){var n=this;this.model=e,this.routingModel=t,this.routingModel&&(this.routingModel.initialize(e),e.iterateItems(function(e){if(e instanceof l.Connector){var t=n.routingModel.createStrategy(e.properties.lineOption);t?e.changeRoutingStrategy(t):e.invalidateRenderPoints()}}))},e.prototype.commitPageChanges=function(){this.raisePageSizeChanged(this.model.pageSize.clone(),this.model.pageLandscape),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageColorChanged(this.model.pageColor),this.raiseModelRectangleChanged(d.ModelUtils.createRectangle(this.model.items))},e.prototype.commitItemsCreateChanges=function(){o.Diagnostics.timer("new model: model changes"),this.commitItemsChangesCore(h.ItemChangeType.Create,this.model.items),o.Diagnostics.endTimer()},e.prototype.commitItemUpdateChanges=function(e){this.commitItemsChangesCore(h.ItemChangeType.UpdateStructure,[e])},e.prototype.commitItemsChangesCore=function(e,t){var n=[];t.forEach(function(t){n.push(new h.ItemChange(t,e))}),n.length&&this.raiseModelChanged(n)},e.prototype.insertToContainer=function(e,t){if(e.container&&t&&e.container.key!==t.key)throw Error("To insert an item to a container it's necessary to remove it from the current container.");t&&(-1===t.children.indexOf(e)&&t.children.push(e),e.container=t,this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.Update)]))},e.prototype.removeFromContainer=function(e){if(e.container){var t=e.container.children.indexOf(e);e.container.children.splice(t,1),e.container=void 0,this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.Update)])}},e.prototype.changeStyle=function(e,t,n){this.changeStyleCore(e,e.style,t,n)},e.prototype.changeStyleText=function(e,t,n){this.changeStyleCore(e,e.styleText,t,n)},e.prototype.changeStyleCore=function(e,t,n,r){void 0!==r?t[n]=r:delete t[n],this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties)])},e.prototype.changeZIndex=function(e,t){e.zIndex=t,this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.Update)])},e.prototype.changeLocked=function(e,t){e.locked=t,this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateClassName)])},e.prototype.changeCustomData=function(e,t){e.customData=u.ObjectUtils.cloneObject(t),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateStructure)])},e.prototype.addShape=function(e,t){if(e.attachedConnectors.length)throw Error("A creating shape should not contain existing connectors.");return e.key=void 0!==t?t:this.model.getNextKey(),this.insertShape(e)},e.prototype.insertShape=function(e){this.model.pushItem(e);var t=this.permissionsProvider.canAddItems([e]);return this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.Create,t)]),this.model.loadAllImages(this.imageLoader),e},e.prototype.resizeShape=function(e,t,n){e.position=t,e.size=n;var r=this.permissionsProvider.isStoredPermissionsGranted(),i=this.getInteractingItem(e,c.DiagramModelOperation.ResizeShape);if(i){var o=i.size.clone(),s=e.size.clone();s.equals(o)||(r=this.permissionsProvider.canResizeShapes([{shape:e,size:s,oldSize:o}]))}var a=this.getInteractingItem(e,c.DiagramModelOperation.MoveShape);if(a){var u=a.position.clone(),l=e.position.clone();l.equals(u)||(r=this.permissionsProvider.canMoveShapes([{shape:e,position:l,oldPosition:u}]))}this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties,r)])},e.prototype.moveShape=function(e,t){e.position=t;var n=this.permissionsProvider.isStoredPermissionsGranted();this.getInteractingItem(e,c.DiagramModelOperation.AddShape)&&(n=this.permissionsProvider.canAddItems([e]));var r=this.getInteractingItem(e,c.DiagramModelOperation.MoveShape);if(r){var i=r.position.clone(),o=e.position.clone();o.equals(i)||(n=this.permissionsProvider.canMoveShapes([{shape:e,position:o,oldPosition:i}]))}this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties,n)])},e.prototype.changeShapeParameters=function(e,t){e.parameters.forEach(function(e){var n=t.get(e.key);n&&(e.value=n.value)}),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties)])},e.prototype.changeShapeText=function(e,t){e.text=t,this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateStructure)])},e.prototype.changeShapeImage=function(e,t){e.image=t;var n=s.ImageCache.instance.createUnloadedInfoByShapeImageInfo(t);this.imageLoader.load(n),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateStructure)])},e.prototype.changeShapeExpanded=function(e,t){e.expanded=t,e.toggleExpandedSize(),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateStructure)])},e.prototype.deleteShape=function(e,t){if(e.attachedConnectors.length)throw Error("A removing shape should not contain existing connectors.");this.removeShape(e,t)},e.prototype.removeShape=function(e,t){this.model.removeItem(e),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.Remove,t)])},e.prototype.updateShapeImage=function(e){if(e.imageUrl){var t=this.model.findShapesByImageUrl(e.imageUrl);t.forEach(function(t){e.base64?t.image.loadBase64Content(e.base64):t.image.setUnableToLoadFlag()}),this.commitItemsChangesCore(h.ItemChangeType.UpdateStructure,t)}},e.prototype.updateShapeDescription=function(e){var t=this.model.findShapesByDescription(e);this.commitItemsChangesCore(h.ItemChangeType.UpdateProperties,t)},e.prototype.updateShapeType=function(e,t,n){var r=this.descriptionManager.get(t);e.description=r,e.parameters=n,r.createParameters(n),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateStructure)])},e.prototype.addConnector=function(e,t){if(e.beginItem||e.endItem)throw Error("Creating connector should not contain begin/end items");return e.key=void 0!==t?t:this.model.getNextKey(),this.insertConnector(e)},e.prototype.insertConnector=function(e){this.model.pushItem(e);var t=this.routingModel.createStrategy(e.properties.lineOption);t?e.changeRoutingStrategy(t):e.clearRoutingStrategy();var n=this.permissionsProvider.canAddItems([e]);return this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.Create,n)]),e},e.prototype.deleteConnector=function(e){if(e.beginItem||e.endItem)throw Error("Creating connector should not contain begin/end items");this.removeConnector(e)},e.prototype.removeConnector=function(e){this.model.removeItem(e);var t=this.permissionsProvider.canDeleteItems([e]);this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.Remove,t)])},e.prototype.addDeleteConnectorPoint=function(e,t){var n=this.getConnectorInteractingPoints(e);t(e),this.addDeleteConnectorPointCore(e,n)},e.prototype.moveConnectorPoint=function(e,t,n){n(e),this.moveConnectorPointCore(e,t)},e.prototype.changeConnectorPoints=function(e,t){var n=this;t(e),e.points.forEach(function(t,r){return n.moveConnectorPointCore(e,r)})},e.prototype.moveConnectorPointCore=function(e,t){var n=this.getInteractingItem(e),r=this.permissionsProvider.isStoredPermissionsGranted();if(n){var i=0<t&&t<e.points.length-1;if(i=(i=i||0===t&&!e.beginItem)||t===e.points.length-1&&!e.endItem){var o=n.points.map(function(e){return e.clone()}),s=e.points.map(function(e){return e.clone()});u.GeometryUtils.arePointsEqual(o,s)||(r=this.permissionsProvider.canChangeConnectorPoints(e,o,s))}}this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties,r)])},e.prototype.getConnectorInteractingPoints=function(e){var t=this.getInteractingItem(e);return t?t.points.map(function(e){return e.clone()}):e.points.map(function(e){return e.clone()})},e.prototype.addDeleteConnectorPointCore=function(e,t){var n=this.permissionsProvider.isStoredPermissionsGranted(),r=e.points.map(function(e){return e.clone()});u.GeometryUtils.arePointsEqual(t,r)||(n=this.permissionsProvider.canChangeConnectorPoints(e,t,r)),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties,n)])},e.prototype.addConnection=function(e,t,n,r){var i=e.getExtremeItem(r),o=e.getExtremeConnectionPointIndex(r);if(i!==t||o!==n){if(i)throw Error("Connector is already connected");t.attachedConnectors.push(e),r===l.ConnectorPosition.Begin?(e.beginItem=t,e.beginConnectionPointIndex=n):(e.endItem=t,e.endConnectionPointIndex=n),e.invalidateRenderPoints();var s=this.permissionsProvider.canChangeConnection(e,t,void 0,r,n);this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties,s)])}},e.prototype.setConnectionPointIndex=function(e,t,n){if(!e.getExtremeItem(n))throw Error("Connection should be connected");n===l.ConnectorPosition.Begin?e.beginConnectionPointIndex=t:e.endConnectionPointIndex=t,e.invalidateRenderPoints();var r=e.getExtremeItem(n),i=this.permissionsProvider.canChangeConnection(e,r,r,n,t);this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties,i)])},e.prototype.deleteConnection=function(e,t){var n=e.getExtremeItem(t);if(n){n.attachedConnectors.splice(n.attachedConnectors.indexOf(e),1),t===l.ConnectorPosition.Begin?(e.beginItem=null,e.beginConnectionPointIndex=-1):(e.endItem=null,e.endConnectionPointIndex=-1),e.invalidateRenderPoints();var r=this.permissionsProvider.canChangeConnection(e,void 0,n,t,-1);this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties,r)])}},e.prototype.changeConnectorProperty=function(e,t,n){if(e.properties[t]=n,"lineOption"===t){var r=this.routingModel?this.routingModel.createStrategy(e.properties.lineOption):void 0;r?e.changeRoutingStrategy(r):e.clearRoutingStrategy()}else e.invalidateRenderPoints();this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties)])},e.prototype.changeConnectorText=function(e,t,n){e.setText(t,n),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateStructure)])},e.prototype.changeConnectorTextPosition=function(e,t,n){var r=e.getText(t);e.setText(null,t),e.setText(r,n),this.raiseModelChanged([new h.ItemChange(e,h.ItemChangeType.UpdateProperties)])},e.prototype.changeModelSize=function(e,t){this.model.size.width=e.width,this.model.size.height=e.height,this.raiseModelSizeChanged(this.model.size.clone(),t),(t.left||t.top)&&(this.model.snapStartPoint=this.model.snapStartPoint.clone().offset(t.left,t.top),this.raiseSnapPointChange(this.model.snapStartPoint))},e.prototype.changePageSize=function(e){this.model.pageSize.equals(e)||(this.model.pageSize=e,this.model.size=new i.Size(this.model.pageWidth,this.model.pageHeight),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageSizeChanged(this.model.pageSize,this.model.pageLandscape))},e.prototype.changePageLandscape=function(e){this.model.pageLandscape!==e&&(this.model.pageLandscape=e,this.model.pageSize.width!==this.model.pageSize.height&&(this.model.size=new i.Size(this.model.pageWidth,this.model.pageHeight),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageSizeChanged(this.model.pageSize,this.model.pageLandscape)))},e.prototype.changePageColor=function(e){this.model.pageColor!==e&&(this.model.pageColor=e,this.raisePageColorChanged(e))},e.prototype.updateModelSize=function(){var e=this.getModelSizeUpdateOffset();if(!e.isEmpty()){var t=Math.max(this.model.size.width+e.left+e.right,this.model.pageWidth),n=Math.max(this.model.size.height+e.top+e.bottom,this.model.pageHeight);this.model.size=new i.Size(t,n)}},e.prototype.getModelSizeUpdateOffset=function(){var e=this.model.getRectangle(!1),t=this.model.getRectangle(!0);return t.equals(e)||this.raiseModelRectangleChanged(t),this.createModelRectangleOffset(t)},e.prototype.createModelRectangleOffset=function(e){var t=this.model.pageWidth,n=this.model.pageHeight,i=this.model.size;return new r.Offsets(-Math.floor(e.x/t)*t,-Math.floor((i.width-e.right)/t)*t,-Math.floor(e.y/n)*this.model.pageHeight,-Math.floor((i.height-e.bottom)/n)*n)},e.prototype.raiseModelChanged=function(e){this.onModelChanged.raise1(function(t){return t.notifyModelChanged(e)})},e.prototype.raisePageColorChanged=function(e){this.onModelChanged.raise1(function(t){return t.notifyPageColorChanged(e)})},e.prototype.raisePageSizeChanged=function(e,t){this.onModelChanged.raise1(function(n){return n.notifyPageSizeChanged(e,t)})},e.prototype.raiseModelSizeChanged=function(e,t){this.onModelSizeChanged.raise1(function(n){return n.notifyModelSizeChanged(e,t)})},e.prototype.raiseModelRectangleChanged=function(e){this.onModelSizeChanged.raise1(function(t){return t.notifyModelRectangleChanged(e)})},e.prototype.raiseSnapPointChange=function(e){this.onModelSizeChanged.raise1(function(t){return t.notifySnapPointPositionChanged(e)})},e.prototype.getInteractingItem=function(e,t){return this.permissionsProvider.getInteractingItem(e,t)},e}();t.ModelManipulator=f},4867:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ModelUtils=void 0;var r=n(9291),i=n(5596),o=n(8900),s=n(8011),a=n(6353),c=n(9716),u=n(8679),l=n(5383),h=n(3477),d=n(9603),f=n(4430),p=n(4145),A=n(58),g=n(329),m=n(8930),y=n(9143),v=n(1704),b=n(9310),w=n(8338),C=n(4160),_=n(9753),S=n(4629),x=n(4297),T=n(1729),P=n(4518),E=n(8236),I=n(5144),k=n(9559),B=n(7443),M=n(4634),O=n(926),D=n(213),R=n(7819),L=n(8217),N=n(8675),U=n(7959),F=n(4612),j=n(4717),H=n(1510),z=n(5503),Q=n(56),V=function(){function e(){}return e.setShapePosition=function(t,n,r,i,o){if(void 0===o&&(o=!0),!r.position.equals(i)){var s=i.clone().offset(-r.position.x,-r.position.y);return t.addAndRedo(new C.MoveShapeHistoryItem(r.key,i)),o&&r.children.forEach(function(r){if(r instanceof z.Shape){var i=r.position.clone().offset(s.x,s.y);e.setShapePosition(t,n,r,i)}}),!0}return!1},e.setShapeSize=function(e,t,n,r,i){return(!n.size.equals(i)||!n.position.equals(r))&&(e.addAndRedo(new S.ResizeShapeHistoryItem(n.key,r,i)),!0)},e.addConnectorPoint=function(e,t,n,r){e.addAndRedo(new f.AddConnectorPointHistoryItem(t,n,r))},e.deleteConnectorCustomPoints=function(e,t){if(t.points.length>2){var n=t.tryCreateRenderPointsContext();if(t.properties.lineOption!==F.ConnectorLineOption.Straight&&n){var r=t.points[0].clone(),i=t.points[t.points.length-1].clone();e.addAndRedo(new A.ChangeConnectorPointsHistoryItem(t.key,[r,i],new H.ConnectorRenderPointsContext([new j.ConnectorRenderPoint(r.x,r.y,0),new j.ConnectorRenderPoint(i.x,i.y,1)],!1,n.actualRoutingMode)))}else e.addAndRedo(new A.ReplaceConnectorPointsHistoryItem(t.key,[t.points[0].clone(),t.points[t.points.length-1].clone()]))}},e.deleteConnectorUnnecessaryPoints=function(t,n){var r=n.getRenderPoints(!0).map(function(e){return e.clone()});if(n.properties.lineOption===F.ConnectorLineOption.Straight){var i=e.createUnnecessaryRenderPoints(r.filter(function(e){return!e.skipped}).map(function(e){return e.clone()}),n.skippedRenderPoints,function(t){return e.findFirstPointIndex(r,function(e){return j.ConnectorRenderPoint.equal(e,t)})});Object.keys(i).length&&t.addAndRedo(new A.ReplaceConnectorPointsHistoryItem(n.key,e.createNecessaryPoints(n.points.map(function(e){return e.clone()}),i)))}else{var o=n.tryCreateRenderPointsContext(!0),s=r.filter(function(e){return!e.skipped}).map(function(e){return e.clone()});if(i=e.createUnnecessaryRightAngleRenderPoints(s,n.skippedRenderPoints,function(t){return e.findFirstPointIndex(r,function(e){return j.ConnectorRenderPoint.equal(e,t)})}),Object.keys(i).length){var a=e.createNecessaryPoints(n.points.map(function(e){return e.clone()}),i),c=new H.ConnectorRenderPointsContext(e.validateRenderPointIndexes(a,s,0),o.lockCreateRenderPoints,o.actualRoutingMode);t.addAndRedo(new A.ChangeConnectorPointsHistoryItem(n.key,a,c))}}},e.fixConnectorBeginEndConnectionIndex=function(e,t){if(t.beginItem&&-1===t.beginConnectionPointIndex){var n=t.beginItem.getNearestConnectionPoint(t.points[0]);e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(t,n,U.ConnectorPosition.Begin))}if(t.endItem&&-1===t.endConnectionPointIndex){var r=t.endItem.getNearestConnectionPoint(t.points[t.points.length-1]);e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(t,r,U.ConnectorPosition.End))}},e.skipUnnecessaryRenderPoints=function(t,n){N.GeometryUtils.removeUnnecessaryPoints(t,function(r,i){return e.removeUnnecessaryPoint(t,r,i,n)},function(e){return void 0!==e&&!e.skipped}),t[0].skipped=!1,t[t.length-1].skipped=!1},e.skipUnnecessaryRightAngleRenderPoints=function(t,n){N.GeometryUtils.removeUnnecessaryRightAnglePoints(t,function(r,i){return e.removeUnnecessaryPoint(t,r,i,n)},function(e){return void 0!==e&&!e.skipped}),t[0].skipped=!1,t[t.length-1].skipped=!1},e.createUnnecessaryRenderPoints=function(t,n,r,i){void 0===i&&(i=function(e){return!0});var o={};return N.GeometryUtils.removeUnnecessaryPoints(t,function(n,s){return e.collectNotSkippedRenderPoints(o,t,n,s,r,i)}),e.collectSkippedRenderPoints(o,n,r,i),o},e.createUnnecessaryRightAngleRenderPoints=function(t,n,r,i){void 0===i&&(i=function(e){return!0});var o={};return N.GeometryUtils.removeUnnecessaryRightAnglePoints(t,function(n,s){return e.collectNotSkippedRenderPoints(o,t,n,s,r,i)}),e.collectSkippedRenderPoints(o,n,r,i),o},e.createNecessaryPoints=function(e,t){var n=this,r=[],i=e.length-1;return e.forEach(function(e,o){(0===o||o===i||n.isNecessaryPoint(e,o,t))&&r.push(e.clone())}),r},e.isNecessaryPoint=function(e,t,n){return!Object.keys(n).some(function(r){var i=n[r];return i.pointIndex===t&&N.GeometryUtils.areDuplicatedPoints(e,i)})},e.collectSkippedRenderPoints=function(e,t,n,r){void 0===r&&(r=function(e){return!0}),t&&t.forEach(function(t){if(r(t)){var i=n(t);void 0===e[i]&&(e[i]=t)}})},e.collectNotSkippedRenderPoints=function(e,t,n,r,i,o){if(void 0===o&&(o=function(e){return!0}),o(n)){var s=i(n);if(void 0===e[s])return e[s]=n,n.skipped=!0,t.splice(r,1),!0}return!1},e.removeUnnecessaryPoint=function(e,t,n,r){return r&&-1===t.pointIndex?(e.splice(n,1),!0):(t.skipped=!0,!1)},e.validateRenderPointIndexes=function(e,t,n){var r=this,i=t.map(function(t,i){return new j.ConnectorRenderPoint(t.x,t.y,i>=n&&t.pointIndex>=0?r.findFirstPointIndex(e,function(e){return e.equals(t)}):t.pointIndex,t.skipped)});return i[0].skipped=!1,i[i.length-1].skipped=!1,i},e.findFirstPointIndex=function(e,t){if(!e||!t)return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},e.moveConnectorRightAnglePoints=function(e,t,n,r,i,s){t.points.slice(n,r+1).some(function(e){return!N.GeometryUtils.areDuplicatedPoints(e,new o.Point(void 0===i?e.x:i,void 0===s?e.y:s))})&&e.addAndRedo(new w.MoveConnectorRightAnglePointsHistoryItem(t.key,n,r,i,s))},e.moveConnectorPoint=function(e,t,n,r){return!t.points[n].equals(r)&&(e.addAndRedo(new w.MoveConnectorPointHistoryItem(t.key,n,r)),!0)},e.updateConnectorAttachedPoints=function(e,t,n){e.beginTransaction();var r=n.beginItem&&t.findItemCollapsedContainer(n.beginItem),i=r&&(!n.endItem||!t.isContainerItem(r,n.endItem)),o=n.endItem&&t.findItemCollapsedContainer(n.endItem),s=o&&(!n.beginItem||!t.isContainerItem(o,n.beginItem)),a=!1;return a=i?this.updateConnectorBeginPoint(e,n,r,s&&o||n.endItem,function(e){return r.getConnectionPointIndexForItem(n.beginItem,e)})||a:this.updateConnectorBeginPoint(e,n,n.beginItem,s&&o||n.endItem)||a,a=s?this.updateConnectorEndPoint(e,n,o,function(e){return o.getConnectionPointIndexForItem(n.beginItem,e)})||a:this.updateConnectorEndPoint(e,n,n.endItem)||a,e.endTransaction(),a},e.updateConnectorBeginPoint=function(e,t,n,r,i){if(n){var s=void 0!==i?i(t.beginConnectionPointIndex):t.beginConnectionPointIndex,a=t.points[1];r&&2===t.points.length&&(a=-1!==t.endConnectionPointIndex?r.getConnectionPointPosition(t.endConnectionPointIndex,o.Point.zero()):r.rectangle.center);var c=n.getConnectionPointPosition(s,a);return this.moveConnectorPoint(e,t,0,c.clone())}},e.updateConnectorEndPoint=function(e,t,n,r){if(n){var i=void 0!==r?r(t.endConnectionPointIndex):t.endConnectionPointIndex,o=n.getConnectionPointPosition(i,t.points[t.points.length-2]);return this.moveConnectorPoint(e,t,t.points.length-1,o)}},e.updateContainerConnectorsAttachedPoints=function(e,t,n,r){var i=this;void 0===r&&(r=n),e.beginTransaction(),t.getChildren(r).forEach(function(o){o instanceof z.Shape&&(o.attachedConnectors.forEach(function(o){var s=o.beginItem&&t.isContainerItem(r,o.beginItem),a=o.endItem&&t.isContainerItem(r,o.endItem);if(s&&!a){var c=t.findItemTopCollapsedContainer(o.beginItem),u=o.endItem&&t.findItemTopCollapsedContainer(o.endItem);c?i.updateConnectorBeginPoint(e,o,c,u||o.endItem,function(e){return n.getConnectionPointIndexForItem(o.beginItem,e)}):i.updateConnectorBeginPoint(e,o,o.beginItem,u||o.endItem)}a&&!s&&((c=t.findItemTopCollapsedContainer(o.endItem))?i.updateConnectorEndPoint(e,o,c,function(e){return n.getConnectionPointIndexForItem(o.endItem,e)}):i.updateConnectorEndPoint(e,o,o.endItem))}),i.updateContainerConnectorsAttachedPoints(e,t,n,o))}),e.endTransaction()},e.getConnectorsWithoutBeginItemInfo=function(e){return e.findConnectorsWithoutBeginItem().map(function(e){return{connector:e,point:e.points[0].clone()}})},e.getConnectorsWithoutEndItemInfo=function(e){return e.findConnectorsWithoutEndItem().map(function(e){return{connector:e,point:e.points[e.points.length-1].clone()}})},e.updateShapeAttachedConnectors=function(e,t,n){var r=this;n.attachedConnectors.forEach(function(n){r.tryRemoveConnectorIntermediatePoints(e,n),r.updateConnectorAttachedPoints(e,t,n)})},e.updateMovingShapeConnections=function(e,t,n,r,i,o,s){var a=this;i(),n.forEach(function(n){var r=a.getMovingShapeConnectionPointIndex(t,n.point);t.rectangle.containsPoint(n.point)||r>-1?(o(t,r),r!==n.connector.beginConnectionPointIndex&&n.connector.beginItem&&e.addAndRedo(new m.DeleteConnectionHistoryItem(n.connector,U.ConnectorPosition.Begin)),s(n.connector),e.addAndRedo(new h.AddConnectionHistoryItem(n.connector,t,r,U.ConnectorPosition.Begin))):n.connector.beginItem&&(e.addAndRedo(new m.DeleteConnectionHistoryItem(n.connector,U.ConnectorPosition.Begin)),e.addAndRedo(new w.MoveConnectorPointHistoryItem(n.connector.key,0,n.point)))}),r.forEach(function(n){var r=a.getMovingShapeConnectionPointIndex(t,n.point);t.rectangle.containsPoint(n.point)||r>-1?(o(t,r),r!==n.connector.endConnectionPointIndex&&n.connector.endItem&&e.addAndRedo(new m.DeleteConnectionHistoryItem(n.connector,U.ConnectorPosition.End)),s(n.connector),e.addAndRedo(new h.AddConnectionHistoryItem(n.connector,t,r,U.ConnectorPosition.End))):n.connector.endItem&&(e.addAndRedo(new m.DeleteConnectionHistoryItem(n.connector,U.ConnectorPosition.End)),e.addAndRedo(new w.MoveConnectorPointHistoryItem(n.connector.key,n.connector.points.length-1,n.point)))})},e.getMovingShapeConnectionPointIndex=function(e,t){var n=this,r=-1;return e.getConnectionPoints().forEach(function(e,o){i.Metrics.euclideanDistance(t,e)<n.connectionPointActionSize&&(r=o)}),r},e.shouldRemoveConnectorIntermediatePoints=function(e,t){if(e.properties.lineOption!==F.ConnectorLineOption.Orthogonal||2===e.points.length||!t||!t.length)return!1;for(var n,r=0;n=t[r];){if(this.isShapeIntersectConnectorCustomPoints(n,e))return!0;r++}return!1},e.tryRemoveConnectorIntermediatePoints=function(e,t){this.shouldRemoveConnectorIntermediatePoints(t,[t.beginItem,t.endItem])&&this.deleteConnectorCustomPoints(e,t)},e.isShapeIntersectConnectorCustomPoints=function(e,t){if(!e)return!1;var n=t.getCustomRenderPoints(!0);if(!n.length)return!1;var i=U.Connector.minOffset-r.UnitConverter.pixelsToTwips(1);return N.GeometryUtils.areIntersectedSegments(N.GeometryUtils.createSegments(n),N.GeometryUtils.createSegmentsFromRectangle(e.rectangle.clone().inflate(i,i)))},e.getSnappedPos=function(e,t,n,r){var i=r?e.snapStartPoint.x:e.snapStartPoint.y;return Math.round((n-i)/t)*t+i},e.tryUpdateModelRectangle=function(e,t){var n=e.modelManipulator.getModelSizeUpdateOffset();n.isEmpty()||(e.addAndRedo(new T.ModelResizeHistoryItem(n)),(n.left||n.top)&&(e.addAndRedo(new P.UpdatePositionsOnPageResizeHistoryItem(new c.Vector(n.left,n.top))),void 0!==t&&t(n.left,n.top)),e.modelManipulator.raiseModelRectangleChanged(e.modelManipulator.model.getRectangle(!0)))},e.deleteItems=function(e,t,n,r,i){e.beginTransaction();var o={};r.forEach(function(e){return o[e.key]=e});var s=n.getKeys().filter(function(e){return!o[e]});e.addAndRedo(new x.SetSelectionHistoryItem(n,s)),this.deleteItemsCore(e,t,r,i),this.tryUpdateModelRectangle(e),e.endTransaction()},e.deleteItemsCore=function(e,t,n,r){var i=this;n.sort(function(e,t){return(e instanceof U.Connector?0:1)-(t instanceof U.Connector?0:1)}),n.forEach(function(n){if(n.container&&i.removeFromContainer(e,t,n),n instanceof z.Shape){var o=t.getChildren(n);o.length&&(o.forEach(function(n){e.addAndRedo(new _.RemoveFromContainerHistoryItem(n)),i.updateAttachedConnectorsContainer(e,t,n)}),i.deleteItemsCore(e,t,o.filter(function(e){return!e.locked||r}),r)),t.findItem(n.key)&&i.deleteShape(e,n)}n instanceof U.Connector&&t.findItem(n.key)&&i.deleteConnector(e,n)})},e.detachConnectors=function(e,t){for(e.beginTransaction();t.attachedConnectors.length>0;){var n=t.attachedConnectors[0];e.addAndRedo(new m.DeleteConnectionHistoryItem(n,n.beginItem===t?U.ConnectorPosition.Begin:U.ConnectorPosition.End))}e.endTransaction()},e.deleteShape=function(e,t){var n=e.modelManipulator.permissionsProvider.canDeleteItems([t]);e.beginTransaction(),this.detachConnectors(e,t),e.addAndRedo(new v.DeleteShapeHistoryItem(t.key,n)),e.endTransaction()},e.deleteConnector=function(e,t){e.beginTransaction(),t.beginItem&&e.addAndRedo(new m.DeleteConnectionHistoryItem(t,U.ConnectorPosition.Begin)),t.endItem&&e.addAndRedo(new m.DeleteConnectionHistoryItem(t,U.ConnectorPosition.End)),e.addAndRedo(new y.DeleteConnectorHistoryItem(t.key)),e.endTransaction()},e.deleteAllItems=function(e,t,n){this.deleteItems(e,t,n,t.items.slice(),!0)},e.deleteSelection=function(e,t,n){this.deleteItems(e,t,n,n.getSelectedItems())},e.changeSelectionLocked=function(t,n,r,i){t.beginTransaction(),r.getSelectedItems(!0).forEach(function(e){t.addAndRedo(new B.ChangeLockedHistoryItem(e,i))}),e.updateSelection(t,r),t.endTransaction()},e.copyStylesToItem=function(e,t,n,r){var i=t.findItem(r);n.styleText.forEach(function(t){n.styleText[t]!==i.styleText[t]&&e.addAndRedo(new O.ChangeStyleTextHistoryItem(r,t,n.styleText[t]))}),n.style.forEach(function(t){n.style[t]!==i.style[t]&&e.addAndRedo(new M.ChangeStyleHistoryItem(r,t,n.style[t]))})},e.updateSelection=function(e,t){e.addAndRedo(new x.SetSelectionHistoryItem(t,t.getKeys(),!0))},e.cloneShapeToOffset=function(e,t,n,r,i){e.beginTransaction();var o=n.position.clone().offset(r,i),s=new p.AddShapeHistoryItem(n.description,o,n.text);e.addAndRedo(s);var a=s.shapeKey;return e.addAndRedo(new S.ResizeShapeHistoryItem(a,o,n.size.clone())),e.addAndRedo(new k.ChangeCustomDataHistoryItem(a,N.ObjectUtils.cloneObject(n.customData))),e.addAndRedo(new g.ChangeShapeParametersHistoryItem(a,n.parameters.clone())),this.copyStylesToItem(e,t,n,a),e.endTransaction(),a},e.applyOffsetToConnectorRenderPointsContext=function(e,t,n){return e&&e.renderPoints?new H.ConnectorRenderPointsContext(e.renderPoints.map(function(e){return e.clone().offset(t,n)}),!0,e.actualRoutingMode):void 0},e.cloneConnectorToOffset=function(e,t,n,r,i,o,s){e.beginTransaction();var a=n.points.map(function(e){return e.clone().offset(o,s)}),c=new d.AddConnectorHistoryItem(a,void 0,this.applyOffsetToConnectorRenderPointsContext(n.tryCreateRenderPointsContext(),o,s));e.addAndRedo(c);var u=c.connectorKey,l=t.findConnector(u);if(n.properties.forEach(function(t){n.properties[t]!==l.properties[t]&&e.addAndRedo(new E.ChangeConnectorPropertyHistoryItem(u,t,n.properties[t]))}),r){var f=t.findShape(r);e.addAndRedo(new h.AddConnectionHistoryItem(l,f,n.beginConnectionPointIndex,U.ConnectorPosition.Begin))}if(i){var p=t.findShape(i);e.addAndRedo(new h.AddConnectionHistoryItem(l,p,n.endConnectionPointIndex,U.ConnectorPosition.End))}return n.texts.clone().forEach(function(t){e.addAndRedo(new I.ChangeConnectorTextHistoryItem(l,t.position,t.value))}),this.copyStylesToItem(e,t,n,u),e.endTransaction(),u},e.cloneSelectionToOffset=function(t,n,r,i,o,s){var a=this;t.beginTransaction();var c={},u=[];i.getSelectedShapes().forEach(function(e){var i=a.cloneShapeToOffset(t,n,e,o,s);c[e.key]=i,u.push(i),r&&r(i)}),i.getSelectedConnectors().forEach(function(e){var i=e.beginItem?c[e.beginItem.key]:null,l=e.endItem?c[e.endItem.key]:null,h=a.cloneConnectorToOffset(t,n,e,i,l,o,s);u.push(h),r&&r(h)}),t.addAndRedo(new x.SetSelectionHistoryItem(i,u)),e.tryUpdateModelRectangle(t),t.endTransaction()},e.findContainerByEventKey=function(t,n,r){var i=t.findContainer(r);if(i&&!i.isLocked)return i;var o=t.findShape(r);return o&&o.container&&!n.hasKey(o.key)?e.findContainerByEventKey(t,n,o.container.key):void 0},e.canInsertToContainer=function(e,t,n){return t!==n&&!(t instanceof z.Shape&&e.findChild(t,n.key))},e.canInsertSelectionToContainer=function(e,t,n){var r=!0;return t.getSelectedItems().forEach(function(t){t!==n?t instanceof z.Shape&&e.findChild(t,n.key)&&(r=!1):r=!1}),r},e.insertToContainer=function(e,t,n,r){if(!r.enableChildren)throw Error("Inpossible to add children to non-container shape.");if(this.canInsertToContainer(t,n,r)){var i=n.container;i!==r&&(e.beginTransaction(),i&&(e.addAndRedo(new _.RemoveFromContainerHistoryItem(n)),n.attachedConnectors.forEach(function(t){t.container&&e.addAndRedo(new _.RemoveFromContainerHistoryItem(t))})),e.addAndRedo(new b.InsertToContainerHistoryItem(n,r)),this.updateAttachedConnectorsContainer(e,t,n),e.endTransaction())}},e.removeFromContainer=function(e,t,n){n.container&&(e.beginTransaction(),e.addAndRedo(new _.RemoveFromContainerHistoryItem(n)),this.updateAttachedConnectorsContainer(e,t,n),e.endTransaction())},e.insertSelectionToContainer=function(e,t,n,r){var i=this;e.beginTransaction();var o=n.getSelectedItems();o.filter(function(e){return!e.container||-1===o.indexOf(e.container)}).forEach(function(n){i.insertToContainer(e,t,n,r)}),e.endTransaction()},e.removeSelectionFromContainer=function(e,t,n){var r=this;e.beginTransaction(),n.getSelectedItems().forEach(function(i){i.container&&!n.hasKey(i.container.key)&&(e.addAndRedo(new _.RemoveFromContainerHistoryItem(i)),r.updateAttachedConnectorsContainer(e,t,i))}),e.endTransaction()},e.getConnectorContainer=function(e){if(e.beginItem&&e.endItem){for(var t={},n=e.beginItem.container;n;)t[n.key]=!0,n=n.container;for(var r=e.endItem.container;r;){if(void 0!==t[r.key])return r;r=r.container}}},e.updateAttachedConnectorsContainer=function(e,t,n){var r=this;e.beginTransaction(),n.attachedConnectors.forEach(function(n){r.updateConnectorContainer(e,t,n)}),e.endTransaction()},e.updateConnectorContainer=function(e,t,n){var r=this.getConnectorContainer(n);r?e.addAndRedo(new b.InsertToContainerHistoryItem(n,r)):n.container&&e.addAndRedo(new _.RemoveFromContainerHistoryItem(n))},e.updateNewShapeProperties=function(e,t,n){t.inputPosition.getDefaultStyle().forEach(function(r){e.addAndRedo(new M.ChangeStyleHistoryItem(n,r,t.inputPosition.getDefaultStylePropertyValue(r)))}),t.inputPosition.getDefaultTextStyle().forEach(function(r){e.addAndRedo(new O.ChangeStyleTextHistoryItem(n,r,t.inputPosition.getDefaultTextStylePropertyValue(r)))})},e.updateNewConnectorProperties=function(e,t,n){t.inputPosition.getDefaultConnectorProperties().forEach(function(r){e.addAndRedo(new E.ChangeConnectorPropertyHistoryItem(n,r,t.inputPosition.getDefaultConnectorPropertyValue(r)))}),t.inputPosition.getDefaultStyle().forEach(function(r){e.addAndRedo(new M.ChangeStyleHistoryItem(n,r,t.inputPosition.getDefaultStylePropertyValue(r)))}),t.inputPosition.getDefaultTextStyle().forEach(function(r){e.addAndRedo(new O.ChangeStyleTextHistoryItem(n,r,t.inputPosition.getDefaultTextStylePropertyValue(r)))})},e.applyLayout=function(e,t,n,r,i,o,s,a,c,u){e.beginTransaction();var l=this.getOccupiedRectangles(o,n);return i=this.offsetLayoutToFreeSpace(i,n&&n.clientRectangle,l,s.containerPadding),a&&this.adjustLayoutToSnapGrid(t,i,c),n&&this.resizeContainerOnLayout(e,t,i,n,s.containerPadding),this.applyLayoutToNodes(e,t,i,r.edges.map(function(e){return t.findConnector(e.key)})),this.applyLayoutToConnectors(e,t,i,r.edges.map(function(e){return t.findConnector(e.key)}),u),e.endTransaction(),i.getRectangle(!0)},e.getNonGraphItems=function(e,t,n,r,i){return(t?e.getChildren(t):e.items.filter(function(e){return!e.container})).filter(function(e){return e instanceof U.Connector?!(e.beginItem&&n[e.beginItem.key]||e.endItem&&n[e.endItem.key]||-1!==i.indexOf(e)):e instanceof z.Shape?!n[e.key]&&-1===r.indexOf(e):void 0})},e.getOccupiedRectangles=function(e,t){var n=e.map(function(e){return e.rectangle});if(t&&n.length){var r=t.clientRectangle;n.push(new s.Rectangle(r.right,r.y,1,1)),n.push(new s.Rectangle(r.right,r.bottom,1,1))}return n},e.offsetLayoutToFreeSpace=function(e,t,n,r){var i=e.getRectangle(!0),o=N.GeometryUtils.findFreeSpace(n,i.createSize().offset(r,r).nonNegativeSize(),!1,t);if(o){var s=o.x+r,a=o.y+r;return e.offsetNodes(s,a)}var c=n&&n.length?n.reduce(function(e,t){return t.right>e?t.right:e},0):t?t.x:0,u=t?t.y:Math.max(0,i.y);return e.offsetNodes(c+r,u+r)},e.resizeContainerOnLayout=function(t,n,r,i,o){var s=r.getRectangle(!0),c=i.children.filter(function(e){return e instanceof z.Shape?-1===r.nodeKeys.indexOf(e.key):!!(e instanceof U.Connector&&e.beginItem&&e.endItem)&&-1===r.nodeKeys.indexOf(e.beginItem.key)&&-1===r.nodeKeys.indexOf(e.endItem.key)}).map(function(e){return e.rectangle}),u=c.map(function(e){return e.right}).reduce(function(e,t){return Math.max(e,t)},s.right),l=c.map(function(e){return e.bottom}).reduce(function(e,t){return Math.max(e,t)},s.bottom),h=i.rectangle.width+u+o-i.rectangle.right,d=i.rectangle.height+l+o-i.rectangle.bottom;e.setShapeSize(t,n,i,i.position,new a.Size(h,d)),e.updateShapeAttachedConnectors(t,n,i)},e.applyLayoutToNodes=function(e,t,n,r){var i=this,o=r.reduce(function(e,t){return e[t.key]=e},{});n.forEachNode(function(n,r){var s=t.findShape(r);i.applyLayoutToNode(e,t,s,n.position,o)})},e.applyLayoutToNode=function(t,n,r,i,o){var s=this,a=i.clone().offset(-r.position.x,-r.position.y);e.setShapePosition(t,n,r,i,!1),0===a.x&&0===a.y||(r.attachedConnectors.filter(function(e){return!o[e.key]}).forEach(function(e){s.updateConnectorAttachedPoints(t,n,e);for(var r=e.beginItem?1:0,i=e.endItem?e.points.length-2:e.points.length-1,o=r;o<=i;o++)s.moveConnectorPoint(t,e,o,e.points[o].offset(a.x,a.y))}),n.getChildren(r).forEach(function(e){if(e instanceof z.Shape){var r=e.position.clone().offset(a.x,a.y);s.applyLayoutToNode(t,n,e,r,o)}}))},e.applyLayoutToConnectors=function(e,t,n,r,i){var o=this;r.filter(function(e){return e.beginItem||e.endItem}).forEach(function(r){var s=n.edgeToPosition[r.key];if(r.beginItem&&r.endItem&&!i&&s){var a=r.beginItem.getConnectionPointIndexForSide(s.beginIndex);a!==r.beginConnectionPointIndex&&e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(r,a,U.ConnectorPosition.Begin));var c=r.endItem.getConnectionPointIndexForSide(s.endIndex);c!==r.endConnectionPointIndex&&e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(r,c,U.ConnectorPosition.End))}o.updateConnectorAttachedPoints(e,t,r),s&&o.deleteConnectorCustomPoints(e,r)})},e.adjustLayoutToSnapGrid=function(e,t,n){var r=this;t.nodeKeys.forEach(function(i){t.nodeToLayout[i].position.x=r.getSnappedPos(e,n,t.nodeToLayout[i].position.x,!0),t.nodeToLayout[i].position.y=r.getSnappedPos(e,n,t.nodeToLayout[i].position.y,!1)})},e.getGraphInfoByItems=function(e,t,n,r){void 0===r&&(r=!0);var i={};[].concat(t).concat(n).forEach(function(e){var t=e.container&&e.container.key;i[t]||(i[t]=[]),i[t].push(e)});var o=[];for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var a=s&&e.findContainer(s);if(!a||a.expanded&&!e.findItemCollapsedContainer(a)){var c=a&&a.key,u=this.getGraphByItems(e,i[s],c,!r),l=!1;(u.nodes.length>1||u.nodes.length&&(r||a&&i[a.container&&a.container.key]))&&(l=!0),l&&o.push(new R.GraphInfo(a,u))}}return o.sort(function(e,t){return t.level-e.level})},e.getGraphByItems=function(e,t,n,r){var i=this,o=new D.Graph([],[]),s={};return t.forEach(function(e){i.extendByConnectedComponents(e,o,n,s,r)}),o.nodes.sort(function(t,n){return e.getItemIndex(e.findItem(t))-e.getItemIndex(e.findItem(n))}),o.edges.sort(function(t,n){return e.getItemIndex(e.findItem(t.key))-e.getItemIndex(e.findItem(n.key))}),o.edges=o.edges.filter(function(e){return o.getNode(e.from)&&o.getNode(e.to)}),o},e.extendByConnectedComponents=function(e,t,n,r,i){var o=this;!e||i&&e.locked||r[e.key]||(r[e.key]=!0,!(e instanceof U.Connector&&(e.container&&e.container.key)===n&&e.beginItem)||e.beginItem.locked&&i||!e.endItem||e.endItem.locked&&i||e.beginItem===e.endItem?e instanceof z.Shape&&(e.container&&e.container.key)===n&&(t.addNode(e),e.attachedConnectors.forEach(function(e){return o.extendByConnectedComponents(e,t,n,r,i)})):(t.addEdge(new L.Edge(e.key,e.beginItem&&e.beginItem.key,e.endItem&&e.endItem.key)),this.extendByConnectedComponents(e.beginItem,t,n,r,i),this.extendByConnectedComponents(e.endItem,t,n,r,i)))},e.getlUnitValue=function(e,t){switch(e){case l.DiagramUnit.Cm:return r.UnitConverter.twipsToCentimeters(t);case l.DiagramUnit.In:return r.UnitConverter.twipsToInches(t);case l.DiagramUnit.Px:return r.UnitConverter.twipsToPixels(t)}},e.getUnitText=function(e,t,n,r,i){void 0===i&&(i=2);var o=t[e]?" "+t[e]:"",s=this.getlUnitValue(e,r);switch(e){case l.DiagramUnit.Cm:case l.DiagramUnit.In:return n(+s.toFixed(i))+o;case l.DiagramUnit.Px:return n(+s.toFixed(0))+o}},e.getTwipsValue=function(e,t){switch(e){case l.DiagramUnit.Cm:return r.UnitConverter.centimetersToTwips(t);case l.DiagramUnit.In:return r.UnitConverter.inchesToTwips(t);case l.DiagramUnit.Px:return r.UnitConverter.pixelsToTwips(t)}},e.getGuidItemKey=function(){return u.MathUtils.generateGuid()},e.createSelectedItems=function(e){var t={};return e.getSelectedItems(!0).forEach(function(e){return t[e.key]=e}),t},e.canMoveConnector=function(e,t){var n=t.beginItem,r=t.endItem;return n||r?!!e[t.key]&&(n===r?!!e[n.key]:n?r?!!e[n.key]&&!!e[r.key]:!!e[n.key]:!!e[r.key]):!t.isLocked},e.createRectangle=function(e){return N.GeometryUtils.getCommonRectangle(e.map(function(e){return e.rectangle}))},e.changeShapeType=function(e,t,n,r){if(n.description.key===r)return!1;e.beginTransaction();var i=n.getConnectionPoints(),o=i.map(function(e){return n.getConnectionPointSide(e)});e.addAndRedo(new Q.ChangeShapeTypeHistoryItem(n,r));for(var s=n.getConnectionPoints(),a=s.map(function(e){return n.getConnectionPointSide(e)}),c=0,u=void 0;u=n.attachedConnectors[c];c++)u.beginItem===n&&this.updateConnectionIndexByNewShapeType(e,u,U.ConnectorPosition.Begin,u.beginConnectionPointIndex,i,o,s,a),u.endItem===n&&this.updateConnectionIndexByNewShapeType(e,u,U.ConnectorPosition.End,u.endConnectionPointIndex,i,o,s,a),this.updateConnectorAttachedPoints(e,t,u);return e.endTransaction(),!0},e.updateConnectionIndexByNewShapeType=function(e,t,n,r,i,o,s,a){if(!(r<0)){var c=o[r],u=i[r];if(!(r<s.length&&c===a[r])){var l=this.findNearestPointIndex(s,u,function(e){return a[e]===c});-1===l&&(l=this.findNearestPointIndex(s,u,function(){return!0})),l!==r&&e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(t,l,n))}}},e.findNearestPointIndex=function(e,t,n){return e.reduce(function(r,o,s){if(n(s)){var a=i.Metrics.euclideanDistance(t,e[s]);(-1===r.index||r.distance>a)&&(r.index=s,r.distance=a)}return r},{distance:Number.MAX_SAFE_INTEGER,index:-1}).index},e.connectionPointActionSize=r.UnitConverter.pixelsToTwips(8),e}();t.ModelUtils=V},6469:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddShapeEventArgs=t.AddShapeRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.shape=n,r}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.AddShape},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeShape(this.shape),this.apiController.convertPoint(this.shape.position))},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"addShape"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.shape===e.shape&&this.shape.position.equals(e.shape.position)},t}(s.RequestedEntity);t.AddShapeRequestedEntity=a;var c=function(e){function t(t,n){var r=e.call(this)||this;return r.shape=t,r.position=n,r}return i(t,e),t}(s.PermissionRequestEventArgs);t.AddShapeEventArgs=c},1110:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddShapeFromToolboxEventArgs=t.AddShapeFromToolboxRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.shapeType=n,r}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.AddShapeFromToolbox},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.shapeType)},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"addShapeFromToolbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+this.shapeType},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.shapeType===e.shapeType},t}(s.RequestedEntity);t.AddShapeFromToolboxRequestedEntity=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.shapeType=t,n}return i(t,e),t}(s.PermissionRequestEventArgs);t.AddShapeFromToolboxEventArgs=c},4829:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BeforeChangeConnectorTextEventArgs=t.BeforeChangeConnectorTextRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.connector=n,i.position=r,i}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.BeforeChangeConnectorText},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeConnector(this.connector),this.position,this.connector.texts.map(function(e){return e}).sort(function(e,t){return e.position-t.position}).indexOf(this.connector.texts.get(this.position)))},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"changeConnectorText"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return"before"+this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.connector===e.connector&&this.position===e.position&&this.connector.texts.get(this.position)===e.connector.texts.get(e.position)},t}(s.RequestedEntity);t.BeforeChangeConnectorTextRequestedEntity=a;var c=function(e){function t(t,n,r){var i=e.call(this)||this;return i.connector=t,i.position=n,i.index=r,i}return i(t,e),t}(s.PermissionRequestEventArgs);t.BeforeChangeConnectorTextEventArgs=c},2345:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BeforeChangeShapeTextEventArgs=t.BeforeChangeShapeTextRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.shape=n,r}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.BeforeChangeShapeText},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeShape(this.shape))},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"changeShapeText"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return"before"+this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.shape===e.shape&&this.shape.text===e.shape.text},t}(s.RequestedEntity);t.BeforeChangeShapeTextRequestedEntity=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.shape=t,n}return i(t,e),t}(s.PermissionRequestEventArgs);t.BeforeChangeShapeTextEventArgs=c},6466:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectionEventArgs=t.ChangeConnectionRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.connector=n,a.shape=r,a.oldShape=i,a.position=o,a.connectionPointIndex=s,a}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.ChangeConnection},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeConnector(this.connector),this.apiController.createNativeShape(this.shape),this.apiController.createNativeShape(this.oldShape),this.position,this.connectionPointIndex)},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"changeConnection"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)+"_"+this.position},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){if(e instanceof t){var n=!this.connector&&!e.connector||this.connector&&e.connector&&this.connector===e.connector,r=!this.shape&&!e.shape||this.shape&&e.shape&&this.shape===e.shape,i=!this.oldShape&&!e.oldShape||this.oldShape&&e.oldShape&&this.oldShape===e.oldShape;return r&&i&&n&&this.position===e.position&&this.connectionPointIndex===e.connectionPointIndex}return!1},t}(s.RequestedEntity);t.ChangeConnectionRequestedEntity=a;var c=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s.connector=t,s.shape=n,s.oldShape=r,s.position=i,s.connectionPointIndex=o,s}return i(t,e),t}(s.PermissionRequestEventArgs);t.ChangeConnectionEventArgs=c},6354:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorPointsEventArgs=t.ChangeConnectorPointsRequestedEntity=void 0;var o=n(6879),s=n(8532),a=n(8675),c=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.connector=n,o.oldPoints=r,o.points=i,o}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.ChangeConnectorPoints},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){var e=this;return new u(this.apiController.createNativeConnector(this.connector),this.oldPoints.map(function(t){return e.apiController.convertPoint(t)}),this.points.map(function(t){return e.apiController.convertPoint(t)}))},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"changeConnectorPoints"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.connector===e.connector&&a.GeometryUtils.arePointsEqual(this.oldPoints,e.oldPoints)&&a.GeometryUtils.arePointsEqual(this.points,e.points)},t}(s.RequestedEntity);t.ChangeConnectorPointsRequestedEntity=c;var u=function(e){function t(t,n,r){var i=e.call(this)||this;return i.connector=t,i.oldPoints=n,i.points=r,i}return i(t,e),t}(s.PermissionRequestEventArgs);t.ChangeConnectorPointsEventArgs=u},2249:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeConnectorTextEventArgs=t.ChangeConnectorTextRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.connector=n,o.position=r,o.text=i,o}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.ChangeConnectorText},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeConnector(this.connector),this.position,this.connector.texts.map(function(e){return e}).sort(function(e,t){return e.position-t.position}).indexOf(this.connector.texts.get(this.position)),this.text)},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"changeConnectorText"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.connector===e.connector&&this.position===e.position&&this.text===e.text},t}(s.RequestedEntity);t.ChangeConnectorTextRequestedEntity=a;var c=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.connector=t,o.position=n,o.index=r,o.text=i,o}return i(t,e),t}(s.PermissionRequestEventArgs);t.ChangeConnectorTextEventArgs=c},5560:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeShapeTextEventArgs=t.ChangeShapeTextRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.shape=n,i.text=r,i}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.ChangeShapeText},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeShape(this.shape),this.text)},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"changeShapeText"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.shape===e.shape&&this.text===e.text},t}(s.RequestedEntity);t.ChangeShapeTextRequestedEntity=a;var c=function(e){function t(t,n){var r=e.call(this)||this;return r.shape=t,r.text=n,r}return i(t,e),t}(s.PermissionRequestEventArgs);t.ChangeShapeTextEventArgs=c},6580:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteConnectorEventArgs=t.DeleteConnectorRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connector=n,r}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.DeleteConnector},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeConnector(this.connector))},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"deleteConnector"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.connector===e.connector},t}(s.RequestedEntity);t.DeleteConnectorRequestedEntity=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.connector=t,n}return i(t,e),t}(s.PermissionRequestEventArgs);t.DeleteConnectorEventArgs=c},8825:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteShapeEventArgs=t.DeleteShapeRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.shape=n,r}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.DeleteShape},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeShape(this.shape))},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"deleteShape"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.shape===e.shape},t}(s.RequestedEntity);t.DeleteShapeRequestedEntity=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.shape=t,n}return i(t,e),t}(s.PermissionRequestEventArgs);t.DeleteShapeEventArgs=c},4864:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MoveShapeEventArgs=t.MoveShapeRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.shape=n,o.oldPosition=r,o.position=i,o}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.MoveShape},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeShape(this.shape),this.apiController.convertPoint(this.oldPosition),this.apiController.convertPoint(this.position))},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"moveShape"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.shape===e.shape&&this.oldPosition.equals(e.oldPosition)&&this.position.equals(e.position)},t}(s.RequestedEntity);t.MoveShapeRequestedEntity=a;var c=function(e){function t(t,n,r){var i=e.call(this)||this;return i.shape=t,i.oldPosition=n,i.position=r,i}return i(t,e),t}(s.PermissionRequestEventArgs);t.MoveShapeEventArgs=c},8532:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionRequestEventArgs=t.RequestedEntity=void 0;var n=function(){function e(e){this.apiController=e}return Object.defineProperty(e.prototype,"allowed",{get:function(){return this.eventArgs.allowed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateUI",{get:function(){return this.eventArgs.updateUI},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventArgs",{get:function(){return this._eventArgs||(this._eventArgs=this.createEventArgs()),this._eventArgs},enumerable:!1,configurable:!0}),e}();t.RequestedEntity=n;var r=function(){this.allowed=!0,this.updateUI=!1};t.PermissionRequestEventArgs=r},3214:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeShapeEventArgs=t.ResizeShapeRequestedEntity=void 0;var o=n(6879),s=n(8532),a=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.shape=n,o.oldSize=r,o.size=i,o}return i(t,e),Object.defineProperty(t.prototype,"operation",{get:function(){return o.DiagramModelOperation.ResizeShape},enumerable:!1,configurable:!0}),t.prototype.createEventArgs=function(){return new c(this.apiController.createNativeShape(this.shape),this.apiController.convertSize(this.oldSize),this.apiController.convertSize(this.size))},Object.defineProperty(t.prototype,"settingsKey",{get:function(){return"resizeShape"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.shape===e.shape&&this.oldSize.equals(e.oldSize)&&this.size.equals(e.size)},t}(s.RequestedEntity);t.ResizeShapeRequestedEntity=a;var c=function(e){function t(t,n,r){var i=e.call(this)||this;return i.shape=t,i.oldSize=n,i.size=r,i}return i(t,e),t}(s.PermissionRequestEventArgs);t.ResizeShapeEventArgs=c},2883:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionsProvider=void 0;var r=n(5503),i=n(8675),o=n(6879),s=n(7959),a=n(6469),c=n(8825),u=n(6580),l=n(1110),h=n(6466),d=n(6354),f=n(2345),p=n(4829),A=n(5560),g=n(2249),m=n(9187),y=n(3214),v=n(4864),b=function(){function e(e){this.onRequestOperation=new i.EventDispatcher,this.cache=[],this.permissionsLockCount=0,this.requestDeleteItems={},this.updateUICount=0,this.apiController=e,this.operationSettings=new o.ModelOperationSettings,this.storage=new m.PermissionsProviderStorage}return e.prototype.notifySelectionChanged=function(e){this.clearCache()},e.prototype.notifyModelChanged=function(e){this.clearCache()},e.prototype.notifyPageColorChanged=function(e){},e.prototype.notifyPageSizeChanged=function(e,t){},e.prototype.clearCache=function(e){this.cache=void 0!==e?this.cache.filter(function(t){return t.operation!==e}):[]},e.prototype.canDeleteItems=function(e){var t=this,n=!0;return e.forEach(function(e){var i;e instanceof r.Shape&&(i=new c.DeleteShapeRequestedEntity(t.apiController,e)),e instanceof s.Connector&&(i=new u.DeleteConnectorRequestedEntity(t.apiController,e)),n=n&&t.requestOperation(i)}),n},e.prototype.canAddItems=function(e){var t=this,n=!0;return e.forEach(function(e){e instanceof r.Shape&&(n=n&&t.requestOperation(new a.AddShapeRequestedEntity(t.apiController,e))),e instanceof s.Connector&&(n=(n=n&&t.canChangeConnection(e,e.beginItem,void 0,s.ConnectorPosition.Begin,e.beginConnectionPointIndex))&&t.canChangeConnection(e,e.endItem,void 0,s.ConnectorPosition.End,e.endConnectionPointIndex))}),n},e.prototype.canAddShapeFromToolbox=function(e){return this.requestOperation(new l.AddShapeFromToolboxRequestedEntity(this.apiController,e))},e.prototype.canChangeConnection=function(e,t,n,i,o){return!(!e||!this.requestDeleteItems[e.key])||!(null==t||t instanceof r.Shape)||this.requestOperation(new h.ChangeConnectionRequestedEntity(this.apiController,e,t,n,i,o))},e.prototype.canChangeConnectorPoints=function(e,t,n){return!(!e||!this.requestDeleteItems[e.key])||this.requestOperation(new d.ChangeConnectorPointsRequestedEntity(this.apiController,e,t,n))},e.prototype.canChangeShapeText=function(e){return this.requestOperation(new f.BeforeChangeShapeTextRequestedEntity(this.apiController,e))},e.prototype.canChangeConnectorText=function(e,t){return this.requestOperation(new p.BeforeChangeConnectorTextRequestedEntity(this.apiController,e,t))},e.prototype.canApplyShapeTextChange=function(e,t){return this.requestOperation(new A.ChangeShapeTextRequestedEntity(this.apiController,e,t))},e.prototype.canApplyConnectorTextChange=function(e,t,n){return this.requestOperation(new g.ChangeConnectorTextRequestedEntity(this.apiController,e,t,n))},e.prototype.canResizeShapes=function(e){var t=this,n=!0;return e.forEach(function(e){n=n&&t.requestOperation(new y.ResizeShapeRequestedEntity(t.apiController,e.shape,e.oldSize,e.size))}),n},e.prototype.canMoveShapes=function(e){var t=this,n=!0;return e.forEach(function(e){n=n&&t.requestOperation(new v.MoveShapeRequestedEntity(t.apiController,e.shape,e.oldPosition,e.position))}),n},e.prototype.requestOperation=function(e){var t,n=!0;return!this.permissionsLockCount&&(this.updateUICount>0&&this.cache.forEach(function(n){n.equals(e)&&(t=n)}),t?n=t.allowed:(this.requestOperationCore(e),this.updateUICount>0&&this.cache.push(e),n=e.allowed),0===this.updateUICount&&this.storage.needStorePermissions())?(this.storage.storePermission(e.storageKey,n),this.storage.isStoredPermissionsGranted()):n},e.prototype.requestOperationCore=function(e){e.eventArgs.allowed=this.operationSettings[e.settingsKey],e.eventArgs.updateUI=this.updateUICount>0,e.allowed&&this.onRequestOperation.raise("notifyRequestOperation",e.operation,e.eventArgs)},e.prototype.lockPermissions=function(){this.permissionsLockCount++},e.prototype.unlockPermissions=function(){this.permissionsLockCount--},e.prototype.beginDeleteItems=function(e){var t=this;e.forEach(function(e){return t.requestDeleteItems[e.key]=e})},e.prototype.endDeleteItems=function(){this.requestDeleteItems={}},e.prototype.beginUpdateUI=function(){this.updateUICount++},e.prototype.endUpdateUI=function(){this.updateUICount--},e.prototype.addInteractingItem=function(e,t){this.storage.addInteractingItem(e,t)},e.prototype.getInteractingItem=function(e,t){return this.storage.getInteractingItem(e,t)},e.prototype.getInteractingItemCount=function(){return this.storage.getInteractingItemCount()},e.prototype.clearInteractingItems=function(){this.storage.clearInteractingItems()},e.prototype.beginStorePermissions=function(){this.storage.beginStorePermissions()},e.prototype.endStorePermissions=function(){this.storage.endStorePermissions()},e.prototype.isStoredPermissionsGranted=function(){return this.permissionsLockCount>0||this.storage.isStoredPermissionsGranted()},e}();t.PermissionsProvider=b},9187:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionsProviderStorage=void 0;var r=n(5503),i=n(7959),o=function(){function e(){this.interactingItems={},this.storedPermissions={}}return e.prototype.addInteractingItem=function(e,t){var n=this.getInteractingItemKey(e,t);void 0===this.interactingItems[n]&&(e instanceof r.Shape||e instanceof i.Connector)&&(this.interactingItems[n]=e.clone())},e.prototype.getInteractingItem=function(e,t){var n=this.getInteractingItemKey(e,t);return this.interactingItems[n]},e.prototype.getInteractingItemCount=function(){return Object.keys(this.interactingItems).length},e.prototype.clearInteractingItems=function(){this.interactingItems={}},e.prototype.getInteractingItemKey=function(e,t){return e.key+(void 0!==t?"_"+t.toString():"")},e.prototype.needStorePermissions=function(){return this.storePermissions},e.prototype.beginStorePermissions=function(){this.storePermissions=!0},e.prototype.endStorePermissions=function(){this.storePermissions=!1,this.storedPermissions={}},e.prototype.isStoredPermissionsGranted=function(){for(var e=Object.keys(this.storedPermissions),t=!0,n=0;n<e.length;n++)t=t&&this.storedPermissions[e[n]];return t},e.prototype.storePermission=function(e,t){this.storedPermissions[e]=t},e}();t.PermissionsProviderStorage=o},7255:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerDescription=t.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=t.CONTAINER_EXPAND_BUTTON_RECT_RATIO=t.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=t.CONTAINER_HEADER_SIZE=void 0;var o=n(6794),s=n(6353),a=n(2259),c=n(4716),u=n(7724),l=n(3500),h=n(6031),d=n(5329),f=n(7228),p=n(3742),A=n(6224);t.CONTAINER_HEADER_SIZE=360,t.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=.2,t.CONTAINER_EXPAND_BUTTON_RECT_RATIO=.5,t.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=.3;var g=function(e){function n(t){return void 0===t&&(t=new s.Size(2*o.ShapeDefaultDimension,1.5*o.ShapeDefaultDimension)),e.call(this,t,!0)||this}return i(n,e),Object.defineProperty(n.prototype,"enableChildren",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.getDefaultText=function(){return A.DiagramLocalizationService.shapeTexts[a.ShapeTypes.Container]},n.prototype.createConnectionPoints=function(){return[new f.ConnectionPoint(.25,0,p.ConnectionPointSide.North),new f.ConnectionPoint(.5,0,p.ConnectionPointSide.North),new f.ConnectionPoint(.75,0,p.ConnectionPointSide.North),new f.ConnectionPoint(1,.25,p.ConnectionPointSide.East),new f.ConnectionPoint(1,.5,p.ConnectionPointSide.East),new f.ConnectionPoint(1,.75,p.ConnectionPointSide.East),new f.ConnectionPoint(.75,1,p.ConnectionPointSide.South),new f.ConnectionPoint(.5,1,p.ConnectionPointSide.South),new f.ConnectionPoint(.25,1,p.ConnectionPointSide.South),new f.ConnectionPoint(0,.75,p.ConnectionPointSide.West),new f.ConnectionPoint(0,.5,p.ConnectionPointSide.West),new f.ConnectionPoint(0,.25,p.ConnectionPointSide.West)]},n.prototype.getConnectionPointIndexForItem=function(e,t){return 4===(e&&e.getConnectionPoints()).length?3*t+1:t},n.prototype.getConnectionPointIndexForSide=function(e){return 3*e+1},n.prototype.createShapePrimitives=function(e,t){var n=e.rectangle,r=n.x,i=n.y,o=n.width,s=n.height,a=[];return e.expanded&&(a=a.concat([new c.RectanglePrimitive(r,i,o,s,e.style)])),a.concat(this.createHeaderPrimitives(e,t))},n.prototype.createExpandButtonPrimitives=function(e,n){var r=[new u.PathPrimitiveMoveToCommand(n.x+n.width*((1-t.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2),n.center.y),new u.PathPrimitiveLineToCommand(n.x+n.width*((1-t.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+t.CONTAINER_EXPAND_BUTTON_SIGN_RATIO),n.center.y)];e.expanded||(r=r.concat([new u.PathPrimitiveMoveToCommand(n.center.x,n.y+n.height*((1-t.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2)),new u.PathPrimitiveLineToCommand(n.center.x,n.y+n.height*((1-t.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+t.CONTAINER_EXPAND_BUTTON_SIGN_RATIO))]));var i=n.clone().inflate(-n.width*(1-t.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2,-n.height*(1-t.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2);return[new d.GroupPrimitive([new c.RectanglePrimitive(i.x,i.y,i.width,i.height,e.style),new u.PathPrimitive(r,e.style)],"shape-expand-btn",null,null,function(t){l.RenderUtils.setElementEventData(t,h.MouseEventElementType.ShapeExpandButton,e.key)})]},n}(o.ShapeDescription);t.ContainerDescription=g},944:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HorizontalContainerDescription=void 0;var o=n(6794),s=n(8011),a=n(6353),c=n(8900),u=n(2259),l=n(7255),h=n(4716),d=n(9416),f=function(e){function t(){return e.call(this,new a.Size(2*o.ShapeDefaultDimension,1.5*o.ShapeDefaultDimension))||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return u.ShapeTypes.HorizontalContainer},enumerable:!1,configurable:!0}),t.prototype.getExpandedSize=function(e){return new a.Size(e.expandedSize.width,e.size.height)},t.prototype.getCollapsedSize=function(e){return new a.Size(l.CONTAINER_HEADER_SIZE+2*e.strokeWidth,e.size.height)},t.prototype.allowResizeHorizontally=function(e){return e.expanded},t.prototype.createHeaderPrimitives=function(e,t){var n=e.rectangle,r=n.x,i=n.y,o=n.height,a=this.getHeaderSize(e,t),c=[];return c=c.concat([new h.RectanglePrimitive(r,i,a,o,e.style)]),t||(c=c.concat(this.createExpandButtonPrimitives(e,new s.Rectangle(r,i,a,a)))),c},t.prototype.getClientRectangle=function(e){var t=e.rectangle,n=this.getHeaderSize(e);return s.Rectangle.fromGeometry(new c.Point(t.x+n,t.y),new a.Size(t.width-n,t.height))},t.prototype.getTextRectangle=function(e){var t=e.rectangle,n=this.getHeaderSize(e);return s.Rectangle.fromGeometry(new c.Point(t.x,t.y+n),new a.Size(n,t.height-n)).nonNegativeSize()},t.prototype.getSizeByText=function(e,t){var n=this.getHeaderSize(t);return new a.Size(t.size.width,Math.max(t.size.height,Math.max(e.width+n,t.size.height)))},t.prototype.getTextEditRectangle=function(e){var t=this.getTextRectangle(e);return s.Rectangle.fromGeometry(new c.Point(t.x,t.y+t.height),new a.Size(t.height,t.width))},t.prototype.getTextAngle=function(){return d.TextAngle.Angle270deg},t.prototype.getHeaderSize=function(e,t){var n=e.rectangle;return t?n.height*l.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:l.CONTAINER_HEADER_SIZE+2*e.strokeWidth},t}(l.ContainerDescription);t.HorizontalContainerDescription=f},5759:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VerticalContainerDescription=void 0;var o=n(8900),s=n(6353),a=n(4716),c=n(8011),u=n(2259),l=n(6794),h=n(7255),d=function(e){function t(){return e.call(this,new s.Size(2*l.ShapeDefaultDimension,1.5*l.ShapeDefaultDimension))||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return u.ShapeTypes.VerticalContainer},enumerable:!1,configurable:!0}),t.prototype.getExpandedSize=function(e){return new s.Size(e.size.width,e.expandedSize.height)},t.prototype.getCollapsedSize=function(e){return new s.Size(e.size.width,h.CONTAINER_HEADER_SIZE+2*e.strokeWidth)},t.prototype.allowResizeVertically=function(e){return e.expanded},t.prototype.createHeaderPrimitives=function(e,t){var n=e.rectangle,r=n.x,i=n.y,o=n.width,s=this.getHeaderSize(e,t),u=[];return u=u.concat([new a.RectanglePrimitive(r,i,o,s,e.style)]),t||(u=u.concat(this.createExpandButtonPrimitives(e,new c.Rectangle(r,i,s,s)))),u},t.prototype.getClientRectangle=function(e){var t=e.rectangle,n=this.getHeaderSize(e);return c.Rectangle.fromGeometry(new o.Point(t.x,t.y+n),new s.Size(t.width,t.height-n))},t.prototype.getTextRectangle=function(e){var t=e.rectangle,n=this.getHeaderSize(e);return c.Rectangle.fromGeometry(new o.Point(t.x+n,t.y),new s.Size(t.width-n,n))},t.prototype.getSizeByText=function(e,t){var n=this.getHeaderSize(t);return new s.Size(Math.max(t.size.width,e.width+n),t.size.height)},t.prototype.getHeaderSize=function(e,t){var n=e.rectangle;return t?n.height*h.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:h.CONTAINER_HEADER_SIZE+2*e.strokeWidth},t}(h.ContainerDescription);t.VerticalContainerDescription=d},6688:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomShapeDescription=void 0;var o=n(1995),s=n(8011),a=n(6353),c=n(8900),u=n(7228),l=n(3742),h=n(4083),d=n(6794),f=n(6617),p=n(7176),A=n(590),g=n(1248),m=function(e){function t(t,n){var r=e.call(this,new a.Size(t.defaultWidth||n&&n.defaultSize.width||d.ShapeDefaultDimension,t.defaultHeight||n&&n.defaultSize.height||d.ShapeDefaultDimension))||this;if(r.properties=t,r.baseDescription=n,r.imageLoader=new A.ImageLoader(r.updateSvgImage.bind(r)),r.defaultText=void 0!==t.defaultText?t.defaultText:n&&n.getDefaultText(),r.defaultImageUrl=t.defaultImageUrl||n&&n.getDefaultImageUrl(),r.title=t.title||n&&n.getTitle()||r.defaultText||"",r.connectionPoints=r.createConnectionPoints(),t.svgUrl){r.svgImage=new f.ImageInfo(t.svgUrl);var i=p.ImageCache.instance.createUnloadedInfoByShapeImageInfo(r.svgImage);r.imageLoader.load(i)}return t.svgToolboxUrl&&(r.svgToolboxImage=new f.ImageInfo(t.svgToolboxUrl),i=p.ImageCache.instance.createUnloadedInfoByShapeImageInfo(r.svgToolboxImage),r.imageLoader.load(i)),r}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return this.properties.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEditText",{get:function(){return!1!==this.properties.allowEditText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEditImage",{get:function(){return this.baseDescription?this.baseDescription.allowEditImage:!0===this.properties.allowEditImage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableChildren",{get:function(){return this.baseDescription&&this.baseDescription.enableChildren},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTemplate",{get:function(){return!!this.properties.createTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.properties.minWidth||this.baseDescription&&this.baseDescription.minWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this.properties.minHeight||this.baseDescription&&this.baseDescription.minHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.properties.maxWidth||this.baseDescription&&this.baseDescription.maxWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxHeight",{get:function(){return this.properties.maxHeight||this.baseDescription&&this.baseDescription.maxHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return this.properties.keepRatioOnAutoSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolboxSize",{get:function(){return this.properties.toolboxWidthToHeightRatio?new a.Size(this.defaultSize.width,this.defaultSize.width/this.properties.toolboxWidthToHeightRatio):this.defaultSize},enumerable:!1,configurable:!0}),t.prototype.getTextAngle=function(){return this.baseDescription&&this.baseDescription.getTextAngle()||e.prototype.getTextAngle.call(this)},t.prototype.getTitle=function(){return void 0!==this.title?this.title:e.prototype.getTitle.call(this)},t.prototype.getDefaultText=function(){return void 0!==this.defaultText?this.defaultText:e.prototype.getDefaultText.call(this)},t.prototype.getDefaultImageUrl=function(){return void 0!==this.defaultImageUrl?this.defaultImageUrl:e.prototype.getDefaultImageUrl.call(this)},t.prototype.allowResizeHorizontally=function(t){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeHorizontally(t):e.prototype.allowResizeHorizontally.call(this,t))},t.prototype.allowResizeVertically=function(t){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeVertically(t):e.prototype.allowResizeVertically.call(this,t))},t.prototype.createConnectionPoints=function(){return this.properties&&this.properties.connectionPoints&&this.properties.connectionPoints.length?this.properties.connectionPoints.map(function(e){if(e&&"number"==typeof e.x&&"number"==typeof e.y){var t="number"==typeof e.side?e.side:l.ConnectionPointSide.Undefined;return new u.ConnectionPoint(e.x,e.y,t)}}).filter(function(e){return e}):e.prototype.createConnectionPoints.call(this)},t.prototype.getConnectionPointSides=function(){for(var e={},t=0;t<this.connectionPoints.length;t++){var n=d.ShapeDescription.getConnectionPointSideByGeometry(this.connectionPoints[t]);e[n]||(e[n]=[]),e[n].push(t)}return e},t.prototype.getConnectionPointIndexForSide=function(e){var t=this.getConnectionPointSides(),n=t[e];if(n){var r=Math.floor(n.length/2);return n.length%2==0&&r--,n[r]}return(n=t[(e+1)%4])?n[0]:(n=t[(e+3)%4])?n[n.length-1]:(n=t[(e+2)%4])?n[0]:e},t.prototype.createImagePrimitives=function(t,n){return this.baseDescription?this.baseDescription.createImagePrimitives(t,n):e.prototype.createImagePrimitives.call(this,t,n)},t.prototype.createShapePrimitives=function(e,t){var n=[],r=e.rectangle,i=r.x,s=r.y,a=r.width,c=r.height;if(this.baseDescription)n=this.baseDescription.createShapePrimitives(e,t);else{var u=t&&this.svgToolboxImage?this.svgToolboxImage:this.svgImage;if(u){var l=i+(this.properties.svgLeft&&!t?this.properties.svgLeft*a:0),h=s+(this.properties.svgTop&&!t?this.properties.svgTop*c:0),d=this.properties.svgWidth&&!t?this.properties.svgWidth*a:a,f=this.properties.svgHeight&&!t?this.properties.svgHeight*c:c;n=n.concat([new o.ImagePrimitive(l,h,d,f,u.exportUrl)])}}var p=t&&this.properties.createToolboxTemplate||this.properties.createTemplate;if(p){var A=i+(this.properties.templateLeft&&!t?this.properties.templateLeft*a:0),m=s+(this.properties.templateTop&&!t?this.properties.templateTop*c:0),y=this.properties.templateWidth&&!t?this.properties.templateWidth*a:a,v=this.properties.templateHeight&&!t?this.properties.templateHeight*c:c,b=this.properties.apiController?this.properties.apiController.createNativeShape(e):e.toNative();n=n.concat([new g.SvgElementPrimitive(A,m,y,v,p,this.properties.destroyTemplate,b)])}return n},t.prototype.createParameters=function(t){return this.baseDescription?this.baseDescription.createParameters(t):e.prototype.createParameters.call(this,t)},t.prototype.normalizeParameters=function(t,n){this.baseDescription?this.baseDescription.normalizeParameters(t,n):e.prototype.normalizeParameters.call(this,t,n)},t.prototype.modifyParameters=function(t,n,r,i){this.baseDescription?this.baseDescription.modifyParameters(t,n,r,i):e.prototype.modifyParameters.call(this,t,n,r,i)},t.prototype.getParameterPoints=function(t){return this.baseDescription?this.baseDescription.getParameterPoints(t):e.prototype.getParameterPoints.call(this,t)},t.prototype.getTextRectangle=function(e){if(this.baseDescription)return this.baseDescription.getTextRectangle(e);var t=e.rectangle,n=t.x,r=t.y,i=t.width,o=t.height;return new s.Rectangle(n+(this.properties.textLeft?this.properties.textLeft*i:0),r+(this.properties.textTop?this.properties.textTop*o:0),this.properties.textWidth?this.properties.textWidth*i:i,this.properties.textHeight?this.properties.textHeight*o:o)},t.prototype.getSizeByText=function(e,t){if(this.baseDescription)return this.baseDescription.getSizeByText(e,t);var n=this.properties.textWidth;n||(n=1);var r=this.properties.textHeight;return r||(r=1),new a.Size(e.width/n,e.height/r)},t.prototype.getImageSize=function(e,t,n){return this.baseDescription?this.baseDescription instanceof h.ShapeWithImageDescription?this.baseDescription.getImageSize(e,t,n):a.Size.empty():new a.Size(this.properties.imageWidth?this.properties.imageWidth*e.width:e.width,this.properties.imageHeight?this.properties.imageHeight*e.height:e.height).nonNegativeSize()},t.prototype.getImagePlacementRectangle=function(e,t){if(this.baseDescription)return this.baseDescription instanceof h.ShapeWithImageDescription?this.baseDescription.getImagePlacementRectangle(e,t):s.Rectangle.fromGeometry(c.Point.zero(),a.Size.empty());var n=e.x,r=e.y,i=e.width,o=e.height;return new s.Rectangle(n+(this.properties.imageLeft&&!t?this.properties.imageLeft*i:0),r+(this.properties.imageTop&&!t?this.properties.imageTop*o:0),this.properties.imageWidth&&!t?this.properties.imageWidth*i:i,this.properties.imageHeight&&!t?this.properties.imageHeight*o:o)},t.prototype.updateSvgImage=function(e){var t=this.svgToolboxImage&&e.imageUrl&&e.imageUrl===this.properties.svgToolboxUrl,n=t?this.svgToolboxImage:this.svgImage;e.base64?n.loadBase64Content(e.base64):n.setUnableToLoadFlag(),t||this.raiseShapeDescriptionChanged(this)},t}(h.ShapeWithImageDescription);t.CustomShapeDescription=m},7552:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorShapeDescription=void 0;var o=n(2259),s=n(6353),a=n(6794),c=function(e){function t(){var t=e.call(this,!1)||this;return t.defaultSize=new s.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return o.ShapeTypes.Connector},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(n(7768).EllipseShapeDescription);t.ConnectorShapeDescription=c},4941:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DataShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(3742),u=n(6794),l=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,c=n.width,u=n.height,l=Math.min(Math.max(0,u/Math.tan(t.slopeAngle)),c),h=r+l,d=o-l;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(h,i),new a.PathPrimitiveLineToCommand(o,i),new a.PathPrimitiveLineToCommand(d,s),new a.PathPrimitiveLineToCommand(r,s),new a.PathPrimitiveClosePathCommand],e.style)]},t.prototype.processConnectionPoint=function(e,n){var r=e.size.height/Math.tan(t.slopeAngle),i=e.getConnectionPointSide(n);i===c.ConnectionPointSide.East?n.x-=r/2:i===c.ConnectionPointSide.West&&(n.x+=r/2)},t.prototype.getTextRectangle=function(e){var n=Math.min(Math.max(0,e.size.height/Math.tan(t.slopeAngle)),e.size.width);return e.rectangle.clone().moveRectangle(n,u.ShapeTextPadding).resize(2*-n,2*-u.ShapeTextPadding)},t.slopeAngle=81*Math.PI/180,t}(o.RectangleShapeDescription);t.DataShapeDescription=l},1034:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DatabaseShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(418),u=function(e){function t(){var t=e.call(this,void 0,!0)||this;return t.defaultSize.width=t.defaultSize.height,t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Database},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,u=n.height,l=n.center.x,h=u*t.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(o,i+h/2),new a.PathPrimitiveLineToCommand(o,s-h/2),new a.PathPrimitiveArcToCommand((o-r)/2,h/2,0,!1,!0,r,s-h/2),new a.PathPrimitiveLineToCommand(r,i+h/2)],e.style),new c.EllipsePrimitive(l,i+h/2,(o-r)/2,h/2,e.style)]},t.prototype.getTextRectangle=function(e){var n=e.rectangle,r=n.height*t.arcWidthRatio;return n.clone().resize(0,-r).clone().moveRectangle(0,r)},t.arcWidthRatio=.2,t}(o.RectangleShapeDescription);t.DatabaseShapeDescription=u},6825:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DecisionShapeDescription=void 0;var o=n(5303),s=n(2259),a=n(6353),c=n(6794),u=function(e){function t(){return e.call(this,new a.Size(c.ShapeDefaultDimension,.75*c.ShapeDefaultDimension),!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Decision},enumerable:!1,configurable:!0}),t}(o.DiamondShapeDescription);t.DecisionShapeDescription=u},9229:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DelayShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(8675),u=n(6794),l=n(6353),h=function(e){function t(){var t=e.call(this,void 0,!0)||this;return t.defaultSize.width=t.defaultSize.height,t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Delay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,o=t.bottom,s=t.center.x;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(n,r),new a.PathPrimitiveLineToCommand(s,r),new a.PathPrimitiveArcToCommand((i-n)/2,(o-r)/2,0,!1,!0,s,o),new a.PathPrimitiveLineToCommand(n,o),new a.PathPrimitiveClosePathCommand],e.style)]},t.prototype.getTextRectangle=function(e){var t=c.GeometryUtils.getMaxRectangleEnscribedInEllipse(e.size);return e.rectangle.clone().moveRectangle(u.ShapeTextPadding,u.ShapeTextPadding).setSize({width:t.width/2+e.size.width/2-u.ShapeTextPadding,height:t.height/2+e.size.height/2-u.ShapeTextPadding}).nonNegativeSize()},t.prototype.getSizeByText=function(e,t){var n=c.GeometryUtils.getEllipseByEnscribedRectangle(e);return new l.Size(n.width/2+e.width/2+u.ShapeTextPadding,n.height/2+e.height/2+u.ShapeTextPadding)},t.arcWidthRatio=.2,t}(o.RectangleShapeDescription);t.DelayShapeDescription=h},2650:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(6794),u=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Display},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,c=n.width,u=n.center.y,l=c*t.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(o-l/2,i),new a.PathPrimitiveLineToCommand(r+l/2,i),new a.PathPrimitiveLineToCommand(r,u),new a.PathPrimitiveLineToCommand(r+l/2,s),new a.PathPrimitiveLineToCommand(o-l/2,s),new a.PathPrimitiveArcToCommand(l/2,(s-i)/2,0,!1,!1,o-l/2,i)],e.style)]},t.prototype.getTextRectangle=function(e){var n=e.size.width*t.arcWidthRatio;return e.rectangle.clone().moveRectangle(n/2,c.ShapeTextPadding).resize(-n,2*-c.ShapeTextPadding).nonNegativeSize()},t.arcWidthRatio=.2,t}(o.RectangleShapeDescription);t.DisplayShapeDescription=u},3525:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(3742),u=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){return this.createDocumentPrimitives(e.rectangle,e.style)},t.prototype.createDocumentPrimitives=function(e,n){var r=e.x,i=e.y,o=e.right,s=e.bottom,c=e.width,u=e.height,l=e.center.x,h=u*t.curveOffsetRatio;return[].concat([new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(r,i),new a.PathPrimitiveLineToCommand(o,i),new a.PathPrimitiveLineToCommand(o,s),new a.PathPrimitiveQuadraticCurveToCommand(o-.25*c,s-2*h,l,s-h),new a.PathPrimitiveQuadraticCurveToCommand(r+.25*c,s+h,r,s-h),new a.PathPrimitiveClosePathCommand],n)])},t.prototype.processConnectionPoint=function(e,n){e.getConnectionPointSide(n)===c.ConnectionPointSide.South&&(n.y-=e.size.height*t.curveOffsetRatio)},t.prototype.getTextRectangle=function(e){var n=e.rectangle;return n.clone().resize(0,-n.height*t.curveOffsetRatio)},t.curveOffsetRatio=.1,t}(o.RectangleShapeDescription);t.DocumentShapeDescription=u},1314:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HardDiskShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(418),u=n(6794),l=n(6353),h=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.HardDisk},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,u=n.width,l=n.center.y,h=u*t.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(o-h/2,i),new a.PathPrimitiveLineToCommand(r+h/2,i),new a.PathPrimitiveArcToCommand(h/2,(s-i)/2,0,!1,!1,r+h/2,s),new a.PathPrimitiveLineToCommand(o-h/2,s)],e.style),new c.EllipsePrimitive(o-h/2,l,h/2,(s-i)/2,e.style)]},t.prototype.getTextRectangle=function(e){var n=e.rectangle,r=n.width*t.arcWidthRatio*1.5;return n.clone().resize(-r-2*u.ShapeTextPadding,-2*u.ShapeTextPadding).moveRectangle(u.ShapeTextPadding,u.ShapeTextPadding).nonNegativeSize()},t.prototype.getSizeByText=function(e,n){return new l.Size((e.width+2*u.ShapeTextPadding)/(1-1.5*t.arcWidthRatio),n.size.height+u.ShapeTextPadding)},t.arcWidthRatio=.2,t}(o.RectangleShapeDescription);t.HardDiskShapeDescription=h},2751:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InternalStorageShapeDescription=t.InternalStorageVerticalEdgeParameterName=t.InternalStorageHorizontalEdgeParameterName=void 0;var o=n(1561),s=n(2259),a=n(6629),c=n(1852),u=n(8900),l=n(7724);t.InternalStorageHorizontalEdgeParameterName="he",t.InternalStorageVerticalEdgeParameterName="ve";var h=function(e){function n(){return e.call(this,void 0,!0)||this}return i(n,e),Object.defineProperty(n.prototype,"key",{get:function(){return s.ShapeTypes.InternalStorage},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.createShapePrimitives=function(n){var r=n.rectangle,i=r.x,o=r.y,s=r.right,a=r.bottom,c=i+n.parameters.get(t.InternalStorageHorizontalEdgeParameterName).value,u=o+n.parameters.get(t.InternalStorageVerticalEdgeParameterName).value;return e.prototype.createShapePrimitives.call(this,n).concat([new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(c,o),new l.PathPrimitiveLineToCommand(c,a),new l.PathPrimitiveMoveToCommand(i,u),new l.PathPrimitiveLineToCommand(s,u)],n.style)])},n.prototype.createParameters=function(e){e.addRangeIfNotExists([new a.ShapeParameter(t.InternalStorageHorizontalEdgeParameterName,.1*this.defaultSize.width),new a.ShapeParameter(t.InternalStorageVerticalEdgeParameterName,.1*this.defaultSize.width)])},n.prototype.normalizeParameters=function(e,r){this.changeParameterValue(r,t.InternalStorageHorizontalEdgeParameterName,function(t){return Math.max(n.minEdge,Math.min(.3*e.size.width,t.value))}),this.changeParameterValue(r,t.InternalStorageVerticalEdgeParameterName,function(t){return Math.max(n.minEdge,Math.min(.3*e.size.height,t.value))})},n.prototype.modifyParameters=function(e,n,r,i){this.changeParameterValue(n,t.InternalStorageHorizontalEdgeParameterName,function(e){return e.value+r}),this.changeParameterValue(n,t.InternalStorageVerticalEdgeParameterName,function(e){return e.value+i}),this.normalizeParameters(e,n)},n.prototype.getParameterPoints=function(e){return[new c.ShapeParameterPoint("c",new u.Point(e.normalizeX(e.position.x+e.parameters.get(t.InternalStorageHorizontalEdgeParameterName).value),e.normalizeY(e.position.y+e.parameters.get(t.InternalStorageVerticalEdgeParameterName).value)))]},n.prototype.getTextRectangle=function(e){var n=e.rectangle,r=e.parameters.get(t.InternalStorageHorizontalEdgeParameterName).value;return n.clone().resize(-r,0).clone().moveRectangle(r,0)},n.minEdge=72,n}(o.RectangleShapeDescription);t.InternalStorageShapeDescription=h},9144:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ManualInputShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(3742),u=n(6794),l=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.ManualInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,c=i+n.height*t.slopeHeightRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(r,c),new a.PathPrimitiveLineToCommand(o,i),new a.PathPrimitiveLineToCommand(o,s),new a.PathPrimitiveLineToCommand(r,s),new a.PathPrimitiveClosePathCommand],e.style)]},t.prototype.processConnectionPoint=function(e,n){e.getConnectionPointSide(n)===c.ConnectionPointSide.North&&(n.y+=t.slopeHeightRatio/2*e.size.height)},t.prototype.getTextRectangle=function(e){var n=e.size.height*t.slopeHeightRatio;return e.rectangle.clone().moveRectangle(u.ShapeTextPadding,n).resize(2*-u.ShapeTextPadding,-n-u.ShapeTextPadding).nonNegativeSize()},t.slopeHeightRatio=.1,t}(o.RectangleShapeDescription);t.ManualInputShapeDescription=l},1643:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ManualOperationShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(3742),u=n(6794),l=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.ManualOperation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=e.rectangle,i=r.x,o=r.y,s=r.right,c=r.bottom,u=r.width,l=r.height,h=Math.min(Math.max(0,l/Math.tan(t.slopeAngle)),u),d=n.center.x,f=Math.min(i+h,d),p=Math.max(s-h,d);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(i,o),new a.PathPrimitiveLineToCommand(s,o),new a.PathPrimitiveLineToCommand(p,c),new a.PathPrimitiveLineToCommand(f,c),new a.PathPrimitiveClosePathCommand],e.style)]},t.prototype.processConnectionPoint=function(e,n){var r=e.size.height/Math.tan(t.slopeAngle),i=e.getConnectionPointSide(n);i===c.ConnectionPointSide.East?n.x-=r/2:i===c.ConnectionPointSide.West&&(n.x+=r/2)},t.prototype.getTextRectangle=function(e){var n=Math.min(Math.max(0,e.size.height/Math.tan(t.slopeAngle)),e.size.width);return e.rectangle.clone().moveRectangle(n,u.ShapeTextPadding).resize(2*-n,2*-u.ShapeTextPadding).nonNegativeSize()},t.slopeAngle=81*Math.PI/180,t}(o.RectangleShapeDescription);t.ManualOperationShapeDescription=l},3046:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MergeShapeDescription=void 0;var o=n(2259),s=n(8011),a=n(2117),c=n(7724),u=n(6794),l=n(6353),h=function(e){function t(){return e.call(this,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return o.ShapeTypes.Merge},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,o=t.bottom;return[new c.PathPrimitive([new c.PathPrimitiveMoveToCommand(n,r),new c.PathPrimitiveLineToCommand(i,r),new c.PathPrimitiveLineToCommand(t.center.x,o),new c.PathPrimitiveClosePathCommand],e.style)]},t.prototype.calculateHeight=function(e){return.75*e},t.prototype.getTextRectangle=function(e){return s.Rectangle.fromGeometry(e.position.clone().offset(e.size.width/4,u.ShapeTextPadding),new l.Size(e.size.width/2,e.size.height/2-u.ShapeTextPadding))},t.prototype.getSizeByText=function(e,t){return new l.Size(2*e.width,2*(e.height+u.ShapeTextPadding))},t}(a.TriangleShapeDescription);t.MergeShapeDescription=h},2850:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleDocumentsShapeDescription=void 0;var o=n(2259),s=n(7724),a=n(3525),c=n(4593),u=n(3500),l=n(6794),h=n(6353),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return o.ShapeTypes.MultipleDocuments},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e,n){var r=e.rectangle,i=e.rectangle,o=i.width,s=i.height,a=n?t.documentsOffsetRatioForToolbox:t.documentsOffsetRatio,c=Math.ceil(o*a),l=Math.ceil(s*a),h=(r=r.clone().inflate(-c,-l).clone().moveRectangle(-c,-l)).clone().moveRectangle(c,l),d=h.clone().moveRectangle(c,l),f=u.RenderUtils.generateSvgElementId("clipRect");return[].concat(this.createDocumentPrimitives(r,e.style,f+"1",h)).concat(this.createDocumentPrimitives(h,e.style,f+"2",d)).concat(this.createDocumentPrimitives(d,e.style))},t.prototype.createDocumentPrimitives=function(e,t,n,r){var i=e.x,o=e.y,u=e.right,l=e.bottom,h=e.width,d=e.height,f=e.center.x,p=d*a.DocumentShapeDescription.curveOffsetRatio,A=[];return A=A.concat([new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(i,o),new s.PathPrimitiveLineToCommand(u,o),new s.PathPrimitiveLineToCommand(u,l),new s.PathPrimitiveQuadraticCurveToCommand(u-.25*h,l-2*p,f,l-p),new s.PathPrimitiveQuadraticCurveToCommand(i+.25*h,l+p,i,l-p),new s.PathPrimitiveClosePathCommand],t,void 0,r&&n)]),r&&n&&(A=A.concat([new c.ClipPathPrimitive(n,[new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(i-t.strokeWidth,o-t.strokeWidth),new s.PathPrimitiveLineToCommand(u+t.strokeWidth,o-t.strokeWidth),new s.PathPrimitiveLineToCommand(u+t.strokeWidth,r.y),new s.PathPrimitiveLineToCommand(r.x,r.y),new s.PathPrimitiveLineToCommand(r.x,l+t.strokeWidth),new s.PathPrimitiveLineToCommand(i-t.strokeWidth,l+t.strokeWidth),new s.PathPrimitiveClosePathCommand])])])),A},t.prototype.getTextRectangle=function(e){var n=e.rectangle,r=n.width*t.documentsOffsetRatio,i=n.height*t.documentsOffsetRatio;return(n=n.clone().inflate(-r,-i).clone().moveRectangle(-r,-i)).clone().moveRectangle(2*r+l.ShapeTextPadding,2*i+l.ShapeTextPadding).clone().resize(-2*l.ShapeTextPadding,-n.height*a.DocumentShapeDescription.curveOffsetRatio-2*l.ShapeTextPadding)},t.prototype.getSizeByText=function(e,n){return new h.Size((e.width+2*l.ShapeTextPadding)/(1-2*t.documentsOffsetRatio),(e.height+2*l.ShapeTextPadding)/((1-a.DocumentShapeDescription.curveOffsetRatio)*(1-t.documentsOffsetRatio))).nonNegativeSize()},t.documentsOffsetRatio=.1,t.documentsOffsetRatioForToolbox=.16,t}(a.DocumentShapeDescription);t.MultipleDocumentsShapeDescription=d},2019:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OrShapeDescription=void 0;var o=n(2259),s=n(6353),a=n(6794),c=n(7768),u=n(7724),l=function(e){function t(){var t=e.call(this,!0)||this;return t.defaultSize=new s.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return o.ShapeTypes.Or},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(t){var n=t.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,a=n.center,c=a.x,l=a.y;return[].concat(e.prototype.createShapePrimitives.call(this,t)).concat([new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(c,i),new u.PathPrimitiveLineToCommand(c,s),new u.PathPrimitiveMoveToCommand(r,l),new u.PathPrimitiveLineToCommand(o,l)],t.style)])},t}(c.EllipseShapeDescription);t.OrShapeDescription=l},8110:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PaperTapeShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(3742),u=n(6794),l=n(6353),h=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.PaperTape},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){return this.createDocumentPrimitives(e.rectangle,e.style)},t.prototype.createDocumentPrimitives=function(e,n){var r=e.x,i=e.y,o=e.right,s=e.bottom,c=e.width,u=e.height,l=e.center.x,h=u*t.curveOffsetRatio;return[].concat([new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(r,i),new a.PathPrimitiveQuadraticCurveToCommand(r+.25*c,i+2*h,l,i+h),new a.PathPrimitiveQuadraticCurveToCommand(o-.25*c,i-h,o,i+h),new a.PathPrimitiveLineToCommand(o,s),new a.PathPrimitiveQuadraticCurveToCommand(o-.25*c,s-2*h,l,s-h),new a.PathPrimitiveQuadraticCurveToCommand(r+.25*c,s+h,r,s-h),new a.PathPrimitiveClosePathCommand],n)])},t.prototype.processConnectionPoint=function(e,n){var r=e.getConnectionPointSide(n);r===c.ConnectionPointSide.North&&(n.y+=e.size.height*t.curveOffsetRatio),r===c.ConnectionPointSide.South&&(n.y-=e.size.height*t.curveOffsetRatio)},t.prototype.getTextRectangle=function(e){var n=e.rectangle;return n.clone().inflate(u.ShapeTextPadding,-n.height*t.curveOffsetRatio)},t.prototype.getSizeByText=function(e,n){return new l.Size(e.width+2*u.ShapeTextPadding,e.height/(1-2*t.curveOffsetRatio))},t.curveOffsetRatio=.1,t}(o.RectangleShapeDescription);t.PaperTapeShapeDescription=h},6508:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PredefinedProcessShapeDescription=t.PredefinedProcessEdgeParameterName=void 0;var o=n(1561),s=n(2259),a=n(6629),c=n(1852),u=n(8900),l=n(7724);t.PredefinedProcessEdgeParameterName="e";var h=function(e){function n(){return e.call(this,void 0,!0)||this}return i(n,e),Object.defineProperty(n.prototype,"key",{get:function(){return s.ShapeTypes.PredefinedProcess},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.createShapePrimitives=function(n){var r=n.rectangle,i=r.x,o=r.y,s=r.right,a=r.bottom,c=i+n.parameters.get(t.PredefinedProcessEdgeParameterName).value,u=s-n.parameters.get(t.PredefinedProcessEdgeParameterName).value;return e.prototype.createShapePrimitives.call(this,n).concat([new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(c,o),new l.PathPrimitiveLineToCommand(c,a),new l.PathPrimitiveMoveToCommand(u,o),new l.PathPrimitiveLineToCommand(u,a)],n.style)])},n.prototype.createParameters=function(e){e.addIfNotExists(new a.ShapeParameter(t.PredefinedProcessEdgeParameterName,.1*this.defaultSize.width))},n.prototype.normalizeParameters=function(e,r){this.changeParameterValue(r,t.PredefinedProcessEdgeParameterName,function(t){return Math.max(n.minEdge,Math.min(.3*e.size.width,t.value))})},n.prototype.modifyParameters=function(e,n,r,i){this.changeParameterValue(n,t.PredefinedProcessEdgeParameterName,function(e){return e.value+r}),this.normalizeParameters(e,n)},n.prototype.getParameterPoints=function(e){return[new c.ShapeParameterPoint("c",new u.Point(e.normalizeX(e.position.x+e.parameters.get(t.PredefinedProcessEdgeParameterName).value),e.position.y))]},n.prototype.getTextRectangle=function(e){var n=e.rectangle,r=e.parameters.get(t.PredefinedProcessEdgeParameterName).value;return n.clone().resize(-2*r,0).clone().moveRectangle(r,0)},n.minEdge=72,n}(o.RectangleShapeDescription);t.PredefinedProcessShapeDescription=h},4112:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PreparationShapeDescription=void 0;var o=n(2259),s=n(6353),a=n(6794),c=function(e){function t(){var t=e.call(this,!0)||this;return t.defaultSize=new s.Size(a.ShapeDefaultDimension,.75*a.ShapeDefaultDimension),t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return o.ShapeTypes.Preparation},enumerable:!1,configurable:!0}),t}(n(2953).HexagonShapeDescription);t.PreparationShapeDescription=c},5331:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessShapeDescription=void 0;var o=n(1561),s=n(2259),a=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Process},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(o.RectangleShapeDescription);t.ProcessShapeDescription=a},4810:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StoredDataShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(6794),u=n(6353),l=function(e){function t(){return e.call(this,void 0,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.StoredData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,c=n.width*t.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(o,i),new a.PathPrimitiveLineToCommand(r+c/2,i),new a.PathPrimitiveArcToCommand(c/2,(s-i)/2,0,!1,!1,r+c/2,s),new a.PathPrimitiveLineToCommand(o,s),new a.PathPrimitiveArcToCommand(c/2,(s-i)/2,0,!1,!0,o,i)],e.style)]},t.prototype.getTextRectangle=function(e){var n=e.rectangle,r=n.width*t.arcWidthRatio/2;return n.clone().resize(-r-2*c.ShapeTextPadding,-2*c.ShapeTextPadding).moveRectangle(c.ShapeTextPadding,c.ShapeTextPadding).nonNegativeSize()},t.prototype.getSizeByText=function(e,n){return new u.Size((e.width+2*c.ShapeTextPadding)/(1-t.arcWidthRatio/2),e.height+2*c.ShapeTextPadding)},t.arcWidthRatio=.2,t}(o.RectangleShapeDescription);t.StoredDataShapeDescription=l},6182:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SummingJunctionShapeDescription=void 0;var o=n(2259),s=n(6353),a=n(6794),c=n(7768),u=n(7724),l=function(e){function t(){var t=e.call(this,!0)||this;return t.defaultSize=new s.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return o.ShapeTypes.SummingJunction},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(t){var n=t.rectangle,r=n.width,i=n.height,o=n.center,s=o.x,a=o.y,c=r/2,l=i/2,h=Math.atan(l/c),d=1/Math.sqrt(1/Math.pow(c,2)+Math.pow(Math.tan(h),2)/Math.pow(l,2)),f=d*Math.tan(h);return[].concat(e.prototype.createShapePrimitives.call(this,t)).concat([new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(s-d,a-f),new u.PathPrimitiveLineToCommand(s+d,a+f),new u.PathPrimitiveMoveToCommand(s-d,a+f),new u.PathPrimitiveLineToCommand(s+d,a-f)],t.style)])},t}(c.EllipseShapeDescription);t.SummingJunctionShapeDescription=l},6242:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TerminatorShapeDescription=void 0;var o=n(1561),s=n(2259),a=n(7724),c=n(6353),u=n(6794),l=n(8011),h=n(8675),d=function(e){function t(){return e.call(this,new c.Size(u.ShapeDefaultDimension,.5*u.ShapeDefaultDimension),!0)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Terminator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,c=n.width,u=n.center.y,l=r+c*t.curveWidthRatio,h=r+c*(1-t.curveWidthRatio);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(l,i),new a.PathPrimitiveLineToCommand(h,i),new a.PathPrimitiveQuadraticCurveToCommand(o,i,o,u),new a.PathPrimitiveQuadraticCurveToCommand(o,s,h,s),new a.PathPrimitiveLineToCommand(l,s),new a.PathPrimitiveQuadraticCurveToCommand(r,s,r,u),new a.PathPrimitiveQuadraticCurveToCommand(r,i,l,i),new a.PathPrimitiveClosePathCommand],e.style)]},t.prototype.getTextRectangle=function(e){var t=h.GeometryUtils.getMaxRectangleEnscribedInEllipse(e.size);return l.Rectangle.fromGeometry(e.position.clone().offset((e.size.width-t.width)/2,(e.size.height-t.height)/2),t)},t.prototype.getSizeByText=function(e,t){return h.GeometryUtils.getEllipseByEnscribedRectangle(e)},t.curveWidthRatio=.3,t}(o.RectangleShapeDescription);t.TerminatorShapeDescription=d},4958:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowDownShapeDescription=void 0;var o=n(7724),s=n(1852),a=n(8900),c=n(731),u=n(2259),l=n(3742),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return u.ShapeTypes.ArrowDown},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,s=t.bottom,a=t.width,u=t.height,l=t.center.x,h=(a-e.parameters.get(c.ArrowVerticalLineWidthParameterName).value)/2,d=u-e.parameters.get(c.ArrowVerticalTriangleHeightParameterName).value,f=e.normalizeX(n+h),p=e.normalizeY(r+d),A=e.normalizeX(i-h);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(f,r),new o.PathPrimitiveLineToCommand(A,r),new o.PathPrimitiveLineToCommand(A,p),new o.PathPrimitiveLineToCommand(i,p),new o.PathPrimitiveLineToCommand(l,s),new o.PathPrimitiveLineToCommand(n,p),new o.PathPrimitiveLineToCommand(f,p),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.modifyParameters=function(e,t,n,r){this.changeParameterValue(t,c.ArrowVerticalTriangleHeightParameterName,function(e){return e.value-r}),this.changeParameterValue(t,c.ArrowVerticalLineWidthParameterName,function(e){return e.value-2*n}),this.normalizeParameters(e,t)},t.prototype.getParameterPoints=function(e){return[new s.ShapeParameterPoint("c",new a.Point(e.normalizeX(e.position.x+(e.size.width-e.parameters.get(c.ArrowVerticalLineWidthParameterName).value)/2),e.normalizeY(e.position.y+e.size.height-e.parameters.get(c.ArrowVerticalTriangleHeightParameterName).value)))]},t.prototype.processConnectionPoint=function(t,n){var r=t.parameters.get(c.ArrowVerticalTriangleHeightParameterName).value;if(n.y>t.position.y+t.size.height-r){var i=t.size.width/2/r,o=(n.y-(t.position.y+t.size.height-r))*i,s=t.getConnectionPointSide(n);s===l.ConnectionPointSide.East?n.x-=o:s===l.ConnectionPointSide.West&&(n.x+=o)}else e.prototype.processConnectionPoint.call(this,t,n)},t}(c.ArrowVerticalShapeDescription);t.ArrowDownShapeDescription=h},4493:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowHorizontalShapeDescription=t.ArrowVerticalLineHeightParameterName=t.ArrowVerticalTriangleWidthParameterName=void 0;var o=n(6794),s=n(6353),a=n(6629),c=n(3742);t.ArrowVerticalTriangleWidthParameterName="tw",t.ArrowVerticalLineHeightParameterName="lh";var u=function(e){function n(){return e.call(this,new s.Size(o.ShapeDefaultDimension,.375*o.ShapeDefaultDimension))||this}return i(n,e),Object.defineProperty(n.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.createParameters=function(e){e.addRangeIfNotExists([new a.ShapeParameter(t.ArrowVerticalTriangleWidthParameterName,Math.sqrt(Math.pow(this.defaultSize.height,2)-Math.pow(this.defaultSize.height/2,2))),new a.ShapeParameter(t.ArrowVerticalLineHeightParameterName,this.defaultSize.height/3)])},n.prototype.normalizeParameters=function(e,n){this.changeParameterValue(n,t.ArrowVerticalTriangleWidthParameterName,function(t){return Math.max(0,Math.min(e.size.width,t.value))}),this.changeParameterValue(n,t.ArrowVerticalLineHeightParameterName,function(t){return Math.max(0,Math.min(e.size.height,t.value))})},n.prototype.processConnectionPoint=function(e,n){var r=(e.size.height-e.parameters.get(t.ArrowVerticalLineHeightParameterName).value)/2,i=e.getConnectionPointSide(n);i===c.ConnectionPointSide.North?n.y+=r:i===c.ConnectionPointSide.South&&(n.y-=r)},n.prototype.getTextRectangle=function(e){return e.rectangle.clone().inflate(-o.ShapeTextPadding,-o.ShapeTextPadding)},n.prototype.getSizeByText=function(e,t){return e.clone().offset(2*o.ShapeTextPadding,2*o.ShapeTextPadding)},n}(o.ShapeDescription);t.ArrowHorizontalShapeDescription=u},8800:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftRightShapeDescription=void 0;var o=n(7724),s=n(4493),a=n(1852),c=n(8900),u=n(2259),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return u.ShapeTypes.ArrowLeftRight},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,a=t.bottom,c=t.height,u=t.center.y,l=e.parameters.get(s.ArrowVerticalTriangleWidthParameterName).value,h=(c-e.parameters.get(s.ArrowVerticalLineHeightParameterName).value)/2,d=e.normalizeX(n+l),f=e.normalizeY(r+h),p=e.normalizeX(i-l),A=e.normalizeY(a-h);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(n,u),new o.PathPrimitiveLineToCommand(d,r),new o.PathPrimitiveLineToCommand(d,f),new o.PathPrimitiveLineToCommand(p,f),new o.PathPrimitiveLineToCommand(p,r),new o.PathPrimitiveLineToCommand(i,u),new o.PathPrimitiveLineToCommand(p,a),new o.PathPrimitiveLineToCommand(p,A),new o.PathPrimitiveLineToCommand(d,A),new o.PathPrimitiveLineToCommand(d,a),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.normalizeParameters=function(e,t){this.changeParameterValue(t,s.ArrowVerticalTriangleWidthParameterName,function(t){return Math.max(0,Math.min(e.size.width/2-2*e.strokeWidth,t.value))}),this.changeParameterValue(t,s.ArrowVerticalLineHeightParameterName,function(t){return Math.max(0,Math.min(e.size.height,t.value))})},t.prototype.modifyParameters=function(e,t,n,r){this.changeParameterValue(t,s.ArrowVerticalTriangleWidthParameterName,function(e){return e.value+n}),this.changeParameterValue(t,s.ArrowVerticalLineHeightParameterName,function(e){return e.value-2*r}),this.normalizeParameters(e,t)},t.prototype.getParameterPoints=function(e){return[new a.ShapeParameterPoint("c",new c.Point(e.normalizeX(e.position.x+e.parameters.get(s.ArrowVerticalTriangleWidthParameterName).value),e.normalizeY(e.position.y+(e.size.height-e.parameters.get(s.ArrowVerticalLineHeightParameterName).value)/2)))]},t}(s.ArrowHorizontalShapeDescription);t.ArrowLeftRightShapeDescription=l},6023:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftShapeDescription=void 0;var o=n(7724),s=n(4493),a=n(1852),c=n(8900),u=n(2259),l=n(3742),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return u.ShapeTypes.ArrowLeft},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,a=t.bottom,c=t.height,u=t.center.y,l=e.parameters.get(s.ArrowVerticalTriangleWidthParameterName).value,h=(c-e.parameters.get(s.ArrowVerticalLineHeightParameterName).value)/2,d=e.normalizeX(n+l),f=e.normalizeY(r+h),p=e.normalizeY(a-h);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(n,u),new o.PathPrimitiveLineToCommand(d,r),new o.PathPrimitiveLineToCommand(d,f),new o.PathPrimitiveLineToCommand(i,f),new o.PathPrimitiveLineToCommand(i,p),new o.PathPrimitiveLineToCommand(d,p),new o.PathPrimitiveLineToCommand(d,a),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.modifyParameters=function(e,t,n,r){this.changeParameterValue(t,s.ArrowVerticalTriangleWidthParameterName,function(e){return e.value+n}),this.changeParameterValue(t,s.ArrowVerticalLineHeightParameterName,function(e){return e.value-2*r}),this.normalizeParameters(e,t)},t.prototype.getParameterPoints=function(e){return[new a.ShapeParameterPoint("c",new c.Point(e.normalizeX(e.position.x+e.parameters.get(s.ArrowVerticalTriangleWidthParameterName).value),e.normalizeY(e.position.y+(e.size.height-e.parameters.get(s.ArrowVerticalLineHeightParameterName).value)/2)))]},t.prototype.processConnectionPoint=function(t,n){var r=t.parameters.get(s.ArrowVerticalTriangleWidthParameterName).value;if(n.x<t.position.x+r){var i=t.size.height/2/r,o=(t.position.x+r-n.x)*i,a=t.getConnectionPointSide(n);a===l.ConnectionPointSide.North?n.y+=o:a===l.ConnectionPointSide.South&&(n.y-=o)}else e.prototype.processConnectionPoint.call(this,t,n)},t}(s.ArrowHorizontalShapeDescription);t.ArrowLeftShapeDescription=h},6599:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRightShapeDescription=void 0;var o=n(7724),s=n(4493),a=n(1852),c=n(8900),u=n(2259),l=n(3742),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return u.ShapeTypes.ArrowRight},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,a=t.bottom,c=t.width,u=t.height,l=t.center.y,h=c-e.parameters.get(s.ArrowVerticalTriangleWidthParameterName).value,d=(u-e.parameters.get(s.ArrowVerticalLineHeightParameterName).value)/2,f=e.normalizeX(n+h),p=e.normalizeY(r+d),A=e.normalizeY(a-d);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(n,p),new o.PathPrimitiveLineToCommand(f,p),new o.PathPrimitiveLineToCommand(f,r),new o.PathPrimitiveLineToCommand(i,l),new o.PathPrimitiveLineToCommand(f,a),new o.PathPrimitiveLineToCommand(f,A),new o.PathPrimitiveLineToCommand(n,A),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.modifyParameters=function(e,t,n,r){this.changeParameterValue(t,s.ArrowVerticalTriangleWidthParameterName,function(e){return e.value-n}),this.changeParameterValue(t,s.ArrowVerticalLineHeightParameterName,function(e){return e.value-2*r}),this.normalizeParameters(e,t)},t.prototype.getParameterPoints=function(e){return[new a.ShapeParameterPoint("c",new c.Point(e.normalizeX(e.position.x+e.size.width-e.parameters.get(s.ArrowVerticalTriangleWidthParameterName).value),e.normalizeY(e.position.y+(e.size.height-e.parameters.get(s.ArrowVerticalLineHeightParameterName).value)/2)))]},t.prototype.processConnectionPoint=function(t,n){var r=t.parameters.get(s.ArrowVerticalTriangleWidthParameterName).value;if(n.x>t.position.x+t.size.width-r){var i=t.size.height/2/r,o=(n.x-(t.position.x+t.size.width-r))*i,a=t.getConnectionPointSide(n);a===l.ConnectionPointSide.North?n.y+=o:a===l.ConnectionPointSide.South&&(n.y-=o)}else e.prototype.processConnectionPoint.call(this,t,n)},t}(s.ArrowHorizontalShapeDescription);t.ArrowRightShapeDescription=h},9089:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowUpDownShapeDescription=void 0;var o=n(7724),s=n(1852),a=n(8900),c=n(731),u=n(2259),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return u.ShapeTypes.ArrowUpDown},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,s=t.bottom,a=t.width,u=t.center.x,l=(a-e.parameters.get(c.ArrowVerticalLineWidthParameterName).value)/2,h=e.parameters.get(c.ArrowVerticalTriangleHeightParameterName).value,d=e.normalizeX(n+l),f=e.normalizeY(r+h),p=e.normalizeX(i-l),A=e.normalizeY(s-h);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(u,r),new o.PathPrimitiveLineToCommand(i,f),new o.PathPrimitiveLineToCommand(p,f),new o.PathPrimitiveLineToCommand(p,A),new o.PathPrimitiveLineToCommand(i,A),new o.PathPrimitiveLineToCommand(u,s),new o.PathPrimitiveLineToCommand(n,A),new o.PathPrimitiveLineToCommand(d,A),new o.PathPrimitiveLineToCommand(d,f),new o.PathPrimitiveLineToCommand(n,f),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.normalizeParameters=function(e,t){this.changeParameterValue(t,c.ArrowVerticalTriangleHeightParameterName,function(t){return Math.max(0,Math.min(e.size.height/2-2*e.strokeWidth,t.value))}),this.changeParameterValue(t,c.ArrowVerticalLineWidthParameterName,function(t){return Math.max(0,Math.min(e.size.width,t.value))})},t.prototype.modifyParameters=function(e,t,n,r){this.changeParameterValue(t,c.ArrowVerticalTriangleHeightParameterName,function(e){return e.value+r}),this.changeParameterValue(t,c.ArrowVerticalLineWidthParameterName,function(e){return e.value-2*n}),this.normalizeParameters(e,t)},t.prototype.getParameterPoints=function(e){return[new s.ShapeParameterPoint("c",new a.Point(e.normalizeX(e.position.x+(e.size.width-e.parameters.get(c.ArrowVerticalLineWidthParameterName).value)/2),e.normalizeY(e.position.y+e.parameters.get(c.ArrowVerticalTriangleHeightParameterName).value)))]},t}(c.ArrowVerticalShapeDescription);t.ArrowUpDownShapeDescription=l},8327:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowUpShapeDescription=void 0;var o=n(7724),s=n(1852),a=n(8900),c=n(731),u=n(2259),l=n(3742),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return u.ShapeTypes.ArrowUp},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,s=t.bottom,a=t.width,u=t.center.x,l=(a-e.parameters.get(c.ArrowVerticalLineWidthParameterName).value)/2,h=e.parameters.get(c.ArrowVerticalTriangleHeightParameterName).value,d=e.normalizeX(n+l),f=e.normalizeY(r+h),p=e.normalizeX(i-l);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(u,r),new o.PathPrimitiveLineToCommand(i,f),new o.PathPrimitiveLineToCommand(p,f),new o.PathPrimitiveLineToCommand(p,s),new o.PathPrimitiveLineToCommand(d,s),new o.PathPrimitiveLineToCommand(d,f),new o.PathPrimitiveLineToCommand(n,f),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.modifyParameters=function(e,t,n,r){this.changeParameterValue(t,c.ArrowVerticalTriangleHeightParameterName,function(e){return e.value+r}),this.changeParameterValue(t,c.ArrowVerticalLineWidthParameterName,function(e){return e.value-2*n}),this.normalizeParameters(e,t)},t.prototype.getParameterPoints=function(e){return[new s.ShapeParameterPoint("c",new a.Point(e.normalizeX(e.position.x+(e.size.width-e.parameters.get(c.ArrowVerticalLineWidthParameterName).value)/2),e.normalizeY(e.position.y+e.parameters.get(c.ArrowVerticalTriangleHeightParameterName).value)))]},t.prototype.processConnectionPoint=function(t,n){var r=t.parameters.get(c.ArrowVerticalTriangleHeightParameterName).value;if(n.y<t.position.y+r){var i=t.size.width/2/r,o=(t.position.y+r-n.y)*i,s=t.getConnectionPointSide(n);s===l.ConnectionPointSide.East?n.x-=o:s===l.ConnectionPointSide.West&&(n.x+=o)}else e.prototype.processConnectionPoint.call(this,t,n)},t}(c.ArrowVerticalShapeDescription);t.ArrowUpShapeDescription=h},731:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowVerticalShapeDescription=t.ArrowVerticalLineWidthParameterName=t.ArrowVerticalTriangleHeightParameterName=void 0;var o=n(6794),s=n(6353),a=n(6629),c=n(3742);t.ArrowVerticalTriangleHeightParameterName="th",t.ArrowVerticalLineWidthParameterName="lw";var u=function(e){function n(){return e.call(this,new s.Size(.375*o.ShapeDefaultDimension,o.ShapeDefaultDimension))||this}return i(n,e),Object.defineProperty(n.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.createParameters=function(e){e.addRangeIfNotExists([new a.ShapeParameter(t.ArrowVerticalTriangleHeightParameterName,Math.sqrt(Math.pow(this.defaultSize.width,2)-Math.pow(this.defaultSize.width/2,2))),new a.ShapeParameter(t.ArrowVerticalLineWidthParameterName,this.defaultSize.width/3)])},n.prototype.normalizeParameters=function(e,n){this.changeParameterValue(n,t.ArrowVerticalTriangleHeightParameterName,function(t){return Math.max(0,Math.min(e.size.height,t.value))}),this.changeParameterValue(n,t.ArrowVerticalLineWidthParameterName,function(t){return Math.max(0,Math.min(e.size.width,t.value))})},n.prototype.processConnectionPoint=function(e,n){var r=(e.size.width-e.parameters.get(t.ArrowVerticalLineWidthParameterName).value)/2,i=e.getConnectionPointSide(n);i===c.ConnectionPointSide.East?n.x-=r:i===c.ConnectionPointSide.West&&(n.x+=r)},n.prototype.getTextRectangle=function(e){return e.rectangle.clone().inflate(-o.ShapeTextPadding,-o.ShapeTextPadding)},n.prototype.getSizeByText=function(e,t){return e.clone().offset(2*o.ShapeTextPadding,2*o.ShapeTextPadding)},n}(o.ShapeDescription);t.ArrowVerticalShapeDescription=u},2281:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CrossShapeDescription=t.CrossVerticalWidthParameterName=t.CrossHorizontalWidthParameterName=void 0;var o=n(6794),s=n(8900),a=n(6629),c=n(1852),u=n(7724),l=n(2259);t.CrossHorizontalWidthParameterName="chw",t.CrossVerticalWidthParameterName="cvw";var h=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),Object.defineProperty(n.prototype,"key",{get:function(){return l.ShapeTypes.Cross},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,o=n.right,s=n.bottom,a=n.width,c=n.height,l=(a-e.parameters.get(t.CrossHorizontalWidthParameterName).value)/2,h=(c-e.parameters.get(t.CrossVerticalWidthParameterName).value)/2,d=e.normalizeX(r+l),f=e.normalizeY(i+h),p=e.normalizeX(o-l),A=e.normalizeY(s-h);return[new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(r,f),new u.PathPrimitiveLineToCommand(d,f),new u.PathPrimitiveLineToCommand(d,i),new u.PathPrimitiveLineToCommand(p,i),new u.PathPrimitiveLineToCommand(p,f),new u.PathPrimitiveLineToCommand(o,f),new u.PathPrimitiveLineToCommand(o,A),new u.PathPrimitiveLineToCommand(p,A),new u.PathPrimitiveLineToCommand(p,s),new u.PathPrimitiveLineToCommand(d,s),new u.PathPrimitiveLineToCommand(d,A),new u.PathPrimitiveLineToCommand(r,A),new u.PathPrimitiveClosePathCommand],e.style)]},n.prototype.createParameters=function(e){e.addRangeIfNotExists([new a.ShapeParameter(t.CrossHorizontalWidthParameterName,.2*this.defaultSize.width),new a.ShapeParameter(t.CrossVerticalWidthParameterName,.2*this.defaultSize.height)])},n.prototype.normalizeParameters=function(e,n){this.changeParameterValue(n,t.CrossHorizontalWidthParameterName,function(t){return Math.max(0,Math.min(e.size.width,t.value))}),this.changeParameterValue(n,t.CrossVerticalWidthParameterName,function(t){return Math.max(0,Math.min(e.size.height,t.value))})},n.prototype.modifyParameters=function(e,n,r,i){this.changeParameterValue(n,t.CrossHorizontalWidthParameterName,function(e){return e.value-2*r}),this.changeParameterValue(n,t.CrossVerticalWidthParameterName,function(e){return e.value-2*i}),this.normalizeParameters(e,n)},n.prototype.getParameterPoints=function(e){return[new c.ShapeParameterPoint("c",new s.Point(e.normalizeX(e.position.x+(e.size.width-e.parameters.get(t.CrossHorizontalWidthParameterName).value)/2),e.normalizeY(e.position.y+(e.size.height-e.parameters.get(t.CrossVerticalWidthParameterName).value)/2)))]},n.prototype.getTextRectangle=function(e){return e.rectangle.clone().inflate(-o.ShapeTextPadding,-o.ShapeTextPadding)},n.prototype.getSizeByText=function(e,t){return e.clone().offset(2*o.ShapeTextPadding,2*o.ShapeTextPadding)},n}(o.ShapeDescription);t.CrossShapeDescription=h},5303:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DiamondShapeDescription=void 0;var o=n(6794),s=n(7724),a=n(2259),c=function(e){function t(t,n){return void 0===t&&(t=o.ShapeDefaultSize.clone()),e.call(this,t,n)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return a.ShapeTypes.Diamond},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,o=t.bottom,a=t.center,c=a.x,u=a.y;return[new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(c,r),new s.PathPrimitiveLineToCommand(i,u),new s.PathPrimitiveLineToCommand(c,o),new s.PathPrimitiveLineToCommand(n,u),new s.PathPrimitiveClosePathCommand],e.style)]},t.prototype.getTextRectangle=function(e){return e.rectangle.clone().inflate(-e.size.width/4,-e.size.height/4)},t.prototype.getSizeByText=function(e,t){return e.clone().multiply(2,2)},t}(o.ShapeDescription);t.DiamondShapeDescription=c},7768:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EllipseShapeDescription=void 0;var o=n(6794),s=n(6353),a=n(418),c=n(2259),u=n(8675),l=n(8011),h=function(e){function t(t){return e.call(this,new s.Size(o.ShapeDefaultDimension,.75*o.ShapeDefaultDimension),t)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return c.ShapeTypes.Ellipse},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTextRectangle=function(e){var t=u.GeometryUtils.getMaxRectangleEnscribedInEllipse(e.size);return l.Rectangle.fromGeometry(e.position.clone().offset((e.size.width-t.width)/2,(e.size.height-t.height)/2),t)},t.prototype.getSizeByText=function(e,t){return u.GeometryUtils.getEllipseByEnscribedRectangle(e)},t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.width,r=t.height,i=t.center,o=i.x,s=i.y;return[new a.EllipsePrimitive(o,s,n/2,r/2,e.style)]},t}(o.ShapeDescription);t.EllipseShapeDescription=h},8628:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HeartShapeDescription=void 0;var o=n(6794),s=n(7724),a=n(2259),c=n(7228),u=n(3742),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return a.ShapeTypes.Heart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createConnectionPoints=function(){return[new c.ConnectionPoint(.5,.15,u.ConnectionPointSide.North),new c.ConnectionPoint(1,.25,u.ConnectionPointSide.East),new c.ConnectionPoint(.5,1,u.ConnectionPointSide.South),new c.ConnectionPoint(0,.25,u.ConnectionPointSide.West)]},t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,o=t.bottom,a=t.width,c=t.height;return[new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(i-.25*a,r),new s.PathPrimitiveCubicCurveToCommand(i-.15*a,r,i,r+.1*c,i,r+.25*c),new s.PathPrimitiveCubicCurveToCommand(i,r+.3*c,i-.02*a,r+.35*c,i-.05*a,r+.4*c),new s.PathPrimitiveLineToCommand(t.center.x,o),new s.PathPrimitiveLineToCommand(n+.05*a,r+.4*c),new s.PathPrimitiveCubicCurveToCommand(n+.02*a,r+.35*c,n,r+.3*c,n,r+.25*c),new s.PathPrimitiveCubicCurveToCommand(n,r+.1*c,n+.15*a,r,n+.25*a,r),new s.PathPrimitiveCubicCurveToCommand(n+.3*a,r,n+.45*a,r+.03*c,n+.5*a,r+.15*c),new s.PathPrimitiveCubicCurveToCommand(i-.45*a,r+.03*c,i-.3*a,r,i-.25*a,r),new s.PathPrimitiveClosePathCommand],e.style)]},t.prototype.getTextRectangle=function(e){return e.rectangle.clone().inflate(-o.ShapeTextPadding,-o.ShapeTextPadding)},t.prototype.getSizeByText=function(e,t){return t.size.clone().offset(2*o.ShapeTextPadding,2*o.ShapeTextPadding)},t}(o.ShapeDescription);t.HeartShapeDescription=l},2953:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HexagonShapeDescription=void 0;var o=n(7724),s=n(2259),a=n(7314),c=n(8675),u=n(8011),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Hexagon},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"angleCount",{get:function(){return 6},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,s=t.bottom,a=t.width,c=t.center.y,u=Math.PI-this.angle,l=a/(1+2*Math.cos(u)),h=n+(a-l)/2,d=h+l;return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(h,r),new o.PathPrimitiveLineToCommand(d,r),new o.PathPrimitiveLineToCommand(i,c),new o.PathPrimitiveLineToCommand(d,s),new o.PathPrimitiveLineToCommand(h,s),new o.PathPrimitiveLineToCommand(n,c),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.calculateHeight=function(e){var t=Math.PI-this.angle;return e/(1+2*Math.cos(t))*2*Math.sin(t)},t.prototype.getTextRectangle=function(e){var t=c.GeometryUtils.getMaxRectangleEnscribedInEllipse(e.size);return u.Rectangle.fromGeometry(e.position.clone().offset((e.size.width-t.width)/2,(e.size.height-t.height)/2),t)},t.prototype.getSizeByText=function(e,t){return c.GeometryUtils.getEllipseByEnscribedRectangle(e)},t}(a.PolygonShapeDescription);t.HexagonShapeDescription=l},1412:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OctagonShapeDescription=void 0;var o=n(7724),s=n(2259),a=n(7314),c=n(8675),u=n(8011),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Octagon},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"angleCount",{get:function(){return 8},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,s=t.bottom,a=t.width,c=t.height,u=Math.PI-this.angle,l=a/(1+2*Math.cos(u)),h=c/(1+2*Math.cos(u)),d=n+(a-l)/2,f=d+l,p=r+(c-h)/2,A=p+h;return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(d,r),new o.PathPrimitiveLineToCommand(f,r),new o.PathPrimitiveLineToCommand(i,p),new o.PathPrimitiveLineToCommand(i,A),new o.PathPrimitiveLineToCommand(f,s),new o.PathPrimitiveLineToCommand(d,s),new o.PathPrimitiveLineToCommand(n,A),new o.PathPrimitiveLineToCommand(n,p),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.calculateHeight=function(e){return e},t.prototype.getTextRectangle=function(e){var t=c.GeometryUtils.getMaxRectangleEnscribedInEllipse(e.size);return u.Rectangle.fromGeometry(e.position.clone().offset((e.size.width-t.width)/2,(e.size.height-t.height)/2),t)},t.prototype.getSizeByText=function(e,t){return c.GeometryUtils.getEllipseByEnscribedRectangle(e)},t}(a.PolygonShapeDescription);t.OctagonShapeDescription=l},8761:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PentagonShapeDescription=void 0;var o=n(7724),s=n(2259),a=n(7314),c=n(3742),u=n(8675),l=n(8011),h=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultRatio=n.defaultSize.height/n.defaultSize.width,n}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.Pentagon},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"angleCount",{get:function(){return 5},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,s=t.bottom,a=t.width,c=t.height,u=t.center.x,l=c/a/this.defaultRatio,h=Math.PI-this.angle,d=a/2*Math.tan(h/2)*l,f=r+d,p=(c-d)/Math.tan(h)/l,A=n+p,g=i-p;return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(u,r),new o.PathPrimitiveLineToCommand(i,f),new o.PathPrimitiveLineToCommand(g,s),new o.PathPrimitiveLineToCommand(A,s),new o.PathPrimitiveLineToCommand(n,f),new o.PathPrimitiveClosePathCommand],e.style)]},t.prototype.processConnectionPoint=function(e,t){var n=e.getConnectionPointSide(t);if(n===c.ConnectionPointSide.East||n===c.ConnectionPointSide.West){var r=e.rectangle,i=r.y,o=r.width,s=r.height/o/this.defaultRatio,a=Math.PI-this.angle,u=i+o/2*Math.tan(a/2)*s;(n===c.ConnectionPointSide.East||n===c.ConnectionPointSide.West)&&(t.y=u)}},t.prototype.calculateHeight=function(e){var t=Math.PI-this.angle;return e/2*Math.tan(t/2)+e/2/Math.cos(t/2)*Math.sin(t)},t.prototype.getTextRectangle=function(e){var t=u.GeometryUtils.getMaxRectangleEnscribedInEllipse(e.size);return l.Rectangle.fromGeometry(e.position.clone().offset((e.size.width-t.width)/2,(e.size.height-t.height)/2),t)},t.prototype.getSizeByText=function(e,t){return u.GeometryUtils.getEllipseByEnscribedRectangle(e)},t}(a.PolygonShapeDescription);t.PentagonShapeDescription=h},7314:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PolygonShapeDescription=void 0;var o=n(6794),s=function(e){function t(t){var n=e.call(this,void 0,t)||this;return n.defaultSize.height=n.calculateHeight(o.ShapeDefaultDimension),n}return i(t,e),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return Math.PI*(this.angleCount-2)/this.angleCount},enumerable:!1,configurable:!0}),t}(o.ShapeDescription);t.PolygonShapeDescription=s},1561:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RectangleShapeDescription=void 0;var o=n(6794),s=n(6353),a=n(4716),c=n(2259),u=function(e){function t(t,n){return void 0===t&&(t=new s.Size(o.ShapeDefaultDimension,.75*o.ShapeDefaultDimension)),e.call(this,t,n)||this}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return c.ShapeTypes.Rectangle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.width,o=t.height;return[new a.RectanglePrimitive(n,r,i,o,e.style)]},t.prototype.getTextRectangle=function(e){return e.rectangle.clone().inflate(-o.ShapeTextPadding,-o.ShapeTextPadding)},t.prototype.getSizeByText=function(e,t){return e.clone().offset(2*o.ShapeTextPadding,2*o.ShapeTextPadding)},t}(o.ShapeDescription);t.RectangleShapeDescription=u},8772:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StarShapeDescription=t.StarConvexParameterName=void 0;var o=n(7724),s=n(2259),a=n(8761),c=n(6629),u=n(1852),l=n(8900),h=n(3742);t.StarConvexParameterName="sc";var d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),Object.defineProperty(n.prototype,"key",{get:function(){return s.ShapeTypes.Star},enumerable:!1,configurable:!0}),n.prototype.createShapePrimitives=function(e){var n=e.rectangle,r=n.x,i=n.y,s=n.right,a=n.width,c=n.height,u=this.getActualBottom(i,n.bottom,a,c),l=n.center.x,h=i+(u-i)/2,d=c/a,f=Math.PI-this.angle,p=a/2*Math.tan(f/2)*d,A=i+p,g=(c-p)/Math.tan(f)/d,m=r+g,y=s-g,v=e.parameters.get(t.StarConvexParameterName).value,b=this.getInnerPointDistance(l,l,s,h,i,A);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(l,i),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(l,l,s,v,b),this.getInnerPointPos(h,i,A,v,b)),new o.PathPrimitiveLineToCommand(s,A),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(l,s,y,v,b),this.getInnerPointPos(h,A,u,v,b)),new o.PathPrimitiveLineToCommand(y,u),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(l,y,m,v,b),this.getInnerPointPos(h,u,u,v,b)),new o.PathPrimitiveLineToCommand(m,u),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(l,m,r,v,b),this.getInnerPointPos(h,u,A,v,b)),new o.PathPrimitiveLineToCommand(r,A),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(l,r,l,v,b),this.getInnerPointPos(h,A,i,v,b)),new o.PathPrimitiveClosePathCommand],e.style)]},n.prototype.createParameters=function(e){e.addRangeIfNotExists([new c.ShapeParameter(t.StarConvexParameterName,300)])},n.prototype.normalizeParameters=function(e,n){var r=e.rectangle,i=r.y,o=r.right,s=r.width,a=r.height,c=this.getActualBottom(i,r.bottom,s,a),u=r.center.x,l=i+(c-i)/2,h=a/s,d=Math.PI-this.angle,f=i+s/2*Math.tan(d/2)*h,p=this.getInnerPointDistance(u,u,o,l,i,f);this.changeParameterValue(n,t.StarConvexParameterName,function(e){return Math.max(0,Math.min(p,e.value))})},n.prototype.modifyParameters=function(e,n,r,i){var o=Math.sqrt(Math.pow(r,2)+Math.pow(i,2));(r<0||i>0)&&(o=-o),this.changeParameterValue(n,t.StarConvexParameterName,function(e){return e.value+o}),this.normalizeParameters(e,n)},n.prototype.getParameterPoints=function(e){var n=e.rectangle,r=n.y,i=n.right,o=n.width,s=n.height,a=this.getActualBottom(r,n.bottom,o,s),c=n.center.x,h=r+(a-r)/2,d=s/o,f=Math.PI-this.angle,p=r+o/2*Math.tan(f/2)*d,A=e.parameters.get(t.StarConvexParameterName).value,g=this.getInnerPointDistance(c,c,i,h,r,p),m=this.getInnerPointPos(c,c,i,A,g),y=this.getInnerPointPos(h,r,p,A,g);return[new u.ShapeParameterPoint("c",new l.Point(m,y))]},n.prototype.processConnectionPoint=function(n,r){if(e.prototype.processConnectionPoint.call(this,n,r),n.getConnectionPointSide(r)===h.ConnectionPointSide.South){var i=n.rectangle,o=i.y,s=i.right,a=i.width,c=i.height,u=this.getActualBottom(o,i.bottom,a,c),l=i.center.x,d=o+(u-o)/2,f=c/a,p=Math.PI-this.angle,A=o+a/2*Math.tan(p/2)*f,g=n.parameters.get(t.StarConvexParameterName).value,m=this.getInnerPointDistance(l,l,s,d,o,A);r.y=this.getInnerPointPos(d,u,u,g,m)}},n.prototype.getInnerPointDistanceByAxis=function(e,t,n){return Math.min(t,n)+Math.abs(t-n)/2-e},n.prototype.getInnerPointPos=function(e,t,n,r,i){var o=Math.min(1,r/i);return e+this.getInnerPointDistanceByAxis(e,t,n)*o},n.prototype.getInnerPointDistance=function(e,t,n,r,i,o){var s=this.getInnerPointDistanceByAxis(e,t,n),a=this.getInnerPointDistanceByAxis(r,i,o);return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))},n.prototype.getActualBottom=function(t,n,r,i){var o=t+e.prototype.calculateHeight.call(this,r)*i/r;return o<n?o:n},n.prototype.calculateHeight=function(e){return e},n}(a.PentagonShapeDescription);t.StarShapeDescription=d},1669:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TextShapeDescription=void 0;var o=n(6794),s=n(6353),a=n(2259),c=n(4593),u=n(4716),l=n(3500),h=function(e){function t(){var t=e.call(this,new s.Size(o.ShapeDefaultDimension,.5*o.ShapeDefaultDimension),!0)||this;return t.textClipPathId=l.RenderUtils.generateSvgElementId("clipRect"),t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return a.ShapeTypes.Text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createShapePrimitives=function(e,t){if(t){var n=e.rectangle,r=n.x,i=n.y,o=n.width,s=n.height;return[new c.ClipPathPrimitive(this.getTextClipPathId(t),[new u.RectanglePrimitive(r,i,o,s)])]}return[]},t.prototype.getTextClipPathId=function(e){return e?this.textClipPathId:void 0},t.prototype.getSizeByTextRectangle=function(e){return e},t.prototype.getSizeByText=function(e,t){return e.clone()},t.prototype.getTextRectangle=function(e){return e.rectangle},t}(o.ShapeDescription);t.TextShapeDescription=h},2117:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TriangleShapeDescription=void 0;var o=n(6794),s=n(7724),a=n(2259),c=n(7228),u=n(3742),l=n(8011),h=n(6353),d=function(e){function t(t){var n=e.call(this,void 0,t)||this;return n.defaultSize.height=n.calculateHeight(o.ShapeDefaultDimension),n}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return a.ShapeTypes.Triangle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.createConnectionPoints=function(){return[new c.ConnectionPoint(.5,0,u.ConnectionPointSide.North),new c.ConnectionPoint(.75,.5,u.ConnectionPointSide.East),new c.ConnectionPoint(.5,1,u.ConnectionPointSide.South),new c.ConnectionPoint(.25,.5,u.ConnectionPointSide.West)]},t.prototype.createShapePrimitives=function(e){var t=e.rectangle,n=t.x,r=t.y,i=t.right,o=t.bottom;return[new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(t.center.x,r),new s.PathPrimitiveLineToCommand(i,o),new s.PathPrimitiveLineToCommand(n,o),new s.PathPrimitiveClosePathCommand],e.style)]},t.prototype.calculateHeight=function(e){return Math.sqrt(Math.pow(e,2)-Math.pow(e/2,2))},t.prototype.getTextRectangle=function(e){return new l.Rectangle(e.position.x+e.size.width/4,e.position.y+e.size.height/2,e.size.width/2,e.size.height/2-o.ShapeTextPadding).nonNegativeSize()},t.prototype.getSizeByText=function(e,t){return new h.Size(2*e.width,2*e.height+o.ShapeTextPadding)},t}(o.ShapeDescription);t.TriangleShapeDescription=d},3233:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CardBaseDescription=void 0;var o=n(6794),s=n(8011),a=n(6353),c=n(4083),u=n(4538),l=n(7724),h=n(5329),d=n(6411),f=n(2259),p=n(6224),A=n(9291),g=n(8900),m=function(e){function t(t){return void 0===t&&(t=new a.Size(o.ShapeDefaultDimension,26/46*o.ShapeDefaultDimension)),e.call(this,t,!0)||this}return i(t,e),Object.defineProperty(t.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDefaultText=function(){return p.DiagramLocalizationService.shapeTexts[f.ShapeTypes.Card]},t.prototype.createShapePrimitives=function(e,t){var n=e.rectangle,r=n.x,i=n.y,o=n.width,s=n.height;return[new u.RoundedRectanglePrimitive(r,i,o,s,t?30:60,t?30:60,e.style)]},t.prototype.createImagePlaceholder=function(e){return[new u.RoundedRectanglePrimitive(e.x,e.y,e.width,e.height,A.UnitConverter.pixelsToTwips(2),A.UnitConverter.pixelsToTwips(2),void 0,c.SHAPE_IMAGE_CLASSNAMES.IMAGE_PLACEHOLDER)]},t.prototype.createEmptyImagePrimitive=function(e){return d.ShapeImageIndicator.createUserIconPrimitives(e.x,e.y,this.defaultIconSize,A.UnitConverter.pixelsToTwips(1),c.SHAPE_IMAGE_CLASSNAMES.USER_PIC)},t.prototype.createWarningPrimitive=function(e){return d.ShapeImageIndicator.createWarningIconPrimitives(e.x+this.defaultIconSize/2,e.y+this.defaultIconSize/2,this.defaultIconSize/2,c.SHAPE_IMAGE_CLASSNAMES.WARNING_MARK)},t.prototype.getTextRectangle=function(e){var t=e.rectangle,n=t.clone().inflate(-o.ShapeTextPadding,-o.ShapeTextPadding),r=this.getImageSize(t.createSize(),!0);return this.isTextAfterImage&&n.moveRectangle(this.isHorizontal?r.width:0,this.isHorizontal?0:r.height),n.resize(this.isHorizontal?-r.width:0,this.isHorizontal?0:-r.height),n.nonNegativeSize()},t.prototype.getSizeByText=function(e,t){var n=e.clone().offset(2*o.ShapeTextPadding,2*o.ShapeTextPadding),r=this.getImageSizeByTextBlockSize(n);return this.isHorizontal?n.width+=r.width:n.height+=r.height,n},t.prototype.createTextPrimitives=function(t,n){return n?this.createGraphicalTextRepresentation(t.rectangle):e.prototype.createTextPrimitives.call(this,t,n)},t.prototype.createGraphicalTextRepresentation=function(e){var t=new s.Rectangle(0,0,0,0),n=this.getImageSize(e.createSize(),!0,!0);if(this.isHorizontal){var r=this.isTextAfterImage?e.width/2-A.UnitConverter.pixelsToTwips(2):0;t.x=e.x+r+A.UnitConverter.pixelsToTwips(4),t.y=e.y+A.UnitConverter.pixelsToTwips(5),t.width=n.width-A.UnitConverter.pixelsToTwips(4),t.height=e.height-A.UnitConverter.pixelsToTwips(6)}else{var i=this.isTextAfterImage?e.height/2-A.UnitConverter.pixelsToTwips(2):0;t.x=e.x+e.width/4,t.y=e.y+i+A.UnitConverter.pixelsToTwips(4),t.width=e.width/2,t.height=n.height-A.UnitConverter.pixelsToTwips(2)}return this.createTextRepresentationPrimitives(t)},t.prototype.getImagePlacementRectangle=function(e,t){var n=this.getImageSize(e.createSize(),!1,t),r=s.Rectangle.fromGeometry(new g.Point(e.x,e.y),n),i=this.getImageSize(e.createSize(),!0,t);return this.isHorizontal&&this.isTextAfterImage?r.x+=this.getImageMargin(t):this.isHorizontal&&(r.x=e.right-i.width-this.getImageMargin(t)),this.isHorizontal||this.isTextAfterImage?r.y+=this.getImageMargin(t):r.y=e.bottom-i.height-this.getImageMargin(t),this.isHorizontal||(r.x+=(e.width-r.width)/2),r},t.prototype.createTextRepresentationPrimitives=function(e){var t=A.UnitConverter.pixelsToTwips(A.UnitConverter.twipsToPixels(e.height/3));return[new h.GroupPrimitive([new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(e.x,e.y),new l.PathPrimitiveLineToCommand(e.x+e.width,e.y)]),new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(e.x,e.y+t),new l.PathPrimitiveLineToCommand(e.x+e.width,e.y+t)]),new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(e.x,e.y+2*t),new l.PathPrimitiveLineToCommand(e.x+.66*e.width,e.y+2*t)])],"dxdi-shape-text")]},t}(c.ShapeWithImageDescription);t.CardBaseDescription=m},3107:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CardWithImageOnRightDescription=t.CardWithImageOnLeftDescription=void 0;var o=n(6794),s=n(2259),a=n(3233),c=n(6353),u=function(e){function t(){var t=e.call(this,new c.Size(1.5*o.ShapeDefaultDimension,.5*o.ShapeDefaultDimension))||this;return t.isHorizontal=!0,t}return i(t,e),t.prototype.getToolboxHeightToWidthRatio=function(e,t){return 26/46},t.prototype.getImageSize=function(e,t,n){var r=Math.min(e.height,e.width);return t||(r=Math.max(0,r-2*this.getImageMargin(n))),new c.Size(r,r)},t.prototype.getImageSizeByTextBlockSize=function(e){return this.getImageSize(new c.Size(Number.MAX_VALUE,e.height),!0)},t}(a.CardBaseDescription),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isTextAfterImage=!0,t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.CardWithImageOnLeft},enumerable:!1,configurable:!0}),t}(u);t.CardWithImageOnLeftDescription=l;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isTextAfterImage=!1,t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return s.ShapeTypes.CardWithImageOnRight},enumerable:!1,configurable:!0}),t}(u);t.CardWithImageOnRightDescription=h},2816:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CardWithImageOnTopDescription=void 0;var o=n(6794),s=n(6353),a=n(2259),c=n(3233),u=n(9291),l=function(e){function t(){var t=e.call(this,new s.Size(.8*o.ShapeDefaultDimension,o.ShapeDefaultDimension))||this;return t.isTextAfterImage=!0,t.isHorizontal=!1,t}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return a.ShapeTypes.CardWithImageOnTop},enumerable:!1,configurable:!0}),t.prototype.getImageSize=function(e,t,n){var r=e.width/2;u.UnitConverter.twipsToPixels(r)%2==1&&(r-=u.UnitConverter.pixelsToTwips(1));var i=Math.max(0,e.height-(t?0:2*this.getImageMargin(n)));return i=Math.min(r,i),new s.Size(i,i)},t.prototype.getImageSizeByTextBlockSize=function(e){return this.getImageSize(new s.Size(e.width,Number.MAX_VALUE),!0)},t}(c.CardBaseDescription);t.CardWithImageOnTopDescription=l},6794:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeDescription=t.ShapeTextPadding=t.ShapeDefaultSize=t.ShapeMinDimension=t.ShapeDefaultDimension=void 0;var r=n(9291),i=n(6353),o=n(6224),s=n(4246),a=n(4716),c=n(9416),u=n(8675),l=n(7228),h=n(3742);t.ShapeDefaultDimension=1440,t.ShapeMinDimension=360,t.ShapeDefaultSize=new i.Size(t.ShapeDefaultDimension,t.ShapeDefaultDimension),t.ShapeTextPadding=r.UnitConverter.pixelsToTwips(10);var d=function(){function e(e,n){void 0===e&&(e=t.ShapeDefaultSize.clone()),this.defaultSize=e,this.hasDefaultText=n,this.onChanged=new u.EventDispatcher,this.connectionPoints=this.createConnectionPoints()}return Object.defineProperty(e.prototype,"enableText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowEditText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enableImage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowEditImage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enableChildren",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toolboxSize",{get:function(){return this.defaultSize},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return o.DiagramLocalizationService.shapeTexts[this.key]},e.prototype.getDefaultText=function(){return this.hasDefaultText?o.DiagramLocalizationService.shapeTexts[this.key]:""},e.prototype.getDefaultImageUrl=function(){return""},e.prototype.getConnectionPoints=function(){return this.connectionPoints},e.prototype.createConnectionPoints=function(){return[new l.ConnectionPoint(.5,0,h.ConnectionPointSide.North),new l.ConnectionPoint(1,.5,h.ConnectionPointSide.East),new l.ConnectionPoint(.5,1,h.ConnectionPointSide.South),new l.ConnectionPoint(0,.5,h.ConnectionPointSide.West)]},e.prototype.processConnectionPoint=function(e,t){},e.prototype.getConnectionPointIndexForItem=function(e,t){return t},e.prototype.getConnectionPointIndexForSide=function(e){return e},e.getConnectionPointSideByGeometry=function(e){return e.x>=e.y&&(e.x>0||e.y>0)?e.x<.5||1-e.x>=e.y?h.ConnectionPointSide.North:h.ConnectionPointSide.East:e.x>.5||1-e.x<=e.y?h.ConnectionPointSide.South:h.ConnectionPointSide.West},e.prototype.createParameters=function(e){},e.prototype.normalizeParameters=function(e,t){},e.prototype.modifyParameters=function(e,t,n,r){throw Error("Not implemented")},e.prototype.changeParameterValue=function(e,t,n){var r=e.get(t);r.value=n(r)},e.prototype.getParameterPoints=function(e){return[]},e.prototype.getExpandedSize=function(e){return e.size},e.prototype.getCollapsedSize=function(e){return e.size},e.prototype.getToolboxHeightToWidthRatio=function(e,t){return t/e},e.prototype.allowResizeHorizontally=function(e){return!0},e.prototype.allowResizeVertically=function(e){return!0},e.prototype.createPrimitives=function(e,t,n){var r=[];return r=r.concat(this.createShapePrimitives(e,n)),this.enableImage&&(r=r.concat(this.createImagePrimitives(e,n))),this.enableText&&(r=r.concat(this.createTextPrimitives(e,n))),r},e.prototype.createImagePrimitives=function(e,t){return[]},e.prototype.createTextPrimitives=function(t,n){if(void 0===t.text||""===t.text)return[];var r=this.getTextRectangle(t);return[new c.TextPrimitive(r.x,r.y,t.text,s.TextOwner.Shape,r.width,r.height,e.textSpacing,t.styleText,!1,this.getTextClipPathId(n),void 0,this.getTextAngle())]},e.prototype.getTextClipPathId=function(e){},e.prototype.getTextAngle=function(){return c.TextAngle.Angle0deg},e.prototype.getClientRectangle=function(e){return e.rectangle},e.prototype.getTextEditRectangle=function(e){return this.getTextRectangle(e)},e.prototype.createSelectorPrimitives=function(e){return[new a.RectanglePrimitive(e.position.x,e.position.y,e.size.width,e.size.height,null,"selector")]},e.prototype.raiseShapeDescriptionChanged=function(e){this.onChanged.raise1(function(t){return t.notifyShapeDescriptionChanged(e)})},e.textSpacing=r.UnitConverter.pixelsToTwips(2),e}();t.ShapeDescription=d},8397:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeDescriptionManager=void 0;var r=n(5331),i=n(6825),o=n(9144),s=n(4941),a=n(6242),c=n(6508),u=n(9089),l=n(6599),h=n(8327),d=n(2281),f=n(5303),p=n(7768),A=n(8628),g=n(1561),m=n(1669),y=n(8761),v=n(2953),b=n(1412),w=n(8772),C=n(4958),_=n(8800),S=n(6023),x=n(2117),T=n(3525),P=n(2850),E=n(4112),I=n(1314),k=n(1034),B=n(2751),M=n(8110),O=n(1643),D=n(9229),R=n(4810),L=n(3046),N=n(2650),U=n(2019),F=n(6182),j=n(6688),H=n(5759),z=n(944),Q=n(2816),V=n(2259),K=n(7552),W=n(8675),G=n(3107),q=function(){function e(){this.descriptions={},this.descriptionTypes={},this.descriptionCategories={},this.onShapeDecriptionChanged=new W.EventDispatcher,this.register(new m.TextShapeDescription,V.ShapeCategories.General),this.register(new g.RectangleShapeDescription,V.ShapeCategories.General),this.register(new p.EllipseShapeDescription,V.ShapeCategories.General),this.register(new d.CrossShapeDescription,V.ShapeCategories.General),this.register(new x.TriangleShapeDescription,V.ShapeCategories.General),this.register(new f.DiamondShapeDescription,V.ShapeCategories.General),this.register(new A.HeartShapeDescription,V.ShapeCategories.General),this.register(new y.PentagonShapeDescription,V.ShapeCategories.General),this.register(new v.HexagonShapeDescription,V.ShapeCategories.General),this.register(new b.OctagonShapeDescription,V.ShapeCategories.General),this.register(new w.StarShapeDescription,V.ShapeCategories.General),this.register(new h.ArrowUpShapeDescription,V.ShapeCategories.General),this.register(new C.ArrowDownShapeDescription,V.ShapeCategories.General),this.register(new S.ArrowLeftShapeDescription,V.ShapeCategories.General),this.register(new l.ArrowRightShapeDescription,V.ShapeCategories.General),this.register(new u.ArrowUpDownShapeDescription,V.ShapeCategories.General),this.register(new _.ArrowLeftRightShapeDescription,V.ShapeCategories.General),this.register(new r.ProcessShapeDescription,V.ShapeCategories.Flowchart),this.register(new i.DecisionShapeDescription,V.ShapeCategories.Flowchart),this.register(new a.TerminatorShapeDescription,V.ShapeCategories.Flowchart),this.register(new c.PredefinedProcessShapeDescription,V.ShapeCategories.Flowchart),this.register(new T.DocumentShapeDescription,V.ShapeCategories.Flowchart),this.register(new P.MultipleDocumentsShapeDescription,V.ShapeCategories.Flowchart),this.register(new o.ManualInputShapeDescription,V.ShapeCategories.Flowchart),this.register(new E.PreparationShapeDescription,V.ShapeCategories.Flowchart),this.register(new s.DataShapeDescription,V.ShapeCategories.Flowchart),this.register(new k.DatabaseShapeDescription,V.ShapeCategories.Flowchart),this.register(new I.HardDiskShapeDescription,V.ShapeCategories.Flowchart),this.register(new B.InternalStorageShapeDescription,V.ShapeCategories.Flowchart),this.register(new M.PaperTapeShapeDescription,V.ShapeCategories.Flowchart),this.register(new O.ManualOperationShapeDescription,V.ShapeCategories.Flowchart),this.register(new D.DelayShapeDescription,V.ShapeCategories.Flowchart),this.register(new R.StoredDataShapeDescription,V.ShapeCategories.Flowchart),this.register(new N.DisplayShapeDescription,V.ShapeCategories.Flowchart),this.register(new L.MergeShapeDescription,V.ShapeCategories.Flowchart),this.register(new K.ConnectorShapeDescription,V.ShapeCategories.Flowchart),this.register(new U.OrShapeDescription,V.ShapeCategories.Flowchart),this.register(new F.SummingJunctionShapeDescription,V.ShapeCategories.Flowchart),this.register(new G.CardWithImageOnLeftDescription,V.ShapeCategories.OrgChart),this.register(new G.CardWithImageOnRightDescription,V.ShapeCategories.OrgChart),this.register(new Q.CardWithImageOnTopDescription,V.ShapeCategories.OrgChart),this.register(new H.VerticalContainerDescription,V.ShapeCategories.Containers),this.register(new z.HorizontalContainerDescription,V.ShapeCategories.Containers)}return Object.defineProperty(e,"default",{get:function(){return e.defaultInstance},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultContainer",{get:function(){return e.defaultContainerInstance},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return this.descriptions[e]},e.prototype.getTypesByCategory=function(e){return this.descriptionTypes[e]||[]},e.prototype.getCategoryByType=function(e){return this.descriptionCategories[e]},e.prototype.getCategoryByDescription=function(e){return this.getCategoryByType(e.key)},e.prototype.register=function(e,t,n){if(void 0===n&&(n=e.key),void 0!==this.descriptions[n])throw Error("Description key is duplicated");this.descriptions[n]=e,this.descriptionTypes[t]||(this.descriptionTypes[t]=[]),this.descriptionTypes[t].push(n),this.descriptionCategories[n]=t,e.onChanged.add(this)},e.prototype.registerCustomShape=function(e){if(void 0===e.type)throw Error("Custom shape type is not defined");if(void 0!==this.descriptions[e.type])throw Error("Custom shape type is duplicated");var t=e.baseType&&this.descriptions[e.baseType];e.minWidth>e.maxWidth&&(e.maxWidth=e.minWidth),e.minHeight>e.maxHeight&&(e.maxHeight=e.minHeight),this.register(new j.CustomShapeDescription(e,t),e.category||V.ShapeCategories.Custom)},e.prototype.unregisterCustomShape=function(e){var t=this.descriptions[e];if(t instanceof j.CustomShapeDescription){t.onChanged.remove(this);var n=this.descriptionCategories[e];delete this.descriptions[e],delete this.descriptionCategories[e];var r=this.descriptionTypes[n].indexOf(e);this.descriptionTypes[n].splice(r,1),0===this.descriptionTypes[n].length&&delete this.descriptionTypes[n]}},e.prototype.unregisterAllCustomShapes=function(){var e=this;Object.keys(this.descriptions).forEach(function(t){e.unregisterCustomShape(t)})},e.prototype.notifyShapeDescriptionChanged=function(e){this.onShapeDecriptionChanged.raise1(function(t){return t.notifyShapeDescriptionChanged(e)})},e.defaultInstance=new g.RectangleShapeDescription,e.defaultContainerInstance=new H.VerticalContainerDescription,e}();t.ShapeDescriptionManager=q},4083:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeWithImageDescription=t.SHAPE_IMAGE_CLASSNAMES=t.ShapeDefaultSize=t.ShapeDefaultDimension=void 0;var o=n(6794),s=n(8011),a=n(6353),c=n(8900),u=n(9291),l=n(1995),h=n(4716),d=n(5329),f=n(3500),p=n(4593),A=n(6411);t.ShapeDefaultDimension=1440,t.ShapeDefaultSize=new a.Size(t.ShapeDefaultDimension,t.ShapeDefaultDimension),t.SHAPE_IMAGE_CLASSNAMES={IMAGE:"dxdi-image",IMAGE_PLACEHOLDER:"dxdi-image-placeholder",LOADING_INDICATOR:"dxdi-spinner",USER_PIC:"dxdi-user",WARNING_MARK:"dxdi-warning"};var g=function(e){function n(n,r){void 0===n&&(n=t.ShapeDefaultSize.clone());var i=e.call(this,n,r)||this;return i.hasDefaultText=r,i.defaultIconSize=480,i}return i(n,e),Object.defineProperty(n.prototype,"enableImage",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.getImageMargin=function(e){return e?u.UnitConverter.pixelsToTwips(2):u.UnitConverter.pixelsToTwips(3)},n.prototype.createImagePrimitives=function(e,n){if(!this.enableImage)return[];var r=this.getImagePlacementRectangle(e.rectangle,n);if(n)return this.createImagePlaceholder(r);var i=[];if(i=e.image.isEmpty||e.image.unableToLoad?i.concat(this.createEmptyImagePrimitives(r,e.image.unableToLoad)):""===e.image.renderUrl?i.concat(this.createLoadingImagePrimitives(r)):i.concat(this.createLoadedImagePrimitives(r,e.image.renderUrl)),""===e.image.renderUrl){var o=f.RenderUtils.generateSvgElementId("clipImage");return[].concat([new d.GroupPrimitive(i,t.SHAPE_IMAGE_CLASSNAMES.IMAGE,void 0,o),new p.ClipPathPrimitive(o,[new h.RectanglePrimitive(r.x,r.y,r.width,r.height)])])}return i},n.prototype.createImagePlaceholder=function(e){return[]},n.prototype.createLoadedImagePrimitives=function(e,r){return[new l.ImagePrimitive(e.x,e.y,e.width,e.height,r,n.imageScalingRule,void 0,t.SHAPE_IMAGE_CLASSNAMES.IMAGE)]},n.prototype.createLoadingImagePrimitives=function(e){var n=this.getIconPlacementRectangle(e);return[A.ShapeImageIndicator.createLoadingIndicatorPrimitives(n.x,n.y,this.defaultIconSize,u.UnitConverter.pixelsToTwips(5),t.SHAPE_IMAGE_CLASSNAMES.LOADING_INDICATOR)]},n.prototype.createEmptyImagePrimitives=function(e,t){var n=this.getIconPlacementRectangle(e),r=[];return r=r.concat(this.createEmptyImagePrimitive(n)),t&&(r=r.concat(this.createWarningPrimitive(n))),r},n.prototype.createEmptyImagePrimitive=function(e){return new d.GroupPrimitive([])},n.prototype.createWarningPrimitive=function(e){return new d.GroupPrimitive([])},n.prototype.getIconPlacementRectangle=function(e){var t=s.Rectangle.fromGeometry(new c.Point(e.x,e.y),new a.Size(this.defaultIconSize,this.defaultIconSize));return t.width<e.width&&(t.x=e.x+(e.width-t.width)/2),t.height<e.height&&(t.y=e.y+(e.height-t.height)/2),t},n.imageScalingRule="xMidYMid meet",n}(o.ShapeDescription);t.ShapeWithImageDescription=g},5503:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=void 0;var o=n(8011),s=n(6794),a=n(6629),c=n(3742),u=n(7228),l=n(6617),h=n(7185),d=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.description=t,i.children=[],i.expanded=!0,i.expandedSize=void 0,!t)throw Error("Shape type is incorrect");i.position=n.clone();var o=r?t.toolboxSize:t.defaultSize;return i.size=o.clone(),i.text=t.getDefaultText(),i.image=new l.ImageInfo(t.getDefaultImageUrl()),i.parameters=new a.ShapeParameters,t.createParameters(i.parameters),i}return i(t,e),t.prototype.assign=function(t){e.prototype.assign.call(this,t),t.size=this.size.clone(),t.text=this.text,t.image=this.image.clone(),t.parameters=this.parameters.clone(),t.children=this.children.slice(),t.expanded=this.expanded,this.expandedSize&&(t.expandedSize=this.expandedSize.clone())},t.prototype.clone=function(){var e=new t(this.description,this.position.clone());return this.assign(e),e},Object.defineProperty(t.prototype,"enableText",{get:function(){return this.description.enableText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEditText",{get:function(){return this.description.allowEditText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTemplate",{get:function(){return this.description.hasTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableChildren",{get:function(){return this.description.enableChildren},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableImage",{get:function(){return this.description.enableImage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEditImage",{get:function(){return this.description.allowEditImage},enumerable:!1,configurable:!0}),t.prototype.getMinWidth=function(e){return"number"==typeof this.description.minWidth?this.description.minWidth:"number"==typeof e?e:s.ShapeMinDimension},t.prototype.getMinHeight=function(e){return"number"==typeof this.description.minHeight?this.description.minHeight:"number"==typeof e?e:s.ShapeMinDimension},t.prototype.getMaxWidth=function(e){return"number"==typeof this.description.maxWidth?this.description.maxWidth:"number"==typeof e?e:void 0},t.prototype.getMaxHeight=function(e){return"number"==typeof this.description.maxHeight?this.description.maxHeight:"number"==typeof e?e:void 0},t.prototype.createPrimitives=function(e){return this.description.createPrimitives(this,e)},t.prototype.createSelectorPrimitives=function(){return this.description.createSelectorPrimitives(this)},t.prototype.normalizeX=function(e){return Math.max(this.position.x,Math.min(e,this.position.x+this.size.width))},t.prototype.normalizeY=function(e){return Math.max(this.position.y,Math.min(e,this.position.y+this.size.height))},t.prototype.getConnectionPoints=function(){var e=this;return this.description.getConnectionPoints().map(function(t){var n=new u.ConnectionPoint(e.position.x+t.x*e.size.width,e.position.y+t.y*e.size.height,t.side);return e.description.processConnectionPoint(e,n),n})},t.prototype.getConnectionPointSide=function(e,t){return e.side!==c.ConnectionPointSide.Undefined?e.side:this.getConnectionPointSideByGeometry(e)},t.prototype.getConnectionPointSideByGeometry=function(e){var t=e.clone().offset(-this.position.x,-this.position.y).multiply(1/this.size.width,1/this.size.height);return s.ShapeDescription.getConnectionPointSideByGeometry(t)},t.prototype.getConnectionPointIndexForItem=function(e,t){return this.description.getConnectionPointIndexForItem(e,t)},t.prototype.getConnectionPointIndexForSide=function(e){return this.description.getConnectionPointIndexForSide(e)},t.prototype.toggleExpandedSize=function(){this.expanded?(this.size=this.getExpandedSize(),this.expandedSize=void 0):(this.expandedSize=this.size.clone(),this.size=this.getCollapsedSize())},t.prototype.getExpandedSize=function(){return this.description.getExpandedSize(this)},t.prototype.getCollapsedSize=function(){return this.description.getCollapsedSize(this)},t.prototype.getToolboxHeightToWidthRatio=function(){return this.description.getToolboxHeightToWidthRatio(this.size.width,this.size.height)},Object.defineProperty(t.prototype,"allowResizeHorizontally",{get:function(){return this.description.allowResizeHorizontally(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeVertically",{get:function(){return this.description.allowResizeVertically(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rectangle",{get:function(){return o.Rectangle.fromGeometry(this.position,this.size)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientRectangle",{get:function(){return this.description.getClientRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textRectangle",{get:function(){return this.description.getTextRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textEditRectangle",{get:function(){return this.description.getTextEditRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textAngle",{get:function(){return this.description.getTextAngle()},enumerable:!1,configurable:!0}),t.prototype.toNative=function(e){var t=new h.NativeShape(this.key,this.dataKey);return t.type=this.description.key,t.text=this.text,t.position=this.position.clone(),t.size=this.size.clone(),t.attachedConnectorIds=this.attachedConnectors.map(function(e){return e.key}),t.applyUnits(e),t.containerId=this.container?this.container.key:null,t.containerChildItemIds=this.children.map(function(e){return e.key}),t.containerExpanded=this.expanded,t},t}(c.DiagramItem);t.Shape=d},1852:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeParameterPoint=void 0;var n=function(e,t){this.key=e,this.point=t};t.ShapeParameterPoint=n},6629:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeParameters=t.ShapeParameter=void 0;var n=function(e,t){this.key=e,this.value=t};t.ShapeParameter=n;var r=function(){function e(){this.items={}}return e.prototype.addIfNotExists=function(e){e.key in this.items||this.set(e)},e.prototype.set=function(e){this.items[e.key]=e},e.prototype.addRangeIfNotExists=function(e){for(var t=0;t<e.length;t++)this.addIfNotExists(e[t])},e.prototype.get=function(e){return this.items[e]},e.prototype.forEach=function(e){for(var t in this.items)Object.prototype.hasOwnProperty.call(this.items,t)&&e(this.items[t])},e.prototype.clone=function(){var t=new e;return this.forEach(function(e){t.addIfNotExists(new n(e.key,e.value))}),t},e.prototype.toObject=function(){var e={},t=!1;return this.forEach(function(n){e[n.key]={value:n.value},t=!0}),t?e:null},e.prototype.fromObject=function(e){this.forEach(function(t){var n=e[t.key];n&&"number"==typeof n.value&&(t.value=n.value)})},e}();t.ShapeParameters=r},2259:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeType=t.ShapeTypes=t.ShapeCategories=void 0;var n=function(){function e(){}return e.General="general",e.Flowchart="flowchart",e.OrgChart="orgChart",e.Containers="containers",e.Custom="custom",e}();t.ShapeCategories=n;var r=function(){function e(){}return e.Text="text",e.Rectangle="rectangle",e.Ellipse="ellipse",e.Cross="cross",e.Triangle="triangle",e.Diamond="diamond",e.Heart="heart",e.Pentagon="pentagon",e.Hexagon="hexagon",e.Octagon="octagon",e.Star="star",e.ArrowLeft="arrowLeft",e.ArrowUp="arrowTop",e.ArrowRight="arrowRight",e.ArrowDown="arrowBottom",e.ArrowUpDown="arrowNorthSouth",e.ArrowLeftRight="arrowEastWest",e.Process="process",e.Decision="decision",e.Terminator="terminator",e.PredefinedProcess="predefinedProcess",e.Document="document",e.MultipleDocuments="multipleDocuments",e.ManualInput="manualInput",e.Preparation="preparation",e.Data="data",e.Database="database",e.HardDisk="hardDisk",e.InternalStorage="internalStorage",e.PaperTape="paperTape",e.ManualOperation="manualOperation",e.Delay="delay",e.StoredData="storedData",e.Display="display",e.Merge="merge",e.Connector="connector",e.Or="or",e.SummingJunction="summingJunction",e.Container="container",e.VerticalContainer="verticalContainer",e.HorizontalContainer="horizontalContainer",e.Card="card",e.CardWithImageOnLeft="cardWithImageOnLeft",e.CardWithImageOnTop="cardWithImageOnTop",e.CardWithImageOnRight="cardWithImageOnRight",e}();t.ShapeTypes=r,function(e){e[e.text=0]="text",e[e.rectangle=1]="rectangle",e[e.ellipse=2]="ellipse",e[e.cross=3]="cross",e[e.triangle=4]="triangle",e[e.diamond=5]="diamond",e[e.heart=6]="heart",e[e.pentagon=7]="pentagon",e[e.hexagon=8]="hexagon",e[e.octagon=9]="octagon",e[e.star=10]="star",e[e.arrowLeft=11]="arrowLeft",e[e.arrowTop=12]="arrowTop",e[e.arrowRight=13]="arrowRight",e[e.arrowBottom=14]="arrowBottom",e[e.arrowNorthSouth=15]="arrowNorthSouth",e[e.arrowEastWest=16]="arrowEastWest",e[e.process=17]="process",e[e.decision=18]="decision",e[e.terminator=19]="terminator",e[e.predefinedProcess=20]="predefinedProcess",e[e.document=21]="document",e[e.multipleDocuments=22]="multipleDocuments",e[e.manualInput=23]="manualInput",e[e.preparation=24]="preparation",e[e.data=25]="data",e[e.database=26]="database",e[e.hardDisk=27]="hardDisk",e[e.internalStorage=28]="internalStorage",e[e.paperTape=29]="paperTape",e[e.manualOperation=30]="manualOperation",e[e.delay=31]="delay",e[e.storedData=32]="storedData",e[e.display=33]="display",e[e.merge=34]="merge",e[e.connector=35]="connector",e[e.or=36]="or",e[e.summingJunction=37]="summingJunction",e[e.verticalContainer=38]="verticalContainer",e[e.horizontalContainer=39]="horizontalContainer",e[e.cardWithImageOnLeft=40]="cardWithImageOnLeft",e[e.cardWithImageOnTop=41]="cardWithImageOnTop",e[e.cardWithImageOnRight=42]="cardWithImageOnRight"}(t.ShapeType||(t.ShapeType={}))},1552:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyStyle=t.StrokeStyle=t.TextAlignment=t.TextStyle=t.Style=t.DEFAULT_STROKE_DASHARRAY=t.DEFAULT_STROKE_WIDTH=t.StyleBase=void 0;var o=n(13),s=n(8396),a=n(9291),c=function(){function e(){this.createDefaultProperties()}return e.prototype.clone=function(){var e=this,t=this.createInstance();return this.forEach(function(n){t[n]=e[n]}),t},e.prototype.forEach=function(e){for(var t in this)Object.prototype.hasOwnProperty.call(this,t)&&e(t)},Object.defineProperty(e.prototype,"strokeWidthPx",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return a.UnitConverter.pixelsToTwips(this.strokeWidthPx)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeOffset",{get:function(){return.5},enumerable:!1,configurable:!0}),e.prototype.toHash=function(){var e=this.toObject();return e?Object.keys(e).map(function(t){return t+"|"+e[t]}).join(""):""},e.prototype.toObject=function(){var e=this,t={},n=!1,r=this.getDefaultInstance();return this.forEach(function(i){e[i]!==r[i]&&(t[i]=e[i],n=!0)}),n?t:null},e.prototype.fromObject=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=s.isColorProperty(t)?o.ColorUtils.stringToHash(e[t]):e[t];this[t]=n}},e}();t.StyleBase=c,t.DEFAULT_STROKE_WIDTH=2,t.DEFAULT_STROKE_DASHARRAY="";var u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.createInstance=function(){return new n},n.prototype.createDefaultProperties=function(){this.fill="#ffffff",this.stroke="#000000",this["stroke-width"]=t.DEFAULT_STROKE_WIDTH.toString(),this["stroke-dasharray"]=t.DEFAULT_STROKE_DASHARRAY},n.prototype.getDefaultInstance=function(){return n.defaultInstance},n.prototype.isDefaultStrokeDashArray=function(){return this["stroke-dasharray"]===t.DEFAULT_STROKE_DASHARRAY},n.prototype.resetStrokeDashArray=function(){this["stroke-dasharray"]=t.DEFAULT_STROKE_DASHARRAY},Object.defineProperty(n.prototype,"strokeWidthPx",{get:function(){return parseInt(this["stroke-width"])},enumerable:!1,configurable:!0}),n.defaultInstance=new n,n}(c);t.Style=u;var l,h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createInstance=function(){return new t},t.prototype.createDefaultProperties=function(){this.fill="#000000",this["font-family"]="Arial",this["font-size"]="10pt",this["font-weight"]="",this["font-style"]="",this["text-decoration"]="",this["text-anchor"]="middle"},t.prototype.getDefaultInstance=function(){return t.defaultInstance},t.prototype.getAlignment=function(){switch(this["text-anchor"]){case"left":return l.Left;case"right":return l.Right;default:return l.Center}},t.defaultInstance=new t,t}(c);t.TextStyle=h,function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center"}(l=t.TextAlignment||(t.TextAlignment={}));var d=function(e){function t(t,n){var r=e.call(this)||this;return r._strokeWidthPx=t,r._strokeOffset=n,r}return i(t,e),t.prototype.createInstance=function(){return new t},t.prototype.createDefaultProperties=function(){},t.prototype.getDefaultInstance=function(){return h.defaultInstance},Object.defineProperty(t.prototype,"strokeWidthPx",{get:function(){return this._strokeWidthPx||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strokeOffset",{get:function(){return this._strokeOffset||0},enumerable:!1,configurable:!0}),t.default1pxInstance=new t(1,.5),t.default1pxNegativeOffsetInstance=new t(1,-.5),t.default2pxInstance=new t(2),t}(u);t.StrokeStyle=d;var f=function(e){function t(t){var n=e.call(this)||this;return t&&Object.keys(t).forEach(function(e){return n[e]=t[e]}),n}return i(t,e),t.prototype.createInstance=function(){return new t},t.prototype.createDefaultProperties=function(){},t.prototype.getDefaultInstance=function(){return h.defaultInstance},t.defaultInstance=new t,t}(u);t.EmptyStyle=f},6214:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReloadContentParameters=void 0;var n=function(){function e(){this.isEmpty=!0}return e.prototype.add=function(e,t,n){void 0!==e&&(void 0===this._dataKeys&&(this._dataKeys=[]),Array.isArray(e)?this._dataKeys=this._dataKeys.concat(e):this._dataKeys.push(e)),this._getData=this._getData||t,this._layoutParameters=this._layoutParameters||n,this.isEmpty=!1},e.prototype.clear=function(){this.isEmpty=!0,this._dataKeys=void 0,this._getData=void 0,this._layoutParameters=void 0},Object.defineProperty(e.prototype,"empty",{get:function(){return this.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataKeys",{get:function(){return this._dataKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getData",{get:function(){return this._getData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layoutParameters",{get:function(){return this._layoutParameters},enumerable:!1,configurable:!0}),e}();t.ReloadContentParameters=n},6557:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AutoScrollController=void 0;var r=n(1114),i=n(6907),o=n(6353),s=n(8675),a=function(){function e(e,t,n,r){this.scroll=e,this.svgElement=t,this.view=n,this.dom=r,this.leftButtonPressed=!1,this.scrollDragging=!1,this.scrollTimer=-1,this.scrollBarWidth=i.DomUtils.getVerticalScrollBarWidth()}return e.prototype.onMouseMove=function(e,t){this.clearScrollTimer(),s.EventUtils.isLeftButtonPressed(e)||(this.leftButtonPressed=!1),this.canAutoScroll()&&this.changeScrollPosition(e,t,!1)},e.prototype.onMouseDown=function(e){this.leftButtonPressed=!!s.EventUtils.isLeftButtonPressed(e)},e.prototype.onMouseUp=function(e){this.clearScrollTimer(),this.leftButtonPressed=!1},e.prototype.onMouseEnter=function(e){var t=this;s.EventUtils.isLeftButtonPressed(e)&&setTimeout(function(){t.leftButtonPressed=!0},500)},e.prototype.onDragScrollStart=function(){this.scrollDragging=!0},e.prototype.onDragScrollEnd=function(){this.scrollDragging=!1},e.prototype.canAutoScroll=function(){return this.leftButtonPressed&&!this.scrollDragging},e.prototype.changeScrollPosition=function(e,t,n){var r=this,s=!1;if(!this.view.isAutoScrollLocked()){var a=this.scroll.getScrollContainer(),c=e.pageX-i.DomUtils.getAbsolutePositionX(a),u=e.pageY-i.DomUtils.getAbsolutePositionY(a),l=this.scroll.getSize(),h=new o.Size(parseFloat(this.svgElement.style.width),parseFloat(this.svgElement.style.height)),d=l.width;l.width<h.width&&(d-=this.scrollBarWidth);var f=l.height;l.height<h.height&&(f-=this.scrollBarWidth),c<=40?(this.dom.changeByFunc(null,function(){r.view.isAutoScrollLocked()||r.scroll.offsetScroll(-r.getScrollingOffset(c),0)}),s=!0):d-40<=c&&(this.dom.changeByFunc(null,function(){r.view.isAutoScrollLocked()||r.scroll.offsetScroll(r.getScrollingOffset(d-c),0)}),s=!0),u<=40?(this.dom.changeByFunc(null,function(){r.view.isAutoScrollLocked()||r.scroll.offsetScroll(0,-r.getScrollingOffset(u))}),s=!0):f-40<=u&&(this.dom.changeByFunc(null,function(){r.view.isAutoScrollLocked()||r.scroll.offsetScroll(0,r.getScrollingOffset(f-u))}),s=!0)}(s||this.view.isAutoScrollLocked())&&(this.scrollTimer=window.setTimeout(function(){return r.changeScrollPosition(e,t,s)},50)),n&&t()},e.prototype.clearScrollTimer=function(){this.scrollTimer>-1&&(window.clearTimeout(this.scrollTimer),this.scrollTimer=-1)},e.prototype.getScrollingOffset=function(e){var t=Math.pow((40-e)/5,2);return Math.round(Math.min(t,5))},e.createMainElement=function(e){var t=document.createElement("div");return t.setAttribute("class","dxdi-control"),e.appendChild(t),t},e.createSvgElement=function(e,t){void 0===t&&(t=!1);var n=document.createElementNS(r.svgNS,"svg");return n.className.baseVal="dxdi-canvas"+(t?" export":""),e.appendChild(n),n},e}();t.AutoScrollController=a},3872:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasExportManager=void 0;var a=n(9291),c=n(9279),u=n(3500),l=n(7716),h=n(1114),d=n(6078),f=n(13),p=function(e){function t(t,n,r){var i=e.call(this,1,new d.ExportDOMManipulator(n),r)||this;return i.itemsContainer=t,i}return i(t,e),t.prototype.getSvgImage=function(e,t,n,r){var i=h.RenderHelper.createSvgElement(void 0,!0),o=e.clone().applyConverter(a.UnitConverter.twipsToPixelsF).clone().applyConverter(Math.ceil);u.RenderUtils.updateSvgElementSize(i,o.width,o.height,!0),i.style.backgroundColor=f.ColorUtils.colorToHash(t),this.createTextFloodFilter(this.instanceId,void 0,i,t);var s=!n&&!c.Browser.IE&&this.getExportCssRules();if(s){var l=document.createElementNS(h.svgNS,"style");l.innerHTML=s,i.appendChild(l)}if(r){var d=document.createElementNS(h.svgNS,"rect");d.setAttributeNS(null,"x","0"),d.setAttributeNS(null,"y","0"),d.setAttributeNS(null,"height",o.height.toString()),d.setAttributeNS(null,"width",o.width.toString()),d.setAttributeNS(null,"fill",i.style.backgroundColor),i.appendChild(d)}for(var p=0;p<this.itemsContainer.childNodes.length;p++){var A=this.itemsContainer.childNodes[p].cloneNode(!0);s||this.inlineStyle(A,this.itemsContainer.childNodes[p]),i.appendChild(A)}return i},t.prototype.getSvgImageUrl=function(e,t,n){var r=this.getSvgImage(e,t,n,!1);return this.getSvgBase64String(r)},t.prototype.getSvgString=function(e){return(new XMLSerializer).serializeToString(e)},t.prototype.getSvgBase64String=function(e){var n=this.getSvgString(e);return t.base64Start+this.getBase64EncodeUnicode(n)},t.prototype.getBase64EncodeUnicode=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt("0x"+t,16))}))},t.prototype.getExportCssRules=function(){for(var e=0;e<document.styleSheets.length;e++){var t=this.getRules(document.styleSheets[e]);if(t){for(var n="",r=0;r<t.length;r++){var i=t[r],o=this.isCSSStyleRule(i)?i.selectorText:null;o&&this.checkSelector(o)&&(n+=i.cssText+"\n")}if(n.length>0)return"\n"+n}}},t.prototype.checkSelector=function(e){for(var n=0;n<t.exportStyleRules.length;n++)if(0===e.indexOf(t.exportStyleRules[n]))return!0;return!1},t.prototype.getRules=function(e){try{return this.isCSSStyleSheet(e)?e.rules||e.cssRules:null}catch(e){}},t.prototype.isCSSStyleSheet=function(e){return void 0!==e.rules},t.prototype.isCSSStyleRule=function(e){return void 0!==e.selectorText},t.prototype.inlineStyle=function(e,n){for(var r=0;r<e.childNodes.length;r++){var i=e.childNodes[r];if(i.tagName)if("g"===i.tagName)this.inlineStyle(i,n.childNodes[r]);else if(i.style){var o=window.getComputedStyle(n.childNodes[r]);if(void 0!==o)for(var s=0;s<t.exportStyleAttributes.length;s++){var a=t.exportStyleAttributes[s];i.style.setProperty(a,o.getPropertyValue(a))}this.inlineStyle(i,n.childNodes[r])}}},t.prototype.exportSvgImage=function(e,t,n){n(this.getSvgImageUrl(e,t,!0))},t.prototype.exportBinaryImage=function(e,t,n,r,i){var o=this.getAbsoluteSize(e).clone().applyConverter(Math.ceil),s=document.createElement("canvas");s.width=o.width,s.height=o.height;var a=s.getContext("2d");if(a.fillStyle=f.ColorUtils.colorToHash(t),a.fillRect(0,0,o.width,o.height),(i||c.Browser.IE)&&"object"==typeof canvg)this.exportBinaryImageCanvgAsync(e,t,s,a,n).then(function(e){return r(e)});else if(c.Browser.IE&&"function"==typeof canvg)this.exportBinaryImageCanvgOld(e,t,s,a,n,r);else{var u=new Image;u.width=o.width,u.height=o.height,u.setAttribute("crossOrigin","anonymous"),u.onload=function(){a.drawImage(u,0,0),r(s.toDataURL(n,1))},u.src=this.getSvgImageUrl(e,t,!0)}},t.prototype.exportBinaryImageCanvgOld=function(e,t,n,r,i,o){var s=this.getSvgImage(e,t,!0,!1),a=this.getSvgString(s);r.drawSvg(a,0,0,null,null,{renderCallback:function(){o(n.toDataURL(i,1))}})},t.prototype.exportBinaryImageCanvgAsync=function(e,t,n,r,i){return o(this,void 0,void 0,function(){var o,a;return s(this,function(s){switch(s.label){case 0:return o=this.getSvgImage(e,t,!0,!0),a=this.getSvgString(o),[4,canvg.Canvg.fromString(r,a).render()];case 1:return s.sent(),[2,n.toDataURL(i,1)]}})})},t.prototype.exportPngImage=function(e,t,n,r){this.exportBinaryImage(e,t,"image/png",n,r)},t.prototype.exportJpgImage=function(e,t,n,r){this.exportBinaryImage(e,t,"image/jpeg",n,r)},t.prototype.notifyModelChanged=function(e){},t.prototype.notifyPageColorChanged=function(e){},t.prototype.notifyPageSizeChanged=function(e,t){},t.base64Start="data:image/svg+xml;base64,",t.exportStyleRules=[".dxdi-canvas .shape ",".dxdi-canvas .connector ",".dxdi-canvas text",".dxdi-canvas.export"],t.exportStyleAttributes=["fill","stroke","stroke-width","stroke-linejoin","font-family","font-size","font-weight","font-style","text-decoration","text-anchor"],t}(l.CanvasManagerBase);t.CanvasExportManager=p},8693:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasItemsManager=t.CONNECTOR_CAN_MOVE=t.NOT_VALID_CSSCLASS=void 0;var o=n(2004),s=n(6031),a=n(5329),c=n(3500),u=n(5503),l=n(7959),h=n(6907),d=n(916),f=n(4867);t.NOT_VALID_CSSCLASS="not-valid",t.CONNECTOR_CAN_MOVE="can-move";var p=function(e){function n(t,n,r,i){var o=e.call(this,n,r,i)||this;return o.itemSelectorGroupContainers={},o.itemSelectorElements={},o.itemGroupContainers={},o.itemElements={},o.itemChildElements={},o.primitives={},o.selectorPrimitives={},o.selectedItems={},o.initializeContainerElements(t),o}return i(n,e),n.prototype.initializeContainerElements=function(e){this.itemSelectorsContainer=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null),e),this.itemsContainer=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null),e)},n.prototype.clear=function(){this.primitives={},this.selectorPrimitives={},c.RenderUtils.removeContent(this.itemSelectorsContainer),c.RenderUtils.removeContent(this.itemsContainer),this.itemSelectorGroupContainers={},this.itemSelectorElements={},this.itemGroupContainers={},this.itemElements={},this.itemChildElements={},this.selectedItems={}},n.prototype.applyChange=function(e){var t=e.item;return!!this.getItemParent(t.zIndex,t.container&&t.container.key)&&(t instanceof u.Shape?this.applyShapeChange(t,e.type,e.isValid):t instanceof l.Connector&&this.applyConnectorChange(t,e.type,e.isValid),!0)},n.prototype.setPointerEventsNone=function(e,t){var n=e.style;void 0!==n&&void 0!==n.pointerEvents&&(n.pointerEvents=t?"none":"");for(var r=e.childNodes,i=0;i<r.length;i++)this.setPointerEventsNone(r[i],t)},n.prototype.notifyDragStart=function(e){var t=this;e.forEach(function(e){t.itemElements[e]&&t.setPointerEventsNone(t.itemElements[e],!0),t.itemChildElements[e]&&t.setPointerEventsNone(t.itemChildElements[e],!0),t.itemSelectorElements[e]&&t.setPointerEventsNone(t.itemSelectorElements[e],!0)})},n.prototype.notifyDragEnd=function(e){var t=this;e.forEach(function(e){t.itemElements[e]&&t.setPointerEventsNone(t.itemElements[e],!1),t.itemChildElements[e]&&t.setPointerEventsNone(t.itemChildElements[e],!1),t.itemSelectorElements[e]&&t.setPointerEventsNone(t.itemSelectorElements[e],!1)})},n.prototype.notifyDragScrollStart=function(){},n.prototype.notifyDragScrollEnd=function(){},n.prototype.notifyTextInputStart=function(e,t,n,r){var i=this.itemElements[e.key];h.DomUtils.addClassName(i,"text-input")},n.prototype.notifyTextInputEnd=function(e,t){var n=this.itemElements[e.key];h.DomUtils.removeClassName(n,"text-input")},n.prototype.notifyTextInputPermissionsCheck=function(e,n){var r=this.itemElements[e.key];n?h.DomUtils.removeClassName(r,t.NOT_VALID_CSSCLASS):h.DomUtils.addClassName(r,t.NOT_VALID_CSSCLASS)},n.prototype.notifyActualZoomChanged=function(e){var t="scale("+e+")";this.dom.changeByFunc(this.itemsContainer,function(e){return e.setAttribute("transform",t)}),this.dom.changeByFunc(this.itemSelectorsContainer,function(e){return e.setAttribute("transform",t)}),this.actualZoom=e},n.prototype.notifyViewAdjusted=function(e){},n.prototype.invalidatePrimitives=function(e){this.primitives[e.key]&&(this.primitives[e.key].forEach(function(e){e.dispose()}),delete this.primitives[e.key]),this.selectorPrimitives[e.key]&&(this.selectorPrimitives[e.key].forEach(function(e){e.dispose()}),delete this.selectorPrimitives[e.key])},n.prototype.getPrimitives=function(e,t){return this.primitives[e.key]||(this.primitives[e.key]=e.createPrimitives(t)),this.primitives[e.key]},n.prototype.getSelectorPrimitives=function(e){return this.selectorPrimitives[e.key]||(this.selectorPrimitives[e.key]=e.createSelectorPrimitives()),this.selectorPrimitives[e.key]},n.prototype.getShapeSelectorClassName=function(e){var t="shape";return e.enableChildren&&(t+=" container"),e.isLocked&&(t+=" locked"),t},n.prototype.getShapeClassName=function(e,n){var r=this.getShapeSelectorClassName(e);return n?r:r+" "+t.NOT_VALID_CSSCLASS},n.prototype.applyShapeChange=function(e,t,n){var r=e.key,i=e.container&&e.container.key,a=this.getItemSelectorGroupContainer(e.zIndex,i),c=this.getItemGroupContainer(e.zIndex,i),u=this.getShapeClassName(e,n);switch(t){case o.ItemChangeType.Create:this.itemSelectorElements[r]=this.createItemElements(r,this.getSelectorPrimitives(e),a,this.getShapeSelectorClassName(e),s.MouseEventElementType.Shape),this.itemElements[r]=this.createItemElements(r,this.getPrimitives(e,this.instanceId),c,u,s.MouseEventElementType.Shape),e.enableChildren&&(this.itemChildElements[r]=this.createItemElements(r,[],c,"container-children",s.MouseEventElementType.Undefined),this.changeItemChildrenVisibility(this.itemChildElements[r],e.expanded));break;case o.ItemChangeType.Remove:this.removeItemCustomContent(this.itemSelectorElements[r],this.getSelectorPrimitives(e)),this.removeItemCustomContent(this.itemElements[r],this.getPrimitives(e,this.instanceId)),this.invalidatePrimitives(e),this.removeItemElements(this.itemSelectorElements[r]),delete this.itemSelectorElements[r],this.removeItemElements(this.itemElements[r]),delete this.itemElements[r],this.itemChildElements[r]&&(this.removeItemElements(this.itemChildElements[r]),delete this.itemChildElements[r],delete this.itemGroupContainers[r],delete this.itemSelectorGroupContainers[r]);break;case o.ItemChangeType.UpdateStructure:case o.ItemChangeType.UpdateProperties:case o.ItemChangeType.Update:t!==o.ItemChangeType.Update&&(t===o.ItemChangeType.UpdateStructure&&(this.removeItemCustomContent(this.itemSelectorElements[r],this.getSelectorPrimitives(e)),this.removeItemCustomContent(this.itemElements[r],this.getPrimitives(e,this.instanceId))),this.invalidatePrimitives(e)),this.changeItemElements(this.getSelectorPrimitives(e),this.itemSelectorElements[r],t===o.ItemChangeType.UpdateStructure),this.changeItemElements(this.getPrimitives(e,this.instanceId),this.itemElements[r],t===o.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemElements[r],u),this.itemChildElements[r]&&this.changeItemChildrenVisibility(this.itemChildElements[r],e.expanded),a!==(this.itemSelectorElements[r]&&this.itemSelectorElements[r].parentNode)&&this.moveItemElements(a,this.itemSelectorElements[r]),c!==(this.itemElements[r]&&this.itemElements[r].parentNode)&&this.moveItemElements(c,this.itemElements[r]),this.itemChildElements[r]&&c!==this.itemChildElements[r].parentNode&&this.moveItemElements(c,this.itemChildElements[r]);break;case o.ItemChangeType.UpdateClassName:this.changeItemClassName(this.itemElements[r],u)}},n.prototype.getConnectorSelectorClassName=function(e){var n="connector";return f.ModelUtils.canMoveConnector(this.selectedItems,e)?n+" "+t.CONNECTOR_CAN_MOVE:n},n.prototype.getConnectorClassName=function(e,n){var r=this.getConnectorSelectorClassName(e);return n?r:r+" "+t.NOT_VALID_CSSCLASS},n.prototype.applyConnectorChange=function(e,t,n){var r=e.key,i=e.container&&e.container.key,a=this.getItemSelectorGroupContainer(e.zIndex,i),c=this.getItemGroupContainer(e.zIndex,i),u=this.getConnectorClassName(e,n);switch(t){case o.ItemChangeType.Create:this.itemSelectorElements[r]=this.createItemElements(r,this.getSelectorPrimitives(e),a,this.getConnectorSelectorClassName(e),s.MouseEventElementType.Connector),this.itemElements[r]=this.createItemElements(r,this.getPrimitives(e,this.instanceId),c,u,s.MouseEventElementType.Connector);break;case o.ItemChangeType.Remove:this.removeItemCustomContent(this.itemSelectorElements[r],this.getSelectorPrimitives(e)),this.removeItemCustomContent(this.itemElements[r],this.getPrimitives(e,this.instanceId)),this.invalidatePrimitives(e),this.removeItemElements(this.itemSelectorElements[r]),delete this.itemSelectorElements[r],this.removeItemElements(this.itemElements[r]),delete this.itemElements[r];break;case o.ItemChangeType.UpdateStructure:case o.ItemChangeType.UpdateProperties:case o.ItemChangeType.Update:t!==o.ItemChangeType.Update&&(t===o.ItemChangeType.UpdateStructure&&(this.removeItemCustomContent(this.itemSelectorElements[r],this.getSelectorPrimitives(e)),this.removeItemCustomContent(this.itemElements[r],this.getPrimitives(e,this.instanceId))),this.invalidatePrimitives(e)),this.changeItemElements(this.getSelectorPrimitives(e),this.itemSelectorElements[r],t===o.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemSelectorElements[r],this.getConnectorSelectorClassName(e)),this.changeItemElements(this.getPrimitives(e,this.instanceId),this.itemElements[r],t===o.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemElements[r],u),a!==(this.itemSelectorElements[r]&&this.itemSelectorElements[r].parentNode)&&this.moveItemElements(a,this.itemSelectorElements[r]),c!==(this.itemElements[r]&&this.itemElements[r].parentNode)&&this.moveItemElements(c,this.itemElements[r]);break;case o.ItemChangeType.UpdateClassName:this.changeItemClassName(this.itemSelectorElements[r],this.getConnectorSelectorClassName(e)),this.changeItemClassName(this.itemElements[r],u)}},n.prototype.createItemElements=function(e,t,n,r,i){var o=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],r,void 0,void 0,function(t){return c.RenderUtils.setElementEventData(t,i,e)}),n);return this.createAndChangePrimitivesElements(t,o),o},n.prototype.changeItemElements=function(e,t,n){n||e.length!==t.childNodes.length?(c.RenderUtils.removeContent(t),this.createAndChangePrimitivesElements(e,t)):this.dom.changeChildrenByPrimitives(e,t)},n.prototype.changeItemClassName=function(e,t){t&&e&&this.changePrimitiveElement(new a.GroupPrimitive([],t),e)},n.prototype.removeItemElements=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},n.prototype.removeItemCustomContent=function(e,t){e&&t&&t.length===e.childNodes.length&&t.forEach(function(t,n){t.destroyCustomContent(e.childNodes[n])})},n.prototype.moveItemElements=function(e,t,n){t&&e&&(n?e.insertBefore(t,n):e.appendChild(t))},n.prototype.changeItemChildrenVisibility=function(e,t){e.style.display=t?"":"none"},n.prototype.getItemGroupContainerKey=function(e,t){return void 0!==t?e+"_"+t:e.toString()},n.prototype.getItemGroupContainer=function(e,t){var n=void 0!==t?this.getItemParent(e,t):this.itemsContainer,r=t||"Main";if(void 0===this.itemGroupContainers[r]||void 0===this.itemGroupContainers[r][e]){void 0===this.itemGroupContainers[r]&&(this.itemGroupContainers[r]=[]);var i=Object.keys(this.itemGroupContainers[r]).map(function(e){return+e}).sort().filter(function(t){return t>e})[0];this.itemGroupContainers[r][e]=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null,e),n,this.itemGroupContainers[r][i])}return this.itemGroupContainers[r][e]},n.prototype.getItemSelectorGroupContainer=function(e,t){var n=void 0!==t?this.getItemSelectorParent(e,t):this.itemSelectorsContainer,r=t||"Main";if(void 0===this.itemSelectorGroupContainers[r]||void 0===this.itemSelectorGroupContainers[r][e]){void 0===this.itemSelectorGroupContainers[r]&&(this.itemSelectorGroupContainers[r]=[]);var i=Object.keys(this.itemSelectorGroupContainers[r]).map(function(e){return+e}).sort().filter(function(t){return t>e})[0];this.itemSelectorGroupContainers[r][e]=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null,e),n,this.itemSelectorGroupContainers[r][i])}return this.itemSelectorGroupContainers[r][e]},n.prototype.getItemParent=function(e,t){return void 0!==t?this.itemChildElements[t]:this.getItemGroupContainer(e)},n.prototype.getItemSelectorParent=function(e,t){return void 0!==t?this.itemChildElements[t]:this.getItemSelectorGroupContainer(e)},n.prototype.notifySelectionChanged=function(e){var t=this,n=f.ModelUtils.createSelectedItems(e),r=[];this.populateItems(r,n,this.selectedItems),this.populateItems(r,this.selectedItems,n),this.selectedItems=n,r.forEach(function(e){e instanceof l.Connector&&!t.pendingRemoveChanges[e.key]&&t.applyOrPostponeChanges([new o.ItemChange(e,o.ItemChangeType.UpdateClassName,!0)])})},n.prototype.populateItems=function(e,t,n){Object.keys(t).forEach(function(r){n[r]||e.push(t[r])})},n}(d.CanvasManager);t.CanvasItemsManager=p},916:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasManager=void 0;var o=n(2004),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pendingChanges={},t.pendingRemoveChanges={},t.updatesLock=0,t}return i(t,e),t.prototype.beginUpdate=function(){this.updatesLock++},t.prototype.endUpdate=function(){this.updatesLock--,0===this.updatesLock&&this.applyPendingChanges()},t.prototype.getPendingChanges=function(){var e=this;return Object.keys(this.pendingChanges).map(function(t){return e.pendingChanges[t]})},t.prototype.getPendingRemoveChanges=function(){var e=this;return Object.keys(this.pendingRemoveChanges).map(function(t){return e.pendingRemoveChanges[t]})},t.prototype.applyPendingChanges=function(){var e=this.getPendingRemoveChanges();e.length&&(this.applyChangesCore(e),this.pendingRemoveChanges={});var t=this.getPendingChanges();t.length&&(this.applyChangesCore(t),this.pendingChanges={})},t.prototype.applyChangesCore=function(e){var t=this,n=[];e.forEach(function(e){t.applyChange(e)||n.push(e)}),n.length&&n.length!==e.length&&this.applyChangesCore(n)},t.prototype.postponeChanges=function(e){var t=this;e.forEach(function(e){if(e.type===o.ItemChangeType.Remove)t.pendingRemoveChanges[e.key]=e,delete t.pendingChanges[e.key];else if(t.pendingChanges[e.key])e.type===o.ItemChangeType.Create?t.pendingChanges[e.key]=e:e.type===o.ItemChangeType.UpdateStructure?t.pendingChanges[e.key].type===o.ItemChangeType.UpdateProperties&&(t.pendingChanges[e.key]=e):e.type===o.ItemChangeType.UpdateProperties?t.pendingChanges[e.key].type===o.ItemChangeType.Update&&(t.pendingChanges[e.key]=e):e.type===o.ItemChangeType.UpdateClassName&&t.pendingChanges[e.key].type===o.ItemChangeType.UpdateClassName&&(t.pendingChanges[e.key]=e);else{if(t.pendingRemoveChanges[e.key]&&e.type!==o.ItemChangeType.Create)throw new Error("Incorrect model changes sequence.");t.pendingChanges[e.key]=e}})},t.prototype.applyOrPostponeChanges=function(e){0===this.updatesLock?this.applyChangesCore(e):this.postponeChanges(e)},t.prototype.notifyModelChanged=function(e){this.applyOrPostponeChanges(e)},t.prototype.notifyPageColorChanged=function(e){},t.prototype.notifyPageSizeChanged=function(e,t){},t}(n(7716).CanvasManagerBase);t.CanvasManager=s},7716:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasManagerBase=t.PAGE_BG_TEXTFLOOR_FILTER_IDPREFIX=void 0;var r=n(3360),i=n(9291);t.PAGE_BG_TEXTFLOOR_FILTER_IDPREFIX="page-text-flood";var o=function(){function e(e,t,n){this.elements={},this.instanceId=n,this.actualZoom=e,this.dom=t}return e.prototype.createAndChangePrimitivesElements=function(e,t){var n=this;e.forEach(function(e){n.createAndChangePrimitiveElement(e,t)})},e.prototype.createPrimitiveElement=function(e,t,n){return this.dom.createElement(e,t,n)},e.prototype.createAndChangePrimitiveElement=function(e,t,n){var r=this.createPrimitiveElement(e,t,n);return this.dom.changeByPrimitive(r,e),r},e.prototype.changePrimitiveElement=function(e,t){this.dom.changeByPrimitive(t,e)},e.prototype.getOrCreateElement=function(e,t,n,r){var i=e&&this.elements[e]||(this.elements[e]=this.createPrimitiveElement(t,n,r));return this.changePrimitiveElement(t,i),i},e.prototype.createTextFloodFilter=function(e,n,i,o){this.getOrCreateElement(n,new r.TextFloodFilterPrimitive(t.PAGE_BG_TEXTFLOOR_FILTER_IDPREFIX+e,o),i)},e.prototype.getAbsoluteSize=function(e){return e.clone().applyConverter(i.UnitConverter.twipsToPixelsF).clone().multiply(this.actualZoom,this.actualZoom)},e}();t.CanvasManagerBase=o},6043:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasPageManager=void 0;var o=n(1552),s=n(4716),a=n(7724),c=n(1932),u=n(4593),l=n(7716),h=n(6353),d=n(8900),f=n(3500),p=n(13),A=n(9291),g=function(e){function t(t,n,r,i){var o=e.call(this,n.zoomLevel,r,i)||this;return o.snapPoint=new d.Point(0,0),o.gridPatternId=f.RenderUtils.generateSvgElementId("gridPattern"),o.pagesGridPatternId=f.RenderUtils.generateSvgElementId("pagesGridPattern"),o.pagesGridClipId=f.RenderUtils.generateSvgElementId("pagesGridClip"),o.pageColor=n.pageColor,o.modelSize=n.modelSize,o.simpleView=n.simpleView,o.gridSize=n.gridSize,o.gridVisible=n.gridVisible,o.pageSize=n.pageLandscape?new h.Size(n.pageSize.height,n.pageSize.width):n.pageSize,o.canvasViewOffset=new d.Point(0,0),o.initContainers(t),o}return i(t,e),t.prototype.initContainers=function(e){this.backgroundContainer=e},t.prototype.redraw=function(){this.redrawPage(this.pageColor),this.redrawGrid()},t.prototype.redrawPage=function(e){var t=new o.Style;t.fill=p.ColorUtils.colorToHash(e),this.getOrCreateElement("page-bg",new s.RectanglePrimitive(0,0,"100%","100%",t,"page"),this.backgroundContainer),this.createTextFloodFilter(this.instanceId,"page-bg-textflood-filter",this.backgroundContainer,e)},t.prototype.redrawGrid=function(){this.updateGridElements(),this.updatePagesGridElements()},t.prototype.getGridRectElement=function(e){return void 0===this.gridRectElement&&(this.gridRectElement=this.createPrimitiveElement(e,this.backgroundContainer)),this.gridRectElement},t.prototype.getGridPatternElement=function(e){return void 0===this.gridPatternElement&&(this.gridPatternElement=this.createPrimitiveElement(e,this.backgroundContainer)),this.gridPatternElement},t.prototype.updateGridElements=function(){var e=this,t=new s.RectanglePrimitive("0","0","100%","100%",null,"grid",null,function(t){t.style.setProperty("fill",f.RenderUtils.getUrlPathById(e.gridPatternId))}),n=this.getGridRectElement(t);if(this.gridVisible){n.style.display="",this.changePrimitiveElement(t,n);for(var r=A.UnitConverter.twipsToPixelsF(this.gridSize)*this.actualZoom,i=[0,1,2,3,4].map(function(e){return Math.round(r*e)}),o=[new a.PathPrimitiveMoveToCommand(i[4].toString(),"0"),new a.PathPrimitiveLineToCommand(i[4].toString(),i[4].toString()),new a.PathPrimitiveLineToCommand("0",i[4].toString())],u=[],l=1;l<=3;l++)u.push(new a.PathPrimitiveMoveToCommand(i[l].toString(),"0")),u.push(new a.PathPrimitiveLineToCommand(i[l].toString(),i[4].toString()));for(l=1;l<=3;l++)u.push(new a.PathPrimitiveMoveToCommand("0",i[l].toString())),u.push(new a.PathPrimitiveLineToCommand(i[4].toString(),i[l].toString()));var h=4*r,p=this.simpleView?this.canvasViewOffset:d.Point.zero(),g=new c.PatternPrimitive(this.gridPatternId,[this.createGridPathPrimitive(o,"grid-outer-line"),this.createGridPathPrimitive(u,"grid-inner-line")],this.createGridPatternPrimitivePosition(p.x,this.snapPoint.x,h),this.createGridPatternPrimitivePosition(p.y,this.snapPoint.y,h),h.toString(),h.toString());this.changePrimitiveElement(g,this.getGridPatternElement(g))}else n.style.display="none"},t.prototype.createGridPatternPrimitivePosition=function(e,t,n){return(((e+t*this.actualZoom)%n-n)%n).toString()},t.prototype.createGridPathPrimitive=function(e,t){return new a.PathPrimitive(e,o.StrokeStyle.default1pxNegativeOffsetInstance,t)},t.prototype.getPagesGridRectElement=function(e){return this.getOrCreateElement("grid-pages-rect",e,this.backgroundContainer)},t.prototype.getPagesGridClipPathElement=function(e){return void 0===this.pagesGridClipPathElement&&(this.pagesGridClipPathElement=this.createPrimitiveElement(e,this.backgroundContainer)),this.pagesGridClipPathElement},t.prototype.getPagesGridPatternElement=function(e){return void 0===this.pagesGridPatternElement&&(this.pagesGridPatternElement=this.createPrimitiveElement(e,this.backgroundContainer)),this.pagesGridPatternElement},t.prototype.updatePagesGridElements=function(){var e=this,t=this.getAbsoluteSize(this.pageSize),n=new s.RectanglePrimitive("0","0","100%","100%",null,"grid-page",this.pagesGridClipId,function(t){t.style.setProperty("fill",f.RenderUtils.getUrlPathById(e.pagesGridPatternId)),t.style.setProperty("display",e.simpleView?"none":"")});if(this.getPagesGridRectElement(n),!this.simpleView){var r=this.modelSize.clone().multiply(this.actualZoom,this.actualZoom),i=[new a.PathPrimitiveMoveToCommand((t.width-1).toString(),"0"),new a.PathPrimitiveLineToCommand((t.width-1).toString(),(t.height-1).toString()),new a.PathPrimitiveLineToCommand("0",(t.height-1).toString())],o=new c.PatternPrimitive(this.pagesGridPatternId,[new a.PathPrimitive(i,null,"pages-grid-line")],0,0,t.width.toString(),t.height.toString());this.changePrimitiveElement(o,this.getPagesGridPatternElement(o));var l=new u.ClipPathPrimitive(this.pagesGridClipId,[new s.RectanglePrimitive(0,0,(A.UnitConverter.twipsToPixelsF(r.width)-4).toString(),(A.UnitConverter.twipsToPixelsF(r.height)-4).toString())]);this.changePrimitiveElement(l,this.getPagesGridClipPathElement(l))}},t.prototype.notifyModelSizeChanged=function(e,t){this.modelSize=e.clone(),this.redraw()},t.prototype.notifyModelRectangleChanged=function(e){},t.prototype.notifySnapPointPositionChanged=function(e){this.snapPoint=e.clone().applyConverter(A.UnitConverter.twipsToPixelsF),this.redrawGrid()},t.prototype.notifyPageColorChanged=function(e){this.pageColor=e,this.redrawPage(this.pageColor)},t.prototype.notifyModelChanged=function(e){},t.prototype.notifyPageSizeChanged=function(e,t){this.pageSize=t?new h.Size(e.height,e.width):e.clone(),this.redraw()},t.prototype.notifyActualZoomChanged=function(e){this.actualZoom=e,this.redraw()},t.prototype.notifyViewAdjusted=function(e){this.canvasViewOffset.equals(e)||(this.canvasViewOffset=e,this.simpleView&&this.redraw())},t.prototype.notifyViewChanged=function(e){this.simpleView=e,this.redraw()},t.prototype.notifyGridChanged=function(e,t){this.gridVisible=e,this.gridSize=t,this.redraw()},t}(l.CanvasManagerBase);t.CanvasPageManager=g},4e3:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasSelectionManager=t.ACTIVE_SELECTION_CSSCLASS=t.SELECTION_ELEMENT_CLASSNAMES=void 0;var o=n(7716),s=n(5329),a=n(3500),c=n(6031),u=n(3742),l=n(8675),h=n(8900),d=n(371),f=n(5503),p=n(7959),A=n(4612),g=n(4716),m=n(7724),y=n(9416),v=n(418),b=n(1552),w=n(9291),C=n(4246),_=n(9279),S=n(6907),x=n(8693),T=n(916),P=n(5596),E=n(8679),I=n(4867),k="-1";t.SELECTION_ELEMENT_CLASSNAMES={SELECTION_RECTANGLE:"selection-rect",CONNECTION_POINT:"connection-point",ACTIVE:"active",CONTAINER_TARGET:"container-target",CONNECTION_TARGET:"connection-target",EXTENSION_LINE:"extension-line",CONNECTION_MARK:"connection-mark",SELECTION_MARK:"selection-mark",LOCKED_SELECTION_MARK:"locked-selection-mark",ITEMS_SELECTION_RECT:"items-selection-rect",CONNECTOR_MULTI_SELECTION:"connector-multi-selection",CONNECTOR_SELECTION:"connector-selection",CONNECTOR_POINT_MARK:"connector-point-mark",CONNECTOR_SELECTION_MASK:"connector-selection-mask",CONNECTOR_SIDE_MARK:"connector-side-mark",ITEM_SELECTION_RECT:"item-selection-rect",ITEM_MULTI_SELECTION:"item-multi-selection-rect"},t.ACTIVE_SELECTION_CSSCLASS="dxdi-active-selection";var B=function(e){function n(t,n,r,i,o){var s=e.call(this,n,i,o)||this;return s.readOnly=r,s.connectionPointElements=[],s.extensionLineElements=[],s.selectionMap={},s.parentContainer=t,s.initializeContainerElements(t),s}return i(n,e),n.prototype.initializeContainerElements=function(e){this.itemSelectionContainer=this.createAndChangePrimitiveElement(new s.GroupPrimitive([],null),e),this.visualizersContainer=this.createAndChangePrimitiveElement(new s.GroupPrimitive([],null),e),this.selectionMarksContainer=this.createAndChangePrimitiveElement(new s.GroupPrimitive([],null),e)},n.prototype.clear=function(){a.RenderUtils.removeContent(this.itemSelectionContainer),a.RenderUtils.removeContent(this.selectionMarksContainer),a.RenderUtils.removeContent(this.visualizersContainer),this.selectionRectElement=void 0,this.resizeInfoElement=void 0,this.connectionPointElements=[],this.connectionTargetElement=void 0,this.containerTargetElement=void 0,this.extensionLineElements=[],this.selectionMap={}},n.prototype.showSelectionRect=function(e){S.DomUtils.addClassName(this.parentContainer,t.ACTIVE_SELECTION_CSSCLASS);var n=new g.RectanglePrimitive(e.x,e.y,e.width,e.height,b.StrokeStyle.default1pxInstance,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_RECTANGLE),r=this.getSelectionRectElement(n);this.changePrimitiveElement(n,r)},n.prototype.hideSelectionRect=function(){S.DomUtils.removeClassName(this.parentContainer,t.ACTIVE_SELECTION_CSSCLASS),void 0!==this.selectionRectElement&&this.dom.changeByFunc(this.selectionRectElement,function(e){return e.style.display="none"})},n.prototype.getSelectionRectElement=function(e){return void 0!==this.selectionRectElement?this.dom.changeByFunc(this.selectionRectElement,function(e){return e.style.display=""}):this.selectionRectElement=this.createPrimitiveElement(e,this.visualizersContainer),this.selectionRectElement},n.prototype.showResizeInfo=function(e,t){var r=new g.RectanglePrimitive(e.x,e.y,0,0,b.StrokeStyle.default1pxInstance),i=new s.GroupPrimitive([r,new y.TextPrimitive(e.x,e.y,t,C.TextOwner.Resize)],"resize-info"),o=this.getResizeInfoElement(i);this.changePrimitiveElement(i,o);var a=this.dom.measurer.measureTextLine(t,null,C.TextOwner.Resize).applyConverter(w.UnitConverter.pixelsToTwips);r.width=a.width+2*n.resizeInfoTextOffset,r.height=a.height+2*n.resizeInfoTextOffset,r.x=e.x-a.width/2-n.resizeInfoTextOffset,r.y=e.y-a.height/2-n.resizeInfoTextOffset,this.changePrimitiveElement(i,o)},n.prototype.hideResizeInfo=function(){void 0!==this.resizeInfoElement&&this.dom.changeByFunc(this.resizeInfoElement,function(e){return e.style.display="none"})},n.prototype.getResizeInfoElement=function(e){return void 0!==this.resizeInfoElement?this.dom.changeByFunc(this.resizeInfoElement,function(e){return e.style.display=""}):this.resizeInfoElement=this.createPrimitiveElement(e,this.visualizersContainer),this.resizeInfoElement},n.prototype.getConnectionPointClassName=function(e,n){var r=t.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT;return e&&(r+=" "+t.SELECTION_ELEMENT_CLASSNAMES.ACTIVE),n||(r+=" "+x.NOT_VALID_CSSCLASS),r},n.prototype.showConnectionPoint=function(e,r,i,o,s,a){this.showConnectionPointCore(2*e,r.x,r.y,n.connectionPointLargeSize,n.connectionPointLargeSize,c.MouseEventElementType.ShapeConnectionPoint,i,o,t.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT+" selector"+(a?"":" "+x.NOT_VALID_CSSCLASS)),this.showConnectionPointCore(2*e+1,r.x,r.y,n.connectionPointSmallSize,n.connectionPointSmallSize,c.MouseEventElementType.ShapeConnectionPoint,i,o,this.getConnectionPointClassName(s,a))},n.prototype.showConnectionPointCore=function(e,t,n,r,i,o,s,c,u){var l=new v.EllipsePrimitive(t,n,r,i,null,u,function(e){return a.RenderUtils.setElementEventData(e,o,s,c)}),h=this.getConnectionPointElement(l,e);this.changePrimitiveElement(l,h)},n.prototype.hideConnectionPoints=function(){for(var e=0;e<this.connectionPointElements.length;e++)this.dom.changeByFunc(this.connectionPointElements[e],function(e){return e.style.display="none"})},n.prototype.getConnectionPointElement=function(e,t){var n=this.connectionPointElements[t];return void 0!==n?this.dom.changeByFunc(n,function(e){return e.style.display=""}):(n=this.createPrimitiveElement(e,this.visualizersContainer),this.connectionPointElements[t]=n),n},n.prototype.showContainerTarget=function(e,n){var r=new g.RectanglePrimitive(n.x,n.y,n.width,n.height,null,t.SELECTION_ELEMENT_CLASSNAMES.CONTAINER_TARGET),i=this.getContainerTargetElement(r);this.changePrimitiveElement(r,i)},n.prototype.hideContainerTarget=function(){this.containerTargetElement&&this.dom.changeByFunc(this.containerTargetElement,function(e){return e.style.display="none"})},n.prototype.getContainerTargetElement=function(e){return void 0!==this.containerTargetElement?this.dom.changeByFunc(this.containerTargetElement,function(e){return e.style.display=""}):this.containerTargetElement=this.createPrimitiveElement(e,this.itemSelectionContainer),this.containerTargetElement},n.prototype.showConnectionTarget=function(e,n){var r=new g.RectanglePrimitive(n.x,n.y,n.width,n.height,null,t.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_TARGET),i=this.getConnectionTargetElement(r);this.changePrimitiveElement(r,i)},n.prototype.hideConnectionTarget=function(){this.connectionTargetElement&&this.dom.changeByFunc(this.connectionTargetElement,function(e){return e.style.display="none"})},n.prototype.getConnectionTargetElement=function(e){return void 0!==this.connectionTargetElement?this.dom.changeByFunc(this.connectionTargetElement,function(e){return e.style.display=""}):this.connectionTargetElement=this.createPrimitiveElement(e,this.itemSelectionContainer),this.connectionTargetElement},n.prototype.showExtensionLine=function(e,r,i,a,c){var u=t.SELECTION_ELEMENT_CLASSNAMES.EXTENSION_LINE;r!==d.ExtensionLineType.VerticalCenterAfter&&r!==d.ExtensionLineType.VerticalCenterBefore&&r!==d.ExtensionLineType.HorizontalCenterAbove&&r!==d.ExtensionLineType.HorizontalCenterBelow||(u+=" center"),r!==d.ExtensionLineType.VerticalCenterToPageCenter&&r!==d.ExtensionLineType.HorizontalCenterToPageCenter&&r!==d.ExtensionLineType.LeftToPageCenter&&r!==d.ExtensionLineType.RightToPageCenter&&r!==d.ExtensionLineType.TopToPageCenter&&r!==d.ExtensionLineType.BottomToPageCenter||(u+=" page");var l=0,h=0,f=0,p=0,A=0,g=0,v=0,w=0;i.y===a.y?(l=i.x-n.extensionLineWidth,h=i.y-n.extensionLineEndingSize,f=i.x-n.extensionLineWidth,p=i.y+n.extensionLineEndingSize,A=a.x-n.extensionLineWidth,g=i.y-n.extensionLineEndingSize,v=a.x-n.extensionLineWidth,w=i.y+n.extensionLineEndingSize):i.x===a.x&&(l=i.x-n.extensionLineEndingSize,h=i.y-n.extensionLineWidth,f=i.x+n.extensionLineEndingSize,p=i.y-n.extensionLineWidth,A=i.x-n.extensionLineEndingSize,g=a.y-n.extensionLineWidth,v=i.x+n.extensionLineEndingSize,w=a.y-n.extensionLineWidth);var _=0,S=0;r!==d.ExtensionLineType.RightToRightAbove&&r!==d.ExtensionLineType.RightToRightBelow||(_-=n.extensionLineWidth),r!==d.ExtensionLineType.BottomToBottomAfter&&r!==d.ExtensionLineType.BottomToBottomBefore||(S-=n.extensionLineWidth);var x=[new m.PathPrimitive([m.PathPrimitiveMoveToCommand.fromPoint(i.clone().offset(_,S)),m.PathPrimitiveLineToCommand.fromPoint(a.clone().offset(_,S))],b.StrokeStyle.default1pxInstance,"size-line"),new m.PathPrimitive([new m.PathPrimitiveMoveToCommand(l,h),new m.PathPrimitiveLineToCommand(f,p),new m.PathPrimitiveMoveToCommand(A,g),new m.PathPrimitiveLineToCommand(v,w)],b.StrokeStyle.default1pxInstance),new y.TextPrimitive((a.x+i.x)/2,(a.y+i.y)/2,c,C.TextOwner.ExtensionLine,void 0,void 0,void 0,null,void 0,null,o.PAGE_BG_TEXTFLOOR_FILTER_IDPREFIX+this.instanceId)],T=new s.GroupPrimitive(x,u),P=this.getExtensionLineElement(T,e);this.changePrimitiveElement(T,P)},n.prototype.hideExtensionLines=function(){for(var e=0;e<this.extensionLineElements.length;e++)this.extensionLineElements[e]&&this.dom.changeByFunc(this.extensionLineElements[e],function(e){return e.style.display="none"})},n.prototype.getExtensionLineElement=function(e,t){var n=this.extensionLineElements[t];return void 0!==n?this.dom.changeByFunc(n,function(e){return e.style.display=""}):(n=this.createPrimitiveElement(e,this.visualizersContainer),this.extensionLineElements[t]=n),n},n.prototype.getOrCreateShapeSelection=function(e,t){var n=this.selectionMap[e.key];return n||(n=new R(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,e.key,e.isLocked,e.rectangle,e.style,e.allowResizeHorizontally,e.allowResizeVertically,e.description.getParameterPoints(e)),this.selectionMap[e.key]=n),t&&(t[e.key]=!0),n},n.prototype.getOrCreateConnectorSelection=function(e,t){var n=this.selectionMap[e.key],r=e.getRenderPoints(!0),i=e.getRenderPoints(!1);return n||(n=new L(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,e.key,e.isLocked,e.rectangle,r,e.style,e.styleText,e.enableText,e.texts.map(function(t){var n=l.GeometryUtils.getPathPointByPosition(i,t.position);return{text:e.getText(t.position),point:n[0],pointIndex:n[1],pos:t.position}}).sort(function(e,t){return e.pos-t.pos}),e.points,e.properties.lineOption),this.selectionMap[e.key]=n),t&&(t[e.key]=!0),n},n.prototype.getOrCreateMultipleSelection=function(e){var t=this.selectionMap[k];return t||(t=new D(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom),this.selectionMap[k]=t),e[k]=!0,t},n.prototype.getMultipleSelection=function(){return this.selectionMap[k]},n.prototype.updateShapeSelection=function(e,t){e.key in this.selectionMap&&(this.getOrCreateShapeSelection(e).onModelChanged(e.isLocked,e.rectangle,e.style,e.allowResizeHorizontally,e.allowResizeVertically,e.description.getParameterPoints(e)),t&&t.onModelItemChanged(e.key,e.rectangle))},n.prototype.updateConnectorSelection=function(e,t){if(e.key in this.selectionMap){var n=e.getRenderPoints(!0),r=e.getRenderPoints(!1);this.getOrCreateConnectorSelection(e).onModelChanged(e.isLocked,e.rectangle,n,e.style,e.styleText,e.enableText,e.texts.map(function(t){var n=l.GeometryUtils.getPathPointByPosition(r,t.position);return{text:e.getText(t.position),pointIndex:n[1],pos:t.position,point:n[0]}}).sort(function(e,t){return e.pos-t.pos}),e.points,e.properties.lineOption),t&&t.onModelItemChanged(e.key,e.rectangle)}},n.prototype.hideOutdatedSelection=function(e){var t=this;Object.keys(this.selectionMap).filter(function(t){return!e[t]}).forEach(function(e){t.selectionMap[e].destroy(),delete t.selectionMap[e]})},n.prototype.selectionCanBeDrawn=function(e){return!e.container||e.container.expanded&&this.selectionCanBeDrawn(e.container)},n.prototype.notifySelectionChanged=function(e){var t=this,n=e.getSelectedItems(!0).filter(function(e){return t.selectionCanBeDrawn(e)}),r={},i=n.length>1,o=e.getSelectedShapes(!0).filter(function(e){return t.selectionCanBeDrawn(e)}),s=e.getSelectedConnectors(!0).filter(function(e){return t.selectionCanBeDrawn(e)});if(o.forEach(function(e){return t.getOrCreateShapeSelection(e,r).onSelectionChanged(i)}),s.forEach(function(e){return t.getOrCreateConnectorSelection(e,r).onSelectionChanged(i)}),i){var a=n.length>0?n[0].strokeWidth:0,c={};n.filter(function(e){return!e.isLocked}).forEach(function(e){return c[e.key]=e.rectangle}),this.getOrCreateMultipleSelection(r).onSelectionChanged(!!o.filter(function(e){return!e.isLocked}).length,a,c)}this.hideOutdatedSelection(r)},n.prototype.applyChangesCore=function(t){e.prototype.applyChangesCore.call(this,t);var n=this.getMultipleSelection();n&&n.onModelChanged()},n.prototype.applyChange=function(e){var t=this.getMultipleSelection();e.item instanceof f.Shape?this.updateShapeSelection(e.item,t):e.item instanceof p.Connector&&this.updateConnectorSelection(e.item,t)},n.prototype.notifyPageColorChanged=function(e){},n.prototype.notifyPageSizeChanged=function(e,t){},n.prototype.notifyActualZoomChanged=function(e){var t=this;Object.keys(this.selectionMap).forEach(function(n){return t.selectionMap[n].notifyZoomChanged(e)}),this.actualZoom=e},n.prototype.notifyViewAdjusted=function(e){},n.prototype.notifyReadOnlyChanged=function(e){var t=this;this.readOnly=e,Object.keys(this.selectionMap).forEach(function(n){return t.selectionMap[n].notifyReadOnlyChanged(e)})},n.prototype.notifySelectionRectShow=function(e){this.showSelectionRect(e.clone().multiply(this.actualZoom,this.actualZoom))},n.prototype.notifySelectionRectHide=function(){this.hideSelectionRect()},n.prototype.notifyResizeInfoShow=function(e,t){this.showResizeInfo(e.clone().multiply(this.actualZoom,this.actualZoom),t)},n.prototype.notifyResizeInfoHide=function(){this.hideResizeInfo()},n.prototype.notifyConnectionPointsShow=function(e,t,r,i){var o=this;this.hideConnectionPoints(),t.forEach(function(t,s){var a=t.point.clone().multiply(o.actualZoom,o.actualZoom);if(i)switch(t.side){case u.ConnectionPointSide.North:a.y=i.y*o.actualZoom-n.connectionPointShift;break;case u.ConnectionPointSide.South:a.y=i.bottom*o.actualZoom+n.connectionPointShift;break;case u.ConnectionPointSide.West:a.x=i.x*o.actualZoom-n.connectionPointShift;break;case u.ConnectionPointSide.East:a.x=i.right*o.actualZoom+n.connectionPointShift}o.showConnectionPoint(s,a,e,s,s===r,t.allowed)})},n.prototype.notifyConnectionPointsHide=function(){this.hideConnectionPoints()},n.prototype.notifyConnectionTargetShow=function(e,t){if(t.allowed){var r=n.correctSelectionRect(t.rect.clone().multiply(this.actualZoom,this.actualZoom),t.strokeWidth,n.connectionTargetBorderWidth,this.actualZoom,0);this.showConnectionTarget(0,r)}},n.prototype.notifyConnectionTargetHide=function(){this.hideConnectionTarget()},n.prototype.notifyContainerTargetShow=function(e,t){var r=n.correctSelectionRect(t.rect.clone().multiply(this.actualZoom,this.actualZoom),t.strokeWidth,n.connectionTargetBorderWidth,this.actualZoom,0);this.showContainerTarget(0,r)},n.prototype.notifyContainerTargetHide=function(){this.hideContainerTarget()},n.prototype.notifyExtensionLinesShow=function(e){var t=this;this.hideExtensionLines(),e.forEach(function(e,n){t.showExtensionLine(n,e.type,e.segment.startPoint.clone().multiply(t.actualZoom,t.actualZoom),e.segment.endPoint.clone().multiply(t.actualZoom,t.actualZoom),e.text)})},n.prototype.notifyExtensionLinesHide=function(){this.hideExtensionLines()},n.prototype.notifyDragStart=function(e){this.dom.changeByFunc(this.selectionMarksContainer,function(e){return e.style.display="none"})},n.prototype.notifyDragEnd=function(e){this.dom.changeByFunc(this.selectionMarksContainer,function(e){return e.style.display=""})},n.prototype.notifyDragScrollStart=function(){},n.prototype.notifyDragScrollEnd=function(){},n.prototype.notifyTextInputStart=function(e,t,n,r){this.dom.changeByFunc(this.visualizersContainer,function(e){return e.style.display="none"})},n.prototype.notifyTextInputEnd=function(e,t){this.dom.changeByFunc(this.visualizersContainer,function(e){return e.style.display=""})},n.prototype.notifyTextInputPermissionsCheck=function(e,t){},n.correctSelectionRect=function(e,t,r,i,o){void 0===o&&(o=n.selectionOffset);var s=w.UnitConverter.twipsToPixels(t)%2!=w.UnitConverter.twipsToPixels(r)%2,a=Math.ceil(t/2*i);e=e.clone().inflate(a,a);var c=Math.floor(r/2);if(e.x-=c,e.y-=c,e.width+=r,e.height+=r,s){var u=n.evenOddSelectionCorrection*(w.UnitConverter.twipsToPixels(r)%2==1?-1:1);e=e.clone().moveRectangle(u,u)}return e.clone().inflate(o,o)},n.selectionMarkSize=w.UnitConverter.pixelsToTwips(10),n.lockedSelectionMarkSize=w.UnitConverter.pixelsToTwips(8),n.selectionOffset=w.UnitConverter.pixelsToTwips(2),n.selectionRectLineWidth=w.UnitConverter.pixelsToTwips(1),n.multiSelectionRectLineWidth=w.UnitConverter.pixelsToTwips(1),n.connectionPointSmallSize=w.UnitConverter.pixelsToTwips(5),n.connectionPointLargeSize=w.UnitConverter.pixelsToTwips(12),n.connectionPointShift=w.UnitConverter.pixelsToTwips(16),n.connectionTargetBorderWidth=w.UnitConverter.pixelsToTwips(2),n.geomertyMarkSize=w.UnitConverter.pixelsToTwips(8),n.connectorPointMarkSize=w.UnitConverter.pixelsToTwips(6),n.connectorSideMarkSize=w.UnitConverter.pixelsToTwips(6),n.extensionLineWidth=w.UnitConverter.pixelsToTwips(1),n.extensionLineOffset=w.UnitConverter.pixelsToTwips(1),n.extensionLineEndingSize=w.UnitConverter.pixelsToTwips(6),n.resizeInfoOffset=w.UnitConverter.pixelsToTwips(16),n.resizeInfoTextOffset=w.UnitConverter.pixelsToTwips(2),n.resizeInfoLineWidth=w.UnitConverter.pixelsToTwips(1),n.evenOddSelectionCorrection=w.UnitConverter.pixelsToTwips(1),n}(T.CanvasManager);t.CanvasSelectionManager=B;var M=function(){function e(e,t,n,r,i,o){this.rectsContainer=e,this.marksContainer=t,this.key=n,this.zoomLevel=r,this.readOnly=i,this.dom=o,this.elements={},this.updatedElements={}}return e.prototype.notifyZoomChanged=function(e){this.zoomLevel!==e&&(this.zoomLevel=e,this.redraw())},e.prototype.notifyReadOnlyChanged=function(e){this.readOnly=e,this.redraw()},e.prototype.destroy=function(){var e=this;Object.keys(this.elements).forEach(function(t){e.elements[t].parentNode.removeChild(e.elements[t]),delete e.elements[t]})},e.prototype.redraw=function(){var e=this;this.updatedElements={},this.redrawCore(),Object.keys(this.elements).filter(function(t){return!e.updatedElements[t]}).forEach(function(t){e.elements[t].parentNode.removeChild(e.elements[t]),delete e.elements[t]}),this.updatedElements={}},e.prototype.drawSelectionMarks=function(e,n,r){if(!this.readOnly){var i=n&&e.height>3*B.selectionMarkSize,o=r&&e.width>3*B.selectionMarkSize,s=n||r;s&&this.drawSelectionMark(0,new h.Point(e.x,e.y),B.selectionMarkSize,c.MouseEventElementType.ShapeResizeBox,c.ResizeEventSource.ResizeBox_NW,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),o&&!_.Browser.TouchUI&&this.drawSelectionMark(1,new h.Point(e.x+e.width/2,e.y),B.selectionMarkSize,c.MouseEventElementType.ShapeResizeBox,c.ResizeEventSource.ResizeBox_N,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),s&&this.drawSelectionMark(2,new h.Point(e.right,e.y),B.selectionMarkSize,c.MouseEventElementType.ShapeResizeBox,c.ResizeEventSource.ResizeBox_NE,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),i&&!_.Browser.TouchUI&&this.drawSelectionMark(3,new h.Point(e.right,e.y+e.height/2),B.selectionMarkSize,c.MouseEventElementType.ShapeResizeBox,c.ResizeEventSource.ResizeBox_E,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),s&&this.drawSelectionMark(4,new h.Point(e.right,e.bottom),B.selectionMarkSize,c.MouseEventElementType.ShapeResizeBox,c.ResizeEventSource.ResizeBox_SE,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),o&&!_.Browser.TouchUI&&this.drawSelectionMark(5,new h.Point(e.x+e.width/2,e.bottom),B.selectionMarkSize,c.MouseEventElementType.ShapeResizeBox,c.ResizeEventSource.ResizeBox_S,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),s&&this.drawSelectionMark(6,new h.Point(e.x,e.bottom),B.selectionMarkSize,c.MouseEventElementType.ShapeResizeBox,c.ResizeEventSource.ResizeBox_SW,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),i&&!_.Browser.TouchUI&&this.drawSelectionMark(7,new h.Point(e.x,e.y+e.height/2),B.selectionMarkSize,c.MouseEventElementType.ShapeResizeBox,c.ResizeEventSource.ResizeBox_W,t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK)}},e.prototype.drawSelectionMark=function(e,t,n,r,i,o){var s=this;this.getOrCreateElement("SM"+e,new g.RectanglePrimitive(t.x-n/2,t.y-n/2,n,n,null,o,void 0,function(e){a.RenderUtils.setElementEventData(e,r,s.key,i)}),this.marksContainer)},e.prototype.drawSelectionRect=function(e,t,n){var r=new g.RectanglePrimitive(e.x,e.y,e.width,e.height,b.StrokeStyle.default1pxInstance,n,void 0,function(e){a.RenderUtils.setElementEventData(e,t,"-1",-1)});this.getOrCreateElement("shapeSelection",r,this.rectsContainer)},e.prototype.getOrCreateElement=function(e,t,n){var r=this.elements[e];return r||(r=t.createElement(function(e){return n.appendChild(e)}),this.elements[e]=r),this.updatedElements[e]=!0,this.dom.changeByPrimitive(r,t),r},e}(),O=function(e){function t(t,n,r,i,o,s,a,c){var u=e.call(this,t,n,r,i,o,s)||this;return u.isLocked=a,u.rectangle=c,u}return i(t,e),t.prototype.onSelectionChanged=function(e){this.isMultipleSelection!==e&&(this.isMultipleSelection=e,this.redraw())},t.prototype.isLockedRender=function(){return this.isLocked&&!this.readOnly},t.prototype.drawLockedSelectionMark=function(e,t,n,r){var i=new m.PathPrimitive([new m.PathPrimitiveMoveToCommand(t.x-n/2,t.y-n/2),new m.PathPrimitiveLineToCommand(t.x+n/2,t.y+n/2),new m.PathPrimitiveMoveToCommand(t.x+n/2,t.y-n/2),new m.PathPrimitiveLineToCommand(t.x-n/2,t.y+n/2)],null,r);this.getOrCreateElement("LSM"+e,i,this.marksContainer)},t}(M),D=function(e){function n(t,n,r,i,o){var s=e.call(this,t,n,"-1",r,i,o)||this;return s.rectangles={},s}return i(n,e),n.prototype.onModelItemChanged=function(e,t){e in this.rectangles&&(this.rectangles[e]=t)},n.prototype.onModelChanged=function(){this.redraw()},n.prototype.onSelectionChanged=function(e,t,n){this.needDrawSelectionMarks=e,this.strokeWidth=t,this.rectangles=n,this.redraw()},n.prototype.redrawCore=function(){var e=this,n=Object.keys(this.rectangles);if(n.length){var r=l.GeometryUtils.getCommonRectangle(n.map(function(t){return e.rectangles[t]})).clone().multiply(this.zoomLevel,this.zoomLevel),i=B.correctSelectionRect(r,this.strokeWidth,B.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(i,c.MouseEventElementType.SelectionRect,t.SELECTION_ELEMENT_CLASSNAMES.ITEMS_SELECTION_RECT),this.needDrawSelectionMarks&&this.drawSelectionMarks(r,!0,!0)}},n}(M),R=function(e){function n(t,n,r,i,o,s,a,c,u,l,h,d){var f=e.call(this,t,n,s,r,i,o,a,c)||this;return f.style=u,f.allowResizeHorizontally=l,f.allowResizeVertically=h,f.shapeParameterPoints=d,f}return i(n,e),n.prototype.onModelChanged=function(e,t,n,r,i,o){this.isLocked=e,this.rectangle=t,this.style=n,this.allowResizeHorizontally=r,this.allowResizeVertically=i,this.shapeParameterPoints=o,this.redraw()},n.prototype.redrawCore=function(){var e=this.rectangle.clone().multiply(this.zoomLevel,this.zoomLevel);this.isLockedRender()?this.drawLockedSelection(e):this.drawUnlockedSelection(e)},n.prototype.drawLockedSelection=function(e){this.drawLockedSelectionMark(0,new h.Point(e.x,e.y),B.lockedSelectionMarkSize,t.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(1,new h.Point(e.right,e.y),B.lockedSelectionMarkSize,t.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(2,new h.Point(e.right,e.bottom),B.lockedSelectionMarkSize,t.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(3,new h.Point(e.x,e.bottom),B.lockedSelectionMarkSize,t.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)},n.prototype.drawUnlockedSelection=function(e){var n=B.correctSelectionRect(e,this.style.strokeWidth,B.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(n,c.MouseEventElementType.SelectionRect,this.isMultipleSelection?t.SELECTION_ELEMENT_CLASSNAMES.ITEM_MULTI_SELECTION:t.SELECTION_ELEMENT_CLASSNAMES.ITEM_SELECTION_RECT),this.isMultipleSelection||this.drawSelectionMarks(e,this.allowResizeHorizontally,this.allowResizeVertically),this.drawShapeParameterPoints()},n.prototype.drawShapeParameterPoints=function(){var e=this;this.readOnly||this.shapeParameterPoints.forEach(function(t,n){var r=t.point.clone().multiply(e.zoomLevel,e.zoomLevel);e.drawShapeParameterPoint(r,n,t.key)})},n.prototype.drawShapeParameterPoint=function(e,t,n){var r=this,i=B.geomertyMarkSize,o=new g.RectanglePrimitive(e.x-i/2,e.y-i/2,i,i,null,"geometry-mark",void 0,function(e){a.RenderUtils.setElementEventData(e,c.MouseEventElementType.ShapeParameterBox,r.key,n)});this.getOrCreateElement("pp"+t.toString(),o,this.marksContainer)},n}(O),L=function(e){function n(t,n,r,i,o,s,a,c,u,l,h,d,f,p,A){var g=e.call(this,t,n,s,r,i,o,a,c)||this;return g.renderPoints=u,g.style=l,g.styleText=h,g.enableText=d,g.texts=f,g.points=p,g.lineType=A,g}return i(n,e),n.prototype.onModelChanged=function(e,t,n,r,i,o,s,a,c){this.isLocked=e,this.rectangle=t,this.renderPoints=n,this.style=r,this.styleText=i,this.enableText=o,this.texts=s,this.points=a,this.lineType=c,this.redraw()},n.prototype.redrawCore=function(){this.isLockedRender()?this.drawLockedSelection():this.drawUnlockedSelection()},n.prototype.drawLockedSelection=function(){var e=this;this.renderPoints.forEach(function(n,r){e.drawLockedSelectionMark(r,n,B.lockedSelectionMarkSize,t.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)})},n.prototype.drawUnlockedSelection=function(){this.drawConnectorSelection(),this.isMultipleSelection||this.readOnly||this.drawConnectorSelectionMarks()},n.prototype.drawConnectorSelection=function(){var e=[],n=[],r=this.isMultipleSelection?t.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_MULTI_SELECTION:t.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SELECTION;this.populateSelectionPrimitiveCommands(e,n);var i=new m.PathPrimitive(e.concat(n.reverse()),b.StrokeStyle.default1pxInstance,r);this.getOrCreateElement("CS",i,this.rectsContainer)},n.prototype.populateSelectionPrimitiveCommands=function(e,t){for(var n,r,i,o,s=this.texts,a=this.styleText.getAlignment(),c=this.createNotSkippedRenderPoints(),u=this.zoomLevel,h=this.style.strokeWidthPx,d=this.getSelectionOffset(h),f=h%2==0,p=c[0],A=0,g=1,y=void 0;y=c[g];g++){var v=c[g+1];if(void 0===n){if(r=P.Metrics.euclideanDistance(p,y),E.MathUtils.numberCloseTo(r,0))continue;n=l.GeometryUtils.getSelectionOffsetPoint(p,y,r).multiply(d,d)}if(v){if(o=P.Metrics.euclideanDistance(y,v),E.MathUtils.numberCloseTo(o,0))continue;i=l.GeometryUtils.getSelectionOffsetPoint(y,v,o).multiply(d,d)}var b=n.x,w=n.y,C=-b,_=-w,S=i&&i.x,x=i&&i.y,T=i&&-i.x,I=i&&-i.y;for(f&&(C>0?C-=B.evenOddSelectionCorrection:b>0&&(b-=B.evenOddSelectionCorrection),_>0?_-=B.evenOddSelectionCorrection:w>0&&(w-=B.evenOddSelectionCorrection),T>0?T-=B.evenOddSelectionCorrection:S>0&&(S-=B.evenOddSelectionCorrection),I>0?I-=B.evenOddSelectionCorrection:x>0&&(x-=B.evenOddSelectionCorrection));s[A]&&s[A].pointIndex<=g;){var k=s[A],M=this.getConnectorSelectionTextSize(k.text,d),O=l.GeometryUtils.getSelectionTextStartEndPoints(p,y,r,k.point,M,a);s[A].pointIndex<g?(p=O[1],e.push(m.PathPrimitiveMoveToCommand.fromPoint(p.clone().offset(b,w).multiply(u,u))),t.push(m.PathPrimitiveLineToCommand.fromPoint(p.clone().offset(C,_).multiply(u,u)))):(e.length||(e.push(m.PathPrimitiveMoveToCommand.fromPoint(p.clone().offset(b,w).multiply(u,u))),t.push(m.PathPrimitiveLineToCommand.fromPoint(p.clone().offset(C,_).multiply(u,u)))),e.push(m.PathPrimitiveLineToCommand.fromPoint(O[0].clone().offset(b,w).multiply(u,u))),e.push(m.PathPrimitiveMoveToCommand.fromPoint(O[1].clone().offset(b,w).multiply(u,u))),t.push(m.PathPrimitiveMoveToCommand.fromPoint(O[0].clone().offset(C,_).multiply(u,u))),t.push(m.PathPrimitiveLineToCommand.fromPoint(O[1].clone().offset(C,_).multiply(u,u))),p=O[1]),A++}e.length||(e.push(m.PathPrimitiveMoveToCommand.fromPoint(p.clone().offset(b,w).multiply(u,u))),t.push(m.PathPrimitiveLineToCommand.fromPoint(p.clone().offset(C,_).multiply(u,u)))),v?(l.GeometryUtils.addSelectedLinesTo(p,y,v,b,w,C,_,S,x,T,I,function(t,n){return e.push(new m.PathPrimitiveLineToCommand(t*u,n*u))},function(e,n){return t.push(new m.PathPrimitiveLineToCommand(e*u,n*u))}),n=i,r=o):(e.push(m.PathPrimitiveLineToCommand.fromPoint(y.clone().offset(b,w).multiply(u,u))),t.push(m.PathPrimitiveMoveToCommand.fromPoint(y.clone().offset(C,_).multiply(u,u)))),p=y}},n.prototype.createNotSkippedRenderPoints=function(){var e=this.renderPoints.map(function(e){return e.clone()});return this.lineType===A.ConnectorLineOption.Straight?I.ModelUtils.skipUnnecessaryRenderPoints(e):I.ModelUtils.skipUnnecessaryRightAngleRenderPoints(e),e.filter(function(e){return!e.skipped})},n.prototype.getSelectionOffset=function(e){return B.selectionOffset+w.UnitConverter.pixelsToTwips(Math.round(e/2)+(e+1)%2)},n.prototype.getConnectorSelectionTextSize=function(e,t){return this.dom.measurer.measureTextLine(e,this.styleText,C.TextOwner.Connector).applyConverter(w.UnitConverter.pixelsToTwips).clone().offset(t,t).nonNegativeSize()},n.prototype.drawConnectorSelectionMarks=function(){var e=this,n=this.points.length-1;this.points.forEach(function(r,i){var o=0===i||i===n,s=o?t.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK:t.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_POINT_MARK,a=o?B.selectionMarkSize:B.connectorPointMarkSize;o||e.lineType===A.ConnectorLineOption.Straight?e.drawSelectionMark(i,r.clone().multiply(e.zoomLevel,e.zoomLevel),a,c.MouseEventElementType.ConnectorPoint,i,s):e.drawSelectionMark(i,r.clone().multiply(e.zoomLevel,e.zoomLevel),a,c.MouseEventElementType.Undefined,-1,s+" disabled")}),this.drawConnectorSideMarks()},n.prototype.drawConnectorSideMarks=function(){var e,n,r=this,i=this.lineType===A.ConnectorLineOption.Straight?c.MouseEventElementType.ConnectorSide:c.MouseEventElementType.ConnectorOrthogonalSide;this.renderPoints.forEach(function(o,s){if(!o.skipped){if(void 0!==e&&r.canDrawConnectorSideMark(o,e)){var a=r.lineType===A.ConnectorLineOption.Orthogonal?o.x-e.x==0?"vertical":"horizontal":"";r.drawSelectionMark(r.points.length+s-1,new h.Point(e.x+(o.x-e.x)/2,e.y+(o.y-e.y)/2).clone().multiply(r.zoomLevel,r.zoomLevel),B.connectorSideMarkSize,i,n+"_"+s,t.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SIDE_MARK+" "+a)}e=o,n=s}})},n.prototype.canDrawConnectorSideMark=function(e,t){if(this.lineType===A.ConnectorLineOption.Straight){var n=B.selectionMarkSize+B.connectorSideMarkSize;return P.Metrics.euclideanDistance(e,t)>n}if(this.lineType===A.ConnectorLineOption.Orthogonal){var r=0===t.pointIndex,i=l.GeometryUtils.areDuplicatedPoints(this.points[this.points.length-1],e);return r&&i?P.Metrics.euclideanDistance(e,t)>2*p.Connector.minOffset:!r&&i||r&&!i?P.Metrics.euclideanDistance(e,t)>p.Connector.minOffset:(n=B.selectionMarkSize+B.connectorSideMarkSize,P.Metrics.euclideanDistance(e,t)>n)}return!1},n}(O)},9757:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasViewManager=t.CROP_OFFSET=t.CANVAS_SCROLL_PADDING=t.CANVAS_MIN_PADDING=void 0;var o=n(7716),s=n(240),a=n(8675),c=n(4125),u=n(6353),l=n(8900),h=n(5329),d=n(4593),f=n(4716),p=n(3500),A=n(3281),g=n(1552),m=n(6907),y=n(9291);t.CANVAS_MIN_PADDING=8,t.CANVAS_SCROLL_PADDING=18,t.CROP_OFFSET=40;var v="dxdi-drag-scroll",b="dxdi-drag-item",w=function(e){function n(t,n,r,i,o,s,u,h,d){var f=e.call(this,i,h,d)||this;return f.svgElement=n,f.paddings=new c.Offsets(0,0,0,0),f.scroll=new l.Point(0,0),f.crop=c.Offsets.empty(),f.lockAutoZoom=!1,f.autoScrollLocker=0,f.pageClipPathId=p.RenderUtils.generateSvgElementId("page-clip"),f.pageShadowId=p.RenderUtils.generateSvgElementId("page-shadow"),f.onViewChanged=new a.EventDispatcher,t.onScroll.add(f),r=r.clone().applyConverter(y.UnitConverter.twipsToPixelsF),f.scrollView=t,f.modelSize=r,f.simpleView=s,f.fixedZoomLevel=i,f.autoZoom=o,f.crop=f.rectangleToCrop(u,r),f.updateElements(r.clone().multiply(i,i),l.Point.zero(),s),f.getOrCreateElement("shadow",new A.ShadowFilterPrimitive(f.pageShadowId),f.svgElement),f.containerSize=t.getSize(),f}return i(n,e),n.prototype.adjust=function(e,t){var n;e||(e={vertical:!1,horizontal:!1},n=c.Offsets.empty()),this.containerSize=this.scrollView.getSize(),this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,e,this.containerSize,n,t),this.tryNormalizePaddings()},n.prototype.notifyModelSizeChanged=function(e,t){e=e.clone().applyConverter(y.UnitConverter.twipsToPixelsF);var n={horizontal:!t,vertical:!t};this.adjustCore(e,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,n,this.containerSize,t&&t.clone().applyConverter(y.UnitConverter.twipsToPixelsF)),this.modelSize=e},n.prototype.notifyModelRectangleChanged=function(e){var t=this.rectangleToCrop(e,this.modelSize);this.crop&&this.crop.equals(t)||(this.simpleView&&this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,t,{horizontal:!1,vertical:!1},this.containerSize,c.Offsets.empty()),this.crop=t)},n.prototype.notifySnapPointPositionChanged=function(e){},n.prototype.notifyZoomChanged=function(e,t){this.adjustCore(this.modelSize,e,t,this.simpleView,this.crop,{horizontal:!1,vertical:!1},this.containerSize),this.fixedZoomLevel=e,this.autoZoom=t},n.prototype.notifyViewChanged=function(e){this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,e,this.crop,{vertical:!0,horizontal:!0},this.containerSize),this.simpleView=e},n.prototype.notifyGridChanged=function(e,t){},n.prototype.notifyDragStart=function(e){this.lockAutoZoom=!0,m.DomUtils.addClassName(this.svgElement,b)},n.prototype.notifyDragEnd=function(e){this.lockAutoZoom=!1,m.DomUtils.removeClassName(this.svgElement,b),this.adjustAfterDragEnd()},n.prototype.adjustAfterDragEnd=function(){this.autoZoom&&!this.autoZoomLocked&&this.adjust({horizontal:!0,vertical:this.autoZoom===s.AutoZoomMode.FitContent},this.autoZoom===s.AutoZoomMode.FitToWidth)},n.prototype.notifyShowContextToolbox=function(){this.autoZoomLocked=!0},n.prototype.notifyHideContextToolbox=function(){this.autoZoomLocked=!1,this.adjustAfterDragEnd()},n.prototype.notifyDragScrollStart=function(){m.DomUtils.addClassName(this.svgElement,v)},n.prototype.notifyDragScrollEnd=function(){m.DomUtils.removeClassName(this.svgElement,v)},n.prototype.notifyScrollChanged=function(e){this.scroll=e()},n.prototype.checkFitToCanvas=function(e){e=e||this.containerSize;var n=this.scrollView.getScrollBarWidth();e=e.clone().offset(2*-t.CANVAS_MIN_PADDING,2*-t.CANVAS_MIN_PADDING).nonNegativeSize();var r=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),i=this.checkScrollBars(e,n,r,c.Offsets.empty());return{vertical:(e=e.clone().offset(i.vertical?-n:0,i.horizontal?-n:0).nonNegativeSize()).height>=r.height,horizontal:e.width>=r.width}},n.prototype.rectangleToCrop=function(e,t){var n=e.clone().applyConverter(y.UnitConverter.twipsToPixelsF);return new c.Offsets(this.correctCrop(n.x),this.correctCrop(t.width-n.right),this.correctCrop(n.y),this.correctCrop(t.height-n.bottom))},n.prototype.correctCrop=function(e){return t.CROP_OFFSET*Math.floor(e/t.CROP_OFFSET)},n.prototype.setActualZoom=function(e){this.actualZoom!==e&&(this.actualZoom=e,this.raiseActualZoomChanged())},n.prototype.getActualAutoZoomLevel=function(e){if(e===s.AutoZoomMode.Disabled)return this.actualZoom;var t=this.containerSize,n=this.scrollView.getScrollBarWidth(),r=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop);return this.getActualAutoZoom(t,n,r,e)},n.prototype.getActualZoom=function(e,t,n,r,i){return this.lockAutoZoom?this.actualZoom:i===s.AutoZoomMode.Disabled?r:this.getActualAutoZoom(e,t,n,i)},n.prototype.getActualAutoZoom=function(e,n,r,i){return 0===e.width||0===e.height?1:i===s.AutoZoomMode.FitContent?Math.min((e.width-2*t.CANVAS_MIN_PADDING)/r.width,(e.height-2*t.CANVAS_MIN_PADDING)/r.height,1):Math.min((e.width-2*t.CANVAS_MIN_PADDING-n)/r.width,1)},n.prototype.raiseActualZoomChanged=function(){var e=this;this.onViewChanged.raise1(function(t){return t.notifyActualZoomChanged(e.actualZoom)})},n.prototype.tryNormalizePaddings=function(){var e=this.scrollView.getScrollBarWidth(),t=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),n=new l.Point(this.paddings.left,this.paddings.top),r=new u.Size(this.paddings.right,this.paddings.bottom),i=this.getTailSpace(n,this.scroll,t,this.containerSize,e);i.equals(r)||this.applyChanges(new c.Offsets(n.x,i.width,n.y,i.height),t,this.simpleView,this.crop.clone().multiply(this.actualZoom))},n.prototype.scrollBy=function(e){var t,n,r,i=this.scroll,o=this.containerSize,s=this.scrollView.getScrollBarWidth(),a=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),h=this.checkScrollBars(o,s,a,this.paddings),d=new l.Point(this.paddings.left,this.paddings.top),f=new u.Size(this.paddings.right,this.paddings.bottom);return i=(t=this.changeScrollByOffset(d,i,f,a,e,o,h)).scroll,e=t.offset,d=(n=this.changeTranslateByOffset(d,f,e,h)).translate,e=n.offset,d=(r=this.cropHiddenHead(d,i)).translate,i=r.scroll,f=this.getTailSpace(d,i,a,o,s),this.applyChanges(new c.Offsets(d.x,f.width,d.y,f.height),a,this.simpleView,this.crop.clone().multiply(this.actualZoom),i),e},n.prototype.changeScrollByOffset=function(e,t,n,r,i,o,s){var a=t.clone(),c=i.clone();return i.x&&s.horizontal&&(a.x-=c.x=-this.getScrollDeltaByOffset(i.x,t.x,e.x+r.width+n.width,o.width,s.vertical)),i.y&&s.vertical&&(a.y-=c.y=-this.getScrollDeltaByOffset(i.y,t.y,e.y+r.height+n.height,o.height,s.horizontal)),{scroll:a,offset:c}},n.prototype.changeTranslateByOffset=function(e,t,n,r){var i=e.clone(),o=n.clone();return n.x&&!r.horizontal&&(i.x+=o.x=this.getTranslateDeltaByOffset(n.x,i.x,t.width)),n.y&&!r.vertical&&(i.y+=o.y=this.getTranslateDeltaByOffset(n.y,i.y,t.height)),{translate:i,offset:o}},n.prototype.getScrollDeltaByOffset=function(e,t,n,r,i){if(e>0)return-Math.min(t,e);var o=n-(r-(i?this.scrollView.getScrollBarWidth():0));return Math.min(o-t,-e)},n.prototype.getTranslateDeltaByOffset=function(e,n,r){return e?e<0?-Math.min(n-t.CANVAS_MIN_PADDING,-e):Math.min(r-t.CANVAS_MIN_PADDING,e):0},n.prototype.getActualModelSizeWithoutZoom=function(e,t,n){return t&&n?e.clone().offset(-n.horizontal,-n.vertical).nonNegativeSize():e},n.prototype.setScrollTo=function(e,n){var r=this.containerSize,i=this.getVisibileAreaAbsShift(),o=e.clone().applyConverter(y.UnitConverter.twipsToPixelsF).clone().multiply(this.actualZoom,this.actualZoom).clone().offset(i.x,i.y),s=this.scroll;n?(s.x+=o.x-n.x,s.y+=o.y-n.y):(o.x<0&&(s.x+=o.x-t.CANVAS_MIN_PADDING),o.y<0&&(s.y+=o.y-t.CANVAS_MIN_PADDING),o.x>r.width&&(s.x+=o.x-r.width+t.CANVAS_MIN_PADDING),o.y>r.height&&(s.y+=o.y-r.height+t.CANVAS_MIN_PADDING)),this.setScroll(s)},n.prototype.scrollIntoView=function(e){e=e.clone().applyConverter(y.UnitConverter.twipsToPixelsF).multiply(this.actualZoom,this.actualZoom).moveRectangle(this.paddings.left,this.paddings.top);var n=this.scroll,r=this.containerSize;if(!(e.x>=n.x&&e.y>=n.y&&e.right<=n.x+r.width&&e.bottom<=n.y+r.height)){var i=n.clone();e.x<n.x?i.x=e.x-t.CANVAS_SCROLL_PADDING:e.right>n.x+r.width&&(i.x=Math.min(e.x-t.CANVAS_SCROLL_PADDING,e.right+t.CANVAS_SCROLL_PADDING-r.width)),e.y<n.y?i.y=e.y-t.CANVAS_SCROLL_PADDING:i.y=Math.min(e.y-t.CANVAS_SCROLL_PADDING,e.bottom+t.CANVAS_SCROLL_PADDING-r.height),this.setScroll(i)}},n.prototype.setScroll=function(e){var t=this,n=this.modelSize.clone().multiply(this.actualZoom,this.actualZoom);e.x=Math.max(0,Math.min(e.x,n.width+this.paddings.horizontal-this.containerSize.width)),e.y=Math.max(0,Math.min(e.y,n.height+this.paddings.vertical-this.containerSize.height)),this.dom.changeByFunc(null,function(){t.scrollView.setScroll(e.x,e.y)}),this.scroll=e.clone()},n.prototype.updateElements=function(e,t,n){this.updatePageElement(e,t,n),this.updateCanvasElement(t)},n.prototype.updateCanvasElement=function(e){this.canvasElement=this.getOrCreateElement("dxdi-main",new h.GroupPrimitive([],"dxdi-main",null,null,function(t){t.setAttribute("transform","translate("+Math.round(e.x)+", "+Math.round(e.y)+")")}),this.svgElement)},n.prototype.updatePageElement=function(e,t,n){if(n)this.updatePageElementCore("",0,0,e.width,e.height);else{var r=t.x,i=t.y,o=e.width,s=e.height;this.createPageShadow(r,i,o,s),this.updatePageElementCore(this.pageClipPathId,Math.round(r),Math.round(i),o,s)}},n.prototype.createPageShadow=function(e,t,n,r){this.getOrCreateElement("pageShadowRect",new f.RectanglePrimitive(e.toString(),t.toString(),n.toString(),r.toString(),new g.EmptyStyle({filter:p.RenderUtils.getUrlPathById(this.pageShadowId)}),"dxdi-page-shadow"),this.svgElement,this.svgElement.firstChild)},n.prototype.updatePageElementCore=function(e,t,n,r,i){this.pageElement=this.getOrCreateElement("page",new h.GroupPrimitive([],"dxdi-page",null,e,function(e){e.setAttribute("transform","translate("+t+", "+n+")")}),this.svgElement),this.getOrCreateElement("pageClip",this.createPageClipPathPrimitive(r,i),this.svgElement)},n.prototype.createPageClipPathPrimitive=function(e,t){return new d.ClipPathPrimitive(this.pageClipPathId,[new f.RectanglePrimitive(0,0,e.toString(),t.toString())])},n.prototype.adjustCore=function(e,t,n,r,i,o,s,a,u){var l=this.getActualModelSizeWithoutZoom(e,r,i);if(this.lockAutoZoom||!n&&a&&this.modelSize)this.resizeView(l,this.actualZoom,s,r,i,a);else{var h=this.scrollView.getScrollBarWidth(),d=this.getActualZoom(s,h,l,t,n);!n||d!==this.actualZoom||o.horizontal&&(o.vertical||u)?(this.resetView(l,d,s,r,i,o),this.setActualZoom(d)):this.resizeView(l,d,s,r,i,a||c.Offsets.empty())}},n.prototype.resetView=function(e,n,r,i,o,s){var a=e.clone().multiply(n,n),u=c.Offsets.fromNumber(t.CANVAS_MIN_PADDING);!(s=s||{horizontal:!0,vertical:!0}).horizontal&&this.paddings&&(u.left=this.paddings.left,u.right=this.paddings.right),!s.vertical&&this.paddings&&(u.top=this.paddings.top,u.bottom=this.paddings.bottom);var l=this.checkScrollBars(r,this.scrollView.getScrollBarWidth(),a,u),h=this.scrollView.getScrollBarWidth(),d=s.horizontal||s.vertical?this.scroll:void 0;if(s.horizontal){var f=Math.max((r.width-(l.vertical?h:0)-a.width)/2,t.CANVAS_MIN_PADDING);u.left=f,u.right=f,d.x=0}if(s.vertical){var p=Math.max((r.height-(l.horizontal?h:0)-a.height)/2,t.CANVAS_MIN_PADDING);u.top=p,u.bottom=p,d.y=0}this.applyChanges(u,a,i,o.clone().multiply(n),d)},n.prototype.resizeView=function(e,n,r,i,o,s){var a,u,h=this.actualZoom,d=this.simpleView&&this.crop?this.crop.clone().multiply(h):c.Offsets.empty(),f=e.clone().multiply(n,n);s=s.clone().multiply(n);var p=i&&o?o.clone().multiply(n):c.Offsets.empty(),A=new l.Point(this.paddings.left,this.paddings.top),g=this.scroll;A=(a=this.applyOffset(A,g,d,p,s)).translate,g=a.scroll,A=(u=this.cropHiddenHead(A,g)).translate,g=u.scroll;var m=this.getTailSpace(A,g,f,r,this.scrollView.getScrollBarWidth());if(!i){var y=r.width-t.CANVAS_SCROLL_PADDING,v=r.height-t.CANVAS_SCROLL_PADDING;s.left<0&&A.x>y&&(A.x=y,g.x=0),s.right<0&&m.width>y&&(m.width=y,g.x>f.width&&(g.x=f.width)),s.top<0&&A.y>v&&(A.y=v,g.y=0),s.bottom<0&&m.height>v&&(m.height=v,g.y>f.height&&(g.y=f.height))}var b=new c.Offsets(A.x,m.width,A.y,m.height);this.applyChanges(b,f,i,p,g)},n.prototype.applyChanges=function(e,t,n,r,i){var o=this,s=new l.Point(e.left,e.top);n&&r&&(s=s.clone().offset(-r.left,-r.top)),this.updateElements(t,s,n),this.setSvgSize(t.width+e.horizontal,t.height+e.vertical),this.onViewChanged.raise1(function(e){return e.notifyViewAdjusted(new l.Point(s.x,s.y))}),i&&(this.lockAutoScroll(),i&&this.dom.changeByFunc(this.scrollView,function(e){e.setScroll(i.x,i.y),o.unlockAutoScroll()}),this.scroll=i),this.paddings=e},n.prototype.isAutoScrollLocked=function(){return 0!==this.autoScrollLocker},n.prototype.lockAutoScroll=function(){this.autoScrollLocker++},n.prototype.unlockAutoScroll=function(){this.autoScrollLocker--},n.prototype.applyOffset=function(e,n,r,i,o){var s=e.clone(),a=n.clone(),c=this.getActualOffset(r,i,o);return c.left&&(s.x=Math.max(t.CANVAS_MIN_PADDING,s.x-c.left),a.x+=c.left-(e.x-s.x)),c.top&&(s.y=Math.max(t.CANVAS_MIN_PADDING,s.y-c.top),a.y+=c.top-(e.y-s.y)),{translate:s,scroll:a}},n.prototype.cropHiddenHead=function(e,n){var r=n.clone(),i=e.clone();if(r.x&&i.x>t.CANVAS_MIN_PADDING){var o=i.x-Math.max(t.CANVAS_MIN_PADDING,i.x-r.x);i.x-=o,r.x-=o}return r.y&&i.y>t.CANVAS_MIN_PADDING&&(o=i.y-Math.max(t.CANVAS_MIN_PADDING,i.y-r.y),i.y-=o,r.y-=o),{translate:i,scroll:r}},n.prototype.getTailSpace=function(e,n,r,i,o){var s=e.clone(),a=n.clone(),l=Math.max(i.width+a.x-(s.x+r.width),t.CANVAS_MIN_PADDING),h=Math.max(i.height+a.y-(s.y+r.height),t.CANVAS_MIN_PADDING),d=this.checkScrollBars(i,o,r,new c.Offsets(s.x,l,s.y,h));return d.vertical&&(l=Math.max(t.CANVAS_MIN_PADDING,l-o)),d.horizontal&&(h=Math.max(t.CANVAS_MIN_PADDING,h-o)),new u.Size(l,h)},n.prototype.getActualOffset=function(e,t,n){return new c.Offsets(-(t.left-e.left)+n.left,-(t.right-e.right)+n.right,-(t.top-e.top)+n.top,-(t.bottom-e.bottom)+n.bottom)},n.prototype.checkScrollBars=function(e,t,n,r){var i=e.width<n.width+r.horizontal,o=e.height<n.height+r.vertical;return i&&!o&&(o=e.height-t<n.height+r.vertical),o&&!i&&(i=e.width-t<n.width+r.horizontal),{horizontal:i,vertical:o}},n.prototype.setSvgSize=function(e,t){e===this.lastWidth&&t===this.lastHeight||(this.dom.changeByFunc(this.svgElement,function(n){return p.RenderUtils.updateSvgElementSize(n,e,t)}),this.lastWidth=e,this.lastHeight=t)},n.prototype.getVisibileAreaAbsShift=function(e){var t=this.scroll,n=this.paddings.clone(),r=this.simpleView,i=r&&this.crop?this.crop.left*this.actualZoom:0,o=r&&this.crop?this.crop.top*this.actualZoom:0;return new l.Point(n.left-i-(e?0:t.x),n.top-o-(e?0:t.y))},n.prototype.getModelPoint=function(e,t){var n=this.getVisibileAreaAbsShift(),r=e.clone().offset(-n.x,-n.y).multiply(1/this.actualZoom,1/this.actualZoom);if(t){var i=this.containerSize;if(e.x<0||e.y<0||e.x>i.width||e.y>i.height)return null;if(r.x<0||r.y<0)return null;if(r.x>this.modelSize.width||r.y>this.modelSize.height)return null}return r.clone().applyConverter(y.UnitConverter.pixelsToTwips)},n.prototype.getAbsolutePoint=function(e,t,n){var r=this.getVisibileAreaAbsShift(t),i=e.clone().multiply(this.actualZoom,this.actualZoom).clone().applyConverter(y.UnitConverter.twipsToPixelsF).clone().offset(r.x,r.y);if(n){if(i.x<0||i.y<0)return null;var o=this.containerSize;if(i.x>o.width||i.y>o.height)return null}return i},n}(o.CanvasManagerBase);t.CanvasViewManager=w},6078:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExportDOMManipulator=t.DOMManipulator=void 0;var o=n(9463),s=function(){function e(e){this.measurer=e,this.queue=[]}return e.prototype.createElement=function(e,t,n){return e.createElement(function(e){null!=t&&(void 0!==n?t.insertBefore(e,n):t.appendChild(e))})},e.prototype.changeChildrenByPrimitives=function(e,t){var n=this;e.forEach(function(e,r){var i=t.childNodes[r];n.changeByPrimitive(i,e)})},e.prototype.changeByFunc=function(e,t){this.doChange(e,t)},e.prototype.changeByPrimitive=function(e,t){this.doChange(e,t)},e.prototype.cancelAnimation=function(){void 0!==this.rafId&&(cancelAnimationFrame(this.rafId),this.queue=[])},e.prototype.doChange=function(e,t){o.Diagnostics.optimizeUsingRAF?(this.queue.push([e,t]),this.requestAnimation()):this.doChangeSync(e,t)},e.prototype.doChangeSync=function(e,t){"function"==typeof t?t(e):t.applyElementProperties(e,this.measurer)},e.prototype.requestAnimation=function(){var e=this;if(!this.rafRequested){this.rafRequested=!0;var t=function(){e.queue.splice(0,2e3).forEach(function(t){return e.doChangeSync(t[0],t[1])}),e.queue.length?e.rafId=requestAnimationFrame(t):(e.rafRequested=!1,e.rafId=void 0)};this.rafId=requestAnimationFrame(t)}},e}();t.DOMManipulator=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.doChange=function(e,t){this.doChangeSync(e,t)},t}(s);t.ExportDOMManipulator=a},741:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputManager=void 0;var r=n(2153),i=n(6907),o=n(3500),s=n(6031),a=n(5503),c=n(7959),u=n(3714),l=n(4246),h=n(9279),d=n(9291),f=n(1114),p=n(3490),A=n(8675),g="dxdi-text-input",m=function(){function e(e,t,n,r,i,o){this.mainElement=e,this.layoutPointResolver=t,this.eventManager=n,this.textMeasurer=r,this.actualZoom=i,this.focusElementsParent=o,this.focused=!1,this.focusLocked=!1,this.createInputElements(this.mainElement,this.focusElementsParent)}return e.prototype.detachEvents=function(){this.detachInputElementEvents(),this.detachTextInputElementEvents()},e.prototype.isFocused=function(){return this.focused},e.prototype.captureFocus=function(e){e&&document.activeElement===this.textInputElement?A.HtmlFocusUtils.focusWithPreventScroll(this.textInputElement||this.inputElement):A.HtmlFocusUtils.focusWithPreventScroll(this.inputElement)},e.prototype.setClipboardData=function(e){this.clipboardInputElement.value=e,A.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement),this.clipboardInputElement.select(),document.execCommand("copy"),this.captureFocus()},e.prototype.getClipboardData=function(e){var t=this;navigator&&navigator.clipboard?navigator.clipboard.readText().then(function(n){e(n),t.captureFocus()}).catch(function(){e(""),t.captureFocus()}):h.Browser.IE&&(this.clipboardInputElement.value="",A.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement),this.clipboardInputElement.select(),document.execCommand("Paste"),e(this.clipboardInputElement.value),this.captureFocus())},e.prototype.isPasteSupportedByBrowser=function(){return h.Browser.IE||h.Browser.WebKitFamily&&navigator&&void 0!==navigator.clipboard},e.prototype.createInputElements=function(e,t){this.createFocusInputElement(t||e),this.createTextInputElement(e),this.createClipboardInputElement(t||e),this.attachInputElementEvents()},e.prototype.setInputElementFocusHandlerMode=function(e){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),e&&this.captureFocus()},e.prototype.setInputElementTextInputMode=function(e,t,n,r,i,o){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container "+i),this.textInputElement.value=e,this.setTextInputElementBounds(t,n,o),this.setTextInputElementStyle(r),this.updateTextInputPadding();var s=this.textInputElement||this.inputElement;A.HtmlFocusUtils.focusWithPreventScroll(s),s.select&&s.select()},e.prototype.setTextInputElementBounds=function(e,t,n){this.savedTextInputPosition=e,this.savedTextInputSize=t,this.savedTextInputAngle=n;var r=this.layoutPointResolver.getAbsolutePoint(e,!0);this.textInputElementContainer.style.left=r.x+"px",this.textInputElementContainer.style.top=r.y+"px",this.textInputElementContainer.style.width=t&&t.width+"px"||"0px",this.textInputElementContainer.style.height=t&&t.height+"px"||"0px";var i=[];this.textInputElementContainer.style.transform="",1!==this.actualZoom&&i.push("scale("+this.actualZoom+")"),n&&i.push("rotate("+n+"deg)"),this.textInputElementContainer.style.transform=i.join(" "),this.textInputElement.style.width=t&&t.width+"px"||"",this.textInputElement.style.height=t&&t.height+"px"||"auto"},e.prototype.setTextInputElementStyle=function(e){this.savedTextInputStyle=e,o.RenderUtils.applyStyleToElement(e,this.textInputElement)},e.prototype.createFocusInputElement=function(e){this.inputElement=document.createElement("textarea"),this.inputElement.readOnly=h.Browser.TouchUI,this.inputElement.setAttribute("class","dxdi-focus-input"),e.appendChild(this.inputElement)},e.prototype.attachInputElementEvents=function(){this.onInputBlurHandler=this.onInputBlur.bind(this),this.onInputFocusHandler=this.onInputFocus.bind(this),this.onInputKeyDownHandler=this.onInputKeyDown.bind(this),this.onInputKeyPressHandler=this.onInputKeyPress.bind(this),this.onInputKeyUpHandler=this.onInputKeyUp.bind(this),this.onPasteHandler=this.onPaste.bind(this),f.RenderHelper.addEventListener(this.inputElement,"blur",this.onInputBlurHandler),f.RenderHelper.addEventListener(this.inputElement,"focus",this.onInputFocusHandler),f.RenderHelper.addEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),f.RenderHelper.addEventListener(this.inputElement,"keypress",this.onInputKeyPressHandler),f.RenderHelper.addEventListener(this.inputElement,"keyup",this.onInputKeyUpHandler),f.RenderHelper.addEventListener(this.inputElement,"paste",this.onPasteHandler)},e.prototype.detachInputElementEvents=function(){f.RenderHelper.removeEventListener(this.inputElement,"blur",this.onInputBlurHandler),f.RenderHelper.removeEventListener(this.inputElement,"focus",this.onInputFocusHandler),f.RenderHelper.removeEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),f.RenderHelper.removeEventListener(this.inputElement,"keypress",this.onInputKeyPressHandler),f.RenderHelper.removeEventListener(this.inputElement,"keyup",this.onInputKeyUpHandler),f.RenderHelper.removeEventListener(this.inputElement,"paste",this.onPasteHandler)},e.prototype.createTextInputElement=function(e){this.textInputElementContainer=document.createElement("div"),this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),e.appendChild(this.textInputElementContainer),this.textInputElement=document.createElement("textarea"),this.textInputElement.setAttribute("class",g),this.attachTextInputElementEvents(),this.textInputElementContainer.appendChild(this.textInputElement)},e.prototype.attachTextInputElementEvents=function(){this.onTextInputBlurHandler=this.onTextInputBlur.bind(this),this.onTextInputFocusHandler=this.onTextInputFocus.bind(this),this.onTextInputKeyDownHandler=this.onTextInputKeyDown.bind(this),this.onTextInputMouseWheelHandler=this.onTextInputMouseWheel.bind(this),this.onTextInputMouseUpHandler=this.onTextInputMouseUp.bind(this),this.onTextInputKeyUpHandler=this.onTextInputKeyUp.bind(this),this.onTextInputChangeHandler=this.onTextInputChange.bind(this),f.RenderHelper.addEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),f.RenderHelper.addEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),f.RenderHelper.addEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),f.RenderHelper.addEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),f.RenderHelper.addEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler),f.RenderHelper.addEventListener(this.textInputElement,"keyup",this.onTextInputKeyUpHandler),f.RenderHelper.addEventListener(this.textInputElement,"change",this.onTextInputChangeHandler)},e.prototype.detachTextInputElementEvents=function(){f.RenderHelper.removeEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),f.RenderHelper.removeEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),f.RenderHelper.removeEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),f.RenderHelper.removeEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),f.RenderHelper.removeEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler),f.RenderHelper.removeEventListener(this.textInputElement,"keyup",this.onTextInputKeyUpHandler),f.RenderHelper.removeEventListener(this.textInputElement,"change",this.onTextInputChangeHandler)},e.prototype.createClipboardInputElement=function(e){this.clipboardInputElement=document.createElement("textarea"),this.clipboardInputElement.setAttribute("class","dxdi-clipboard-input"),e.appendChild(this.clipboardInputElement)},e.prototype.blurControl=function(){this.focusLocked||(this.focused=!1,i.DomUtils.removeClassName(this.mainElement,"focused"))},e.prototype.focusControl=function(){this.focused=!0,this.focusLocked=!1,i.DomUtils.addClassName(this.mainElement,"focused")},e.prototype.updateTextInputPadding=function(){var e=this.textInputElement.value;if(this.savedTextInputSize){n=this.textMeasurer.measureWords(e,this.savedTextInputStyle,l.TextOwner.Shape),r=p.getTextHeight(e,this.savedTextInputSize.width,n,!0);var t=Math.max(0,.5*(this.savedTextInputSize.height-r));this.textInputElement.style.paddingTop=Math.ceil(t)+"px",this.textInputElement.style.height=Math.floor(this.savedTextInputSize.height)+"px"}else{var n=this.textMeasurer.measureWords(" ",this.savedTextInputStyle,l.TextOwner.Connector),r=p.getLineHeight(n)*((p.textToParagraphs(e).length||1)+1);this.textInputElement.style.height=Math.ceil(r)+"px"}},e.prototype.onInputBlur=function(e){var t=this;this.blurControl(),o.raiseEvent(e,this.getDiagramFocusEvent(e),function(e){return t.eventManager.onBlur(e)})},e.prototype.onInputFocus=function(e){var t=this;this.focusControl(),o.raiseEvent(e,this.getDiagramFocusEvent(e),function(e){return t.eventManager.onFocus(e)})},e.prototype.onInputKeyDown=function(e){var t=this;o.raiseEvent(e,this.getDiagramKeyboardEvent(e),function(e){return t.eventManager.onKeyDown(e)})},e.prototype.onInputKeyPress=function(e){!e.preventDefault||h.Browser.Safari&&"KeyV"===e.code||e.preventDefault()},e.prototype.onInputKeyUp=function(e){var t=this;o.raiseEvent(e,this.getDiagramKeyboardEvent(e),function(e){return t.eventManager.onKeyUp(e)})},e.prototype.onTextInputBlur=function(e){var t=this;if(this.eventManager.canFinishTextEditing())this.blurControl(),o.raiseEvent(e,this.getDiagramFocusEvent(e),function(e){return t.eventManager.onTextInputBlur(e)});else{var n=u.EvtUtils.getEventSource(e);document.activeElement!==n&&n.focus()}},e.prototype.onTextInputFocus=function(e){var t=this;this.focusControl(),o.raiseEvent(e,this.getDiagramFocusEvent(e),function(e){return t.eventManager.onTextInputFocus(e)})},e.prototype.onTextInputKeyDown=function(e){var t=this;o.raiseEvent(e,this.getDiagramKeyboardEvent(e),function(e){return t.eventManager.onTextInputKeyDown(e)})},e.prototype.onTextInputKeyUp=function(e){this.updateTextInputPadding()},e.prototype.onTextInputChange=function(e){this.updateTextInputPadding()},e.prototype.onPaste=function(e){var t=this;o.raiseEvent(e,this.getDiagramClipboardEvent(e),function(e){return t.eventManager.onPaste(e)})},e.prototype.onTextInputMouseWheel=function(e){this.mouseWheelHandler&&this.mouseWheelHandler(e)},e.prototype.onTextInputMouseUp=function(e){e.stopPropagation&&e.stopPropagation(),u.EvtUtils.cancelBubble(e)},e.prototype.getDiagramKeyboardEvent=function(e){return new s.DiagramKeyboardEvent(r.KeyUtils.getKeyModifiers(e),r.KeyUtils.getEventKeyCode(e),this.textInputElement.value)},e.prototype.getTextInputElementValue=function(){return this.textInputElement.value},e.prototype.getDiagramFocusEvent=function(e){return new s.DiagramFocusEvent(e.target.value)},e.prototype.getDiagramClipboardEvent=function(e){var t,n=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return t=void 0!==n?n.getData("text/plain"):window.clipboardData.getData("Text"),new s.DiagramClipboardEvent(t)},e.prototype.isTextInputElement=function(e){return"string"==typeof e.className&&e.className.indexOf(g)>-1},e.prototype.lockFocus=function(){var e=this;this.focusLocked=!0,setTimeout(function(){return e.focusLocked=!1},10)},e.prototype.notifyViewAdjusted=function(e){},e.prototype.notifyActualZoomChanged=function(e){this.actualZoom=e,this.savedTextInputPosition&&this.savedTextInputSize&&this.setTextInputElementBounds(this.savedTextInputPosition,this.savedTextInputSize,this.savedTextInputAngle)},e.prototype.notifyTextInputStart=function(e,t,n,r){var i,o="";e instanceof a.Shape?(o="shape-text",i=e.textAngle):e instanceof c.Connector&&(o="connector-text"),r=r&&r.clone().applyConverter(d.UnitConverter.twipsToPixels),this.setInputElementTextInputMode(t,n,r,e.styleText,o,i)},e.prototype.notifyTextInputEnd=function(e,t){this.setInputElementFocusHandlerMode(t)},e.prototype.notifyTextInputPermissionsCheck=function(e,t){},e}();t.InputManager=m},4246:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextOwner=void 0,function(e){e[e.Shape=0]="Shape",e[e.Connector=1]="Connector",e[e.ExtensionLine=2]="ExtensionLine",e[e.Resize=3]="Resize"}(t.TextOwner||(t.TextOwner={}))},1733:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasurer=void 0;var r=n(6353),i=n(3500),o=n(5503),s=n(7959),a=n(4246),c=n(1114),u=n(3490),l=function(){function e(e){this.cache={},this.fontSizeCache={},this.containers={},this.parent=e,this.createNodes()}return e.prototype.measureWords=function(e,t,n){var r=this,i={words:{},fontSize:-1},o="string"==typeof e?this.splitToWords(e,!1):e.reduce(function(e,t){return e.concat(r.splitToWords(t,!1))},[]);o.push(" ");var s=this.getStyleHash(t,n),a=this.tryLoadWordsToMeasurer(o,t,s,n,void 0,void 0,void 0,void 0,i);if(a){var c=this.containers[n];this.putElementsInDOM(c,a),this.beforeMeasureInDOM(),this.measureElementsInDOM(a,i),this.afterMeasureInDOM()}return i},e.prototype.measureTextLine=function(e,t,n){var r=this.measureWords(e,t,n);return u.getTextLineSize(e,r)},e.prototype.onNewModel=function(e,t){var n=this;t.changeByFunc(null,function(){return n.onNewModelCore(e)})},e.prototype.onNewModelCore=function(e){var t=e.filter(function(e){return e instanceof o.Shape}),n=e.filter(function(e){return e instanceof s.Connector}),r=this.tryLoadShapeTexts(t),i=this.tryLoadConnectorTexts(n);(r||i)&&(r&&this.putElementsInDOM(this.containers[a.TextOwner.Shape],r),i&&this.putElementsInDOM(this.containers[a.TextOwner.Connector],i),this.beforeMeasureInDOM(),r&&this.measureElementsInDOM(r),i&&this.measureElementsInDOM(i),this.afterMeasureInDOM())},e.prototype.replaceParent=function(e){this.parent!==e&&(this.mainElement.parentNode&&e.appendChild(this.mainElement),this.parent=e)},e.prototype.clean=function(){i.RenderUtils.removeElement(this.mainElement)},e.prototype.tryLoadShapeTexts=function(e){var t=this,n={},r=[],i=[],o=[];return e.forEach(function(e){var s=t.getStyleHash(e.styleText,a.TextOwner.Shape);t.tryLoadWordsToMeasurer(t.splitToWords(e.text,!0),e.styleText,s,a.TextOwner.Shape,n,r,i,o)}),r.length?{elements:r,hashes:i,styleHashes:o}:null},e.prototype.tryLoadConnectorTexts=function(e){var t=this,n={},r=[],i=[],o=[];return e.forEach(function(e){var s=e.texts.map(function(e){return e.value}).reduce(function(e,n){return e.concat(t.splitToWords(n,!1))},[]);if(s.length){s.push(" ");var c=t.getStyleHash(e.styleText,a.TextOwner.Connector);t.tryLoadWordsToMeasurer(s,e.styleText,c,a.TextOwner.Connector,n,r,i,o)}}),r.length?{elements:r,hashes:i,styleHashes:o}:null},e.prototype.tryLoadWordsToMeasurer=function(e,t,n,r,i,o,s,a,c){var u=this,l=[];return o=o||[],s=s||[],a=a||[],i=i||{},e.forEach(function(e){return u.tryLoadWordToMeasurer(e,t,n,r,i,o,s,a,l,c)}),o.length?{elements:o,hashes:s,styleHashes:a,newWords:l}:null},e.prototype.putElementsInDOM=function(e,t){for(e.parentNode&&e.parentNode.removeChild(e);e.firstChild;)e.removeChild(e.firstChild);t.elements.forEach(function(t){return e.appendChild(t)}),this.svgElement.appendChild(e)},e.prototype.measureElementsInDOM=function(e,t){for(var n=e.hashes,r=e.elements,i=e.newWords,o=n.length,s=0;s<o;s++){var a=this.getDomElementSize(r[s]);a&&(a.isEmpty()||(this.cache[n[s]]=a),t&&(t.words[i[s]]=a));var c=e.styleHashes[s];void 0===this.fontSizeCache[c]&&(this.fontSizeCache[c]=this.getDomFontSize(r[s])),t&&t.fontSize<0&&(t.fontSize=this.fontSizeCache[c])}},e.prototype.beforeMeasureInDOM=function(){this.parent.appendChild(this.mainElement)},e.prototype.afterMeasureInDOM=function(){this.mainElement.parentNode&&this.mainElement.parentNode.removeChild(this.mainElement)},e.prototype.tryLoadWordToMeasurer=function(e,t,n,r,i,o,s,a,c,u){var l=this.getHash(e,t,r),h=this.cache[l];h||i[l]?h&&u&&(u.words[e]=h,u.fontSize=this.fontSizeCache[n]):(i[l]=!0,s.push(l),o.push(this.createElement(e,t)),a.push(n),c.push(e))},e.prototype.getHash=function(e,t,n){return n+"|"+(t&&t.toHash())+"|"+e},e.prototype.getStyleHash=function(e,t){return this.getHash(" ",e,t)},e.prototype.createElement=function(e,t){var n=document.createElementNS(c.svgNS,"text");return" "===e&&n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.textContent=e,t&&i.RenderUtils.applyStyleToElement(t,n),n},e.prototype.splitToWords=function(e,t){var n=u.textToWords(e);return t&&n.push(" "),n},e.prototype.getDomFontSize=function(e){return parseFloat(window.getComputedStyle(e).fontSize)},e.prototype.getDomElementSize=function(e){var t;try{t=e.getBBox()}catch(e){}return t?new r.Size(t.width,t.height):new r.Size(0,0)},e.prototype.createNodes=function(){this.mainElement=c.RenderHelper.createMainElement(void 0,!0),this.svgElement=c.RenderHelper.createSvgElement(this.mainElement,!1),this.createContainer(a.TextOwner.Shape,"shape"),this.createContainer(a.TextOwner.Connector,"connector"),this.createContainer(a.TextOwner.ExtensionLine,"extension-line"),this.createContainer(a.TextOwner.Resize,"resize-info")},e.prototype.createContainer=function(e,t){var n=document.createElementNS(c.svgNS,"g");n.setAttribute("class",t),this.containers[e]=n},e}();t.TextMeasurer=l},4593:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClipPathPrimitive=void 0;var o=n(1114),s=function(e){function t(t,n){var r=e.call(this)||this;return r.id=t,r.children=n,r}return i(t,e),t.prototype.createMainElement=function(){var e=document.createElementNS(o.svgNS,"clipPath");return e.setAttribute("id",this.id),e},t.prototype.applyElementProperties=function(t,n){this.id&&t.setAttribute("id",this.id),e.prototype.applyElementProperties.call(this,t,n)},t}(n(4178).SvgPrimitive);t.ClipPathPrimitive=s},418:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EllipsePrimitive=void 0;var o=n(1114),s=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,o,s,void 0,a)||this;return c.cx=t,c.cy=n,c.rx=r,c.ry=i,c}return i(t,e),t.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"ellipse")},t.prototype.applyElementProperties=function(t,n){this.setUnitAttribute(t,"cx",this.cx),this.setUnitAttribute(t,"cy",this.cy),this.setUnitAttribute(t,"rx",this.rx),this.setUnitAttribute(t,"ry",this.ry),this.setPositionCorrectionAttribute(t),e.prototype.applyElementProperties.call(this,t,n)},t}(n(4178).SvgPrimitive);t.EllipsePrimitive=s},4628:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FilterPrimitive=void 0;var o=n(1114),s=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s.id=t,s.x=n,s.y=r,s.width=i,s.height=o,s}return i(t,e),t.prototype.createMainElement=function(){var e=document.createElementNS(o.svgNS,"filter");return e.setAttribute("id",this.id),e},t.prototype.applyElementProperties=function(t,n){this.id&&t.setAttribute("id",this.id),this.setUnitAttribute(t,"x",this.x),this.setUnitAttribute(t,"y",this.y),this.setUnitAttribute(t,"width",this.width),this.setUnitAttribute(t,"height",this.height),this.setPositionCorrectionAttribute(t),e.prototype.applyElementProperties.call(this,t,n)},t}(n(4178).SvgPrimitive);t.FilterPrimitive=s},5329:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GroupPrimitive=void 0;var o=n(1114),s=function(e){function t(t,n,r,i,o,s){var a=e.call(this,null,n,i,o)||this;return a.zIndex=r,a.onBeforeDispose=s,a.children=t,a}return i(t,e),t.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"g")},t.prototype.applyElementProperties=function(t,n){(this.zIndex||0===this.zIndex)&&t.style.setProperty("z-index",this.zIndex.toString()),e.prototype.applyElementProperties.call(this,t,n)},t.prototype.dispose=function(){this.onBeforeDispose&&this.onBeforeDispose(),e.prototype.dispose.call(this)},t}(n(4178).SvgPrimitive);t.GroupPrimitive=s},1995:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ImagePrimitive=void 0;var o=n(1114),s=function(e){function t(t,n,r,i,o,s,a,c){void 0===s&&(s="none");var u=e.call(this,a,c)||this;return u.x=t,u.y=n,u.width=r,u.height=i,u.url=o,u.preserveAspectRatio=s,u}return i(t,e),t.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"image")},t.prototype.applyElementProperties=function(t,n){this.setUnitAttribute(t,"x",this.x),this.setUnitAttribute(t,"y",this.y),this.setUnitAttribute(t,"width",this.width),this.setUnitAttribute(t,"height",this.height),this.setPositionCorrectionAttribute(t),t.setAttribute("href",this.url),t.setAttribute("preserveAspectRatio",this.preserveAspectRatio),e.prototype.applyElementProperties.call(this,t,n)},t}(n(4178).SvgPrimitive);t.ImagePrimitive=s},7724:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PathPrimitiveClosePathCommand=t.PathPrimitiveArcToCommand=t.PathPrimitiveQuadraticCurveToCommand=t.PathPrimitiveCubicCurveToCommand=t.PathPrimitiveLineToCommand=t.PathPrimitiveMoveToCommand=t.PathPrimitiveCommand=t.PathPrimitive=void 0;var o=n(1114),s=n(4178),a=n(9886),c=function(e){function t(t,n,r,i,o){var s=e.call(this,n,r,i,o)||this;return s.commands=t.map(function(e){return e.style=n,e}),s}return i(t,e),t.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"path")},t.prototype.applyElementProperties=function(t,n){t.setAttribute("d",this.commands.map(function(e){return e.toString()}).join(" ")),this.setPositionCorrectionAttribute(t),e.prototype.applyElementProperties.call(this,t,n)},t}(s.SvgPrimitive);t.PathPrimitive=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(a.PrimitiveObject);t.PathPrimitiveCommand=u;var l=function(e){function t(t,n){var r=e.call(this)||this;return r.x=t,r.y=n,r}return i(t,e),t.prototype.toString=function(){return"M "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},t.fromPoint=function(e){return new t(e.x,e.y)},t}(u);t.PathPrimitiveMoveToCommand=l;var h=function(e){function t(t,n){var r=e.call(this)||this;return r.x=t,r.y=n,r}return i(t,e),t.prototype.toString=function(){return"L "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},t.fromPoint=function(e){return new t(e.x,e.y)},t}(u);t.PathPrimitiveLineToCommand=h;var d=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.x1=t,a.y1=n,a.x2=r,a.y2=i,a.x3=o,a.y3=s,a}return i(t,e),t.prototype.toString=function(){return"C "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)+","+this.getUnitVaue(this.x3)+" "+this.getUnitVaue(this.y3)},t}(u);t.PathPrimitiveCubicCurveToCommand=d;var f=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.x1=t,o.y1=n,o.x2=r,o.y2=i,o}return i(t,e),t.prototype.toString=function(){return"Q "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)},t}(u);t.PathPrimitiveQuadraticCurveToCommand=f;var p=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this)||this;return c.rx=t,c.ry=n,c.xAxisRotation=r,c.largeArcFlag=i,c.sweepFag=o,c.x=s,c.y=a,c}return i(t,e),t.prototype.toString=function(){return"A "+this.getUnitVaue(this.rx)+" "+this.getUnitVaue(this.ry)+" "+this.getUnitVaue(this.xAxisRotation)+" "+(this.largeArcFlag?"1":"0")+" "+(this.sweepFag?"1":"0")+this.getUnitVaue(this.x)+","+this.getUnitVaue(this.y)},t}(u);t.PathPrimitiveArcToCommand=p;var A=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.toString=function(){return"z"},t}(u);t.PathPrimitiveClosePathCommand=A},1932:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PatternPrimitive=void 0;var o=n(1114),s=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,a)||this;return c.id=t,c.x=r,c.y=i,c.width=o,c.height=s,c.children=n,c}return i(t,e),t.prototype.createMainElement=function(){var e=document.createElementNS(o.svgNS,"pattern");return e.setAttribute("patternUnits","userSpaceOnUse"),e.setAttribute("id",this.id),e},t.prototype.applyElementProperties=function(t,n){this.setUnitAttribute(t,"x",this.x),this.setUnitAttribute(t,"y",this.y),this.setUnitAttribute(t,"width",this.width),this.setUnitAttribute(t,"height",this.height),this.setPositionCorrectionAttribute(t),e.prototype.applyElementProperties.call(this,t,n)},t}(n(4178).SvgPrimitive);t.PatternPrimitive=s},4178:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SvgPrimitive=void 0;var o=n(3500),s=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.className=n,o.clipPathId=r,o.onApplyProperties=i,o.children=[],o}return i(t,e),t.prototype.createElement=function(e){var t=this.createMainElement();return this.createChildElements(t),e(t),this.createCustomContent(t),t},t.prototype.createChildElements=function(e){for(var t=0;t<this.children.length;t++)this.children[t].createElement(function(t){return e.appendChild(t)})},t.prototype.applyElementProperties=function(e,t){this.applyElementStyleProperties(e),this.className&&e.setAttribute("class",this.className),"string"==typeof this.clipPathId&&(this.clipPathId?e.setAttribute("clip-path",o.RenderUtils.getUrlPathById(this.clipPathId)):e.removeAttribute("clip-path")),this.onApplyProperties&&this.onApplyProperties(e),this.applyChildrenProperties(e,t)},t.prototype.applyChildrenProperties=function(e,t){for(var n=0;n<this.children.length;n++)this.children[n].applyElementProperties(e.childNodes[n],t)},t.prototype.applyElementStyleProperties=function(e){this.applyElementStylePropertiesCore(e)},t.prototype.applyElementStylePropertiesCore=function(e,t){void 0===t&&(t=!1),this.style&&o.RenderUtils.applyStyleToElement(this.style,e,t)},t.prototype.createCustomContent=function(e){},t.prototype.destroyCustomContent=function(e){},t.prototype.dispose=function(){this.children&&this.children.forEach(function(e){return e.dispose()})},t}(n(9886).PrimitiveObject);t.SvgPrimitive=s},9886:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrimitiveObject=void 0;var r=n(9291),i=function(){function e(e){this.style=e}return Object.defineProperty(e.prototype,"strokeWidthPx",{get:function(){return this.style?this.style.strokeWidthPx:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeOffset",{get:function(){return this.style?this.style.strokeOffset:0},enumerable:!1,configurable:!0}),e.prototype.getUnitVaue=function(e){return"number"==typeof e?r.UnitConverter.twipsToPixels(e).toString():e},e.prototype.setUnitAttribute=function(e,t,n){null!=n&&e.setAttribute(t,this.getUnitVaue(n))},e.prototype.setPositionCorrectionAttribute=function(e){var t=this.strokeWidthPx%2==1?"translate("+this.strokeOffset+", "+this.strokeOffset+")":"";e.setAttribute("transform",t)},e}();t.PrimitiveObject=i},4716:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RectanglePrimitive=void 0;var o=n(1114),s=function(e){function t(t,n,r,i,o,s,a,c){var u=e.call(this,o,s,a,c)||this;return u.x=t,u.y=n,u.width=r,u.height=i,u}return i(t,e),t.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"rect")},t.prototype.applyElementProperties=function(t,n){this.setUnitAttribute(t,"x",this.x),this.setUnitAttribute(t,"y",this.y),this.setUnitAttribute(t,"width",this.width),this.setUnitAttribute(t,"height",this.height),this.setPositionCorrectionAttribute(t),e.prototype.applyElementProperties.call(this,t,n)},t}(n(4178).SvgPrimitive);t.RectanglePrimitive=s},4538:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RoundedRectanglePrimitive=void 0;var o=n(1114),s=function(e){function t(t,n,r,i,o,s,a,c,u,l){void 0===o&&(o=0),void 0===s&&(s=0);var h=e.call(this,t,n,r,i,a,c,u,l)||this;return h.x=t,h.y=n,h.width=r,h.height=i,h.rx=o,h.ry=s,h}return i(t,e),t.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"rect")},t.prototype.applyElementProperties=function(t,n){this.setUnitAttribute(t,"rx",this.rx),this.setUnitAttribute(t,"ry",this.ry),e.prototype.applyElementProperties.call(this,t,n)},t}(n(4716).RectanglePrimitive);t.RoundedRectanglePrimitive=s},3281:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowFilterPrimitive=void 0;var o=n(4628),s=n(1114),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createChildElements=function(e){var t=document.createElementNS(s.svgNS,"feGaussianBlur");t.setAttribute("in","SourceGraphic"),t.setAttribute("stdDeviation","4.6"),e.appendChild(t);var n=document.createElementNS(s.svgNS,"feOffset");n.setAttribute("dx","0"),n.setAttribute("dy","0"),e.appendChild(n);var r=document.createElementNS(s.svgNS,"feMerge");e.appendChild(r);var i=document.createElementNS(s.svgNS,"feMergeNode");r.appendChild(i);var o=document.createElementNS(s.svgNS,"feMergeNode");o.setAttribute("in","SourceGraphic"),r.appendChild(o)},t}(o.FilterPrimitive);t.ShadowFilterPrimitive=a},1248:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SvgElementPrimitive=void 0;var o=n(1114),s=function(e){function t(t,n,r,i,o,s,a,c,u){var l=e.call(this,null,c,void 0,u)||this;return l.x=t,l.y=n,l.width=r,l.height=i,l.createContent=o,l.destroyContent=s,l.data=a,l}return i(t,e),t.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"svg")},t.prototype.applyElementProperties=function(t,n){this.setUnitAttribute(t,"x",this.x),this.setUnitAttribute(t,"y",this.y),this.setUnitAttribute(t,"width",this.width),this.setUnitAttribute(t,"height",this.height),this.setPositionCorrectionAttribute(t),e.prototype.applyElementProperties.call(this,t,n)},t.prototype.createCustomContent=function(e){this.createContent&&this.createContent(e,this.data)},t.prototype.destroyCustomContent=function(e){this.destroyContent&&this.destroyContent(e)},t}(n(4178).SvgPrimitive);t.SvgElementPrimitive=s},3360:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TextFloodFilterPrimitive=t.TextFilterPrimitive=void 0;var o=n(1114),s=n(4628),a=n(6613),c=n(13),u=function(e){function t(t,n,r,i,o){void 0===n&&(n="-0.05"),void 0===r&&(r="-0.05"),void 0===i&&(i="1.1"),void 0===o&&(o="1.1");var s=e.call(this,t,n,r,i,o)||this;return s.id=t,s.x=n,s.y=r,s.width=i,s.height=o,s}return i(t,e),t.prototype.createChildElements=function(e){var t=document.createElementNS(o.svgNS,"feFlood");e.appendChild(t);var n=document.createElementNS(o.svgNS,"feComposite");n.setAttribute("in","SourceGraphic"),n.setAttribute("operator","atop"),e.appendChild(n)},t}(s.FilterPrimitive);t.TextFilterPrimitive=u;var l=function(e){function t(t,n,r,i,o,s){void 0===r&&(r="-0.05"),void 0===i&&(i="-0.05"),void 0===o&&(o="1.1"),void 0===s&&(s="1.1");var a=e.call(this,t,r,i,o,s)||this;return a.id=t,a.floodColor=n,a.x=r,a.y=i,a.width=o,a.height=s,a}return i(t,e),t.prototype.applyChildrenProperties=function(e){for(var t=void 0,n=0;t=e.childNodes[n];n++)if(t.nodeName&&"FEFLOOD"===t.nodeName.toUpperCase()){this.prepareFEFloodNode(t);break}},t.prototype.prepareFEFloodNode=function(e){var t=c.ColorUtils.colorToHash(this.floodColor);e.setAttribute("flood-color",t),e.setAttribute("class","text-filter-flood"),this.floodColor!==a.DiagramModel.defaultPageColor?e.style.setProperty("flood-color",t):e.style.setProperty("flood-color","")},t}(u);t.TextFloodFilterPrimitive=l},9416:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TextPrimitive270degRenderHelper=t.TextPrimitive180degRenderHelper=t.TextPrimitive90degRenderHelper=t.TextPrimitiveRenderHelper=t.TextPrimitive=t.TextAngle=void 0;var o,s=n(9291),a=n(1114),c=n(4178),u=n(3500),l=n(3490);!function(e){e[e.Angle0deg=0]="Angle0deg",e[e.Angle90deg=90]="Angle90deg",e[e.Angle180deg=180]="Angle180deg",e[e.Angle270deg=270]="Angle270deg"}(o=t.TextAngle||(t.TextAngle={}));var h=function(e){function t(t,n,r,i,o,s,a,c,u,h,d,f,p){var A=e.call(this,c,"",h,p)||this;return A.x=t,A.y=n,A.text=r,A.owner=i,A.textWidth=o,A.textHeight=s,A.textSpacing=a,A.reverseTextAhchor=u,A.angle=f,A.filterId=d,A.textSegmens=l.textToParagraphs(A.text),A.renderHelper=A.createRenderHelper(),void 0!==A.textWidth&&void 0!==A.textWidth&&(A.x=A.renderHelper.getTextX(A.x),A.y=A.renderHelper.getTextY(A.y)),A}return i(t,e),t.prototype.createMainElement=function(){return document.createElementNS(a.svgNS,"text")},t.prototype.applyElementProperties=function(t,n){this.setUnitAttribute(t,"x",this.x),this.setUnitAttribute(t,"y",this.y),this.filterId&&t.setAttribute("filter",u.RenderUtils.getUrlPathById(this.filterId)),e.prototype.applyElementProperties.call(this,t,n),t.getAttribute("appliedText")!==this.text||t.getAttribute("appliedSize")!==(this.fitToSize&&this.fitToSize.toString())?(this.createTSpanElements(t,n),t.setAttribute("appliedText",this.text),t.setAttribute("appliedSize",this.fitToSize&&this.fitToSize.toString())):this.prepareTSpanElements(t),this.renderHelper.prepareMainElement(t,this.x,this.y)},t.prototype.createTSpanElements=function(e,t){var n=this;u.RenderUtils.removeContent(e),this.textSegmens.forEach(function(r,i){if(!r&&n.textSegmens.length>1)n.createTSpanElement(e).textContent=" ";else if(n.fitToSize){var o=l.textToWords(r),a=l.wordsByLines(s.UnitConverter.twipsToPixels(n.fitToSize),o,function(){return t.measureWords(o,n.style,n.owner)});a.forEach(function(t){n.createTSpanElement(e).textContent=t}),a.length||(n.createTSpanElement(e).textContent=" ")}else n.createTSpanElement(e).textContent=r});var r=e.firstChild;r&&this.prepareFirstTSpanElement(r,e.childNodes.length)},t.prototype.createTSpanElement=function(e){var t=document.createElementNS(a.svgNS,"tspan");return e.appendChild(t),this.prepareTSpanElement(t),t},t.prototype.prepareTSpanElements=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];this.prepareTSpanElement(n)}var r=e.firstChild;r&&this.prepareFirstTSpanElement(r,e.childNodes.length)},t.prototype.prepareTSpanElement=function(e){this.renderHelper.prepareTSpanElement(e,this.x,this.y)},t.prototype.prepareFirstTSpanElement=function(e,t){this.renderHelper.prepareFirstTSpanElement(e,t)},t.prototype.applyElementStyleProperties=function(e){this.applyElementStylePropertiesCore(e,this.reverseTextAhchor)},Object.defineProperty(t.prototype,"fitToSize",{get:function(){return this.renderHelper.fitToSize},enumerable:!1,configurable:!0}),t.prototype.createRenderHelper=function(){switch(this.angle){case o.Angle90deg:return new f(this);case o.Angle180deg:return new p(this);case o.Angle270deg:return new A(this);default:return new d(this)}},t.baselineCorrection=.35,t}(c.SvgPrimitive);t.TextPrimitive=h;var d=function(){function e(e){this.primitive=e}return Object.defineProperty(e.prototype,"textWidth",{get:function(){return this.primitive.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textHeight",{get:function(){return this.primitive.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fitToSize",{get:function(){return this.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textAnchor",{get:function(){return this.primitive.style["text-anchor"]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textSpacing",{get:function(){return this.primitive.textSpacing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needRotation",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.prepareMainElement=function(e,t,n){this.needRotation&&e.setAttribute("transform","rotate("+this.angle+", "+s.UnitConverter.twipsToPixels(t)+", "+s.UnitConverter.twipsToPixels(n)+")")},e.prototype.prepareTSpanElement=function(e,t,n){this.primitive.setUnitAttribute(e,"x",t),e.setAttribute("dy",l.LINE_HEIGHT+"em")},e.prototype.prepareFirstTSpanElement=function(e,t){var n=-(t-1)/2+h.baselineCorrection;e.setAttribute("dy",n.toFixed(2)+"em")},e.prototype.getTextX=function(e){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?e+this.textWidth-this.textSpacing:"start"===this.textAnchor?e+this.textSpacing:e:e+this.textWidth/2},e.prototype.getTextY=function(e){return e+this.textHeight/2},e.prototype.setUnitAttribute=function(e,t,n){this.primitive.setUnitAttribute(e,t,n)},e}();t.TextPrimitiveRenderHelper=d;var f=function(e){function t(t){return e.call(this,t)||this}return i(t,e),Object.defineProperty(t.prototype,"fitToSize",{get:function(){return this.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return 90},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"needRotation",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getTextX=function(e){return e+this.textWidth/2},t.prototype.getTextY=function(e){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?e+this.textHeight-this.textSpacing:"start"===this.textAnchor?e+this.textSpacing:e:e+this.textHeight/2},t}(d);t.TextPrimitive90degRenderHelper=f;var p=function(e){function t(t){return e.call(this,t)||this}return i(t,e),Object.defineProperty(t.prototype,"angle",{get:function(){return 180},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"needRotation",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getTextX=function(e){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?e+this.textWidth-this.textSpacing:"end"===this.textAnchor?e+this.textSpacing:e:e+this.textWidth/2},t}(d);t.TextPrimitive180degRenderHelper=p;var A=function(e){function t(t){return e.call(this,t)||this}return i(t,e),Object.defineProperty(t.prototype,"angle",{get:function(){return 270},enumerable:!1,configurable:!0}),t.prototype.getTextY=function(e){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?e+this.textHeight-this.textSpacing:"end"===this.textAnchor?e+this.textSpacing:e:e+this.textHeight/2},t}(f);t.TextPrimitive270degRenderHelper=A},1114:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderHelper=t.svgNS=void 0;var r=n(9463);t.svgNS="http://www.w3.org/2000/svg";var i=function(){function e(){}return e.createSvgElement=function(e,n){void 0===n&&(n=!1);var r=document.createElementNS(t.svgNS,"svg");return r.className.baseVal="dxdi-canvas"+(n?" export":""),e&&e.appendChild(r),r},e.createMainElement=function(e,t){void 0===t&&(t=!1);var n=document.createElement("div");return n.setAttribute("class","dxdi-control"+(t?" measurer":"")),r.Diagnostics.optimizeLayers&&(n.style.transform="translateZ(0)"),e&&e.appendChild(n),n},e.addEventListener=function(e,t,n){e.addEventListener(t,n)},e.removeEventListener=function(e,t,n){e.removeEventListener(t,n)},e}();t.RenderHelper=i},8098:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderManager=t.DBL_CLICK_TIMEOUT=t.LONG_TOUCH_TIMEOUT=void 0;var r=n(6031),i=n(3714),o=n(6907),s=n(8900),a=n(2153),c=n(9279),u=n(3500),l=n(8693),h=n(7376),d=n(240),f=n(741),p=n(6043),A=n(9757),g=n(4e3),m=n(6557),y=n(1733),v=n(1114),b=n(6078),w=n(8675),C="dxdi-touch-action";t.LONG_TOUCH_TIMEOUT=500,t.DBL_CLICK_TIMEOUT=500;var _=function(){function e(e,t,n,r,i,o,s){this.moveLocked=!1,this.lockMouseMoveTimer=-1,this.lastClickElement=void 0,this.longTouchTimer=void 0,this.dblTouchTimer=void 0,this.pointers={};var a=v.RenderHelper.createMainElement(e),c=v.RenderHelper.createSvgElement(a);this.instanceId=i,this.scroll=o||new h.NativeScrollView(e),this.measurer=n,this.dom=new b.DOMManipulator(this.measurer),this.view=new A.CanvasViewManager(this.scroll,c,r.modelSize,r.zoomLevel,r.autoZoom,r.simpleView,r.rectangle,this.dom,this.instanceId),this.input=new f.InputManager(a,this.view,t,this.measurer,r.zoomLevel,s),this.items=new l.CanvasItemsManager(this.view.canvasElement,r.zoomLevel,this.dom,this.instanceId),this.page=new p.CanvasPageManager(this.view.pageElement,r,this.dom,this.instanceId),this.selection=new g.CanvasSelectionManager(this.view.canvasElement,r.zoomLevel,r.readOnly,this.dom,this.instanceId),this.contextMenuEnabled=r.contextMenuEnabled,this.view.onViewChanged.add(this.page),this.view.onViewChanged.add(this.items),this.view.onViewChanged.add(this.selection),this.view.onViewChanged.add(this.input),this.autoScroll=new m.AutoScrollController(this.scroll,c,this.view,this.dom),this.attachEvents(c),this.mainElement=a,this.svgElement=c,this.events=t,this.notifyReadOnlyChanged(r.readOnly)}return e.prototype.clean=function(e){this.killLockMouseMoveTimer(),this.clearLastMouseDownEvent(),this.detachEvents(this.svgElement),this.scroll.detachEvents(),this.input.detachEvents(),this.dom.cancelAnimation(),e&&e(this.mainElement)},e.prototype.replaceParent=function(e,t){this.mainElement&&this.mainElement.parentNode!==e&&e.appendChild(this.mainElement),t&&t!==this.scroll&&(this.scroll&&this.scroll.detachEvents(),this.scroll=t),this.measurer instanceof y.TextMeasurer&&this.measurer.replaceParent(e)},e.prototype.update=function(e){this.view.adjust({horizontal:!e,vertical:!e}),this.page.redraw()},e.prototype.onNewModel=function(e){this.measurer.onNewModel(e,this.dom)},e.prototype.clear=function(){this.items.clear(),this.selection.clear()},e.prototype.attachPointerEvents=function(e){o.DomUtils.addClassName(e,C),v.RenderHelper.addEventListener(e,"pointerdown",this.onPointerDownHandler),v.RenderHelper.addEventListener(c.Browser.TouchUI?e:document,"pointerup",this.onPointerUpHandler),v.RenderHelper.addEventListener(c.Browser.TouchUI?e:document,"pointermove",this.onPointerMoveHandler),v.RenderHelper.addEventListener(e,"pointercancel",this.onPointerCancelHandler),v.RenderHelper.addEventListener(e,"pointerleave",this.onPointerLeaveHandler)},e.prototype.detachPointerEvents=function(e){v.RenderHelper.removeEventListener(e,"pointerdown",this.onPointerDownHandler),v.RenderHelper.removeEventListener(c.Browser.TouchUI?e:document,"pointerup",this.onPointerUpHandler),v.RenderHelper.removeEventListener(c.Browser.TouchUI?e:document,"pointermove",this.onPointerMoveHandler),v.RenderHelper.removeEventListener(e,"pointercancel",this.onPointerCancelHandler),v.RenderHelper.removeEventListener(e,"pointerleave",this.onPointerLeaveHandler),o.DomUtils.removeClassName(e,C)},e.prototype.attachMouseTouchEvents=function(e){v.RenderHelper.addEventListener(e,this.mouseDownEventName,this.onMouseDownHandler),v.RenderHelper.addEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),v.RenderHelper.addEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},e.prototype.detachMouseTouchEvents=function(e){v.RenderHelper.removeEventListener(e,this.mouseDownEventName,this.onMouseDownHandler),v.RenderHelper.removeEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),v.RenderHelper.removeEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},e.prototype.attachEvents=function(e){this.mouseDownEventName=c.Browser.TouchUI?"touchstart":"mousedown",this.mouseMoveEventName=c.Browser.TouchUI?"touchmove":"mousemove",this.mouseUpEventName=c.Browser.TouchUI?"touchend":"mou
19seup",this.onPointerDownHandler=this.onPointerDown.bind(this),this.onPointerUpHandler=this.onPointerUp.bind(this),this.onPointerMoveHandler=this.onPointerMove.bind(this),this.onPointerCancelHandler=this.onPointerCancel.bind(this),this.onPointerLeaveHandler=this.onPointerLeave.bind(this),this.onMouseDownHandler=this.onMouseDown.bind(this),this.onMouseEnterHandler=this.onMouseEnter.bind(this),this.onMouseLeaveHandler=this.onMouseLeave.bind(this),this.onMouseWheelHandler=this.onMouseWheel.bind(this),this.onMouseDblClickHandler=this.onMouseDblClick.bind(this),this.onContextMenuHandler=this.onContextMenu.bind(this),this.onMouseMoveHandler=this.onMouseMove.bind(this),this.onMouseUpHandler=this.onMouseUp.bind(this),this.onWindowResizelHandler=this.onWindowResize.bind(this),this.onOrientationChangeHandler=this.onOrientationChange.bind(this),this.onMouseClickHandler=this.onMouseClick.bind(this),w.EventUtils.isPointerEvents()?this.attachPointerEvents(e):(this.attachMouseTouchEvents(e),v.RenderHelper.addEventListener(e,"mouseenter",this.onMouseEnterHandler),v.RenderHelper.addEventListener(e,"mouseleave",this.onMouseLeaveHandler)),v.RenderHelper.addEventListener(e,"wheel",this.onMouseWheelHandler),v.RenderHelper.addEventListener(e,"dblclick",this.onMouseDblClickHandler),v.RenderHelper.addEventListener(e,"click",this.onMouseClickHandler),v.RenderHelper.addEventListener(e,"contextmenu",this.onContextMenuHandler),v.RenderHelper.addEventListener(window,"resize",this.onWindowResizelHandler),v.RenderHelper.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.input.mouseWheelHandler=this.onMouseWheelHandler},e.prototype.detachEvents=function(e){w.EventUtils.isPointerEvents()?this.detachPointerEvents(e):(this.detachMouseTouchEvents(e),v.RenderHelper.removeEventListener(e,"mouseenter",this.onMouseEnterHandler),v.RenderHelper.removeEventListener(e,"mouseleave",this.onMouseLeaveHandler)),v.RenderHelper.removeEventListener(e,"wheel",this.onMouseWheelHandler),v.RenderHelper.removeEventListener(e,"dblclick",this.onMouseDblClickHandler),v.RenderHelper.removeEventListener(e,"contextmenu",this.onContextMenuHandler),v.RenderHelper.removeEventListener(e,"click",this.onMouseClickHandler),v.RenderHelper.removeEventListener(window,"resize",this.onWindowResizelHandler),v.RenderHelper.removeEventListener(window,"orientationchange",this.onOrientationChangeHandler)},e.prototype.setPointerPosition=function(e){this.pointers[e.pointerId]={clientX:e.clientX,clientY:e.clientY}},e.prototype.clearPointerPosition=function(e){delete this.pointers[e.pointerId]},e.prototype.onPointerDown=function(e){this.setPointerPosition(e),this.getPointerCount()>2&&(this.pointers={}),this.onMouseDown(e)},e.prototype.onPointerUp=function(e){this.clearPointerPosition(e),this.onMouseUp(e)},e.prototype.onPointerMove=function(e){(c.Browser.TouchUI&&!w.EventUtils.isMousePointer(e)||w.EventUtils.isLeftButtonPressed(e))&&this.setPointerPosition(e),this.onMouseMove(e)},e.prototype.onPointerCancel=function(e){this.clearPointerPosition(e)},e.prototype.onPointerLeave=function(e){w.EventUtils.isMousePointer(e)&&this.onMouseLeave(e),this.clearPointerPosition(e)},e.prototype.onMouseDown=function(e){var t=this;this.lockMouseMove(),this.input.lockFocus(),this.autoScroll.onMouseDown(e),this.lastDownMouseEvent=this.createDiagramMouseEvent(e),u.raiseEvent(e,this.lastDownMouseEvent,function(e){return t.events.onMouseDown(e)}),this.events.canFinishTextEditing()&&this.input.captureFocus(),w.EventUtils.isTouchEvent(e)&&this.processTouchDown(e);var n=i.EvtUtils.getEventSource(e),r=n&&n.tagName;if(c.Browser.TouchUI||"img"===r.toLowerCase()||"image"===r.toLowerCase())return i.EvtUtils.preventEventAndBubble(e),!1},e.prototype.onMouseMove=function(e){var t=this;this.moveLocked||(this.autoScroll.onMouseMove(e,function(){return t.onMouseMoveCore(e)}),this.onMouseMoveCore(e),c.Browser.IE&&this.lockMouseMove(),w.EventUtils.isTouchEvent(e)&&this.processTouchMove(e))},e.prototype.onMouseMoveCore=function(e){var t=this;u.raiseEvent(e,this.createDiagramMouseEvent(e),function(e){return t.events.onMouseMove(e)})},e.prototype.onMouseUp=function(e){var t=this;this.lockMouseMove();var n=this.createDiagramMouseEvent(e);u.raiseEvent(e,n,function(e){return t.events.onMouseUp(e)}),this.autoScroll.onMouseUp(e),n.source.type!==r.MouseEventElementType.Undefined&&this.input.captureFocus(!0),w.EventUtils.isTouchEvent(e)&&this.processTouchUp(e)},e.prototype.onMouseEnter=function(e){var t=this;this.autoScroll.onMouseEnter(e),u.raiseEvent(e,this.createDiagramMouseEvent(e),function(e){return t.events.onMouseEnter(e)})},e.prototype.onMouseLeave=function(e){var t=this;u.raiseEvent(e,this.createDiagramMouseEvent(e),function(e){return t.events.onMouseLeave(e)})},e.prototype.onMouseDblClick=function(e){var t=this;u.raiseEvent(e,this.createDiagramMouseEvent(e),function(e){return t.events.onDblClick(e)})},e.prototype.onMouseClick=function(e){var t=this;w.EventUtils.isTouchEvent(e)?w.EventUtils.isMousePointer(e)||this.input.captureFocus():u.raiseEvent(e,this.createActualMouseClickEvent(e),function(e){return t.events.onClick(e)})},e.prototype.createActualMouseClickEvent=function(e){return this.lastDownMouseEvent?new r.DiagramMouseEvent(this.lastDownMouseEvent.modifiers,this.lastDownMouseEvent.button,this.lastDownMouseEvent.offsetPoint.clone(),this.lastDownMouseEvent.modelPoint.clone(),this.lastDownMouseEvent.source,this.createDiagramMouseEventTouches(e)):this.createDiagramMouseEvent(e)},e.prototype.onContextMenu=function(e){var t=this;if(this.contextMenuEnabled)return 1!==e.buttons&&u.raiseEvent(e,this.createDiagramContextMenuEvent(e),function(e){return t.events.onContextMenu(e)}),this.input.captureFocus(),i.EvtUtils.preventEventAndBubble(e)},e.prototype.processTouchDown=function(e){var n=this;this.touchDownPoint=this.getTouchPointFromEvent(e),this.resetLongTouch(),this.longTouchTimer=setTimeout(function(){u.raiseEvent(e,n.createDiagramMouseEvent(e),function(e){return n.events.onLongTouch(e)}),n.resetLongTouch(),n.resetDblClick()},t.LONG_TOUCH_TIMEOUT)},e.prototype.processTouchMove=function(t){var n=this.getTouchPointFromEvent(t);this.touchDownPoint&&n&&(Math.abs(this.touchDownPoint.x-n.x)>e.touchPositionLimit||Math.abs(this.touchDownPoint.y-n.y)>e.touchPositionLimit)&&(this.resetLongTouch(),this.resetDblClick())},e.prototype.getPointers=function(){var e=this;return Object.keys(this.pointers).map(function(t){return e.pointers[t]})},e.prototype.getPointerCount=function(){return Object.keys(this.pointers).length},e.prototype.getTouchPointFromEvent=function(e){var t,n=e.touches;if(n&&n.length>0)t=new s.Point(n[0].clientX,n[0].clientY);else{var r=this.getPointers();r.length&&(t=new s.Point(r[0].clientX,r[0].clientY))}return t},e.prototype.processTouchUp=function(e){var n=this;if(void 0!==this.longTouchTimer){u.raiseEvent(e,this.createDiagramMouseEvent(e),function(e){return n.events.onClick(e)});var r=i.EvtUtils.getEventSource(e);void 0!==this.dblTouchTimer&&this.lastClickElement===r?(u.raiseEvent(e,this.createDiagramMouseEvent(e),function(e){return n.events.onDblClick(e)}),this.resetDblClick()):(this.resetDblClick(),this.dblTouchTimer=setTimeout(function(){return n.dblTouchTimer=void 0},t.DBL_CLICK_TIMEOUT)),this.lastClickElement=r}this.resetLongTouch(),this.touchDownPoint=void 0},e.prototype.resetLongTouch=function(){void 0!==this.longTouchTimer&&clearTimeout(this.longTouchTimer),this.longTouchTimer=void 0},e.prototype.resetDblClick=function(){void 0!==this.dblTouchTimer&&clearTimeout(this.dblTouchTimer),this.dblTouchTimer=void 0},e.prototype.onOrientationChange=function(){var e=this;setTimeout(function(){return e.onWindowResize()},100)},e.prototype.onWindowResize=function(){var e={horizontal:!1,vertical:!1};if(this.view.autoZoom!==d.AutoZoomMode.Disabled)e.horizontal=!0,e.vertical=!0;else{var t=this.view.checkFitToCanvas(),n=this.view.checkFitToCanvas(this.scroll.getSize());e={horizontal:t.horizontal!==n.horizontal||n.horizontal,vertical:t.vertical!==n.vertical||n.vertical}}this.view.adjust(e)},e.prototype.onMouseWheel=function(e){var t=this;u.raiseEvent(e,this.createDiagramWheelEvent(e),function(e){return t.events.onMouseWheel(e)})},e.prototype.notifyModelSizeChanged=function(e,t){this.view.notifyModelSizeChanged(e,t)},e.prototype.notifyModelRectangleChanged=function(e){this.view.notifyModelRectangleChanged(e)}
vendor: 69,836 bytes, line 19
19,e.prototype.notifyReadOnlyChanged=function(e){o.DomUtils.toggleClassName(this.mainElement,"dxdi-read-only",e)},e.prototype.notifyDragStart=function(e){},e.prototype.notifyDragEnd=function(e){},e.prototype.notifyDragScrollStart=function(){this.autoScroll.onDragScrollStart()},e.prototype.notifyDragScrollEnd=function(){this.autoScroll.onDragScrollEnd()},e.prototype.notifyToolboxDragStart=function(e){this.onMouseEnter(e)},e.prototype.notifyToolboxDragEnd=function(e){e&&w.EventUtils.isPointerEvents()&&this.onMouseUp(e)},e.prototype.notifyToolboxDraggingMouseMove=function(e){this.onMouseMove(e)},e.prototype.createDiagramMouseEvent=function(e){var t=a.KeyUtils.getKeyModifiers(e),n=function(e){return c.Browser.MSTouchUI?2!==e.button:w.EventUtils.isLeftButtonPressed(e)}(e)?r.MouseButton.Left:r.MouseButton.Right,i=this.getOffsetPointByEvent(e),o=this.getModelPoint(i),s=w.EventUtils.isTouchEvent(e),u=this.getEventSource(e,s),l=this.createDiagramMouseEventTouches(e);return new r.DiagramMouseEvent(t,n,i,o,u,l,s)},e.prototype.createDiagramMouseEventTouches=function(e){var t=[];if(e.touches)for(var n=0;n<e.touches.length;n++){var i=e.touches[n].clientX,o=e.touches[n].clientY,s=this.getOffsetPointByEventPoint(i,o),a=this.getModelPoint(s);t.push(new r.DiagramMouseEventTouch(s,a))}else{var c=this.getPointers();for(n=0;n<c.length;n++)i=c[n].clientX,o=c[n].clientY,s=this.getOffsetPointByEventPoint(i,o),a=this.getModelPoint(s),t.push(new r.DiagramMouseEventTouch(s,a))}return t},e.prototype.createDiagramContextMenuEvent=function(e){var t=a.KeyUtils.getKeyModifiers(e),n=new s.Point(e.pageX,e.pageY),i=this.getOffsetPointByEvent(e),o=this.getModelPoint(i);return new r.DiagramContextMenuEvent(t,n,o)},e.prototype.createDiagramWheelEvent=function(e){var t=a.KeyUtils.getKeyModifiers(e),n=this.getOffsetPointByEvent(e),i=this.view.getModelPoint(n),o=this.getEventSource(e),s=e.deltaX||e.originalEvent&&e.originalEvent.deltaX,c=e.deltaY||e.originalEvent&&e.originalEvent.deltaY;return new r.DiagramWheelEvent(t,s,c,n,i,o)},e.prototype.getEventSource=function(e,t){var n=t?i.EvtUtils.getEventSourceByPosition(e):i.EvtUtils.getEventSource(e);if(this.isDiagramControl(n))for(;n&&!this.isDocumentContainer(n);){var o=u.RenderUtils.getElementEventData(n);if(void 0!==o)return o;if(this.input.isTextInputElement(n))return new r.MouseEventSource(r.MouseEventElementType.Document);n=n.parentNode}var s=new r.MouseEventSource(r.MouseEventElementType.Undefined);return n&&this.isDocumentContainer(n)&&(s.type=r.MouseEventElementType.Background),s},e.prototype.isDiagramControl=function(e){for(;e;){if(this.isDocumentContainer(e))return!0;e=e.parentNode}return!1},e.prototype.isDocumentContainer=function(e){return e===this.mainElement},e.prototype.lockMouseMove=function(){var e=this;this.moveLocked=!0,this.lockMouseMoveTimer=setTimeout(function(){e.moveLocked=!1,e.lockMouseMoveTimer=-1},10)},e.prototype.killLockMouseMoveTimer=function(){-1!==this.lockMouseMoveTimer&&(clearTimeout(this.lockMouseMoveTimer),this.lockMouseMoveTimer=-1)},e.prototype.clearLastMouseDownEvent=function(){this.lastDownMouseEvent=void 0},e.prototype.getModelPoint=function(e){return this.view.getModelPoint(e)},e.prototype.getOffsetPointByEvent=function(e){var t=i.EvtUtils.getEventX(e),n=i.EvtUtils.getEventY(e);return this.getOffsetPointByEventPoint(t,n)},e.prototype.getOffsetPointByEventPoint=function(e,t){var n=this.scroll.getScrollContainer(),r=o.DomUtils.getAbsolutePositionX(n),i=o.DomUtils.getAbsolutePositionY(n);return new s.Point(e-r,t-i)},e.prototype.getModelPointByEventPoint=function(e,t){var n=this.getOffsetPointByEventPoint(e,t);return this.view.getModelPoint(n)},e.prototype.getEventPointByModelPoint=function(e){var t=this.view.getAbsolutePoint(e),n=this.scroll.getScrollContainer();return new s.Point(o.DomUtils.getAbsolutePositionX(n)+t.x,o.DomUtils.getAbsolutePositionY(n)+t.y)},e.touchPositionLimit=4,e}();t.RenderManager=_},7376:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NativeScrollView=void 0;var r=n(8675),i=n(6353),o=n(8900),s=n(6907),a=n(1114),c=function(){function e(e){this.onScroll=new r.EventDispatcher,this.scrollBarWidth=s.DomUtils.getVerticalScrollBarWidth(),this.mainElement=e,this.attachEvents()}return e.prototype.attachEvents=function(){var e=this;this.onScrollHandler=function(){return e.onScroll.raise1(function(t){return t.notifyScrollChanged(function(){return e.getScroll()})})},a.RenderHelper.addEventListener(this.mainElement,"scroll",this.onScrollHandler)},e.prototype.detachEvents=function(){a.RenderHelper.removeEventListener(this.mainElement,"scroll",this.onScrollHandler)},e.prototype.getScrollContainer=function(){return this.mainElement},e.prototype.setScroll=function(e,t){var n=this;this.mainElement.style.overflow="scroll",this.mainElement.scrollLeft=e,this.mainElement.scrollTop=t,this.mainElement.style.overflow="",this.onScroll.raise1(function(e){return e.notifyScrollChanged(function(){return n.getScroll()})})},e.prototype.offsetScroll=function(e,t){var n=this;e&&(this.mainElement.scrollLeft+=e),t&&(this.mainElement.scrollTop+=t),this.onScroll.raise1(function(e){return e.notifyScrollChanged(function(){return n.getScroll()})})},e.prototype.getScroll=function(){return new o.Point(this.mainElement.scrollLeft,this.mainElement.scrollTop)},e.prototype.getSize=function(){var e=this.mainElement.getBoundingClientRect();return new i.Size(Math.floor(e.width),Math.floor(e.height))},e.prototype.getScrollBarWidth=function(){return this.scrollBarWidth},e}();t.NativeScrollView=c},6411:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeImageIndicator=void 0;var r=n(418),i=n(7724),o=n(5329),s=n(9279),a=n(4716),c=n(9291),u=function(){function e(e,t,n,r,i){this.x=e,this.y=t,this.size=n,this.borderThickness=r,this.className=i,this.animationStarted=!1}return e.createLoadingIndicatorPrimitives=function(t,n,r,i,o){return new e(t,n,r,i,o).createLoadingIndicatorPrimitive()},e.createUserIconPrimitives=function(t,n,r,i,o){return new e(t,n,r,i,o).createUserIconPrimitive()},e.createWarningIconPrimitives=function(t,n,r,i){return new e(t,n,r,void 0,i).createWarningIconPrimitive()},e.prototype.rotate=function(e,t,n,r){if(this.animationStarted){var i="rotate("+Math.round(r)%1080/3+" "+t+" "+n+")";e.setAttribute("transform",i),this.animationRequestId=requestAnimationFrame(function(r){this.rotate(e,t,n,r)}.bind(this))}},e.prototype.onApplyLoadingIndicatorElementProperties=function(e){var t=[c.UnitConverter.twipsToPixelsF(this.x+this.size/2),c.UnitConverter.twipsToPixelsF(this.y+this.size/2)],n=t[0],r=t[1];s.Browser.IE?(this.animationRequestId=requestAnimationFrame(function(t){this.rotate(e,n,r,t)}.bind(this)),this.animationStarted=!0):e.style.setProperty("transform-origin",n+"px "+r+"px")},e.prototype.center=function(){return[c.UnitConverter.twipsToPixelsF(this.x+this.size/2),c.UnitConverter.twipsToPixelsF(this.y+this.size/2)]},e.prototype.createLoadingIndicatorPrimitive=function(){var e=this.center(),t=e[0],n=e[1],s=c.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2);return new o.GroupPrimitive([new r.EllipsePrimitive(t+"",n+"",s+"",s+""),new i.PathPrimitive([new i.PathPrimitiveMoveToCommand(t+s+"",n+""),new i.PathPrimitiveArcToCommand(s+"",s+"",0,!1,!1,t+"",n-s+"")])],this.className,void 0,void 0,this.onApplyLoadingIndicatorElementProperties.bind(this),this.onBeforeDispose.bind(this))},e.prototype.createUserIconPrimitive=function(){var e=this.center(),t=e[0],n=e[1],s=c.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2),a=c.UnitConverter.twipsToPixelsF(this.size);return new o.GroupPrimitive([new r.EllipsePrimitive(t+"",n+"",s+"",s+"",void 0,"dxdi-background"),new r.EllipsePrimitive(t+"",n-a/8+"",a/8+"",a/8+""),new i.PathPrimitive([new i.PathPrimitiveMoveToCommand(t+"",n+a/16+""),new i.PathPrimitiveCubicCurveToCommand(t+.1375*a+"",n+a/16+"",t+a/4+"",n+.11875*a+"",t+a/4+"",n+.1875*a+""),new i.PathPrimitiveLineToCommand(t+a/4+"",n+a/4+""),new i.PathPrimitiveLineToCommand(t-a/4+"",n+a/4+""),new i.PathPrimitiveLineToCommand(t-a/4+"",n+.1875*a+""),new i.PathPrimitiveCubicCurveToCommand(t-a/4+"",n+.11875*a+"",t-.1375*a+"",n+a/16+"",t+"",n+a/16+""),new i.PathPrimitiveClosePathCommand])],this.className)},e.prototype.createWarningIconPrimitive=function(){var e=this.center(),t=e[0],n=e[1],i=c.UnitConverter.twipsToPixelsF(this.size/2)-1,s=c.UnitConverter.twipsToPixelsF(this.size/8);return new o.GroupPrimitive([new r.EllipsePrimitive(t+"",n+"",i+"",i+""),new a.RectanglePrimitive(t-s/2+.5+"",n+i-c.UnitConverter.twipsToPixelsF(this.size/4)+"",s+"",s+""),new a.RectanglePrimitive(t-s/2+.5+"",n-i+c.UnitConverter.twipsToPixelsF(this.size/4)-s+"",s+"",i+"")],this.className)},e.prototype.onBeforeDispose=function(){this.animationRequestId&&cancelAnimationFrame(this.animationRequestId),this.animationStarted=!1},e}();t.ShapeImageIndicator=u},4724:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.IconToolbox=void 0;var o=n(4602),s=n(1114),a=n(5503),c=n(9291),u=n(8900),l=n(1669),h=n(1552),d=n(6688),f=n(4716),p=function(e){function t(t,n,r,i,o,s,a,c,u){var l=e.call(this,t,n,r,i,o,s)||this;return l.options=a,l.measurer=c,l.instanceId=u,l}return i(t,e),t.prototype.createElements=function(e,t){var n=document.createElementNS(s.svgNS,"svg");n.className.baseVal="dxdi-canvas",e.appendChild(n),this.drawShapeIcons(n,t,this.options.toolboxWidth||n.getBoundingClientRect().width)},t.prototype.drawShapeIcons=function(e,t,n){var r=this,i=h.DEFAULT_STROKE_WIDTH,o=n-2*i,s=this.options.shapeIconSize;!s&&this.options.shapeIconSpacing&&this.options.shapeIconCountInRow&&(s=Math.floor((o-(this.options.shapeIconCountInRow-1)*this.options.shapeIconSpacing)/this.options.shapeIconCountInRow)),s||(s=32);var a=s=Math.max(s,this.options.shapeIconSpacing/2),u=this.options.shapeIconCountInRow;if(!u)for(u=1;a<o;)(a+=this.options.shapeIconSpacing+s)<o&&u++;var l=u>1?(o-s*u)/(u-1):0,d=i,f=i,p=c.UnitConverter.pixelsToTwips(s);t.forEach(function(t,n){n>0&&n%u==0&&(d=i,f+=s+l);var o=r.shapeDescriptionManager.get(t),a=r.createShape(o,d,f,s<26);r.updateShapeIconBounds(a,s);var h=r.drawShape(e,a);r.drawSelector(h,c.UnitConverter.pixelsToTwips(d),c.UnitConverter.pixelsToTwips(f),p),d+=s+l}),e.style.height=f+s+i+"px",e.style.width=n+"px"},t.prototype.drawShape=function(e,t){var n=this,r=t.description.createPrimitives(t,this.instanceId,!0),i=document.createElementNS(s.svgNS,"g");if(i.setAttribute("data-tb-type",t.description.key.toString()),i.setAttribute("class","toolbox-item"),i.setAttribute("title",t.description.getTitle()),this.options.shapeIconAttributes)for(var o in this.options.shapeIconAttributes)Object.prototype.hasOwnProperty.call(this.options.shapeIconAttributes,o)&&i.setAttribute(o,this.options.shapeIconAttributes[o]);return e.appendChild(i),r.forEach(function(e){var t=e.createElement(function(e){return i.appendChild(e)});e.applyElementProperties(t,n.measurer)}),i},t.prototype.drawSelector=function(e,t,n,r){var i=this,o=new f.RectanglePrimitive(t,n,r,r,void 0,"selector");o.createElement(function(t){o.applyElementProperties(t,i.measurer),e.appendChild(t)})},t.prototype.createShape=function(e,t,n,r){var i=c.UnitConverter.pixelsToTwips(t),o=c.UnitConverter.pixelsToTwips(n),s=new a.Shape(e,new u.Point(i,o),!0);return this.needResetShapeText(e)?s.text="":r&&(s.text="T"),s},t.prototype.needResetShapeText=function(e){return!(e instanceof l.TextShapeDescription)&&!(e instanceof d.CustomShapeDescription&&e.baseDescription instanceof l.TextShapeDescription)},t.prototype.updateShapeIconBounds=function(e,t){var n=c.UnitConverter.pixelsToTwips(t);if(e.size.height=e.size.width*e.getToolboxHeightToWidthRatio(),e.size.width>e.size.height){var r=e.size.height/e.size.width;e.size.width=n,e.size.height=n*r,e.position.y=e.position.y+(n-e.size.height)/2,e.parameters.forEach(function(t){t.value=t.value*n/e.description.defaultSize.width})}else e.size.width<e.size.height?(r=e.size.width/e.size.height,e.size.height=n,e.size.width=n*r,e.position.x=e.position.x+(n-e.size.width)/2,e.parameters.forEach(function(t){t.value=t.value*n/e.description.defaultSize.height})):(e.size.width=n,e.size.height=n,e.parameters.forEach(function(t){t.value=t.value*n/e.description.defaultSize.width}))},t.prototype.createDraggingElement=function(e){var t=document.createElement("DIV");t.setAttribute("class","dxdi-toolbox-drag-item"),document.body.appendChild(t);var n=document.createElementNS(s.svgNS,"svg");n.className.baseVal="dxdi-canvas",t.appendChild(n);var r=this.shapeDescriptionManager.get(e.evt.data),i=this.createShape(r,h.DEFAULT_STROKE_WIDTH,h.DEFAULT_STROKE_WIDTH);return this.drawShape(n,i),t.style.width=c.UnitConverter.twipsToPixels(i.size.width)+2*h.DEFAULT_STROKE_WIDTH+"px",t.style.height=c.UnitConverter.twipsToPixels(i.size.height)+2*h.DEFAULT_STROKE_WIDTH+"px",t},t}(o.Toolbox);t.IconToolbox=p},5947:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TextToolbox=void 0;var o=function(e){function t(t,n,r,i,o,s){return e.call(this,t,n,r,i,o,s)||this}return i(t,e),t.prototype.createElements=function(e,t){var n=this;t.forEach(function(t){var r=n.shapeDescriptionManager.get(t),i=document.createElement("div");i.setAttribute("class","toolbox-text-item"),i.setAttribute("data-tb-type",t),i.textContent=r.getDefaultText()||r.getTitle(),e.appendChild(i)})},t.prototype.createDraggingElement=function(e){var t=document.createElement("DIV");t.setAttribute("class","dxdi-toolbox-drag-text-item");var n=this.shapeDescriptionManager.get(e.evt.data);return t.textContent=n.getDefaultText()||n.getTitle(),document.body.appendChild(t),t},t}(n(4602).Toolbox);t.TextToolbox=o},4602:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramDraggingEvent=t.ToolboxDraggingObject=t.Toolbox=void 0;var r,i=n(8675),o=n(8900),s=n(3714),a=n(4914),c=n(6907),u=n(9279),l=n(1114),h=n(8693),d="dxdi-toolbox",f="dxdi-tb-start-drag-flag",p=function(){function e(e,t,n,o,s,a){this.readOnly=t,this.allowDragging=n,this.shapeDescriptionManager=o,this.shapeTypes=s,this.getAllowedShapeTypes=a,this.dragPrepareTimeout=-1,this.dragState=r.None,this.emulateDragEvents=u.Browser.WebKitTouchUI,this.onDragOperation=new i.EventDispatcher,this.onClickOperation=new i.EventDispatcher,e&&(this.mainElement=this.createMainElement(e),this.attachHandlers(this.mainElement))}return e.prototype.clean=function(e){this.detachHandlers(this.mainElement),e&&e(this.mainElement)},e.prototype.createMainElement=function(e){var t=document.createElement("div");return t.setAttribute("class",d),t.draggable=!0,this.emulateDragEvents&&(t.tabIndex=0),e.appendChild(t),t},e.prototype.attachHandlers=function(e){this.onElementMouseDownHandler=this.onElementMouseDown.bind(this),this.onElementMouseUpHandler=this.onElementMouseUp.bind(this),this.onMouseDownHandler=this.onMouseDown.bind(this),this.onMouseMoveHandler=this.onMouseMove.bind(this),this.onMouseUpHandler=this.onMouseUp.bind(this),this.onDragStartHandler=this.onDragStart.bind(this),this.onTouchMoveHandler=this.onTouchMove.bind(this),this.emulateDragEvents||l.RenderHelper.addEventListener(e,"dragstart",this.onDragStartHandler),i.EventUtils.isPointerEvents()?(this.mouseDownEventName="pointerdown",this.mouseMoveEventName="pointermove",this.mouseUpEventName="pointerup"):(this.mouseDownEventName=u.Browser.TouchUI?"touchstart":"mousedown",this.mouseMoveEventName=u.Browser.TouchUI?"touchmove":"mousemove",this.mouseUpEventName=u.Browser.TouchUI?"touchend":"mouseup"),l.RenderHelper.addEventListener(e,"touchmove",this.onTouchMoveHandler),l.RenderHelper.addEventListener(e,this.mouseDownEventName,this.onElementMouseDownHandler),l.RenderHelper.addEventListener(e,this.mouseUpEventName,this.onElementMouseUpHandler),l.RenderHelper.addEventListener(e,this.mouseDownEventName,this.onMouseDownHandler),l.RenderHelper.addEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),l.RenderHelper.addEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},e.prototype.detachHandlers=function(e){this.emulateDragEvents||l.RenderHelper.removeEventListener(e,"dragstart",this.onDragStartHandler),l.RenderHelper.removeEventListener(e,"touchmove",this.onTouchMoveHandler),l.RenderHelper.removeEventListener(e,this.mouseDownEventName,this.onElementMouseDownHandler),l.RenderHelper.removeEventListener(e,this.mouseUpEventName,this.onElementMouseUpHandler),l.RenderHelper.removeEventListener(e,this.mouseDownEventName,this.onMouseDownHandler),l.RenderHelper.removeEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),l.RenderHelper.removeEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},e.prototype.render=function(e){this.mainElement.childNodes&&(this.mainElement.innerHTML="");var t=this.shapeTypes;return t=this.getAllowedShapeTypes?this.getAllowedShapeTypes(t):t,(t=e?t.filter(e):t).length&&this.createElements(this.mainElement,t),!!t.length},e.prototype.createDraggingObject=function(e){var t=new g;return t.data=e,t.onFinishDragging=this.resetDragState.bind(this),t.onCaptured=this.capture.bind(this),new A(t)},e.prototype.getDragShapeType=function(e){for(;e&&!c.DomUtils.hasClassName(e,d);){if(e.getAttribute&&e.getAttribute("data-tb-type"))return e.getAttribute("data-tb-type");e=e.parentNode}},e.prototype.getTouchPointFromEvent=function(e){var t,n=e.touches;return n&&n.length>0?t=new o.Point(n[0].clientX,n[0].clientY):e.clientX&&e.clientY&&(t=new o.Point(e.clientX,e.clientY)),t},e.prototype.onElementMouseDown=function(e){this.mouseDownShapeType=this.getDragShapeType(s.EvtUtils.getEventSource(e)),this.touchDownPoint=this.getTouchPointFromEvent(e)},e.prototype.onElementMouseUp=function(e){var t=this.getDragShapeType(s.EvtUtils.getEventSource(e));t&&t===this.mouseDownShapeType&&this.onClickOperation.raise("notifyToolboxClick",t),this.mouseDownShapeType=void 0,this.touchDownPoint=void 0},e.prototype.onMouseDown=function(e){this.setDragState(r.Prepare,e),u.Browser.TouchUI&&i.EventUtils.isMousePointer(e)&&this.setDragState(r.Start,e)},e.prototype.onDragStart=function(e){this.setDragState(r.Start,e),e.preventDefault()},e.prototype.onTouchMove=function(e){this.draggingObject&&e.preventDefault()},e.prototype.isLeftButtonPressed=function(e){return s.EvtUtils.isLeftButtonPressed(e)||"pointermove"===e.type&&u.Browser.TouchUI&&u.Browser.MacOSMobilePlatform&&i.EventUtils.isMousePointer(e)},e.prototype.onMouseMove=function(e){if(u.Browser.TouchUI&&u.Browser.MacOSMobilePlatform){var t=this.getTouchPointFromEvent(e);if(this.touchDownPoint&&t&&this.touchDownPoint.x===t.x&&this.touchDownPoint.y===t.y)return}this.setDragState(this.isLeftButtonPressed(e)?r.Dragging:r.None,e),i.EventUtils.isPointerEvents()&&this.raiseDraggingMouseMove(e)},e.prototype.onMouseUp=function(e){this.setDragState(r.None,e)},e.prototype.updateDraggingElementPosition=function(e,t){var n=this.draggingObject.element,r=e-n.offsetWidth/2,i=t-n.offsetHeight/2;a.SetAbsoluteX(n,r),a.SetAbsoluteY(n,i)},e.prototype.setDragState=function(e,t){if(!this.readOnly&&this.allowDragging&&!(e===r.None&&e===this.dragState||(this.dragPrepareTimeout>-1&&(clearTimeout(this.dragPrepareTimeout),this.dragPrepareTimeout=-1,this.dragPrepareEvent=void 0),e-this.dragState>1||e!==r.None&&e<this.dragState)))switch(this.dragState=e,e){case r.Prepare:this.prepareDragging(t)||this.setDragState(r.None,t),!this.emulateDragEvents&&i.EventUtils.isMousePointer(t)||(this.dragPrepareTimeout=setTimeout(this.onDragPrepareTimeout.bind(this),800),this.dragPrepareEvent=t);break;case r.Start:c.DomUtils.addClassName(document.body,"dxdi-dragging"),this.startDragging(t);break;case r.Dragging:this.doDragging(t);break;case r.None:this.finishDragging(t)}},e.prototype.resetDragState=function(){this.setDragState(r.None,void 0)},e.prototype.onDragPrepareTimeout=function(){this.dragPrepareTimeout=-1,this.dragState===r.Prepare&&this.setDragState(r.Start,this.dragPrepareEvent),this.dragPrepareEvent=void 0},e.prototype.prepareDragging=function(e){return this.dragStartPoint=new o.Point(s.EvtUtils.getEventX(e),s.EvtUtils.getEventY(e)),this.dragStartShapeType=this.getDragShapeType(s.EvtUtils.getEventSource(e)),i.EventUtils.isMousePointer(e)&&c.DomUtils.addClassName(this.mainElement,f),!this.emulateDragEvents&&i.EventUtils.isMousePointer(e)||i.HtmlFocusUtils.focusWithPreventScroll(this.mainElement),!!this.dragStartShapeType},e.prototype.startDragging=function(e){this.draggingObject=this.createDraggingObject(this.dragStartShapeType),this.dragStartShapeType?(this.raiseDragStart(e),this.draggingObject.element=this.createDraggingElement(this.draggingObject),void 0!==this.draggingObject.captured&&this.capture(this.draggingObject.captured,!0),this.updateDraggingElementPosition(this.dragStartPoint.x,this.dragStartPoint.y)):c.DomUtils.addClassName(document.body,h.NOT_VALID_CSSCLASS)},e.prototype.doDragging=function(e){this.draggingObject.element&&this.updateDraggingElementPosition(s.EvtUtils.getEventX(e),s.EvtUtils.getEventY(e))},e.prototype.finishDragging=function(e){if(this.draggingObject){this.raiseDragEnd(e);var t=this.draggingObject.element;t&&t.parentNode.removeChild(t),delete this.draggingObject}this.dragStartPoint=void 0,this.dragStartShapeType=void 0,c.DomUtils.removeClassName(this.mainElement,f),c.DomUtils.removeClassName(document.body,h.NOT_VALID_CSSCLASS),setTimeout(function(){return c.DomUtils.removeClassName(document.body,"dxdi-dragging")},500)},e.prototype.capture=function(e,t){this.draggingObject&&(this.draggingObject.captured!==e||t)&&(this.draggingObject.captured=e,this.draggingObject.element&&c.DomUtils.toggleClassName(this.draggingObject.element,"dxdi-tb-drag-captured",e))},e.prototype.raiseDragStart=function(e){this.onDragOperation.raise("notifyToolboxDragStart",e)},e.prototype.raiseDragEnd=function(e){this.onDragOperation.raise("notifyToolboxDragEnd",e)},e.prototype.raiseDraggingMouseMove=function(e){this.onDragOperation.raise("notifyToolboxDraggingMouseMove",e)},e.prototype.notifyReadOnlyChanged=function(e){this.readOnly=e},e}();t.Toolbox=p,function(e){e[e.None=-1]="None",e[e.Prepare=0]="Prepare",e[e.Start=1]="Start",e[e.Dragging=2]="Dragging"}(r||(r={}));var A=function(e){this.evt=e};t.ToolboxDraggingObject=A;var g=function(){};t.DiagramDraggingEvent=g},3298:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToolboxManager=void 0;var r=n(5947),i=n(4724),o=n(1733),s=n(8679),a=function(){function e(e){this.shapeDescriptionManager=e,this.toolboxes=[],this.measurers={}}return e.prototype.create=function(e,t,n,o,s,a,c,u){var l=Array.isArray(s)?s:this.shapeDescriptionManager.getTypesByCategory(s),h=o?new r.TextToolbox(e,t,n,this.shapeDescriptionManager,l,a):new i.IconToolbox(e,t,n,this.shapeDescriptionManager,l,a,u,this.getOrCreateMeasurer(e),c);return h.render(),this.toolboxes.push(h),h},e.prototype.clean=function(e,t){var n=this;if(t)t.clean(e),this.toolboxes.splice(this.toolboxes.indexOf(t),1),Object.keys(this.measurers).forEach(function(e){n.measurers[e]===t.measurer&&delete n.measurers[e]});else{for(var r=0;r<this.toolboxes.length;r++)this.toolboxes[r].clean(e);this.toolboxes=[],this.measurers={}}},e.prototype.refresh=function(e){this.toolboxes.forEach(function(t,n){(!e||Array.isArray(e)&&e.indexOf(n)>-1||n===e)&&t.render()})},e.prototype.applyFilter=function(e,t){var n=this;return this.toolboxes.reduce(function(r,i,o){return(!t||Array.isArray(t)&&t.indexOf(o)>-1||o===t)&&i.render(function(t){return n.searchFilter(t,e,o)})&&r.push(o),r},[])},e.prototype.searchFilter=function(e,t,n,r){if(!t||r&&-1===r.indexOf(n))return!0;t=t.toLowerCase();var i=this.shapeDescriptionManager.get(e);return i.getTitle().toLowerCase().indexOf(t)>-1||i.getDefaultText().toLowerCase().indexOf(t)>-1},e.prototype.getOrCreateMeasurer=function(e){var t=e.getAttribute("data-dxdiMeasurerID");return t&&this.measurers[t]||(t=s.MathUtils.generateGuid(),this.measurers[t]=new o.TextMeasurer(e),e.setAttribute("data-dxdiMeasurerID",t)),this.measurers[t]},e}();t.ToolboxManager=a},3500:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.raiseEvent=t.RenderUtils=void 0;var r=n(6031),i=n(8679),o=function(){function e(){}return e.updateSvgElementSize=function(e,t,n,r){e.style.width=t+"px",e.style.height=n+"px",e.setAttribute("viewBox","0 0 "+t+" "+n),r&&(e.setAttribute("width",t.toString()),e.setAttribute("height",n.toString()))},e.removeElement=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.removeContent=function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)},e.setElementEventData=function(e,t,n,i){t!==r.MouseEventElementType.Undefined&&(e.setAttribute("data-type",t.toString()),void 0!==n&&e.setAttribute("data-key",n.toString()),void 0!==i&&e.setAttribute("data-value",i.toString()))},e.getElementEventData=function(e){if(e.getAttribute&&e.getAttribute("data-type"))return new r.MouseEventSource(parseInt(e.getAttribute("data-type")),e.getAttribute("data-key"),e.getAttribute("data-value"));var t=e.getAttribute&&e.getAttribute("class");return"dxdi-page"===t||"dxdi-main"===t?new r.MouseEventSource(r.MouseEventElementType.Document):void 0},e.getHtmlElementStylePropertyName=function(e){switch(e){case"fill":return"color";case"text-anchor":return"text-align"}return e},e.getTextAnchorValue=function(e,t){if(void 0===t&&(t=!1),t){if("start"===e)return"end";if("end"===e)return"start"}return e},e.getStrokeDasharrayValue=function(e,t){if(t){var n=e&&e.toString();return(n?n.split(/[\s,]+/):[]).map(function(e){return parseInt(e)/2*t}).join(",")}return e},e.applyStyleToElement=function(e,t,n){var r=this;void 0===n&&(n=!1);var i=e.getDefaultInstance();e.forEach(function(o){var s=e[o],a=t instanceof HTMLElement?r.getHtmlElementStylePropertyName(o):o;if(void 0!==s&&""!==s&&s!==i[o]){switch(o){case"text-anchor":s=r.getTextAnchorValue(s,n);break;case"stroke-dasharray":s=r.getStrokeDasharrayValue(s,parseInt(e["stroke-width"]))}t.style.setProperty(a,s)}else t.style.setProperty(a,"")})},e.generateSvgElementId=function(e){return e+"_"+i.MathUtils.generateGuid()},e.getUrlPathById=function(e){return"url(#"+e+")"},e}();t.RenderUtils=o,t.raiseEvent=function(e,t,n){n(t),t.preventDefault&&e.preventDefault()}},5401:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputPosition=void 0;var r=n(6823),i=n(4914),o=function(){function e(e){this.selection=e,this.initialProperties=new r.InputPositionProperties(this.selection),this.defaultProperties=new r.InputPositionProperties(this.selection,this.initialProperties,!0),this.currentProperties=new r.InputPositionProperties(this.selection,this.defaultProperties)}return e.prototype.initialize=function(){this.reset(),this.defaultProperties.reset()},e.prototype.reset=function(){this.currentProperties.reset()},e.prototype.getDefaultConnectorProperties=function(){return this.defaultProperties.getConnectorProperties()},e.prototype.getDefaultConnectorPropertyValue=function(e){return this.defaultProperties.getConnectorPropertyValue(e)},e.prototype.getCurrentConnectorPropertyValue=function(e){return this.currentProperties.getConnectorPropertyValue(e)},e.prototype.setConnectorPropertyValue=function(e,t){this.currentProperties.setConnectorPropertyValue(e,t),this.selection.isEmpty(!0)&&this.defaultProperties.setConnectorPropertyValue(e,t)},e.prototype.setInitialConnectorProperties=function(e){for(var t in this.defaultProperties.reset(),this.currentProperties.reset(),e)Object.prototype.hasOwnProperty.call(e,t)&&this.initialProperties.setConnectorPropertyValue(t,e[t])},e.prototype.getDefaultStyle=function(){return this.defaultProperties.getStyle()},e.prototype.getDefaultStylePropertyValue=function(e){return this.defaultProperties.getStylePropertyValue(e)},e.prototype.getDefaultTextStyle=function(){return this.defaultProperties.getTextStyle()},e.prototype.getDefaultTextStylePropertyValue=function(e){return this.defaultProperties.getTextStylePropertyValue(e)},e.prototype.getCurrentStylePropertyValue=function(e){return this.currentProperties.getStylePropertyValue(e)},e.prototype.getCurrentTextStylePropertyValue=function(e){return this.currentProperties.getTextStylePropertyValue(e)},e.prototype.setStylePropertyValue=function(e,t){this.currentProperties.setStylePropertyValue(e,t),this.selection.isEmpty(!0)&&this.defaultProperties.setStylePropertyValue(e,t)},e.prototype.setTextStylePropertyValue=function(e,t){this.currentProperties.setTextStylePropertyValue(e,t),this.selection.isEmpty(!0)&&this.defaultProperties.setTextStylePropertyValue(e,t)},e.prototype.setInitialStyleProperties=function(e){this.defaultProperties.reset(),this.currentProperties.reset();var t="string"==typeof e?i.Data.cssTextToObject(e):e;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.initialProperties.setStylePropertyValue(n,t[n])},e.prototype.setInitialTextStyleProperties=function(e){this.defaultProperties.reset(),this.currentProperties.reset();var t="string"==typeof e?i.Data.cssTextToObject(e):e;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.initialProperties.setTextStylePropertyValue(n,t[n])},e.prototype.notifySelectionChanged=function(e){this.reset()},e}();t.InputPosition=o},6823:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputPositionProperties=void 0;var r=n(4612),i=n(1552),o=function(){function e(e,t,n){this.selection=e,this.baseProperties=t,this.disableMergingStyles=n,this.selection=e}return e.prototype.reset=function(){this.connectorProperties=null,this.style=null,this.textStyle=null},e.prototype.getConnectorProperties=function(){return this.connectorProperties||(this.connectorProperties=this.baseProperties?this.baseProperties.getConnectorProperties().clone():new r.ConnectorProperties,this.updateConnectorProperties(this.connectorProperties)),this.connectorProperties},e.prototype.getConnectorPropertyValue=function(e){return this.getConnectorProperties()[e]},e.prototype.setConnectorPropertyValue=function(e,t){this.getConnectorProperties()[e]=t},e.prototype.getStyle=function(){return this.style||(this.style=this.baseProperties?this.baseProperties.getStyle().clone():new i.Style,this.disableMergingStyles||this.updateStyle(this.style,"style")),this.style},e.prototype.getStylePropertyValue=function(e){return this.getStyle()[e]},e.prototype.setStylePropertyValue=function(e,t){this.getStyle()[e]=t},e.prototype.getTextStyle=function(){return this.textStyle||(this.textStyle=this.baseProperties?this.baseProperties.getTextStyle().clone():new i.TextStyle,this.disableMergingStyles||this.updateStyle(this.textStyle,"styleText")),this.textStyle},e.prototype.getTextStylePropertyValue=function(e){return this.getTextStyle()[e]},e.prototype.setTextStylePropertyValue=function(e,t){this.getTextStyle()[e]=t},e.prototype.updateConnectorProperties=function(e){var t=this,n=this.selection.getSelectedConnectors(!0);e.forEach(function(r){t.updatePropertyValue(e,n,function(e){return e.properties},r)})},e.prototype.updateStyle=function(e,t){var n=this,r=this.selection.getSelectedItems(!0);e.forEach(function(i){n.updatePropertyValue(e,r,function(e){return e[t]},i)})},e.prototype.updatePropertyValue=function(e,t,n,r){var i,o=!1;t.forEach(function(e){var t=n(e)[r];if(void 0===i&&void 0!==t)i=t,o=!0;else if(o&&i!==t)return void(i=void 0)}),o&&(e[r]=i)},e}();t.InputPositionProperties=o},9021:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Selection=void 0;var r=n(8675),i=n(5401),o=n(5503),s=n(7959),a=n(4914),c=function(){function e(e){this.onChanged=new r.EventDispatcher,this.inputPosition=new i.InputPosition(this),this.onChanged.add(this.inputPosition),this.initialize(e)}return e.prototype.initialize=function(e){this.model=e,this.keys=[],this.inputPosition.initialize()},e.prototype.add=function(e){this.keys.indexOf(e)<0&&(this.keys.push(e),this.raiseSelectionChanged())},e.prototype.remove=function(e){this.keys.indexOf(e)>=0&&(this.keys.splice(this.keys.indexOf(e),1),this.raiseSelectionChanged())},e.prototype.clear=function(){this.keys.length>0&&(this.keys=[],this.raiseSelectionChanged())},e.prototype.set=function(e,t){!t&&a.Data.ArrayEqual(e,this.keys)||(this.keys=e,this.raiseSelectionChanged())},e.prototype.getKeys=function(){return this.keys},e.prototype.getKey=function(e){return this.keys[e]},e.prototype.getSelectedItemsInsideContainers=function(e){var t=this,n=e.slice();return e.forEach(function(e){e instanceof o.Shape&&t.getSelectedItemsInsideContainers(t.model.getChildren(e)).forEach(function(e){-1!==n.indexOf(e)||t.hasKey(e.key)||n.push(e)})}),n},e.prototype.getSelectedItemsCore=function(e){var t=this;return this.keys.map(function(e){return t.model.findItem(e)}).filter(function(t){return t&&(e||!t.isLocked)})},e.prototype.getSelectedItems=function(e,t){return t?this.getSelectedItemsInsideContainers(this.getSelectedItemsCore(e)):this.getSelectedItemsCore(e)},e.prototype.getSelectedShapes=function(e,t){var n=this;if(t){var r=this.getSelectedItemsCore(e);return this.getSelectedItemsInsideContainers(r).map(function(e){return e instanceof o.Shape?e:void 0}).filter(function(e){return e})}return this.keys.map(function(e){return n.model.findShape(e)}).filter(function(t){return t&&(e||!t.isLocked)})},e.prototype.getSelectedConnectors=function(e,t){var n=this;if(t){var r=this.keys.map(function(e){return n.model.findItem(e)});return this.getSelectedItemsInsideContainers(r).map(function(e){return e instanceof s.Connector?e:void 0}).filter(function(t){return t&&(e||!t.isLocked)})}return this.keys.map(function(e){return n.model.findConnector(e)}).filter(function(t){return t&&(e||!t.isLocked)})},e.prototype.hasKey=function(e){return this.keys.indexOf(e)>=0},e.prototype.isEmpty=function(e){return!this.getSelectedItems(e).length},e.prototype.selectRect=function(e){var t=[];this.model.iterateItems(function(n){n.intersectedByRect(e)&&t.push(n.key)}),this.set(t)},e.prototype.raiseSelectionChanged=function(){this.onChanged.raise("notifySelectionChanged",this)},e}();t.Selection=c},240:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorRoutingMode=t.AutoZoomMode=t.DiagramSettings=void 0;var r,i,o=n(8675),s=n(6353),a=n(5383),c=n(4867),u=function(){function e(){this.onZoomChanged=new o.EventDispatcher,this.onViewChanged=new o.EventDispatcher,this.onReadOnlyChanged=new o.EventDispatcher,this.onConnectorRoutingModeChanged=new o.EventDispatcher,this._zoomLevel=1,this._zoomLevelWasChanged=!1,this._zoomLevelItems=[.5,.75,1,1.25,1.5,2,3],this._simpleView=!1,this._fullscreen=!1,this._readOnly=!1,this._autoZoom=r.Disabled,this._snapToGrid=!0,this._showGrid=!0,this._contextMenuEnabled=!0,this._gridSize=180,this._gridSizeItems=[90,180,360,720],this._pageSizeItems=[{size:new s.Size(12240,15840),text:"US-Letter ({width} x {height})"},{size:new s.Size(12240,20160),text:"US-Legal ({width} x {height})"},{size:new s.Size(15817,24491),text:"US-Tabloid ({width} x {height})"},{size:new s.Size(47679,67408),text:"A0 ({width} x {height})"},{size:new s.Size(33676,47679),text:"A1 ({width} x {height})"},{size:new s.Size(23811,33676),text:"A2 ({width} x {height})"},{size:new s.Size(16838,23811),text:"A3 ({width} x {height})"},{size:new s.Size(11906,16838),text:"A4 ({width} x {height})"},{size:new s.Size(8391,11906),text:"A5 ({width} x {height})"},{size:new s.Size(5953,8391),text:"A6 ({width} x {height})"},{size:new s.Size(4195,5953),text:"A7 ({width} x {height})"}],this._viewUnits=a.DiagramUnit.In,this._connectorRoutingMode=i.AllShapesOnly,this._reloadInsertedItemRequired=!1,this._useCanvgForExportToImage=!0}return Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(t){var n=this;(t=e.correctZoomLevel(t))!==this._zoomLevel&&(this._zoomLevel=t,this._zoomLevelWasChanged=!0,this.onZoomChanged.raise1(function(e){return e.notifyZoomChanged(t,n._autoZoom)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevelWasChanged",{get:function(){return this._zoomLevelWasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevelItems",{get:function(){return this._zoomLevelItems},set:function(t){(t=t.map(function(t){return e.correctZoomLevel(t)}))!==this._zoomLevelItems&&(this._zoomLevelItems=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoZoom",{get:function(){return this._autoZoom},set:function(e){var t=this;e!==this._autoZoom&&(this._autoZoom=e,this.onZoomChanged.raise1(function(n){return n.notifyZoomChanged(t._zoomLevel,e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"simpleView",{get:function(){return this._simpleView},set:function(e){e!==this._simpleView&&(this._simpleView=e,this.notifyViewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this._readOnly},set:function(e){e!==this._readOnly&&(this._readOnly=e,this.onReadOnlyChanged.raise1(function(t){return t.notifyReadOnlyChanged(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullscreen",{get:function(){return this._fullscreen},set:function(e){this._fullscreen=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapToGrid",{get:function(){return this._snapToGrid},set:function(e){this._snapToGrid=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showGrid",{get:function(){return this._showGrid},set:function(e){var t=this;e!==this._showGrid&&(this._showGrid=e,this.onViewChanged.raise1(function(e){return e.notifyGridChanged(t.showGrid,t.gridSize)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contextMenuEnabled",{get:function(){return this._contextMenuEnabled},set:function(e){this._contextMenuEnabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridSize",{get:function(){return this._gridSize},set:function(e){var t=this;e!==this._gridSize&&(this._gridSize=e,this.onViewChanged.raise1(function(e){return e.notifyGridChanged(t.showGrid,t.gridSize)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridSizeItems",{get:function(){return this._gridSizeItems},set:function(e){e!==this._gridSizeItems&&(this._gridSizeItems=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageSizeItems",{get:function(){return this._pageSizeItems},set:function(e){e!==this._pageSizeItems&&(this._pageSizeItems=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewUnits",{get:function(){return this._viewUnits},set:function(e){this._viewUnits=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"connectorRoutingMode",{get:function(){return this._connectorRoutingMode},set:function(e){e!==this._connectorRoutingMode&&(this._connectorRoutingMode=e,this.onConnectorRoutingModeChanged.raise1(function(t){return t.notifyConnectorRoutingModeChanged(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reloadInsertedItemRequired",{get:function(){return this._reloadInsertedItemRequired},set:function(e){this._reloadInsertedItemRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useCanvgForExportToImage",{get:function(){return this._useCanvgForExportToImage},set:function(e){this._useCanvgForExportToImage=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shapeMinWidth",{get:function(){return this._shapeMinWidth},set:function(e){this._shapeMinWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shapeMinHeight",{get:function(){return this._shapeMinHeight},set:function(e){this._shapeMinHeight=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shapeMaxWidth",{get:function(){return this._shapeMaxWidth},set:function(e){this._shapeMaxWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shapeMaxHeight",{get:function(){return this._shapeMaxHeight},set:function(e){this._shapeMaxHeight=e},enumerable:!1,configurable:!0}),e.prototype.applyShapeSizeSettings=function(e,t){e&&("number"==typeof e.shapeMaxHeight&&(this.shapeMaxHeight=c.ModelUtils.getTwipsValue(t,e.shapeMaxHeight)),"number"==typeof e.shapeMinHeight&&(this.shapeMinHeight=c.ModelUtils.getTwipsValue(t,e.shapeMinHeight)),"number"==typeof e.shapeMaxWidth&&(this.shapeMaxWidth=c.ModelUtils.getTwipsValue(t,e.shapeMaxWidth)),"number"==typeof e.shapeMinWidth&&(this.shapeMinWidth=c.ModelUtils.getTwipsValue(t,e.shapeMinWidth)))},e.prototype.notifyViewChanged=function(){var e=this;this.onViewChanged.raise1(function(t){return t.notifyViewChanged(e._simpleView)})},e.correctZoomLevel=function(e){return Math.min(10,Math.max(e,.01))},e}();t.DiagramSettings=u,function(e){e[e.Disabled=0]="Disabled",e[e.FitContent=1]="FitContent",e[e.FitToWidth=2]="FitToWidth"}(r=t.AutoZoomMode||(t.AutoZoomMode={})),function(e){e[e.None=0]="None",e[e.AllShapesOnly=2]="AllShapesOnly"}(i=t.ConnectorRoutingMode||(t.ConnectorRoutingMode={}))},2230:function(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BarManager=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.bars=[],n.control=t,n}return i(t,e),t.prototype.clean=function(){var e=this;this.bars.forEach(function(t){return t.onChanged.remove(e)}),this.bars=[]},t.prototype.registerBar=function(e){this.bars.push(e),e.onChanged.add(this),this.updateBarItemsState(e)},t.prototype.updateItemsState=function(e){if(!this.isUpdateLocked())for(var t=0,n=void 0;n=this.bars[t];t++)this.updateBarItemsState(n,e)},t.prototype.updateBarItemsState=function(e,t){if(!this.isUpdateLocked()){if(this.control.permissionsProvider.beginUpdateUI(),e.isVisible()){var n=void 0;if(t){var r=e.getCommandKeys().reduce(function(e,t){return e[t]=!0,e},{});n=t.filter(function(e){return r[e]})}else n=e.getCommandKeys();for(var i=n.length,o=0;o<i;o++)this.updateBarItem(e,n[o])}this.control.permissionsProvider.endUpdateUI()}},t.prototype.updateBarItem=function(e,t){var n=this.control.commandManager.getCommand(t);if(n){var r=n.getState();if(e.setItemVisible(t,r.visible),r.visible&&(e.setItemEnabled(t,r.enabled),!r.denyUpdateValue)){var i=this.getItemValue(r.value);r.items&&e.setItemSubItems(t,r.items),e.setItemValue(t,i,this.getDefaultItemValue(r.defaultValue))}}},t.prototype.setEnabled=function(e){for(var t=0,n=void 0;n=this.bars[t];t++)n.setEnabled(e)},t.prototype.notifyBarCommandExecuted=function(e,t){this.control.commandManager.getCommand(e).execute(t)||this.updateItemsState([e])},t.prototype.notifyBarUpdateRequested=function(){this.updateItemsState()},t.prototype.notifySelectionChanged=function(e){this.updateItemsState()},t.prototype.onUpdateUnlocked=function(e){},t.prototype.getItemValue=function(e){return e},t.prototype.getDefaultItemValue=function(e){return e},t}(n(1772).BatchUpdatableObject);t.BarManager=o},8675:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventUtils=t.HtmlFocusUtils=t.ObjectUtils=t.GeometryUtils=t.Utils=t.EventDispatcher=t.Range=t.LineEquation=void 0,n(7097);var r=n(6353),i=n(8900),o=n(8011),s=n(2400),a=n(5596),c=n(8679),u=n(9716),l=n(1335),h=n(1552),d=n(9279),f=n(3714),p=function(){function e(e,t,n){this.aParam=e,this.bParam=t,this.cParam=n}return e.fromPoints=function(t,n,r){return void 0===r&&(r=1e-5),y.areDuplicatedPoints(t,n,r)?void 0:new e(n.y-t.y,t.x-n.x,n.x*t.y-t.x*n.y)},e.prototype.getPointIntersection=function(e,t){void 0===t&&(t=1e-5);var n=this.aParam,r=this.bParam,i=this.cParam,o=e.aParam,s=e.bParam,a=e.cParam,u=o*r-n*s;if(c.MathUtils.numberCloseTo(u,0,t))return null;if(0===n){var l=(s*i-a*r)/(r*o);return this.createPoint(l,-i/r)}var h=(a*n-i*o)/u;return this.createPoint((-r*h-i)/n,h)},e.prototype.containsPoint=function(e,t){return void 0===t&&(t=1e-5),c.MathUtils.numberCloseTo(this.aParam*e.x+this.bParam*e.y+this.cParam,0,t)},e.prototype.createPoint=function(e,t,n){return void 0===n&&(n=1e-5),new i.Point(c.MathUtils.numberCloseTo(e,0,n)?0:e,c.MathUtils.numberCloseTo(t,0,n)?0:t)},e}();t.LineEquation=p;var A=function(){function e(e,t){this.from=e,this.to=void 0!==t?t:e}return Object.defineProperty(e.prototype,"length",{get:function(){return Math.abs(this.to-this.from)},enumerable:!1,configurable:!0}),e.prototype.extend=function(e){this.from=Math.min(e.from,this.from),this.to=Math.max(e.to,this.to)},e.prototype.includes=function(e){return e>=this.from&&e<=this.to},e.fromLength=function(t,n){return new e(t,t+n)},e}();t.Range=A;var g=function(){function e(){this.listeners=[]}return e.prototype.add=function(e){if(!e)throw new Error("Not Implemented");this.hasEventListener(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0,n=void 0;n=this.listeners[t];t++)if(n===e){this.listeners.splice(t,1);break}},e.prototype.raise=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=void 0;i=this.listeners[r];r++){var o=i[e];o&&o.apply(i,t)}},e.prototype.raise1=function(e){for(var t=0,n=void 0;n=this.listeners[t];t++)e(n)},e.prototype.hasEventListener=function(e){for(var t=0,n=this.listeners.length;t<n;t++)if(this.listeners[t]===e)return!0;return!1},e}();t.EventDispatcher=g;var m=function(){function e(){}return e.flatten=function(e){return[].concat.apply([],e)},e}();t.Utils=m;var y=function(){function e(){}return e.arePointsOfOrthogonalLine=function(e,t,n){return n?e.y===t.y:e.x===t.x},e.getCommonRectangle=function(e){if(!e.length)return new o.Rectangle(0,0,0,0);var t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,i=-Number.MAX_VALUE;return e.forEach(function(e){t=Math.min(t,e.x),n=Math.max(n,e.right),r=Math.min(r,e.y),i=Math.max(i,e.bottom)}),new o.Rectangle(t,r,n-t,i-r)},e.findFreeSpace=function(e,t,n,r){var o=[r?r.x:0],a=[r?r.y:0];e.forEach(function(e){o.push(e.x),o.push(e.right),a.push(e.y),a.push(e.bottom)}),o=o.sort(function(e,t){return e-t}).reduce(function(e,t,n){return o[n-1]!==t&&e.push(t)&&e||e},[]);for(var c=(a=a.sort(function(e,t){return e-t}).reduce(function(e,t,n){return a[n-1]!==t&&e.push(t)&&e||e},[])).map(function(e){return o.map(function(e,t){return o[t+1]-e})}),u=function(e,t){for(var n=s.SearchUtils.binaryIndexOf(o,function(e){return e-t.x}),r=s.SearchUtils.binaryIndexOf(o,function(e){return e-t.right}),i=s.SearchUtils.binaryIndexOf(a,function(e){return e-t.y}),u=s.SearchUtils.binaryIndexOf(a,function(e){return e-t.bottom}),l=i;l<u;l++)for(var h=n;h<r;h++)c[l][h]*=-1},l=0,h=void 0;h=e[l];l++)u(0,h);for(var d=0;d<a.length;d++)for(var f=0;f<o.length-1;f++){var p=this.checkRect(c,a,o,d,f,t,n);if(p>0)f=p;else if(0===p)return new i.Point(o[f],a[d])}return null},e.checkRect=function(e,t,n,r,i,o,s){for(var a=0,c=0,u=n.length-2,l=r;l<t.length;l++){a=t[l+1]-t[r];for(var h=i;h<=u;h++){if(e[l][h]<0)return 0===h?-1:h;if(c=n[h+1]-n[i],o.width<=c||!s&&h===n.length-2&&o.width/2<=c){if(o.height<=a||!s&&l===t.length-2&&o.height/2<=a)return 0;u=h}}}},e.getArrowPoints=function(e,t,n,r){if(e.x===t.x&&e.y===t.y)return{point1:e.clone(),point2:e.clone(),point3:e.clone()};var o=t.x-e.x,s=t.y-e.y,a=Math.sqrt(Math.pow(o,2)+Math.pow(s,2)),c=o/a,u=s/a,l=e.x+n*c+r*u,h=e.y+n*u-r*c,d=e.x+n*c-r*u,f=e.y+n*u+r*c,p=e.x+n*c,A=e.y+n*u;return{point1:new i.Point(l,h),point2:new i.Point(d,f),point3:new i.Point(p,A)}},e.createSegments=function(e){for(var t=[],n=1;n<e.length;n++)t.push(new l.Segment(e[n-1],e[n]));return t},e.createRectagle=function(e){var t=e.map(function(e){return e.x}),n=e.map(function(e){return e.y}),r=t.reduce(function(e,t){return Math.min(e,t)},Number.MAX_VALUE),i=t.reduce(function(e,t){return Math.max(e,t)},-Number.MAX_VALUE),s=n.reduce(function(e,t){return Math.min(e,t)},Number.MAX_VALUE),a=n.reduce(function(e,t){return Math.max(e,t)},-Number.MAX_VALUE);return new o.Rectangle(r,s,i-r,a-s)},e.createSegmentsFromRectangle=function(e){var t=[],n=new i.Point(e.x,e.y),r=new i.Point(e.right,e.y),o=new i.Point(e.right,e.bottom),s=new i.Point(e.x,e.bottom);return t.push(new l.Segment(n,r)),t.push(new l.Segment(r,o)),t.push(new l.Segment(o,s)),t.push(new l.Segment(s,n)),t},e.areSegmentsCutRectangle=function(t,n){if(!n)return!1;for(var r=e.createSegmentsFromRectangle(n),i=!1,o=!1,s=function(e){if(i&&o)return{value:!0};var s=t[e];if(s.isIntersectedByRect(n)){var a=s.startPoint,c=s.endPoint,u=n.containsPoint(a),l=n.containsPoint(c);if(!u&&!l)return{value:!0};if(u&&!l){var h=r.filter(function(e){return e.containsPoint(a)});return h.length>0&&r.filter(function(e){return 1===h.length?!e.containsPoint(h[0].startPoint)&&!e.containsPoint(h[0].endPoint):e!==h[0]&&e!==h[1]}).some(function(e){return s.isIntersected(e)})&&!i&&(i=!0),o||(o=!0),"continue"}if(!u&&l){i||(i=!0,o&&(o=!1));var d=r.filter(function(e){return e.containsPoint(c)});return d.length>0&&r.filter(function(e){return 1===d.length?!e.containsPoint(d[0].startPoint)&&!e.containsPoint(d[0].endPoint):e!==d[0]&&e!==d[1]}).some(function(e){return s.isIntersected(e)})&&!o&&(o=!0),"continue"}var f=r.filter(function(e){return e.containsPoint(a)}),p=r.filter(function(e){return e.containsPoint(c)});if(2===f.length&&2===p.length)return{value:!0};if(1===f.length&&1===p.length&&f[0]!==p[0])return{value:!0};o||1!==p.length||f.length||(o=!0),i||1!==f.length||p.length||(i=!0,o&&(o=!1))}},a=0;a<t.length;a++){var c=s(a);if("object"==typeof c)return c.value}return i&&o},e.areIntersectedSegments=function(e,t){if(!t)return!1;for(var n,r=0;n=e[r];){for(var i=0,o=void 0;o=t[i];){if(o.isIntersected(n))return!0;i++}r++}return!1},e.isLineIntersected=function(t,n,r,i,o){var s=p.fromPoints(t,n),a=r.startPoint,c=r.endPoint;if(s.containsPoint(a)&&s.containsPoint(c))return!i&&!o;var u=p.fromPoints(a,c).getPointIntersection(s);return!(!u||!r.containsPoint(u))&&(i?!e.areDuplicatedPoints(a,u):!o||!e.areDuplicatedPoints(c,u))},e.removeUnnecessaryPoints=function(e,t,n,r){void 0===n&&(n=function(e){return void 0!==e}),void 0===r&&(r=1e-5),this.removeUnnecessaryPointsCore(e,t,n,r),this.removeBackwardPoints(e,t,n,r),this.removeUnnecessaryPointsCore(e,t,n,r)},e.removeUnnecessaryRightAnglePoints=function(e,t,n,r){void 0===n&&(n=function(e){return void 0!==e}),void 0===r&&(r=1e-5),this.removeUnnecessaryPointsCore(e,t,n,r),this.removeBackwardPoints(e,t,n,r),this.removeNotRightAnglePoints(e,t,n,r),this.removeUnnecessaryPointsCore(e,t,n,r)},e.removeUnnecessaryPointsCore=function(e,t,n,r){void 0===n&&(n=function(e){return void 0!==e}),void 0===r&&(r=1e-5),this.removeDuplicatedPoints(e,t,n,r),this.removeNotCornersPoints(e,t,n,r)},e.removeNotRightAnglePoints=function(t,n,r,i){void 0===r&&(r=function(e){return void 0!==e}),void 0===i&&(i=1e-5);for(var o,s=0;(o=t[s])&&t.length>2;){var a=this.getNextPoint(t,s,1,r),c=this.getNextPoint(t,s,-1,r);c&&a&&!e.isRightAngleCorner(c,o,a,i)&&n(o,s)||s++}},e.removeDuplicatedPoints=function(t,n,r,i){void 0===r&&(r=function(e){return void 0!==e}),void 0===i&&(i=1e-5);for(var o,s=0;(o=t[s])&&t.length>2;){var a=this.getNextPoint(t,s,1,r);if(a&&e.areDuplicatedPoints(o,a,i)){var c=s===t.length-2?s:s+1;if(n(t[c],c))continue}s++}},e.removeNotCornersPoints=function(t,n,r,i){void 0===r&&(r=function(e){return void 0!==e}),void 0===i&&(i=1e-5);for(var o,s=0;(o=t[s])&&t.length>2;){var a=this.getNextPoint(t,s,1,r),c=this.getNextPoint(t,s,-1,r);c&&a&&!e.isCorner(c,o,a,i)&&n(o,s)||s++}},e.removeBackwardPoints=function(t,n,r,i){void 0===r&&(r=function(e){return void 0!==e}),void 0===i&&(i=1e-5);for(var o,s=0;(o=t[s])&&t.length>2;){var a=this.getNextPoint(t,s,1,r),c=this.getNextPoint(t,s,-1,r);c&&a&&e.isBackwardPoint(c,o,a,i)&&n(o,s)||s++}},e.isRightAngleCorner=function(t,n,r,i){return void 0===i&&(i=1e-5),c.MathUtils.numberCloseTo(e.createAngle(t,n,r),Math.PI/2,i)||c.MathUtils.numberCloseTo(e.createAngle(t,n,r),Math.PI,i)||c.MathUtils.numberCloseTo(e.createAngle(t,n,r),3*Math.PI/2,i)},e.isCorner=function(t,n,r,i){return void 0===i&&(i=1e-5),!c.MathUtils.numberCloseTo(e.createAngle(t,n,r),0,i)},e.areDuplicatedPoints=function(e,t,n){return void 0===n&&(n=1e-5),c.MathUtils.numberCloseTo(e.x,t.x,n)&&c.MathUtils.numberCloseTo(e.y,t.y,n)},e.isBackwardPoint=function(t,n,r,i){return void 0===i&&(i=1e-5),c.MathUtils.numberCloseTo(e.createAngle(t,n,r),Math.PI,i)},e.createAngle=function(e,t,n){var r=u.Vector.fromPoints(t,n),i=u.Vector.fromPoints(e,t),o=r.x,s=r.y,a=i.x,c=i.y,l=Math.atan2(o*c-a*s,o*a+s*c);return l<0?2*Math.PI+l:l},e.getNextPoint=function(e,t,n,r){for(var i,o=t+n;i=e[o];){if(r(i))return i;o+=n}},e.addSelectedLinesTo=function(e,t,n,r,i,o,s,a,u,l,h,d,f,p){void 0===p&&(p=1e-5);var A=t.y-e.y,g=n.y-t.y,m=e.x-t.x,y=t.x-n.x,v=A*y-g*m;if(!c.MathUtils.numberCloseTo(v,0,p)){var b=A*(e.x+r)+m*(e.y+i),w=g*(t.x+a)+y*(t.y+u);d((y*b-m*w)/v,(A*w-g*b)/v);var C=A*(e.x+o)+m*(e.y+s),_=g*(t.x+l)+y*(t.y+h);f((y*C-m*_)/v,(A*_-g*C)/v)}},e.getSelectionOffsetPoint=function(e,t,n){return new i.Point((e.y-t.y)/n,(t.x-e.x)/n)},e.getSelectionTextStartEndPoints=function(e,t,n,r,o,s){var a=(t.x-e.x)/n,c=(t.y-e.y)/n,u=o.width*a+o.height*c;switch(s){case h.TextAlignment.Left:return[r,new i.Point(r.x+a*u,r.y+c*u)];case h.TextAlignment.Right:return[new i.Point(r.x-a*u,r.y-c*u),r];default:return[new i.Point(r.x-.5*a*u,r.y-.5*c*u),new i.Point(r.x+.5*a*u,r.y+.5*c*u)]}},e.getPathLength=function(e){var t,n=0;return e.forEach(function(e){void 0!==t&&(n+=a.Metrics.euclideanDistance(e,t)),t=e}),n},e.getPathPointByPosition=function(e,t){if(!e.length)throw new Error("Invalid points");if(0>t||t>1)throw new Error("Invalid relative position");var n=this.getPathLength(e);if(e.length<=2&&0===n||0===t)return[e[0],0];for(var r=n*t,o=0,s=1;s<e.length;s++){var c=a.Metrics.euclideanDistance(e[s],e[s-1]);if(o+c>=r){var u=r-o,l=(e[s].x-e[s-1].x)/c,h=(e[s].y-e[s-1].y)/c;return[new i.Point(e[s-1].x+l*u,e[s-1].y+h*u),s]}o+=c}return[e[e.length-1],e.length-1]},e.getLineAngle=function(e,t){return Math.atan2(t.y-e.y,t.x-e.x)},e.getTriangleBeginAngle=function(e,t,n){var r=this.getLineAngle(e,t),i=this.getLineAngle(e,n);return Math.abs(i-r)},e.getTriangleEndAngle=function(e,t,n){var r=this.getLineAngle(e,t),i=this.getLineAngle(n,t);return Math.abs(r-i)},e.getPathPointByPoint=function(e,t){if(!e.length)throw new Error("Invalid points");if(1===e.length)return e[0];for(var n,r=Number.MAX_VALUE,i=1;i<e.length;i++){var o=e[i-1],s=e[i];if(t.equals(o)){n=o.clone();break}if(t.equals(s)){n=s.clone();break}var c=this.getTriangleBeginAngle(o,s,t),u=this.getTriangleEndAngle(o,s,t),l=a.Metrics.euclideanDistance(t,o),h=a.Metrics.euclideanDistance(t,s),d=l*Math.sin(c),f=void 0;if((f=Math.PI/2<=c&&c<=3*Math.PI/2?l:Math.PI/2<=u&&u<=3*Math.PI/2?h:Math.abs(d))<r)if(r=f,Math.PI/2<=c&&c<=3*Math.PI/2)n=o.clone();else if(Math.PI/2<=u&&u<=3*Math.PI/2)n=s.clone();else{var p=Math.fround||Math.round,A=this.getLineAngle(o,s),g=p(Math.abs(d*Math.sin(A))),m=p(Math.abs(d*Math.cos(A))),y=t.y-o.y<p((t.x-o.x)*Math.tan(A));0<=A&&A<=Math.PI/2?(g*=y?-1:1,m*=y?1:-1):Math.PI/2<=A&&A<=Math.PI||0>=A&&A>=-Math.PI/2?(g*=y?1:-1,m*=y?1:-1):-Math.PI/2>=A&&A>=-Math.PI&&(g*=y?-1:1,m*=y?1:-1),n=t.clone().offset(g,m)}}return n},e.getPathPositionByPoint=function(e,t,n){void 0===n&&(n=100),t=this.getPathPointByPoint(e,t);for(var r=this.getPathLength(e),i=0,o=1;o<e.length;o++){var s=e[o-1],c=e[o],u=a.Metrics.euclideanDistance(c,s),l=Math.atan((c.y-s.y)/(c.x-s.x)),h=Math.fround||Math.round;if(t.x===c.x&&t.x===s.x||t.y===c.y&&t.y===s.y||h(t.y-s.y)===h((t.x-s.x)*Math.tan(l)))return 0!==Math.sin(l)?i+=Math.abs((t.y-s.y)/Math.sin(l)):i+=Math.abs(t.x-s.x),Math.round(i*n/r)/n;i+=u}return 1},e.arePointsEqual=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(!e[r].equals(t[r]))return!1;return!0},e.getMaxRectangleEnscribedInEllipse=function(e){var t=e.width*Math.sqrt(2)/2,n=e.height*Math.sqrt(2)/2;return new r.Size(t,n)},e.getEllipseByEnscribedRectangle=function(e){return new r.Size(2*e.width/Math.sqrt(2),2*e.height/Math.sqrt(2))},e}();t.GeometryUtils=y;var v=function(){function e(){}return e.cloneObject=function(e){return e&&Object.assign({},e)},e.compareObjects=function(e,t){return e===t||"object"==typeof e&&"object"==typeof t&&this.isDeepEqual(e,t)},e.isDeepEqual=function(e,t){var n=e?Object.getOwnPropertyNames(e):[],r=t?Object.getOwnPropertyNames(t):[];if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];switch(typeof e[o]){case"object":if(!this.isDeepEqual(e[o],t[o]))return!1;break;case"number":if(!(isNaN(e[o])&&isNaN(t[o])||e[o]===t[o]))return!1;break;default:if(e[o]!==t[o])return!1}}return!0},e}();t.ObjectUtils=v;var b=function(){function e(){}return e.focusWithPreventScroll=function(e){try{var t=d.Browser.Safari,n=t&&this.getHtmlScrollPosition();if(t){var r=e.parentElement&&e.parentElement.getBoundingClientRect();if(r){var i=r.left<0?1-r.left:0,o=r.top<0?1-r.top:0,s=window.frameElement&&window.frameElement.getBoundingClientRect();s&&(s.top<0&&-s.top>r.top&&(o=-s.top-r.top+1),s.left<0&&-s.left>r.left&&(i=-s.left-r.left+1)),e.style.setProperty("left",i+"px","important"),e.style.setProperty("top",o+"px","important")}}if(e.focus({preventScroll:!0}),t){var a=this.getHtmlScrollPosition();v.compareObjects(n,a)||this.setHtmlScrollPosition(n),e.style.setProperty("left","-1000px","important"),e.style.setProperty("top","-1000px","important")}}catch(e){}},e.getHtmlScrollPosition=function(){return{pos:this.getDocumentScrollPosition(window,document),iframePos:window.top!==window&&this.getDocumentScrollPosition(window.top,window.top.document)}},e.getDocumentScrollPosition=function(e,t){return{left:e.pageXOffset||t.documentElement.scrollLeft||t.body.scrollLeft,top:e.pageYOffset||t.documentElement.scrollTop||t.body.scrollTop}},e.setHtmlScrollPosition=function(e){this.setDocumentScrollPosition(document,e.pos),window.top!==window&&e.iframePos&&this.setDocumentScrollPosition(window.top.document,e.iframePos)},e.setDocumentScrollPosition=function(e,t){e.documentElement.scrollTop=t.top,e.documentElement.scrollLeft=t.left,e.body.scrollTop=t.top,e.body.scrollLeft=t.left},e}();t.HtmlFocusUtils=b;var w=function(){function e(){}return e.isLeftButtonPressed=function(e){return f.EvtUtils.isLeftButtonPressed(e)},e.isPointerEvents=function(){return window.PointerEvent},e.isMousePointer=function(e){return this.isPointerEvents()&&(e.pointerType&&"mouse"===e.pointerType||d.Browser.Firefox&&"click"===e.type)},e.isTouchMode=function(){return d.Browser.TouchUI||window.navigator&&window.navigator.maxTouchPoints>0},e.isTouchEvent=function(t){return d.Browser.TouchUI||!e.isMousePointer(t)},e}();t.EventUtils=w},4914:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Data=t.SetAbsoluteY=t.SetAbsoluteX=void 0;var r=n(6907),i=n(2491);function o(e){return!isNaN(parseFloat(e))&&isFinite(e)}function s(e,t,n){return e-=function(e,t){var n=function(e){var t=document.createElement("DIV");return t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.position=r.DomUtils.getCurrentStyle(e).position,t}(e);"static"===n.style.position&&(n.style.position="absolute"),e.parentNode.appendChild(n);var i=t?r.DomUtils.getAbsolutePositionX(n):r.DomUtils.getAbsolutePositionY(n);return e.parentNode.removeChild(n),Math.round(i)}(t,n),e}t.SetAbsoluteX=function(e,t){e.style.left=s(t,e,!0)+"px"},t.SetAbsoluteY=function(e,t){e.style.top=s(t,e,!1)+"px"};var a=function(){function e(){}return e.ArrayInsert=function(e,t,n){if(0<=n&&n<e.length){for(var r=e.length;r>n;r--)e[r]=e[r-1];e[n]=t}else e.push(t)},e.ArrayRemove=function(t,n){var r=e.ArrayIndexOf(t,n);r>-1&&e.ArrayRemoveAt(t,r)},e.ArrayRemoveAt=function(e,t){if(t>=0&&t<e.length){for(var n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}},e.ArrayClear=function(e){for(;e.length>0;)e.pop()},e.ArrayIndexOf=function(e,t,n){if(n){for(r=0;r<e.length;r++)if(n(e[r],t))return r}else for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},e.ArrayContains=function(t,n){return e.ArrayIndexOf(t,n)>=0},e.ArrayEqual=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0},e.ArraySame=function(t,n){return t.length===n.length&&t.every(function(t){return e.ArrayContains(n,t)})},e.ArrayGetIntegerEdgeValues=function(t){var n=e.CollectionToArray(t);return e.ArrayIntegerAscendingSort(n),{start:n[0],end:n[n.length-1]}},e.ArrayIntegerAscendingSort=function(t){e.ArrayIntegerSort(t,!1)},e.ArrayIntegerSort=function(e,t){e.sort(function(e,n){var r=0;return e>n?r=1:e<n&&(r=-1),t&&(r*=-1),r})},e.CollectionsUnionToArray=function(e,t){for(var n=[],r=e.length,i=t.length,o=0;o<r+i;o++)o<r?n.push(e[o]):n.push(t[o-r]);return n},e.CollectionToArray=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},e.CreateHashTableFromArray=function(e){for(var t=[],n=0;n<e.length;n++)t[e[n]]=1;return t},e.CreateIndexHashTableFromArray=function(e){for(var t=[],n=0;n<e.length;n++)t[e[n]]=n;return t},e.ArrayToHash=function(e,t,n){return e instanceof Array?e.reduce(function(e,r,i){var o=t(r,i),s=n(r,i);return e[o]=s,e},{}):{}},e.Sum=function(e,t){return e instanceof Array?e.reduce(function(e,n){var r=t?t(n):n;return o(r)||(r=0),e+r},0):0},e.Min=function(t,n){return e.CalculateArrayMinMax(t,n,!1)},e.Max=function(t,n){return e.CalculateArrayMinMax(t,n,!0)},e.NearestLeftBinarySearchComparer=function(e,t,n){var r=e[t],i=r<n;return i&&t===e.length-1||i&&e[t+1]>=n?0:r<n?-1:1},e.ArrayBinarySearch=function(t,n,r,o,s){r||(r=e.defaultBinarySearchComparer),i.isDefined(o)||(o=0),i.isDefined(s)||(s=t.length-o);for(var a=o+s-1;o<=a;){var c=o+(a-o>>1),u=r(t,c,n);if(0===u)return c;u<0?o=c+1:a=c-1}return-(o+1)},e.ArrayFlatten=function(e){var t=[];return e.forEach(function(e){t=t.concat(e)}),t},e.GetDistinctArray=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];-1===e.ArrayIndexOf(n,i)&&n.push(i)}return n},e.ForEach=function(e,t){if(Array.prototype.forEach)Array.prototype.forEach.call(e,t);else for(var n=0,r=e.length;n<r;n++)t(e[n],n,e)},e.MergeHashTables=function(e,t){if(!t||"string"==typeof t)return e;for(var n in e||(e={}),t)n&&!(n in e)&&(e[n]=t[n]);return e},e.Range=function(e,t){return(e=parseInt(e)||0)<0&&(e=0),(t=parseInt(t)||0)<0&&(t=0),Array(e).map(function(e,n){return t+n})},e.CalculateArrayMinMax=function(e,t,n){if(!(e instanceof Array))return 0;var r=n?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;return e.reduce(function(e,i){var s=t?t(i):i;return o(s)||(s=r),(n?Math.max:Math.min)(s,e)},r)},e.byRange=function(e,t,n){return Math.min(Math.max(e,t),n)},e.defaultBinarySearchComparer=function(e,t,n){var r=e[t];return r===n?0:r<n?-1:1},e.cssTextToObject=function(e){return e?(e=e.replace(/\/\*(.|\s)*?\*\//g,"").replace(/\s+/g," ")).split(";").reduce(function(e,t){if(t){var n=/\s*([^:]+?)\s*:\s*([^;]*)\s*$/.exec(t);if(n){var r=n[1],i=n[2];r&&i&&(e[r.trim()]=i.trim())}return e}return e},{}):{}},e.objectToCssText=function(e){return e?Object.keys(e).reduce(function(t,n){var r=n.trim(),i=e[n];return r&&i&&t.push(r+": "+i.toString().trim()),t},[]).join("; "):""},e}();t.Data=a},8396:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isColorProperty=void 0;var n={stroke:!0,fill:!0};t.isColorProperty=function(e){return n[e]}},3490:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getLineHeight=t.getTextHeight=t.getTextLineSize=t.getOptimalTextRectangle=t.TEXTRECT_RATIO_EPS=t.textToParagraphs=t.textToWords=t.wordsByLines=t.LINE_HEIGHT=void 0;var r=n(8675),i=n(6353),o=n(4914),s=/\s/gm;function a(e,t,n){if(1===t.length)return t;for(var r=n(),i=r.words[" "].width,o=[],s=0,a=-1,c=0;c<t.length;c++){var u=t[c],l=r.words[u].width;-1===a||s+i+l>e?(a=o.push(u)-1,s=l):(s+=i+l,o[a]+=" "+u)}return o}function c(e){return e.split(s).filter(function(e){return e.length})}function u(e){return e.split("\n")}t.LINE_HEIGHT=1.05,t.wordsByLines=a,t.textToWords=c,t.textToParagraphs=u,t.TEXTRECT_RATIO_EPS=1.2;var l=1;function h(e,t,n){var r=e<1?1/e:e,i=t<1?1/t:t,o=r/i;return(o<1?1/o:o)<=n?0:i>r?1:-1}function d(e,t,n,r){return f(A(e,t,n,!1),r)}function f(e,t){return[o.Data.byRange(e,t.from,t.to),e<=t.to]}function p(e,t){return c(e).reduce(function(e,n,r){var i=t.words[n];return e.width+=i.width,e.height=Math.max(e.height,i.height),r>0&&(e.width+=t.words[" "].width),e},new i.Size(0,0))}function A(e,t,n,r){var i=Array.isArray(e)?e:u(e);return!r||i.length&&(1!==i.length||i[0].length)?i.reduce(function(e,r){return e+a(t,c(r),function(){return n}).length},0)*g(n):g(n)}function g(e){return e.fontSize*t.LINE_HEIGHT}t.getOptimalTextRectangle=function(e,n,s,a,c,g,m,y,v,b){if(void 0===m&&(m=0),void 0===y&&(y=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE),void 0===v&&(v=0),void 0===b&&(b=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE),!e)return new i.Size(o.Data.byRange(c.width,m,y),o.Data.byRange(c.height,v,b));if(m>y||v>b)throw new Error("Min size cannot exceed max size");if(m===y&&v===b)return new i.Size(m,v);var w=a.measureWords(e,n,s),C=u(e),_=Object.keys(w.words).reduce(function(e,t){return Math.max(e,w.words[t].width)},0),S=new r.Range(o.Data.byRange(Math.max(c.width,_),m,y),y),x=new r.Range(o.Data.byRange(c.height,v,b),b);if(_<=c.width&&A(C,c.width,w,!1)<=c.height&&S.includes(c.width)&&x.includes(c.height))return c;var T=c.width/c.height;return function(e,n,r,s,a,c){for(var u,A,g=e.reduce(function(e,t){return Math.max(e,p(t,n).width)},0),m=new i.Size(0,0),y=new i.Size(0,0),v=0,b=0,w=0;w<5;w++){if(0===w)y.width=f(g,s)[0];else{if(!(Math.abs(v)>l))break;y.width=f(m.width+v,s)[0]}if(u=d(e,y.width,n,a),y.height=u[0],A=u[1],0===w&&(b=(m=y.clone()).width/m.height/r),0===w&&!A)break;var C=y.width/y.height,_=C/r;if(0===w)v=(y.width/_-y.width)/2;else if(A){if(!h(r,C,t.TEXTRECT_RATIO_EPS)){m=y.clone(),b=_;break}if(!(h(b,_,1)<0))break;m=y.clone(),b=_,v=(y.width/_-y.width)/2,_<1&&(v/=2)}else v/=2}return c&&(m.height=o.Data.byRange(m.width/r,m.height,a.to)),m}(C,w,T,S,x,g)},t.getTextLineSize=p,t.getTextHeight=A,t.getLineHeight=g},6734:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ViewController=void 0;var r=n(7156),i=Math.log(.05),o=Math.log(3),s=l(1),a=[r.DiagramCommand.ZoomLevel,r.DiagramCommand.ZoomLevelInPercentage,r.DiagramCommand.Zoom100,r.DiagramCommand.Zoom125,r.DiagramCommand.Zoom200,r.DiagramCommand.Zoom25,r.DiagramCommand.Zoom50,r.DiagramCommand.Zoom75],c=[r.DiagramCommand.SwitchAutoZoom,r.DiagramCommand.ToggleAutoZoom,r.DiagramCommand.AutoZoomToContent,r.DiagramCommand.AutoZoomToWidth],u=function(){function e(e,t){this.settings=e,this.bars=t,e.onZoomChanged.add(this),this.autoZoom=e.autoZoom}return e.prototype.initialize=function(e){this.view=e,this.view.onViewChanged.add(this)},e.prototype.scrollTo=function(e,t){this.view&&this.view.setScrollTo(e,t)},e.prototype.scrollBy=function(e){return!this.view||0===e.x&&0===e.y?e:this.view.scrollBy(e)},e.prototype.scrollIntoView=function(e){this.view&&this.view.scrollIntoView(e)},e.prototype.normalize=function(){this.view.tryNormalizePaddings()},e.prototype.getNextStepZoom=function(e){var t=this.getNearestCurrentZoomStep(),n=e?1:-1,r=Math.min(39,Math.max(0,t+n));if(r!==s){var a=i+(o-i)*r/39;return Math.exp(a)}return 1},e.prototype.getNearestCurrentZoomStep=function(){return l(this.getZoom())},e.prototype.getZoom=function(){return this.view?this.view.actualZoom:this.settings.zoomLevel},e.prototype.resetScroll=function(){this.view.adjust({horizontal:!0,vertical:!0})},e.prototype.notifyViewAdjusted=function(e){},e.prototype.notifyActualZoomChanged=function(e){this.bars.updateItemsState(a)},e.prototype.notifyZoomChanged=function(e,t){this.autoZoom!==t&&(this.autoZoom=t,this.bars.updateItemsState(c))},e}();function l(e){var t=Math.log(e);return Math.round(39*(t-i)/(o-i))}t.ViewController=u},3607:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramModelOperation=t.Diagnostics=t.RenderHelper=t.DiagramLocalizationService=t.NativeConnector=t.NativeShape=t.ShapeType=t.ColorUtils=t.PageOrientation=t.ConnectorPosition=t.ConnectorLineOption=t.ConnectorLineEnding=t.AutoZoomMode=t.Browser=t.UnitConverter=t.EventDispatcher=t.DataLayoutOrientation=t.DataLayoutType=t.ShapeCategories=t.ShapeTypes=t.DiagramUnit=t.default=t.DiagramControl=t.DiagramCommand=t.Point=t.Size=void 0;var r=n(7156);Object.defineProperty(t,"DiagramCommand",{enumerable:!0,get:function(){return r.DiagramCommand}});var i=n(2106);Object.defineProperty(t,"DiagramControl",{enumerable:!0,get:function(){return i.DiagramControl}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.DiagramControl}});var o=n(6353);Object.defineProperty(t,"Size",{enumerable:!0,get:function(){return o.Size}});var s=n(8900);Object.defineProperty(t,"Point",{enumerable:!0,get:function(){return s.Point}});var a=n(8675);Object.defineProperty(t,"EventDispatcher",{enumerable:!0,get:function(){return a.EventDispatcher}});var c=n(2259);Object.defineProperty(t,"ShapeTypes",{enumerable:!0,get:function(){return c.ShapeTypes}}),Object.defineProperty(t,"ShapeCategories",{enumerable:!0,get:function(){return c.ShapeCategories}}),Object.defineProperty(t,"ShapeType",{enumerable:!0,get:function(){return c.ShapeType}});var u=n(9291);Object.defineProperty(t,"UnitConverter",{enumerable:!0,get:function(){return u.UnitConverter}});var l=n(9279);Object.defineProperty(t,"Browser",{enumerable:!0,get:function(){return l.Browser}});var h=n(240);Object.defineProperty(t,"AutoZoomMode",{enumerable:!0,get:function(){return h.AutoZoomMode}}
19);var d=n(3503);Object.defineProperty(t,"DataLayoutType",{enumerable:!0,get:function(){return d.DataLayoutType}});var f=n(8710);Object.defineProperty(t,"DataLayoutOrientation",{enumerable:!0,get:function(){return f.DataLayoutOrientation}}),n(8721);var p=n(4612);Object.defineProperty(t,"ConnectorLineEnding",{enumerable:!0,get:function(){return p.ConnectorLineEnding}}),Object.defineProperty(t,"ConnectorLineOption",{enumerable:!0,get:function(){return p.ConnectorLineOption}});var A=n(13);Object.defineProperty(t,"ColorUtils",{enumerable:!0,get:function(){return A.ColorUtils}});var g=n(9463);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return g.Diagnostics}});var m=n(7185);Object.defineProperty(t,"NativeShape",{enumerable:!0,get:function(){return m.NativeShape}}),Object.defineProperty(t,"NativeConnector",{enumerable:!0,get:function(){return m.NativeConnector}});var y=n(6224);Object.defineProperty(t,"DiagramLocalizationService",{enumerable:!0,get:function(){return y.DiagramLocalizationService}});var v=n(1114);Object.defineProperty(t,"RenderHelper",{enumerable:!0,get:function(){return v.RenderHelper}});var b=n(5383);Object.defineProperty(t,"DiagramUnit",{enumerable:!0,get:function(){return b.DiagramUnit}}),Object.defineProperty(t,"PageOrientation",{enumerable:!0,get:function(){return b.PageOrientation}});var w=n(6879);Object.defineProperty(t,"DiagramModelOperation",{enumerable:!0,get:function(){return w.DiagramModelOperation}});var C=n(7959);Object.defineProperty(t,"ConnectorPosition",{enumerable:!0,get:function(){return C.ConnectorPosition}})},655:(e,t,n)=>{n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>b,__asyncValues:()=>C,__await:()=>v,__awaiter:()=>l,__classPrivateFieldGet:()=>P,__classPrivateFieldSet:()=>E,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:()=>
vendor: 16,813 bytes, lines 19-21
19x,__makeTemplateObject:()=>_,__metadata:()=>u,__param:()=>c,__read:()=>A,__rest:()=>s,__spread:()=>g,__spreadArray:()=>y,__spreadArrays:()=>m,__values:()=>p});var r=function(e,t){return r=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])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return S(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(3607)})())},56703:function(e){
20/*! For license information please see dx-gantt.min.js.LICENSE.txt */
21!function(t,n){e.exports=n()}(0,()=>(()=>{"use strict";var e={9279:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=void 0;var n=function(){function e(){}return e.IdentUserAgent=function(t,n){void 0===n&&(n=!1);var r=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],i="IE",o="Win",s={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(t&&0!==t.length){t=t.toLowerCase(),e.indentPlatformMajorVersion(t);try{for(var a={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},c="(?:/|\\s*)?",u="(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?",l="(?:"+u+")?",h={Safari:"applewebkit(?:.*?(?:version/"+u+"[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)"+c+l,Mozilla:"mozilla(?:.*rv:"+l+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+l,Firefox:"firefox"+c+l,Opera:"(?:opera|\\sopr)"+c+l,Opera10:"opera.*\\s*version"+c+l,IE:"msie\\s*"+l,Edge:"edge"+c+l},d=null,f=-1,p=0;p<r.length;p++){var A=r[p],g=new RegExp(h[A],"i").exec(t);if(g&&g.index>=0){if("IE"===d&&f>=11&&"Safari"===A)continue;"Opera10"===(d=A)&&(d="Opera");var m="trident"+c+l;f=e.GetBrowserVersion(t,g,m,e.getIECompatibleVersionString()),"Mozilla"===d&&f>=11&&(d="IE")}}d||(d=i);var y=-1!==f;y||(f=s[d]);var v=null,b=Number.MAX_VALUE;for(var w in a)if(Object.prototype.hasOwnProperty.call(a,w)){var C="!"===w.substr(0,1),_=t.indexOf((C?w.substr(1):w).toLowerCase());_>=0&&(_<b||C)&&(b=C?0:_,v=a[w])}var S=t.toUpperCase().match("SM-[A-Z]"),x=S&&S.length>0;"WinPhone"===v&&f<9&&(f=Math.floor(e.getVersionFromTrident(t,"trident"+c+l))),!n&&"IE"===d&&f>7&&document.documentMode<f&&(f=document.documentMode),"WinPhone"===v&&(f=Math.max(9,f)),v||(v=o),v!==a["cpu os"]||y||(f=4),e.fillUserAgentInfo(r,d,f,v,x)}catch(t){e.fillUserAgentInfo(r,i,s[i],o)}}else e.fillUserAgentInfo(r,i,s[i],o)},e.GetBrowserVersion=function(t,n,r,i){var o=e.getVersionFromMatches(n);if(i){var s=e.getVersionFromTrident(t,r);if("edge"===i||parseInt(i)===s)return s}return o},e.getIECompatibleVersionString=function(){if(document.compatible)for(var e=0;e<document.compatible.length;e++)if("IE"===document.compatible[e].userAgent&&document.compatible[e].version)return document.compatible[e].version.toLowerCase();return""},e.isTouchEnabled=function(){return e.hasTouchStart()||e.hasMaxTouchPoints()||e.hasMsMaxTouchPoints()},e.hasTouchStart=function(){return"ontouchstart"in window},e.hasMaxTouchPoints=function(){return navigator.maxTouchPoints>0},e.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},e.hasNavigator=function(){return"undefined"!=typeof navigator},e.fillUserAgentInfo=function(t,n,r,i,o){void 0===o&&(o=!1);for(var s=0;s<t.length;s++){var a=t[s];e[a]=a===n}e.Version=Math.floor(10*r)/10,e.MajorVersion=Math.floor(e.Version),e.WindowsPlatform="Win"===i||"WinPhone"===i,e.MacOSMobilePlatform="MacMobile"===i||"Mac"===i&&e.isTouchEnabled(),e.MacOSPlatform="Mac"===i&&!e.MacOSMobilePlatform,e.AndroidMobilePlatform="Android"===i,e.WindowsPhonePlatform="WinPhone"===i,e.WebKitFamily=e.Safari||e.Chrome||e.Opera&&e.MajorVersion>=15,e.NetscapeFamily=e.Netscape||e.Mozilla||e.Firefox,e.WebKitTouchUI=e.MacOSMobilePlatform||e.AndroidMobilePlatform;var c=e.IE&&e.MajorVersion>9&&e.WindowsPlatform&&e.UserAgent.toLowerCase().indexOf("touch")>=0;if(e.MSTouchUI=c||e.Edge&&!!window.navigator.maxTouchPoints,e.TouchUI=e.WebKitTouchUI||e.MSTouchUI,e.MobileUI=e.WebKitTouchUI||e.WindowsPhonePlatform,e.AndroidDefaultBrowser=e.AndroidMobilePlatform&&!e.Chrome,e.AndroidChromeBrowser=e.AndroidMobilePlatform&&e.Chrome,o&&(e.SamsungAndroidDevice=o),e.MSTouchUI){var u=e.UserAgent.toLowerCase().indexOf("arm;")>-1;e.VirtualKeyboardSupported=u||e.WindowsPhonePlatform}else e.VirtualKeyboardSupported=e.WebKitTouchUI;e.fillDocumentElementBrowserTypeClassNames(t)},e.indentPlatformMajorVersion=function(t){var n=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(t);n&&(e.PlaformMajorVersion=n[1])},e.getVersionFromMatches=function(e){var t=-1,n="";return e&&(e[1]&&(n+=e[1],e[2]&&(n+="."+e[2])),""!==n&&(t=parseFloat(n),isNaN(t)&&(t=-1))),t},e.getVersionFromTrident=function(t,n){var r=new RegExp(n,"i").exec(t);return e.getVersionFromMatches(r)+4},e.fillDocumentElementBrowserTypeClassNames=function(t){for(var n="",r=t.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),i=0;i<r.length;i++){var o=r[i];e[o]&&(n+="dx"+o+" ")}n+="dxBrowserVersion-"+e.MajorVersion,"undefined"!=typeof document&&document&&document.documentElement&&(""!==document.documentElement.className&&(n=" "+n),document.documentElement.className+=n,e.Info=n)},e.getUserAgent=function(){return e.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},e.UserAgent=e.getUserAgent(),e._foo=e.IdentUserAgent(e.UserAgent),e}();t.Browser=n},6799:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedMinMax=t.ExtendedMax=t.ExtendedMin=t.MinMaxNumber=t.MinMax=void 0;var r=n(655),i=function(e,t){this.minElement=e,this.maxElement=t};t.MinMax=i;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!1,configurable:!0}),t}(i);t.MinMaxNumber=o;var s=function(e,t){this.minElement=e,this.minValue=t};t.ExtendedMin=s;var a=function(e,t){this.maxElement=e,this.maxValue=t};t.ExtendedMax=a;var c=function(e){function t(t,n,r,i){var o=e.call(this,t,r)||this;return o.minValue=n,o.maxValue=i,o}return r.__extends(t,e),t}(i);t.ExtendedMinMax=c},3604:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Margins=void 0;var r=n(655),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.empty=function(){return new t(0,0,0,0)},t.prototype.clone=function(){return new t(this.left,this.right,this.top,this.bottom)},t}(n(4125).Offsets);t.Margins=i},5596:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metrics=void 0;var n=function(){function e(){}return e.euclideanDistance=function(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.manhattanDistance=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},e}();t.Metrics=n},4125:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Offsets=void 0;var n=function(){function e(e,t,n,r){this.left=e,this.right=t,this.top=n,this.bottom=r}return e.empty=function(){return new e(0,0,0,0)},Object.defineProperty(e.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!1,configurable:!0}),e.fromNumber=function(t){return new e(t,t,t,t)},e.fromOffsets=function(t){return new e(t.left,t.right,t.top,t.bottom)},e.fromSide=function(t,n){return new e(t,t,n,n)},e.prototype.normalize=function(){return this.left=Math.max(0,this.left),this.right=Math.max(0,this.right),this.top=Math.max(0,this.top),this.bottom=Math.max(0,this.bottom),this},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},e.prototype.offset=function(e){return this.left+=e.left,this.right+=e.right,this.top+=e.top,this.bottom+=e.bottom,this},e.prototype.multiply=function(e,t,n,r){switch(arguments.length){case 1:return this.left*=e,this.right*=e,this.top*=e,this.bottom*=e,this;case 2:return this.left*=e,this.right*=e,this.top*=t,this.bottom*=t,this;case 4:return this.left*=e,this.right*=t,this.top*=n,this.bottom*=r,this}return this},e.prototype.clone=function(){return new e(this.left,this.right,this.top,this.bottom)},e.prototype.copyFrom=function(e){this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom},e.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.right===e.right&&this.left===e.left},e.prototype.applyConverter=function(e){return this.left=e(this.left),this.right=e(this.right),this.top=e(this.top),this.bottom=e(this.bottom),this},e}();t.Offsets=n},8900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Point=void 0;var n=function(){function e(e,t){this.x=e,this.y=t}return e.zero=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.prototype.isZero=function(){return 0===this.x&&0===this.y},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(e){return this.x===e.x&&this.y===e.y},e.prototype.offset=function(e,t){return this.x+=e,this.y+=t,this},e.prototype.offsetByPoint=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.multiply=function(e,t){return this.x*=e,this.y*=t,this},e.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},e.prototype.applyConverter=function(e){return this.x=e(this.x),this.y=e(this.y),this},e.plus=function(t,n){return new e(t.x+n.x,t.y+n.y)},e.minus=function(t,n){return new e(t.x-n.x,t.y-n.y)},e.xComparer=function(e,t){return e.x-t.x},e.yComparer=function(e,t){return e.y-t.y},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();t.Point=n},6353:(e,t)=>
vendor: 8,918 bytes, line 21
21{Object.defineProperty(t,"__esModule",{value:!0}),t.Size=void 0;var n=function(){function e(e,t){this.width=e,this.height=t}return e.empty=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.initByCommonAction=function(t){var n=function(e){return e.width},r=function(e){return e.height};return new e(t(n,r),t(r,n))},e.prototype.isEmpty=function(){return 0===this.width&&0===this.height},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},e.prototype.offset=function(e,t){return this.width=this.width+e,this.height=this.height+t,this},e.prototype.multiply=function(e,t){return this.width*=e,this.height*=t,this},e.prototype.equals=function(e){return this.width===e.width&&this.height===e.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.copyFrom=function(e){this.width=e.width,this.height=e.height},e.prototype.applyConverter=function(e){return this.width=e(this.width),this.height=e(this.height),this},e.equals=function(e,t){return e.width===t.width&&e.height===t.height},e}();t.Size=n},2217:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AttrUtils=void 0;var r=n(9279),i=function(){function e(){}return e.setElementAttribute=function(e,t,n){e.setAttribute&&(r.Browser.IE&&r.Browser.MajorVersion>=11&&"src"===t.toLowerCase()&&e.setAttribute(t,""),e.setAttribute(t,n))},e.setStyleAttribute=function(e,t,n){e.setProperty&&e.setProperty(t,n,"")},e.getElementAttribute=function(e,t){return e.getAttribute(t)},e.getStyleAttribute=function(e,t){if(e.getPropertyValue){if(r.Browser.Firefox)try{return e.getPropertyValue(t)}catch(n){return e[t]}return e.getPropertyValue(t)}return null},e.removeElementAttribute=function(e,t){e.removeAttribute&&e.removeAttribute(t)},e.removeStyleAttribute=function(e,t){e.removeProperty&&e.removeProperty(t)},e.changeElementStyleAttribute=function(t,n,r){e.saveStyleAttributeInElement(t,n),e.setStyleAttribute(t.style,n,r)},e.restoreElementStyleAttribute=function(t,n){var r="dxwu_saved"+n,i=t.style;if(e.isExistsAttributeInElement(t,r)){var o=e.getElementAttribute(t,r);return o===e.emptyObject||null===o?e.removeStyleAttribute(i,n):e.setStyleAttribute(i,n,o),e.removeElementAttribute(t,r),!0}return!1},e.saveStyleAttributeInElement=function(t,n){var r="dxwu_saved"+n,i=t.style;if(!e.isExistsAttributeInElement(t,r)){var o=e.getStyleAttribute(i,n);e.setElementAttribute(t,r,e.isAttributeExists(o)?o:e.emptyObject)}},e.isExistsAttributeInElement=function(t,n){var r=e.getElementAttribute(t,n);return e.isAttributeExists(r)},e.isAttributeExists=function(e){return null!==e&&""!==e},e.emptyObject="DxEmptyValue",e}();t.AttrUtils=i},2491:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.numberToStringHex=t.numberToStringBin=t.isOdd=t.isEven=t.isNonNullString=t.isString=t.isNumber=t.boolToString=t.boolToInt=t.isDefined=void 0;var r=n(49);t.isDefined=function(e){return null!=e},t.boolToInt=function(e){return e?1:0},t.boolToString=function(e){return e?"1":"0"},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isNonNullString=function(e){return!!e},t.isEven=function(e){return e%2!=0},t.isOdd=function(e){return e%2==0},t.numberToStringBin=function(e,t){return void 0===t&&(t=0),r.StringUtils.padLeft(e.toString(2),t,"0")},t.numberToStringHex=function(e,t){return void 0===t&&(t=0),r.StringUtils.padLeft(e.toString(16),t,"0")}},4170:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Equals=t.Comparers=void 0;var n=function(){function e(){}return e.number=function(e,t){return e-t},e.string=function(e,t){return e===t?0:e>t?1:-1},e.stringIgnoreCase=function(e,t){return(e=e.toLowerCase())===(t=t.toLowerCase())?0:e>t?1:-1},e}();t.Comparers=n;var r=function(){function e(){}return e.simpleType=function(e,t){return e===t},e.object=function(e,t){return e&&t&&(e===t||e.equals(t))},e}();t.Equals=r},6907:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=void 0;var r=n(9279),i=n(2491),o=n(8679),s=n(49),a=function(){function e(){}return e.clearInnerHtml=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},e.setStylePosition=function(e,t){e.left=o.MathUtils.round(t.x,3)+"px",e.top=o.MathUtils.round(t.y,3)+"px"},e.setStyleSize=function(e,t){e.width=o.MathUtils.round(t.width,3)+"px",e.height=o.MathUtils.round(t.height,3)+"px"},e.setStyleSizeAndPosition=function(t,n){e.setStylePosition(t,n),e.setStyleSize(t,n)},e.hideNode=function(e){if(e){var t=e.parentNode;t&&t.removeChild(e)}},e.isHTMLElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},e.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isHTMLTableRowElement=function(e){return"TR"===e.tagName},e.isItParent=function(e,t){if(!e||!t)return!1;for(;t;){if(t===e)return!0;if("BODY"===t.tagName)return!1;t=t.parentNode}return!1},e.getParentByTagName=function(e,t){for(t=t.toUpperCase();e;){if("BODY"===e.tagName)return null;if(e.tagName===t)return e;e=e.parentNode}return null},e.getDocumentScrollTop=function(){var t=r.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return r.Browser.WebKitFamily||r.Browser.Edge||t?r.Browser.MacOSMobilePlatform?window.pageYOffset:r.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},e.getDocumentScrollLeft=function(){var t=r.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return r.Browser.Edge||t?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:r.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},e.getCurrentStyle=function(e){if(e.currentStyle)return e.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var t=document.defaultView.getComputedStyle(e,null);if(!t&&r.Browser.Firefox&&window.frameElement){for(var n=[],o=window.frameElement;!(t=document.defaultView.getComputedStyle(e,null));)n.push([o,o.style.display]),o.style.setProperty("display","block","important"),o="BODY"===o.tagName?o.ownerDocument.defaultView.frameElement:o.parentNode;t=function(e){if("object"!=typeof e||!i.isDefined(e))return e;var t={};for(var n in e)t[n]=e[n];return t}(t);for(var s=void 0,a=0;s=n[a];a++)s[0].style.display=s[1];document.body.offsetWidth}return t}return window.getComputedStyle(e,null)},e.setFocus=function(e){function t(){try{e.focus(),r.Browser.IE&&document.activeElement!==e&&e.focus()}catch(e){}}r.Browser.MacOSMobilePlatform?t():setTimeout(function(){t()},100)},e.hasClassName=function(e,t){try{var n=t.split(" "),r=e.classList;if(r){for(var i=n.length-1;i>=0;i--)if(!r.contains(n[i]))return!1}else{var o=e.getAttribute&&e.getAttribute("class");if(!o)return!1;var s=o.split(" ");for(i=n.length-1;i>=0;i--)if(s.indexOf(n[i])<0)return!1}return!0}catch(e){return!1}},e.addClassName=function(t,n){if(!e.hasClassName(t,n)){var r=t.getAttribute&&t.getAttribute("class");t.setAttribute("class",""===r?n:r+" "+n)}},e.removeClassName=function(e,t){var n=" "+(e.getAttribute&&e.getAttribute("class"))+" ",r=n.replace(" "+t+" "," ");n.length!==r.length&&e.setAttribute("class",s.StringUtils.trim(r))},e.toggleClassName=function(t,n,r){void 0===r?e.hasClassName(t,n)?e.removeClassName(t,n):e.addClassName(t,n):r?e.addClassName(t,n):e.removeClassName(t,n)},e.pxToInt=function(e){return c(e,parseInt)},e.pxToFloat=function(e){return c(e,parseFloat)},e.getAbsolutePositionY=function(t){function n(t){return Math.round(t.getBoundingClientRect().top+e.getDocumentScrollTop())}return t?r.Browser.IE?function(t){return r.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().top+e.getDocumentScrollTop()}(t):r.Browser.Firefox&&r.Browser.Version>=3?n(t):r.Browser.NetscapeFamily&&(!r.Browser.Firefox||r.Browser.Version<3)?function(t){for(var n=u(t,!1),i=!0;null!=t;){if(n+=t.offsetTop,i||null==t.offsetParent||(n-=t.scrollTop),!i&&r.Browser.Firefox){var o=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==o.overflow&&(n+=e.pxToInt(o.borderTopWidth))}i=!1,t=t.offsetParent}return n}(t):r.Browser.WebKitFamily||r.Browser.Edge?n(t):function(e){for(var t=0,n=!0;null!=e;)t+=e.offsetTop,n||null==e.offsetParent||(t-=e.scrollTop),n=!1,e=e.offsetParent;return t}(t):0},e.getAbsolutePositionX=function(t){function n(t){return Math.round(t.getBoundingClientRect().left+e.getDocumentScrollLeft())}return t?r.Browser.IE?function(t){return r.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().left+e.getDocumentScrollLeft()}(t):r.Browser.Firefox&&r.Browser.Version>=3?n(t):r.Browser.Opera&&r.Browser.Version<=12?function(e){for(var t=!0,n=u(e,!0);null!=e;)n+=e.offsetLeft,t||(n-=e.scrollLeft),e=e.offsetParent,t=!1;return n+document.body.scrollLeft}
vendor: 24,691 bytes, line 21
21(t):r.Browser.NetscapeFamily&&(!r.Browser.Firefox||r.Browser.Version<3)?function(t){for(var n=u(t,!0),i=!0;null!=t;){if(n+=t.offsetLeft,i||null==t.offsetParent||(n-=t.scrollLeft),!i&&r.Browser.Firefox){var o=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==o.overflow&&(n+=e.pxToInt(o.borderLeftWidth))}i=!1,t=t.offsetParent}return n}(t):r.Browser.WebKitFamily||r.Browser.Edge?n(t):function(e){for(var t=0,n=!0;null!=e;)t+=e.offsetLeft,n||null==e.offsetParent||(t-=e.scrollLeft),n=!1,e=e.offsetParent;return t}(t):0},e.isInteractiveControl=function(e){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(e.tagName)>-1},e.getClearClientHeight=function(t){return t.offsetHeight-(e.getTopBottomPaddings(t)+e.getVerticalBordersWidth(t))},e.getTopBottomPaddings=function(t,n){var r=n||e.getCurrentStyle(t);return e.pxToInt(r.paddingTop)+e.pxToInt(r.paddingBottom)},e.getVerticalBordersWidth=function(t,n){i.isDefined(n)||(n=r.Browser.IE&&9!==r.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(t):e.getCurrentStyle(t));var o=0;return"none"!==n.borderTopStyle&&(o+=e.pxToFloat(n.borderTopWidth)),"none"!==n.borderBottomStyle&&(o+=e.pxToFloat(n.borderBottomWidth)),o},e.getNodes=function(e,t){for(var n=e.all||e.getElementsByTagName("*"),r=[],i=0;i<n.length;i++){var o=n[i];t(o)&&r.push(o)}return r},e.getChildNodes=function(e,t){for(var n=e.childNodes,r=[],i=0;i<n.length;i++){var o=n[i];t(o)&&r.push(o)}return r},e.getNodesByClassName=function(t,n){if(t.querySelectorAll){var r=t.querySelectorAll("."+n),i=[];return r.forEach(function(e){return i.push(e)}),i}return e.getNodes(t,function(t){return e.hasClassName(t,n)})},e.getChildNodesByClassName=function(t,n){return t.querySelectorAll?function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];t(i)&&n.push(i)}return n}(t.querySelectorAll("."+n),function(e){return e.parentNode===t}):e.getChildNodes(t,function(t){return!!e.isElementNode(t)&&i.isNonNullString(t.className)&&e.hasClassName(t,t.className)})},e.getVerticalScrollBarWidth=function(){if(void 0===e.verticalScrollBarWidth){var t=document.createElement("DIV");t.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(t);var n=document.createElement("P");t.appendChild(n),n.style.cssText="width: 100%; height: 200px;";var r=n.offsetWidth;t.style.overflow="scroll";var i=n.offsetWidth;r===i&&(i=t.clientWidth),e.verticalScrollBarWidth=r-i,document.body.removeChild(t)}return e.verticalScrollBarWidth},e.getHorizontalBordersWidth=function(t,n){i.isDefined(n)||(n=r.Browser.IE&&window.getComputedStyle?window.getComputedStyle(t):e.getCurrentStyle(t));var o=0;return"none"!==n.borderLeftStyle&&(o+=e.pxToFloat(n.borderLeftWidth)),"none"!==n.borderRightStyle&&(o+=e.pxToFloat(n.borderRightWidth)),o},e.getFontFamiliesFromCssString=function(e){return e.split(",").map(function(e){return s.StringUtils.trim(e.replace(/'|"/gi,""))})},e.getInnerText=function(t){if(r.Browser.Safari&&r.Browser.MajorVersion<=5){null===e.html2PlainTextFilter&&(e.html2PlainTextFilter=document.createElement("DIV"),e.html2PlainTextFilter.style.width="0",e.html2PlainTextFilter.style.height="0",e.html2PlainTextFilter.style.overflow="visible",e.html2PlainTextFilter.style.display="none",document.body.appendChild(e.html2PlainTextFilter));var n=e.html2PlainTextFilter;n.innerHTML=t.innerHTML,n.style.display="";var i=n.innerText;return n.style.display="none",i}return r.Browser.NetscapeFamily||r.Browser.WebKitFamily||r.Browser.IE&&r.Browser.Version>=9||r.Browser.Edge?t.textContent:t.innerText},e.html2PlainTextFilter=null,e.verticalScrollBarWidth=void 0,e}();function c(e,t){var n=0;if(i.isDefined(e)&&""!==e)try{var r=e.indexOf("px");r>-1&&(n=t(e.substr(0,r)))}catch(e){}return n}function u(e,t){for(var n=0,r=!0;null!=e&&"BODY"!==e.tagName;){var i=a.getCurrentStyle(e);if("absolute"===i.position)break;r||"DIV"!==e.tagName||""!==i.position&&"static"!==i.position||(n-=t?e.scrollLeft:e.scrollTop),e=e.parentNode,r=!1}return n}t.DomUtils=a},9712:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EncodeUtils=void 0;var n=function(){function e(){}return e.encodeHtml=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},e.decodeHtml=function(e){return e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},e.prepareTextForRequest=function(e){return e.replace(/%/g,"%25").replace(/&/g,"%26amp;").replace(/\+/g,"%2B").replace(/</g,"%26lt;").replace(/>/g,"%26gt;").replace(/"/g,"%26quot;")},e.prepareTextForCallBackRequest=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},e.decodeViaTextArea=function(e){var t=document.createElement("TEXTAREA");return t.innerHTML=e,t.value},e}();t.EncodeUtils=n},3714:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EvtUtils=void 0;var r=n(9279),i=n(2491),o=n(6907),s=n(1632),a=function(){function e(){}return e.preventEvent=function(e){e.cancelable&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},e.getEventSource=function(t){return i.isDefined(t)?e.getEventSourceCore(t):null},e.getEventSourceByPosition=function(t){if(!i.isDefined(t))return null;if(!document.elementFromPoint)return e.getEventSourceCore(t);var n=e.getEventX(t)-(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollLeft():0),r=e.getEventY(t)-(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollTop():0);return void 0===n||void 0===r?e.getEventSourceCore(t):document.elementFromPoint(n,r)},e.getEventSourceCore=function(e){return e.srcElement?e.srcElement:e.target},e.getMouseWheelEventName=function(){return r.Browser.Safari?"mousewheel":r.Browser.NetscapeFamily&&r.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},e.isLeftButtonPressed=function(t){return!!s.TouchUtils.isTouchEvent(t)||!!(t=r.Browser.IE&&i.isDefined(event)?event:t)&&(r.Browser.IE&&r.Browser.Version<11?!!r.Browser.MSTouchUI||t.button%2==1:r.Browser.WebKitFamily?"pointermove"===t.type||"pointerenter"===t.type||"pointerleave"===t.type?1===t.buttons:1===t.which:r.Browser.NetscapeFamily||r.Browser.Edge||r.Browser.IE&&r.Browser.Version>=11?e.isMoveEventName(t.type)?1===t.buttons:1===t.which:!r.Browser.Opera||0===t.button)},e.isMoveEventName=function(t){return t===s.TouchUtils.touchMouseMoveEventName||t===e.getMoveEventName()},e.getMoveEventName=function(){return window.PointerEvent?"pointermove":r.Browser.TouchUI?"touchmove":"mousemove"},e.preventEventAndBubble=function(t){e.preventEvent(t),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},e.clientEventRequiresDocScrollCorrection=function(){var e=r.Browser.Safari&&r.Browser.Version<3,t=r.Browser.MacOSMobilePlatform&&r.Browser.Version<5.1;return r.Browser.AndroidDefaultBrowser||r.Browser.AndroidChromeBrowser||!(e||t)},e.getEventX=function(t){return s.TouchUtils.isTouchEvent(t)?s.TouchUtils.getEventX(t):t.clientX+(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollLeft():0)},e.getEventY=function(t){return s.TouchUtils.isTouchEvent(t)?s.TouchUtils.getEventY(t):t.clientY+(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollTop():0)},e.cancelBubble=function(e){e.cancelBubble=!0},e.getWheelDelta=function(e){var t;return t=r.Browser.NetscapeFamily&&r.Browser.MajorVersion<17?-e.detail:r.Browser.Safari?e.wheelDelta:-e.deltaY,r.Browser.Opera&&r.Browser.Version<9&&(t=-t),t},e}();t.EvtUtils=a},9937:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonUtils=void 0;var n=function(){function e(){}return e.isValid=function(e){return!/[^,:{}[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(e.replace(/"(\\.|[^"\\])*"/g,""))},e}();t.JsonUtils=n},2153:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyCode=t.ModifierKey=t.KeyUtils=void 0;var r,i,o=n(9279),s=n(9712),a=n(49),c=function(){function e(){}return e.getKeyModifiers=function(e){var t=0;return e.altKey&&(t|=r.Alt),e.ctrlKey&&(t|=r.Ctrl),e.shiftKey&&(t|=r.Shift),e.metaKey&&(t|=r.Meta),t},e.getShortcutCode=function(e,t,n,i,o){var s=e;return s|=t?r.Ctrl:0,s|=n?r.Shift:0,s|=i?r.Alt:0,s|(o?r.Meta:0)},e.getShortcutCodeByEvent=function(t){return e.getShortcutCode(e.getEventKeyCode(t),t.ctrlKey,t.shiftKey,t.altKey,!!o.Browser.MacOSPlatform&&t.metaKey)},e.getEventKeyCode=function(e){return o.Browser.NetscapeFamily||o.Browser.Opera?e.which:e.keyCode},e.parseShortcutString=function(t){if(!t)return 0;var n=!1,r=!1,o=!1,c=!1,u=null,l=t.toString().split("+");if(l.length>0)for(var h=0;h<l.length;h++){var d=a.StringUtils.trim(l[h].toUpperCase());switch(d){case"CONTROL":case"CONTROLKEY":case"CTRL":n=!0;break;case"SHIFT":case"SHIFTKEY":r=!0;break;case"ALT":o=!0;break;case"CMD":c=!0;break;case"F1":u=i.F1;break;case"F2":u=i.F2;break;case"F3":u=i.F3;break;case"F4":u=i.F4;break;case"F5":u=i.F5;break;case"F6":u=i.F6;break;case"F7":u=i.F7;break;case"F8":u=i.F8;break;case"F9":u=i.F9;break;case"F10":u=i.F10;break;case"F11":u=i.F11;break;case"F12":u=i.F12;break;case"RETURN":case"ENTER":u=i.Enter;break;case"HOME":u=i.Home;break;case"END":u=i.End;break;case"LEFT":u=i.Left;break;case"RIGHT":u=i.Right;break;case"UP":u=i.Up;break;case"DOWN":u=i.Down;break;case"PAGEUP":u=i.PageUp;break;case"PAGEDOWN":u=i.PageDown;break;case"SPACE":u=i.Space;break;case"TAB":u=i.Tab;break;case"BACKSPACE":case"BACK":u=i.Backspace;break;case"CONTEXT":u=i.ContextMenu;break;case"ESCAPE":case"ESC":u=i.Esc;break;case"DELETE":case"DEL":u=i.Delete;break;case"INSERT":case"INS":u=i.Insert;break;case"PLUS":u="+".charCodeAt(0);break;default:u=d.charCodeAt(0)}}else alert(s.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return e.getShortcutCode(u,n,r,o,c)},e}();t.KeyUtils=c,function(e){e[e.None=0]="None",e[e.Ctrl=65536]="Ctrl",e[e.Shift=262144]="Shift",e[e.Alt=1048576]="Alt",e[e.Meta=16777216]="Meta"}(r=t.ModifierKey||(t.ModifierKey={})),function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Pause=19]="Pause",e[e.CapsLock=20]="CapsLock",e[e.Esc=27]="Esc",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.Left=37]="Left",e[e.Up=38]="Up",e[e.Right=39]="Right",e[e.Down=40]="Down",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Key_0=48]="Key_0",e[e.Key_1=49]="Key_1",e[e.Key_2=50]="Key_2",e[e.Key_3=51]="Key_3",e[e.Key_4=52]="Key_4",e[e.Key_5=53]="Key_5",e[e.Key_6=54]="Key_6",e[e.Key_7=55]="Key_7",e[e.Key_8=56]="Key_8",e[e.Key_9=57]="Key_9",e[e.Key_a=65]="Key_a",e[e.Key_b=66]="Key_b",e[e.Key_c=67]="Key_c",e[e.Key_d=68]="Key_d",e[e.Key_e=69]="Key_e",e[e.Key_f=70]="Key_f",e[e.Key_g=71]="Key_g",e[e.Key_h=72]="Key_h",e[e.Key_i=73]="Key_i",e[e.Key_j=74]="Key_j",e[e.Key_k=75]="Key_k",e[e.Key_l=76]="Key_l",e[e.Key_m=77]="Key_m",e[e.Key_n=78]="Key_n",e[e.Key_o=79]="Key_o",e[e.Key_p=80]="Key_p",e[e.Key_q=81]="Key_q",e[e.Key_r=82]="Key_r",e[e.Key_s=83]="Key_s",e[e.Key_t=84]="Key_t",e[e.Key_u=85]="Key_u",e[e.Key_v=86]="Key_v",e[e.Key_w=87]="Key_w",e[e.Key_x=88]="Key_x",e[e.Key_y=89]="Key_y",e[e.Key_z=90]="Key_z",e[e.Windows=91]="Windows",e[e.ContextMenu=93]="ContextMenu",e[e.Numpad_0=96]="Numpad_0",e[e.Numpad_1=97]="Numpad_1",e[e.Numpad_2=98]="Numpad_2",e[e.Numpad_3=99]="Numpad_3",e[e.Numpad_4=100]="Numpad_4",e[e.Numpad_5=101]="Numpad_5",e[e.Numpad_6=102]="Numpad_6",e[e.Numpad_7=103]="Numpad_7",e[e.Numpad_8=104]="Numpad_8",e[e.Numpad_9=105]="Numpad_9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.Decimal=110]="Decimal",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.Semicolon=186]="Semicolon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.ForwardSlash=191]="ForwardSlash",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.BackSlash=220]="BackSlash",e[e.CloseBracket=221]="CloseBracket",e[e.SingleQuote=222]="SingleQuote"}(i=t.KeyCode||(t.KeyCode={}))},2940:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListUtils=void 0;var r=n(6799),i=n(4170),o=function(){function e(){}return e.remove=function(e,t){var n=e.indexOf(t,0);n>=0&&e.splice(n,1)},e.removeBy=function(e,t){for(var n=e.length,r=0;r<n;r++)if(t(e[r],r))return e.splice(r,1)[0];return null},e.shallowCopy=function(e){return e.slice()},e.deepCopy=function(t){return e.map(t,function(e){return e.clone()})},e.initByValue=function(e,t){for(var n=[];e>0;e--)n.push(t);return n},e.initByCallback=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},e.forEachOnInterval=function(e,t){for(var n=e.end,r=e.start;r<n;r++)t(r)},e.reverseForEachOnInterval=function(e,t){for(var n=e.start,r=e.end-1;r>=n;r--)t(r)},e.reducedMap=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=[],o=n;o<r;o++){var s=t(e[o],o);null!==s&&i.push(s)}return i},e.filter=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=[],o=n;o<r;o++){var s=e[o];t(s,o)&&i.push(s)}return i},e.map=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=[],o=n;o<r;o++)i.push(t(e[o],o));return i},e.indexBy=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++)if(t(e[i],i))return i;return-1},e.reverseIndexBy=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(t(e[i],i))return i;return-1},e.elementBy=function(t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);var o=e.indexBy(t,n,r,i);return o<0?null:t[o]},e.reverseElementBy=function(t,n,r,i){void 0===r&&(r=t.length-1),void 0===i&&(i=0);var o=e.reverseIndexBy(t,n,r,i);return o<0?null:t[o]},e.last=function(e){return e[e.length-1]},e.setLast=function(e,t){return e[e.length-1]=t},e.incLast=function(e){return++e[e.length-1]},e.decLast=function(e){return--e[e.length-1]},e.equals=function(t,n){return t.length===n.length&&e.allOf2(t,n,function(e,t){return e.equals(t)})},e.equalsByReference=function(e,t){var n=e.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0},e.unique=function(t,n,r,i){void 0===r&&(r=n),void 0===i&&(i=function(){});var o=t.length;if(0===o)return[];var s=(t=t.sort(n))[0],a=e.reducedMap(t,function(e){return 0!==r(s,e)?(s=e,e):(i(e),null)},1,o);return a.unshift(t[0]),a},e.uniqueNumber=function(e){e=e.sort(i.Comparers.number);for(var t=Number.NaN,n=e.length-1;n>=0;n--)t===e[n]?e.splice(n,1):t=e[n];return e},e.forEach=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++)t(e[i],i)},e.forEach2=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=r;o<i;o++)n(e[o],t[o],o)},e.reverseForEach=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)t(e[i],i)},e.reverseIndexOf=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(e[i]===t)return i;return-1},e.accumulate=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=t,s=r;s<i;s++)o=n(o,e[s],s);return o},e.accumulateNumber=function(e,t,n,r,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=n,s=r;s<i;s++)o+=t(e[s],s,o);return o},e.anyOf=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++)if(t(e[i],i))return!0;return!1},e.unsafeAnyOf=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++){var o=t(e[i],i);if(o)return o}return null},e.reverseAnyOf=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--)if(t(e[i],i))return!0;return!1},e.unsafeReverseAnyOf=function(e,t,n,r){void 0===n&&(n=e.length-1),void 0===r&&(r=0);for(var i=n;i>=r;i--){var o=t(e[i],i);if(o)return o}return null},e.anyOf2=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=r;o<i;o++)if(n(e[o],t[o],o))return!0;return!1},e.allOf=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=n;i<r;i++)if(!t(e[i],i))return!1;return!0},e.allOf2=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length);for(var o=r;o<i;o++)if(!n(e[o],t[o],o))return!1;return!0},e.allOfOnInterval=function(e,t){for(var n=e.end,r=e.start;r<n;r++)if(!t(r))return!1;return!0},e.addListOnTail=function(e,t){for(var n=0,r=void 0;r=t[n];n++)e.push(r);return e},e.joinLists=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.accumulate(n,[],function(n,r){return e.addListOnTail(n,t(r)),n})},e.push=function(e,t){return e.push(t),e},e.countIf=function(t,n){return e.accumulateNumber(t,function(e,t){return n(e,t)?1:0})},e.clear=function(e){e.splice(0)},e.merge=function(e,t,n,r,i,o){if(void 0===i&&(i=0),void 0===o&&(o=e.length),e=e.slice(i,o),o-i<2)return e;for(var s=(e=e.sort(t))[i],a=[s],c=i+1;c<o;c++){var u=e[c];n(s,u)?r(s,u):(s=u,a.push(s))}return a},e.min=function(t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);var o=e.minExtended(t,n,r,i);return o?o.minElement:null},e.max=function(t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=t.length);var o=e.maxExtended(t,n,r,i);return o?o.maxElement:null},e.minMax=function(t,n,i,o){void 0===i&&(i=0),void 0===o&&(o=t.length);var s=e.minMaxExtended(t,n,i,o);return s?new r.MinMax(s.minElement,s.maxElement):null},e.minExtended=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var o=e[n],s=t(o),a=n+1;a<i;a++){var c=e[a],u=t(c);u<s&&(s=u,o=c)}return new r.ExtendedMin(o,s)},e.maxExtended=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var o=e[n],s=t(o),a=n+1;a<i;a++){var c=e[a],u=t(c);u>s&&(s=u,o=c)}return new r.ExtendedMax(o,s)},e.minMaxExtended=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var o=e[n],s=o,a=t(o),c=a,u=n+1;u<i;u++){var l=e[u],h=t(l);h<a?(a=h,o=l):h>c&&(c=h,s=l)}return new r.ExtendedMinMax(o,a,s,c)},e.minByCmp=function(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),0===e.length)return null;for(var i=e[n],o=n+1;o<r;o++){var s=e[o];t(s,i)<0&&(i=s)}return i},e.maxByCmp=function(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),0===e.length)return null;for(var i=e[n],o=n+1;o<r;o++){var s=e[o];t(s,i)>0&&(i=s)}return i},e.minMaxByCmp=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var o=e[n],s=o,a=n+1;a<i;a++){var c=e[a],u=t(c,o);u>0?s=c:u<0&&(o=c)}return new r.MinMax(o,s)},e}();t.ListUtils=o},8679:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MathUtils=void 0;var r=n(2940),i=function(){function e(){}return e.round=function(t,n){void 0===n&&(n=0);var r=e.powFactor[n];return Math.round(t*r)/r},e.numberCloseTo=function(e,t,n){return void 0===n&&(n=1e-5),Math.abs(e-t)<n},e.restrictValue=function(e,t,n){return n<t&&(n=t),e>n?n:e<t?t:e},e.getRandomInt=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},e.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},e.powFactor=r.ListUtils.initByCallback(20,function(e){return Math.pow(10,e)}),e.somePrimes=[1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003],e}();t.MathUtils=i},49:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var n=function(){function e(){}return e.isAlpha=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"},e.isDigit=function(e){return e>="0"&&e<="9"},e.stringHashCode=function(e){var t=0;if(0===e.length)return t;for(var n=e.length,r=0;r<n;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t},e.endsAt=function(e,t){var n=e.length-1,r=t.length-1,i=n-r;if(i<0)return!1;for(;n>=i;n--,r--)if(e[n]!==t[r])return!1;return!0},e.startsAt=function(e,t){return e.substr(0,t.length)===t},e.stringInLowerCase=function(e){return e.toLowerCase()===e},e.stringInUpperCase=function(e){return e.toUpperCase()===e},e.atLeastOneSymbolInUpperCase=function(t){for(var n=0,r=void 0;r=t[n];n++)if(e.stringInUpperCase(r)&&!e.stringInLowerCase(r))return!0;return!1},e.getSymbolFromEnd=function(e,t){return e[e.length-t]},e.trim=function(t,n){if(void 0===n)return e.trimInternal(t,!0,!0);var r=n.join("");return t.replace(new RegExp("(^["+r+"]*)|(["+r+"]*$)","g"),"")},e.trimStart=function(t,n){if(void 0===n)return e.trimInternal(t,!0,!1);var r=n.join("");return t.replace(new RegExp("^["+r+"]*","g"),"")},e.trimEnd=function(t,n){if(void 0===n)return e.trimInternal(t,!1,!0);var r=n.join("");return t.replace(new RegExp("["+r+"]*$","g"),"")},e.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},e.repeat=function(e,t){return new Array(t<=0?0:t+1).join(e)},e.isNullOrEmpty=function(e){return!e||!e.length},e.padLeft=function(t,n,r){return e.repeat(r,Math.max(0,n-t.length))+t},e.trimInternal=function(e,t,n){var r=e.length;if(!r)return e;if(r<764833){var i=e;return t&&(i=i.replace(/^\s+/,"")),n&&(i=i.replace(/\s+$/,"")),i}var o=0;if(n)for(;r>0&&/\s/.test(e[r-1]);)r--;if(t&&r>0)for(;o<r&&/\s/.test(e[o]);)o++;return e.substring(o,r)},e}();t.StringUtils=n},1632:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TouchUtils=void 0;var r=n(9279),i=n(2491),o=function(){function e(){}return e.onEventAttachingToDocument=function(t,n){return!r.Browser.MacOSMobilePlatform||!e.isTouchEventName(t)||(e.documentTouchHandlers[t]||(e.documentTouchHandlers[t]=[]),e.documentTouchHandlers[t].push(n),e.documentEventAttachingAllowed)},e.isTouchEventName=function(e){return r.Browser.WebKitTouchUI&&(e.indexOf("touch")>-1||e.indexOf("gesture")>-1)},e.isTouchEvent=function(e){return r.Browser.WebKitTouchUI&&i.isDefined(e.changedTouches)},e.getEventX=function(e){return r.Browser.IE?e.pageX:e.changedTouches[0].pageX},e.getEventY=function(e){return r.Browser.IE?e.pageY:e.changedTouches[0].pageY},e.touchMouseDownEventName=r.Browser.WebKitTouchUI?"touchstart":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",e.touchMouseUpEventName=r.Browser.WebKitTouchUI?"touchend":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",e.touchMouseMoveEventName=r.Browser.WebKitTouchUI?"touchmove":r.Browser.Edge&&r.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",e.msTouchDraggableClassName="dxMSTouchDraggable",e.documentTouchHandlers={},e.documentEventAttachingAllowed=!0,e}();t.TouchUtils=o},8721:(e,t,n)=>{n.r(t)},639:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BarManager=void 0;var n=function(){function e(e,t){this.commandManager=e,this.bars=t}return e.prototype.updateContextMenu=function(){for(var e=0,t=void 0;t=this.bars[e];e++)if(t.isContextMenu()){t.updateItemsList();for(var n=t.getCommandKeys(),r=0;r<n.length;r++)this.updateBarItem(t,n[r])}},e.prototype.updateItemsState=function(e){for(var t=!!e.length,n=function(n,i){if(i.isVisible()){for(var o=i.getCommandKeys(),s=function(n){if(t&&!e.filter(function(e){return e==o[n]}).length)return"continue";r.updateBarItem(i,o[n])},a=0;a<o.length;a++)s(a);i.completeUpdate()}},r=this,i=0,o=void 0;o=this.bars[i];i++)n(0,o)},e.prototype.updateBarItem=function(e,t){var n=this.commandManager.getCommand(t);if(n){var r=n.getState();e.setItemVisible(t,r.visible),r.visible&&(e.setItemEnabled(t,r.enabled),e.setItemValue(t,r.value))}},e}();t.BarManager=n},3290:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GanttClientCommand=void 0,function(e){e[e.CreateTask=0]="CreateTask",e[e.CreateSubTask=1]="CreateSubTask",e[e.RemoveTask=2]="RemoveTask",e[e.RemoveDependency=3]="RemoveDependency",e[e.TaskInformation=4]="TaskInformation",e[e.TaskAddContextItem=5]="TaskAddContextItem",e[e.Undo=6]="Undo",e[e.Redo=7]="Redo",e[e.ZoomIn=8]="ZoomIn",e[e.ZoomOut=9]="ZoomOut",e[e.FullScreen=10]="FullScreen",e[e.CollapseAll=11]="CollapseAll",e[e.ExpandAll=12]="ExpandAll",e[e.ResourceManager=13]="ResourceManager",e[e.ToggleResources=14]="ToggleResources",e[e.ToggleDependencies=15]="ToggleDependencies"}(t.GanttClientCommand||(t.GanttClientCommand={}))},3756:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.CollapseAllCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.collapseAll(),!0},t.prototype.isEnabled=function(){return!0},t}(i.CommandBase);t.CollapseAllCommand=s},6585:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandAllCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.expandAll(),!0},t.prototype.isEnabled=function(){return!0},t}(i.CommandBase);t.ExpandAllCommand=s},9687:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommandBase=void 0;var n=function(){function e(e){this.control=e}return Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.control.modelManipulator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"history",{get:function(){return this.control.history},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationController",{get:function(){return this.control.validationController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state||(this._state=this.getState()),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!this.state.enabled)return!1;var n=this.executeInternal.apply(this,e);return n&&this.control.barManager.updateItemsState([]),n},e.prototype.isEnabled=function(){return this.control.settings.editing.enabled},e.prototype.executeInternal=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];throw new Error("Not implemented")},e}();t.CommandBase=n},7156:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommandManager=void 0;var r=n(5237),i=n(126),o=n(5477),s=n(6152),a=n(3290),c=n(3756),u=n(6585),l=n(4118),h=n(3044),d=n(9762),f=n(7823),p=n(3250),A=n(9072),g=n(1955),m=n(1757),y=n(7977),v=n(9793),b=n(358),w=n(9791),C=n(3936),_=n(5258),S=n(2018),x=n(4195),T=n(2714),P=n(299),E=n(2231),I=function(){function e(e){this.control=e,this.commands={},this.createCommand(a.GanttClientCommand.CreateTask,this.createTaskCommand),this.createCommand(a.GanttClientCommand.CreateSubTask,this.createSubTaskCommand),this.createCommand(a.GanttClientCommand.RemoveTask,this.removeTaskCommand),this.createCommand(a.GanttClientCommand.RemoveDependency,this.removeDependencyCommand),this.createCommand(a.GanttClientCommand.TaskInformation,this.showTaskEditDialog),this.createCommand(a.GanttClientCommand.ResourceManager,this.showResourcesDialog),this.createCommand(a.GanttClientCommand.TaskAddContextItem,new T.TaskAddContextItemCommand(this.control)),this.createCommand(a.GanttClientCommand.Undo,new A.UndoCommand(this.control)),this.createCommand(a.GanttClientCommand.Redo,new p.RedoCommand(this.control)),this.createCommand(a.GanttClientCommand.ZoomIn,new P.ZoomInCommand(this.control)),this.createCommand(a.GanttClientCommand.ZoomOut,new E.ZoomOutCommand(this.control)),this.createCommand(a.GanttClientCommand.FullScreen,new f.ToggleFullScreenCommand(this.control)),this.createCommand(a.GanttClientCommand.CollapseAll,new c.CollapseAllCommand(this.control)),this.createCommand(a.GanttClientCommand.ExpandAll,new u.ExpandAllCommand(this.control)),this.createCommand(a.GanttClientCommand.ToggleResources,this.toggleResources),this.createCommand(a.GanttClientCommand.ToggleDependencies,this.toggleDependencies)}return Object.defineProperty(e.prototype,"createTaskCommand",{get:function(){return new _.CreateTaskCommand(this.control)}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createSubTaskCommand",{get:function(){return new C.CreateSubTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"removeTaskCommand",{get:function(){return new x.RemoveTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateTaskCommand",{get:function(){return new S.UpdateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createDependencyCommand",{get:function(){return new l.CreateDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"removeDependencyCommand",{get:function(){return new h.RemoveDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createResourceCommand",{get:function(){return new m.CreateResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"removeResourceCommand",{get:function(){return new b.RemoveResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"assignResourceCommand",{get:function(){return new g.AssignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deassignResourceCommand",{get:function(){return new y.DeassignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeResourceColorCommand",{get:function(){return new v.ResourceColorCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showTaskEditDialog",{get:function(){return new s.TaskEditDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showConstraintViolationDialog",{get:function(){return new i.ConstraintViolationDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showConfirmationDialog",{get:function(){return new r.ConfirmationDialog(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResourcesDialog",{get:function(){return new o.ResourcesDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toggleResources",{get:function(){return new w.ToggleResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toggleDependencies",{get:function(){return new d.ToggleDependenciesCommand(this.control)},enumerable:!1,configurable:!0}),e.prototype.getCommand=function(e){return this.commands[e]},e.prototype.createCommand=function(e,t){this.commands[e]=t},e}();t.CommandManager=I},4118:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateDependencyCommand=void 0;var r=n(655),i=n(5950),o=n(3279),s=n(1211),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t,n,r){return e.prototype.execute.call(this,t,n,r)},t.prototype.executeInternal=function(e,t,n){if(this.control.viewModel.dependencies.items.filter(function(n){return n.predecessorId===e&&n.successorId===t||n.successorId===e&&n.predecessorId===t}).length)return!1;var r=new o.DependencyInsertingArguments(e,t,n);if(this.modelManipulator.dispatcher.notifyDependencyInserting(r),r.cancel)return!1;if(e=r.predecessorId,t=r.successorId,n=r.type,this.control.history.beginTransaction(),this.history.addAndRedo(new s.InsertDependencyHistoryItem(this.modelManipulator,e,t,n)),this.control.isValidateDependenciesRequired()){var a=this.control.viewModel.tasks.getItemById(e);n===i.DependencyType.SF||n===i.DependencyType.SS?this.control.validationController.moveStartDependTasks(e,a.start):this.control.validationController.moveEndDependTasks(e,a.end)}return this.control.history.endTransaction(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyInsert},t}(n(2291).DependencyCommandBase);t.CreateDependencyCommand=a},2291:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyCommandBase=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t}(i.CommandBase);t.DependencyCommandBase=s},3044:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveDependencyCommand=void 0;var r=n(655),i=n(9544),o=n(5139),s=n(4797),a=n(5865),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t,n){var r=this;return void 0===n&&(n=!0),n?(this.control.commandManager.showConfirmationDialog.execute(new o.ConfirmationDialogParameters(i.ConfirmationType.DependencyDelete,function(){r.executeInternal(t)})),!1):e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(e){if(null!=(e=e||this.control.taskEditController.dependencyId)){var t=this.control.viewModel.dependencies.items.filter(function(t){return t.internalId===e})[0];if(t){var n=new s.DependencyRemovingArguments(t);if(this.modelManipulator.dispatcher.notifyDependencyRemoving(n),!n.cancel)return this.history.addAndRedo(new a.RemoveDependencyHistoryItem(this.modelManipulator,e)),e===this.control.taskEditController.dependencyId&&this.control.taskEditController.selectDependency(null),this.control.barManager.updateItemsState([]),!0}}return!1},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyDelete},t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.enabled&&null!=this.control.taskEditController.dependencyId,t},t}(n(2291).DependencyCommandBase);t.RemoveDependencyCommand=c},9762:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleDependenciesCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.toggleDependencies(),!0},t}(i.CommandBase);t.ToggleDependenciesCommand=s}
21,7823:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleFullScreenCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isInFullScreenMode=!1,t.fullScreenTempVars={},t}return r.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(!0);return e.value=this.control.fullScreenModeHelper.isInFullScreenMode,e},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.fullScreenModeHelper.toggle(),!0},t}(i.CommandBase);t.ToggleFullScreenCommand=s},3250:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RedoCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.isEnabled());return e.visible=this.control.settings.editing.enabled,e},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.history.redo(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.history.canRedo()},t}(i.CommandBase);t.RedoCommand=s},9072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UndoCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.isEnabled());return e.visible=this.control.settings.editing.enabled,e},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.history.undo(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.history.canUndo()},t}(i.CommandBase);t.UndoCommand=s},1955:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AssignResourceCommand=void 0;var r=n(655),i=n(1389),o=n(3683),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t,n){return e.prototype.execute.call(this,t,n)},t.prototype.executeInternal=function(e,t){if(!this.control.viewModel.assignments.items.filter(function(n){return n.resourceId===e&&n.taskId===t})[0]){var n=this.control.viewModel,r=new i.ResourceAssigningArguments(n.convertInternalToPublicKey("resource",e),n.convertInternalToPublicKey("task",t));if(this.modelManipulator.dispatcher.notifyResourceAssigning(r),!r.cancel)return this.history.addAndRedo(new o.AssignResourceHistoryItem(this.modelManipulator,n.convertPublicToInternalKey("resource",r.resourceId),n.convertPublicToInternalKey("task",r.taskId))),!0}return!1},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},t}(n(200).ResourceCommandBase);t.AssignResourceCommand=s},1757:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateResourceCommand=void 0;var r=n(655),i=n(990),o=n(2961),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t,n,r){return void 0===n&&(n=""),e.prototype.execute.call(this,t,n,r)},t.prototype.executeInternal=function(e,t,n){void 0===t&&(t="");var r=new i.ResourceInsertingArguments(e,t);return this.modelManipulator.dispatcher.notifyResourceCreating(r),r.cancel||this.history.addAndRedo(new o.CreateResourceHistoryItem(this.modelManipulator,r.text,r.color,n)),!r.cancel},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceInsert},t}(n(200).ResourceCommandBase);t.CreateResourceCommand=s},7977:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DeassignResourceCommand=void 0;var r=n(655),i=n(1493),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t){return e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(e){var t=this.control.viewM
21odel.assignments.items.filter(function(t){return t.internalId===e})[0];return!(!t||!this.modelManipulator.dispatcher.fireResourceUnassigning(t))&&(this.history.addAndRedo(new i.DeassignResourceHistoryItem(this.modelManipulator,e)),!0)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},t}(n(200).ResourceCommandBase);t.DeassignResourceCommand=o},9793:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceColorCommand=void 0;var r=n(655),i=n(4641),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t,n){return e.prototype.execute.call(this,t,n)},t.prototype.executeInternal=function(e,t){return this.control.viewModel.resources.getItemById(e).color!==t&&(this.history.addAndRedo(new i.ResourceColorHistoryItem(this.modelManipulator,e,t)),!0)},t}(n(9876).ResourcePropertyCommandBase);t.ResourceColorCommand=o},9876:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePropertyCommandBase=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceUpdate},t}(i.CommandBase);t.ResourcePropertyCommandBase=s},358:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveResourceCommand=void 0;var r=n(655),i=n(9748),o=n(7466),s=n(1493),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t){return e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(e){var t=this,n=this.control.viewModel.resources.items.filter(function(t){return t.internalId===e})[0];if(n){var r=new i.ResourceRemovingArguments(n);if(this.modelManipulator.dispatcher.notifyResourceRemoving(r),!r.cancel){var a=new o.RemoveResourceHistoryItem(this.modelManipulator,e);return this.control.viewModel.assignments.items.filter(function(t){return t.resourceId===e}).forEach(function(e){t.modelManipulator.dispatcher.fireResourceUnassigning(e)&&a.add(new s.DeassignResourceHistoryItem(t.modelManipulator,e.internalId))}),this.history.addAndRedo(a),!0}}return!1},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceDelete},t}(n(200).ResourceCommandBase);t.RemoveResourceCommand=a},200:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceCommandBase=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t}(i.CommandBase);t.ResourceCommandBase=s},9791:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleResourceCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.toggleResources(),!0},t}(i.CommandBase);t.ToggleResourceCommand=s},4409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleCommandState=void 0;var n=function(e,t){this.visible=!0,this.enabled=e,this.value=t};t.SimpleCommandState=n},3936:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateSubTaskCommand=void 0;var r=n(655),i=n(4605),o=n(1284),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t){return e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(t){t=t||this.control.currentSelectedTaskID;var n=this.control.viewModel.findItem(t);if(n.selected){var r={start:new Date(n.task.start.getTime()),end:new Date(n.task.end.getTime()),title:"New task",progress:0,parentId:t},s=new i.TaskInsertingArguments(null,r);if(this.modelManipulator.dispatcher.notifyTaskCreating(s),!s.cancel){this.history.addAndRedo(new o.CreateTaskHistoryItem(this.modelManipulator,s));
21var a=this.control.viewModel.findItem(r.parentId);e.prototype.updateParent.call(this,a)}return!s.cancel}return!1},t.prototype.isEnabled=function(){var t=this.control,n=t.viewModel.findItem(t.currentSelectedTaskID);return e.prototype.isEnabled.call(this)&&!!n&&n.selected},t.prototype.getState=function(){var t=e.prototype.getState.call(this),n=this.control;return t.visible=t.visible&&n.settings.editing.allowTaskInsert,t},t}(n(9254).TaskCommandBase);t.CreateSubTaskCommand=s},5258:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateTaskCommand=void 0;var r=n(655),i=n(4605),o=n(1284),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t){return e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(t){var n,r;if(null!=t||(t={}),!t.parentId){var s=this.control.viewModel.findItem(this.control.currentSelectedTaskID),a=s&&s.task;a&&(t.parentId=a.parentId)}var c=this.control.viewModel.findItem(t.parentId)||this.control.viewModel.items[0],u=c&&c.task;t.start||(t.start=u?new Date(u.start.getTime()):new Date(this.control.range.start.getTime())),t.end||(t.end=u?new Date(u.end.getTime()):new Date(this.control.range.end.getTime())),null!==(n=t.title)&&void 0!==n||(t.title="New task"),null!==(r=t.progress)&&void 0!==r||(t.progress=0);var l=new i.TaskInsertingArguments(null,t);if(this.modelManipulator.dispatcher.notifyTaskCreating(l),!l.cancel){this.history.addAndRedo(new o.CreateTaskHistoryItem(this.modelManipulator,l));var h=this.control.viewModel.findItem(t.parentId);e.prototype.updateParent.call(this,h)}return!l.cancel},t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.visible&&this.control.settings.editing.allowTaskInsert,t},t}(n(9254).TaskCommandBase);t.CreateTaskCommand=s},4195:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveTaskCommand=void 0;var r=n(655),i=n(9544),o=n(5139),s=n(4642),a=n(5865),c=n(1493),u=n(9599),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t,n,r,s,a,c){var u=this;return void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===s&&(s=!0),this.isApiCall=r,this.isUpdateParentTaskRequired=s,n?(this.control.commandManager.showConfirmationDialog.execute(new o.ConfirmationDialogParameters(i.ConfirmationType.TaskDelete,function(){u.executeInternal(t,a,c)})),!1):e.prototype.execute.call(this,t,a,c)},t.prototype.executeInternal=function(n,r,i){var o=this,l=i||[];n=n||this.control.currentSelectedTaskID;var h=this.control.viewModel.findItem(n),d=h?h.task:this.control.viewModel.tasks.getItemById(n),f=new s.TaskRemovingArguments(d);if(this.modelManipulator.dispatcher.notifyTaskRemoving(f),f.cancel)return!1;var p=this.history,A=this.control.viewModel;p.beginTransaction(),A.beginUpdate();var g=!!r,m=new u.RemoveTaskHistoryItem(this.modelManipulator,n),y=A.tasks.items.filter(function(e){return e.parentId===n}),v=y.map(function(e){return e.internalId}),b=A.dependencies.items.filter(function(e){return-1===l.indexOf(e.internalId)&&(e.predecessorId===n||e.successorId===n)&&!v.some(function(t){return e.predecessorId===t||e.successorId===t})});if(b.length){if(!this.control.settings.editing.allowDependencyDelete)return!1;b.forEach(function(e){m.add(new a.RemoveDependencyHistoryItem(o.modelManipulator,e.internalId)),l.push(e.internalId)})}if(A.assignments.items.filter(function(e){return e.taskId===n}).forEach(function(e){o.modelManipulator.dispatcher.fireResourceUnassigning(e)&&m.add(new c.DeassignResourceHistoryItem(o.modelManipulator,e.internalId))}),y.reverse().forEach(function(e){return new t(o.control).execute(e.internalId,!1,!0,!1,m,l)}),g?r.add(m):p.addAndRedo(m),this.isUpdateParentTaskRequired){var w=this.control.viewModel.findItem(d.parentId);e.prototype.updateParent.call(this,w)}return p.endTransaction(),A.endUpdate(),!0},t.prototype.isEnabled=function(){var t=this.control,n=t.viewModel.findItem(t.currentSelectedTaskID);return e.prototype.isEnabled.call(this)&&(!!n&&n.selected||this.isApiCall)},t.prototype.getState=function(){var t=e.prototype.getState.call(this),n=this.control;return t.visible=t.visible&&n.settings.editing.allowTaskDelete,t},t}(n(9254).TaskCommandBase);t.RemoveTaskCommand=l}
21,2714:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAddContextItemCommand=void 0;var r=n(655),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.visible&&this.control.settings.editing.allowTaskInsert,t},t.prototype.execute=function(){return!1},t}(n(9254).TaskCommandBase);t.TaskAddContextItemCommand=i},9254:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCommandBase=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isApiCall=!1,t}return r.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.isEnabled());return e.visible=this.control.settings.editing.enabled&&!this.control.taskEditController.dependencyId,e},t.prototype.updateParent=function(e){this.validationController._parentAutoCalc&&e&&e.children.length>0&&this.control.validationController.updateParentsIfRequired(e.children[0].task.internalId)},t}(i.CommandBase);t.TaskCommandBase=s},2018:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTaskCommand=void 0;var r=n(655),i=n(2491),o=n(9544),s=n(3433),a=n(5865),c=n(9496),u=n(9201),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(t,n){return e.prototype.execute.call(this,t,n)},t.prototype.executeInternal=function(e,t){var n=this.control.viewModel.tasks.getItemById(e);if(!n)return!1;var r=this.control.modelManipulator.dispatcher.raiseTaskUpdating(n,t,function(e){t.title=e.title,t.progress=e.progress,t.start=e.start,t.end=e.end,t.color=e.color});if(r){(0,i.isDefined)(t.start)&&(0,i.isDefined)(t.end)&&t.end.getTime()<t.start.getTime()&&(t.end=t.start),(0,i.isDefined)(t.progress)&&(t.progress=Math.max(Math.min(t.progress,100),0));var o=this.filterChangedValues(t,n);this.processDependecyValidation(o,n)}return r},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskUpdate},t.prototype.filterChangedValues=function(e,t){if(!e)return null;var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(0,i.isDefined)(e[r])&&t[r]!==e[r]&&(n[r]=e[r]);return n},t.prototype.processDependecyValidation=function(e,t){var n=this,r=function(r){n.onAfterValidationCallback(e,t,r)},o=this.control.isValidateDependenciesRequired();if(o){var a=[],c=(0,i.isDefined)(e.start)&&e.start!==t.start,u=(0,i.isDefined)(e.end)&&e.end!==t.end;c&&o&&(a=a.concat(this.control.validationController.checkStartDependencies(t.internalId,e.start))),u&&o&&(a=a.concat(this.control.validationController.checkEndDependencies(t.internalId,e.end))),a.length>0?this.control.commandManager.showConstraintViolationDialog.execute(new s.ConstraintViolationDialogParameters(a,r)):r(null)}else r(null)},t.prototype.onAfterValidationCallback=function(e,t,n){var r=this;if(!n||n.option!==o.ConstraintViolationOption.DoNothing||(delete e.start,delete e.end),Object.keys(e).length>0){this.history.beginTransaction(),(null==n?void 0:n.option)===o.ConstraintViolationOption.RemoveDependency&&n.validationErrors.forEach(function(e){return r.history.addAndRedo(new a.RemoveDependencyHistoryItem(r.modelManipulator,e.dependencyId))});var s=this.control.isValidateDependenciesRequired(),u=t.internalId,l=t.start,h=t.end;this.history.addAndRedo(new c.UpdateTaskHistoryItem(this.modelManipulator,u,e)),(0,i.isDefined)(e.start)&&s&&this.control.validationController.moveStartDependTasks(u,l),(0,i.isDefined)(e.end)&&s&&this.control.validationController.moveEndDependTasks(u,h),this.processAutoParentUpdate(u,e,l,h),this.history.endTransaction(),(null==n?void 0:n.option)!==o.ConstraintViolationOption.RemoveDependency&&(null==n?void 0:n.option)!==o.ConstraintViolationOption.KeepDependency||this.control.updateBarManager(),this.control.updateViewDataRange()}},t.prototype.processAutoParentUpdate=function(e,t,n,r){var o=(0,i.isDefined)(t.start),s=(0,i.isDefined)(t.end),a=(0,i.isDefined)(t.progress)||o||s,c=o?t.start.getTime()-n.getTime():null,l=s?t.end.getTime()-r.getTime():null,h=o&&0!==u.DateUtils.getTimezoneOffsetDiff(n,t.start),d=s&&0!==u.DateUtils.getTimezoneOffsetDiff(r,t.end),f=(h||d)&&Math.abs(l-c)===u.DateUtils.msPerHour;a?0===c||c!==l&&!f?this.validationController.updateParentsIfRequired(e):this.validationController.correctParentsOnChildMoving(e,c):this.control.updateOwnerInAutoParentMode()},t}(n(9254).TaskCommandBase);t.UpdateTaskCommand=l}
21,299:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomInCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.zoomIn(),!0},t}(i.CommandBase);t.ZoomInCommand=s},2231:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomOutCommand=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.zoomOut(),!0},t}(i.CommandBase);t.ZoomOutCommand=s},5237:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationDialog=void 0;var r=n(655),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.applyParameters=function(e,t){return this.history.beginTransaction(),t.callback(),this.history.endTransaction(),this.control.barManager.updateItemsState([]),!0},t.prototype.createParameters=function(e){return e},t.prototype.getDialogName=function(){return"Confirmation"},t}(n(4730).DialogBase);t.ConfirmationDialog=i},126:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintViolationDialogCommand=void 0;var r=n(655),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.applyParameters=function(e,t){return t.callback(e),!0},t.prototype.createParameters=function(e){return e},t.prototype.getDialogName=function(){return"ConstraintViolation"},t}(n(4730).DialogBase);t.ConstraintViolationDialogCommand=i},4730:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogBase=void 0;var r=n(655),i=n(9687),o=n(4409),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isApiCall=!1,t._canRefresh=!0,t}return r.__extends(t,e),t.prototype.execute=function(t,n){return void 0===t&&(t=void 0),void 0===n&&(n=!1),this.isApiCall=n,e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(e){return this.options=e,this.showDialog(e)},Object.defineProperty(t.prototype,"canRefresh",{get:function(){return this._canRefresh},enumerable:!1,configurable:!0}),t.prototype.refresh=function(){this.showDialog(this.options)},t.prototype.showDialog=function(e){var n=this,r=this.createParameters(e),i=r.clone();return!!this.onBeforeDialogShow(r)&&(t.activeInstance=this,this.control.showDialog(this.getDialogName(),r,function(e){e&&(n._canRefresh=!1,n.applyParameters(e,i),n._canRefresh=!0)},function(){delete t.activeInstance,n.afterClosing()}),!0)},t.prototype.onBeforeDialogShow=function(e){return!0},t.prototype.applyParameters=function(e,t){return!1},t.prototype.afterClosing=function(){},t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.activeInstance=null,t}(i.CommandBase);t.DialogBase=s},9544:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintViolationOption=t.ConfirmationType=void 0,function(e){e[e.TaskDelete=0]="TaskDelete",e[e.DependencyDelete=1]="DependencyDelete",e[e.ResourcesDelete=2]="ResourcesDelete"}(t.ConfirmationType||(t.ConfirmationType={})),function(e){e[e.DoNothing=0]="DoNothing",e[e.RemoveDependency=1]="RemoveDependency",e[e.KeepDependency=2]="KeepDependency"}(t.ConstraintViolationOption||(t.ConstraintViolationOption={}))},5139:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationDialogParameters=void 0;var r=n(655),i=function(e){function t(t,n){var r=e.call(this)||this;return r.type=t,r.callback=n,r}return r.__extends(t,e),t.prototype.clone=function(){var e=new t(this.type,this.callback);return e.message=this.message,e},t}(n(9705).DialogParametersBase);t.ConfirmationDialogParameters=i},3433:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintViolationDialogParameters=void 0;var r=n(655),i=function(e){function t(t,n){var r=e.call(this)||this;return r.validationErrors=t,r.callback=n,r}return r.__extends(t,e),t.prototype.clone=function(){var e=new t(this.validationErrors,this.callback);return e.option=this.option,e},Object.defineProperty(t.prototype,"hasCriticalErrors",{get:function(){var e;return null===(e=this.validationErrors)||void 0===e?void 0:e.some(function(e){return e.critical})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorsCount",{get:function(){var e;return null===(e=this.validationErrors)||void 0===e?void 0:e.length},enumerable:!1,configurable:!0}),t}(n(9705).DialogParametersBase);t.ConstraintViolationDialogParameters=i},9705:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogParametersBase=void 0;var n=function(){};t.DialogParametersBase=n},6711:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesDialogParameters=void 0;var r=n(655),i=n(8828),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.clone=function(){var e=new t;return e.resources=new i.ResourceCollection,e.resources.addRange(this.resources.items),e},t}(n(9705).DialogParametersBase);t.ResourcesDialogParameters=o},1563:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditParameters=void 0;var r=n(655),i=n(8828),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enableEdit=!0,t.enableRangeEdit=!0,t.isValidationRequired=!1,t.hiddenFields=[],t.readOnlyFields=[],t}return r.__extends(t,e),t.prototype.clone=function(){var e=new t;return e.id=this.id,e.title=this.title,e.progress=this.progress,e.start=this.start,e.end=this.end,e.assigned=new i.ResourceCollection,e.assigned.addRange(this.assigned.items),e.resources=new i.ResourceCollection,e.resources.addRange(this.resources.items),e.showResourcesDialogCommand=this.showResourcesDialogCommand,e.showTaskEditDialogCommand=this.showTaskEditDialogCommand,e.enableEdit=this.enableEdit,e.enableRangeEdit=this.enableRangeEdit,e.hiddenFields=this.hiddenFields.slice(),e.readOnlyFields=this.readOnlyFields.slice(),e.isValidationRequired=this.isValidationRequired,e.getCorrectDateRange=this.getCorrectDateRange,e},t}(n(9705).DialogParametersBase);t.TaskEditParameters=o},5477:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesDialogCommand=void 0;var r=n(655),i=n(8828),o=n(4730),s=n(9544),a=n(5139),c=n(6711),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.resourcesForDelete=[],t}return r.__extends(t,e),t.prototype.onBeforeDialogShow=function(e){return this.modelManipulator.dispatcher.raiseResourceManagerDialogShowing(e,function(t){e.resources=t.values.resources})},t.prototype.applyParameters=function(e,t){this.history.beginTransaction();for(var n=0;n<e.resources.length;n++)t.resources.getItemById(e.resources.getItem(n).internalId)||this.control.commandManager.createResourceCommand.execute(e.resources.getItem(n).text);for(n=0;n<t.resources.length;n++)e.resources.getItemById(t.resources.getItem(n).internalId)||this.resourcesForDelete.push(t.resources.getItem(n));return this.history.endTransaction(),!1},t.prototype.createParameters=function(e){this.callBack=e;var t=new c.ResourcesDialogParameters;return t.resources=new i.ResourceCollection,t.resources.addRange(this.control.viewModel.resources.items),t},t.prototype.afterClosing=function(){var e=this;if(this.resourcesForDelete.length){var t=this.control.commandManager.showConfirmationDialog,n=new a.ConfirmationDialogParameters(s.ConfirmationType.ResourcesDelete,function(){e.history.beginTransaction();for(var t=0;t<e.resourcesForDelete.length;t++)e.control.commandManager.removeResourceCommand.execute(e.resourcesForDelete[t].internalId);e.history.endTransaction()});n.message=this.resourcesForDelete.reduce(function(e,t){return r.__spreadArray(r.__spreadArray([],e,!0),[t.text],!1)},[]).join(", "),this.callBack&&(t.afterClosing=function(){delete o.DialogBase.activeInstance,e.callBack()}),t.execute(n)}else this.callBack&&this.callBack()},t.prototype.getDialogName=function(){return"Resources"},t}(o.DialogBase);t.ResourcesDialogCommand=u}
21,6152:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditDialogCommand=void 0;var r=n(655),i=n(8828),o=n(1389),s=n(3683),a=n(1493),c=n(4730),u=n(1563),l=n(2491),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.onBeforeDialogShow=function(e){return this.modelManipulator.dispatcher.raiseTaskTaskEditDialogShowing(e,function(t){var n=t.values;e.start=n.start,e.end=n.end,e.progress=n.progress,e.title=n.title,e.readOnlyFields=t.readOnlyFields,e.hiddenFields=t.hiddenFields})},t.prototype.applyParameters=function(e,t){var n=this;this.history.beginTransaction();var r=this.getUpdatedTaskData(e,t);Object.keys(r).length>0&&setTimeout(function(){return n.control.commandManager.updateTaskCommand.execute(t.id,r)},0);for(var i=0;i<e.assigned.length;i++)if(!t.assigned.getItemById(e.assigned.getItem(i).internalId)){var c=e.assigned.getItem(i).internalId,u=t.id,l=new o.ResourceAssigningArguments(c,u);this.modelManipulator.dispatcher.notifyResourceAssigning(l),l.cancel||this.history.addAndRedo(new s.AssignResourceHistoryItem(this.modelManipulator,l.resourceId,l.taskId))}var h=function(n){var r=t.assigned.getItem(n);
21if(!e.assigned.getItemById(r.internalId)){var i=d.control.viewModel.assignments.items.filter(function(e){return e.resourceId===r.internalId&&e.taskId===t.id})[0];d.modelManipulator.dispatcher.fireResourceUnassigning(i)&&d.history.addAndRedo(new a.DeassignResourceHistoryItem(d.modelManipulator,i.internalId))}},d=this;for(i=0;i<t.assigned.length;i++)h(i);return this.history.endTransaction(),!1},t.prototype.getUpdatedTaskData=function(e,t){var n={};return(0,l.isDefined)(e.title)&&t.title!==e.title&&(n.title=e.title),(0,l.isDefined)(e.progress)&&t.progress!==e.progress&&(n.progress=e.progress),(0,l.isDefined)(e.start)&&t.start!==e.start&&(n.start=e.start),(0,l.isDefined)(e.end)&&t.end!==e.end&&(n.end=e.end),n},t.prototype.createParameters=function(e){var t=this;e=e||this.control.viewModel.tasks.getItemById(this.control.currentSelectedTaskID);var n=new u.TaskEditParameters;return n.id=e.internalId,n.title=e.title,n.progress=e.progress,n.start=e.start,n.end=e.end,n.assigned=this.control.viewModel.getAssignedResources(e),n.resources=new i.ResourceCollection,n.resources.addRange(this.control.viewModel.resources.items),n.showResourcesDialogCommand=this.control.commandManager.showResourcesDialog,n.showTaskEditDialogCommand=this.control.commandManager.showTaskEditDialog,n.enableEdit=this.isTaskEditEnabled(),n.enableRangeEdit=this.isTaskRangeEditEnabled(e),n.isValidationRequired=this.control.isValidateDependenciesRequired(),n.getCorrectDateRange=function(e,n,r){return t.control.validationController.getCorrectDateRange(e,n,r)},n},t.prototype.isTaskEditEnabled=function(){var e=this.control.settings;return e.editing.enabled&&e.editing.allowTaskUpdate},t.prototype.isTaskRangeEditEnabled=function(e){return!this.control.viewModel.isTaskToCalculateByChildren(e.internalId)},t.prototype.isEnabled=function(){var e=this.control,t=e.viewModel.findItem(e.currentSelectedTaskID);return!!t&&t.selected||this.isApiCall},t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.visible&&!this.control.taskEditController.dependencyId,t},t.prototype.getDialogName=function(){return"TaskEdit"},t}(c.DialogBase);t.TaskEditDialogCommand=h},6893:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GanttExportCalculator=void 0;var r=n(8900),i=n(6907),o=n(2449),s=n(1855),a=n(4991),c=n(2485),u=n(3917),l=n(405),h=n(6995),d=n(5063),f=n(6032),p=n(8603),A=n(6997),g=n(8935),m=n(6353),y=n(3424),v=n(5763),b=n(7802),w=n(9895),C=n(2642),_=function(){function e(t,n){var r,i;this._owner=t,this._props=new A.GanttPdfExportProps(n),null!==(r=(i=this._props).margins)&&void 0!==r||(i.margins=new d.Margin(e._defaultPageMargin))}return Object.defineProperty(e.prototype,"chartTableScaleTopMatrix",{get:function(){var e;return null!==(e=this._chartTableScaleTopMatrix)&&void 0!==e||(this._chartTableScaleTopMatrix=this.calculateChartScaleMatrix(0)),this._chartTableScaleTopMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartTableScaleBottomMatrix",{get:function(){var e;return null!==(e=this._chartTableScaleBottomMatrix)&&void 0!==e||(this._chartTableScaleBottomMatrix=this.calculateChartScaleMatrix(1)),this._chartTableScaleBottomMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartTableBodyMatrix",{get:function(){return this._chartTableBodyMatrix||this.calculateChartTableBodyMatrix(),this._chartTableBodyMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListHeaderMatrix",{get:function(){return this._treeListHeaderMatrix||this.calculateTreeListTableHeaderMatrix(),this._treeListHeaderMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListBodyMatrix",{get:function(){return this._treeListBodyMatrix||this.calculateTreeListTableBodyMatrix(),this._treeListBodyMatrix},enumerable:!1,configurable:!0}),e.prototype.getPages=function(e){return new y.PdfGanttPaginator(e,this.settings,this.createGlobalInfo()).getPages()},Object.defineProperty(e.prototype,"settings",{get:function(){return this.settingsForPaging},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layoutCalculator",{get:function(){return this._taskAreaHelper.layoutCalculator}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaHelper",{get:function(){var e;return null!==(e=this._taskAreaHelper)&&void 0!==e||(this._taskAreaHelper=new p.TaskAreaExportHelper(this._owner,this._props)),this._taskAreaHelper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scalingHelper",{get:function(){var e,t;return null!==(e=this._scalingHelper)&&void 0!==e||(this._scalingHelper=new v.ScalingHelper(null===(t=this._props)||void 0===t?void 0:t.pdfDoc)),this._scalingHelper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTaskIndices",{get:function(){return this.taskAreaHelper.visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellWidth",{get:function(){return this.taskAreaHelper.baseCellSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellHeight",{get:function(){return this.taskAreaHelper.baseCellHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartScaleTableStyle",{get:function(){var e;return null!==(e=this._chartScaleTableStyle)&&void 0!==e||(this._chartScaleTableStyle=this.getChartScaleTableStyle()),this._chartScaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartMainTableStyle",{get:function(){var e;return null!==(e=this._chartMainTableStyle)&&void 0!==e||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListTableStyle",{get:function(){return this._treeListTableStyle||this.calculateTreeListTableStyle(),this._treeListTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageTopMargin",{get:function(){return this._props.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageLeftMargin",{get:function(){return this._props.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageRightMargin",{get:function(){return this._props.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBottomMargin",{get:function(){return this._props.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerTableTop",{get:function(){var e;return null!==(e=this._headerTableTop)&&void 0!==e||(this._headerTableTop=this.pageTopMargin),this._headerTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainTableTop",{get:function(){var e;return null!==(e=this._mainTableTop)&&void 0!==e||(this._mainTableTop=this.getMainTableTop()),this._mainTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportDataMode",{get:function(){return this._props.exportDataMode},enumerable:!1,configurable:!0}),e.prototype.getMainTableTop=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.offsetTop},Object.defineProperty(e.prototype,"chartLeft",{get:function(){var e;return null!==(e=this._chartLeft)&&void 0!==e||(this._chartLeft=this.getChartLeft()),this._chartLeft},enumerable:!1,configurable:!0}),e.prototype.getChartLeft=function(){var e;return(((null===(e=this._props)||void 0===e?void 0:e.exportMode)||w.ExportMode.all)===w.ExportMode.chart?this.pageLeftMargin:this.treeListLeft+this.treeListWidth)-this.taskAreaHelper.offsetLeft},Object.defineProperty(e.prototype,"treeListLeft",{get:function(){var e;return null!==(e=this._treeListLeft)&&void 0!==e||(this._treeListLeft=this.pageLeftMargin),this._treeListLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerTableHeight",{get:function(){return 2*this.taskAreaHelper.headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainTableHeight",{get:function(){var e;return null!==(e=this._mainTableHeight)&&void 0!==e||(this._mainTableHeight=this.taskAreaHelper.taskAreaHeight),this._mainTableHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListWidth",{get:function(){var e;return null!==(e=this._treeListWidth)&&void 0!==e||(this._treeListWidth=this.getTreeListTableWidth()),this._treeListWidth}
21,enumerable:!1,configurable:!0}),e.prototype.getTreeListTableWidth=function(){var e,t=this,n=this.treeListHeaderMatrix[0].map(function(e,n){return t.getTreeListColumnWidth(n)});return null!==(e=null==n?void 0:n.reduce(function(e,t){return e+t},0))&&void 0!==e?e:0},Object.defineProperty(e.prototype,"chartWidth",{get:function(){var e=this;if(!this._chartWidth){var t=this.chartTableScaleBottomMatrix[0];this._chartWidth=t.reduce(function(t,n){return t+(n.styles.cellWidth.hasValue()?n.styles.cellWidth.getValue():e.baseCellWidth)},0)}return this._chartWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settingsForPaging",{get:function(){return this._settingsForPaging||(this._settingsForPaging=new A.GanttPdfExportProps(this._props),this.prepareAutoFormat(this._settingsForPaging),this.scalingHelper.scalePageMargins(this._settingsForPaging)),this._settingsForPaging},enumerable:!1,configurable:!0}),e.prototype.prepareAutoFormat=function(e){if(e.format===A.GanttPdfExportProps.autoFormatKey){e.format=null;var t=e.landscape,n=this.autoFormatWidth,r=this.autoFormatHeight;(t&&r>n||!t&&r<n)&&(e.landscape=!t),e.pageSize=new m.Size(n,r)}},Object.defineProperty(e.prototype,"autoFormatWidth",{get:function(){var t,n=((null===(t=this._props)||void 0===t?void 0:t.exportMode)||w.ExportMode.all)!==w.ExportMode.treeList,r=this.pageRightMargin;return(r+=n?this.chartLeft+this.chartWidth:this.treeListLeft+this.treeListWidth)+e._autoFormatWidthAddStock},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoFormatHeight",{get:function(){return this.mainTableTop+this.mainTableHeight+this.pageBottomMargin},enumerable:!1,configurable:!0}),e.prototype.createGlobalInfo=function(){var e={objects:this._canExportChart()?this.getGanttObjectsInfo():null,tables:this.getTablesInfo()};return this.scalingHelper.scaleSizes(e),e},e.prototype.getTablesInfo=function(){var e={};return this._canExportTreelist()&&(e[g.PdfPageTableNames.treeListHeader]=this.createTreeListHeaderTableInfo(),e[g.PdfPageTableNames.treeListMain]=this.createTreeListMainTableInfo()),this._canExportChart()&&(e[g.PdfPageTableNames.chartMain]=this.createChartMainTableInfo(),e[g.PdfPageTableNames.chartScaleTop]=this._createChartScaleTopInfo(),e[g.PdfPageTableNames.chartScaleBottom]=this._createChartScaleBottomInfo()),e},Object.defineProperty(e.prototype,"exportMode",{get:function(){var e,t;return null!==(t=null===(e=this._props)||void 0===e?void 0:e.exportMode)&&void 0!==t?t:w.ExportMode.all},enumerable:!1,configurable:!0}),e.prototype._canExportTreelist=function(){return this.exportMode===w.ExportMode.all||this.exportMode===w.ExportMode.treeList},e.prototype._canExportChart=function(){return this.exportMode===w.ExportMode.all||this.exportMode===w.ExportMode.chart},Object.defineProperty(e.prototype,"_predefinedFont",{get:function(){var e,t,n,r,i=null===(t=null===(e=this._props)||void 0===e?void 0:e.pdfDoc)||void 0===t?void 0:t.getFont();return(null==i?void 0:i.fontName)||(null===(r=null===(n=this._props)||void 0===n?void 0:n.font)||void 0===r?void 0:r.name)},enumerable:!1,configurable:!0}),e.prototype._createChartScaleTopInfo=function(){return{name:g.PdfPageTableNames.chartScaleTop,size:new m.Size(this.chartWidth,this.taskAreaHelper.headerRowHeight),position:new r.Point(this.chartLeft,this.headerTableTop),style:this.chartScaleTableStyle,baseCellSize:new m.Size(this.baseCellWidth,this.taskAreaHelper.headerRowHeight),cells:this.chartTableScaleTopMatrix}},e.prototype._createChartScaleBottomInfo=function(){var e=this.taskAreaHelper.headerRowHeight;return{name:g.PdfPageTableNames.chartScaleBottom,size:new m.Size(this.chartWidth,e),position:new r.Point(this.chartLeft,this.headerTableTop+e),style:this.chartScaleTableStyle,baseCellSize:new m.Size(this.baseCellWidth,e),cells:this.chartTableScaleBottomMatrix}},e.prototype.createChartMainTableInfo=function(){return{name:g.PdfPageTableNames.chartMain,size:new m.Size(this.chartWidth,this.mainTableHeight),position:new r.Point(this.chartLeft,this.mainTableTop),style:this.chartMainTableStyle,baseCellSize:new m.Size(this.baseCellWidth,this.baseCellHeight),cells:this.chartTableBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},e.prototype.createTreeListHeaderTableInfo=function(){return{name:g.PdfPageTableNames.treeListHeader,size:new m.Size(this.treeListWidth,this.headerTableHeight),position:new r.Point(this.treeListLeft,this.headerTableTop),style:this.treeListTableStyle,baseCellSize:new m.Size(null,this.headerTableHeight),cells:this.treeListHeaderMatrix}},e.prototype.createTreeListMainTableInfo=function(){return{name:g.PdfPageTableNames.treeListMain,size:new m.Size(this.treeListWidth,this.mainTableHeight),position:new r.Point(this.treeListLeft,this.mainTableTop),style:this.treeListTableStyle,baseCellSize:new m.Size(null,this.baseCellHeight),cells:this.treeListBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},e.prototype.calculateChartScaleMatrix=function(e){for(var t=this.taskAreaHelper,n=t.scaleRanges,r=new Array,i=n[e][0],o=n[e][1],s=i;s<=o;s++){var a=this.layoutCalculator.getScaleItemStart(s,t.scales[e]),c=new f.CellDef(this._owner.renderHelper.getScaleItemTextByStart(a,t.scales[e]));c.styles.cellPadding.assign(0),c.styles.minCellHeight=this.taskAreaHelper.headerRowHeight;var u=0===e?t.scaleTopWidths[s]:t.scaleBottomWidths[s];c.styles.cellWidth.assign(u),r.push(c)}return[r]},e.prototype.calculateChartTableBodyMatrix=function(){var e=this;this._chartTableBodyMatrix=new Array,this.visibleTaskIndices.length>
210?this.visibleTaskIndices.forEach(function(t){return e._chartTableBodyMatrix.push(e.createChartTableBodyRow(t))}):this._chartTableBodyMatrix.push(this.createChartTableBodyRow(-1))},e.prototype.createChartTableBodyRow=function(e){var t=new f.CellDef;return this.rowHasChildren(e)&&t.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),this.chartTableScaleBottomMatrix[0].map(function(e){var n=new f.CellDef(t);return n.styles.cellWidth.assign(e.styles.cellWidth),n})},e.prototype.rowHasSelection=function(e){return this._owner.rowHasSelection(e)},e.prototype.rowHasChildren=function(e){return this._owner.rowHasChildren(e)},e.prototype.calculateTreeListTableHeaderMatrix=function(){this._treeListHeaderMatrix=new Array;for(var e=this._owner,t=e.getTreeListColCount(),n=new Array,r=0;r<t;r++){var i=new f.CellDef(e.getTreeListHeaderInfo(r));i.styles.minCellHeight=2*this.taskAreaHelper.headerRowHeight,n.push(i)}this._treeListHeaderMatrix.push(n)},e.prototype.calculateTreeListTableBodyMatrix=function(){this._treeListBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.fillTreeListTableBodyMatrix(this._treeListBodyMatrix):this.fillTreeListEmptyTableBodyMatrix(this._treeListBodyMatrix)},e.prototype.fillTreeListTableBodyMatrix=function(e){for(var t,n=this.visibleTaskIndices,r=this.treeListHeaderMatrix[0].length,i=0;i<n.length;i++){for(var o=new Array,s=n[i],a=null===(t=this._owner.getTask(s))||void 0===t?void 0:t.id,c=0;c<r;c++){var u=new f.CellDef(this._owner.getTreeListCellInfo(s,c,a));u.styles.cellWidth.hasValue()||u.styles.cellWidth.assign(this.getTreeListColumnWidth(c)),this.rowHasChildren(n[i])&&u.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),o.push(u)}e.push(o)}},e.prototype.fillTreeListEmptyTableBodyMatrix=function(e){var t=new Array,n=new f.CellDef(this._owner.getTreeListEmptyDataCellInfo());n.styles.cellWidth.assign(this.treeListWidth),n.styles.halign=C.PredefinedStyles.horizontalAlign[1],n.styles.valign=C.PredefinedStyles.verticalAlign[1],t.push(n),e.push(t)},e.prototype.getTreeListColumnWidth=function(e){var t=this.treeListHeaderMatrix[0][e],n=t&&t.styles;return n.cellWidth.getValue()||n.minCellWidth||0},e.prototype.getObjectsLeftOffset=function(e){void 0===e&&(e=!1);var t=this.dataObjectLeftDelta;return e||(t+=this.taskAreaHelper.customRangeLeftOffset),t},Object.defineProperty(e.prototype,"dataObjectLeftDelta",{get:function(){var e;return null!==(e=this._dataObjectLeftDelta)&&void 0!==e||(this._dataObjectLeftDelta=this.getDataObjectLeftDelta()),this._dataObjectLeftDelta},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataObjectTopDelta",{get:function(){var e;return null!==(e=this._dataObjectTopDelta)&&void 0!==e||(this._dataObjectTopDelta=this.getDataObjectTopDelta()),this._dataObjectTopDelta},enumerable:!1,configurable:!0}),e.prototype.getChartScaleTableStyle=function(){var e=new h.StyleDef(this.taskAreaHelper.scaleTableStyle);return this._predefinedFont&&(e.font=this._predefinedFont),e},e.prototype.getChartMainTableStyle=function(){var e=new h.StyleDef(this.taskAreaHelper.chartMainTableStyle);return this._predefinedFont&&(e.font=this._predefinedFont),e},e.prototype.calculateTreeListTableStyle=function(){this._treeListTableStyle=new h.StyleDef(this._owner.getTreeListTableStyle()),this._treeListTableStyle.fillColor.assign(this.chartMainTableStyle.fillColor),this._treeListTableStyle.lineColor.assign(this.chartMainTableStyle.lineColor),this._predefinedFont&&(this._treeListTableStyle.font=this._predefinedFont)},e.prototype.getGanttObjectsInfo=function(){return{tasks:this.tasksInfo,dependencies:this.dependenciesInfo,resources:this.resourcesInfo,timeMarkers:this.timeMarkersInfo}},Object.defineProperty(e.prototype,"tasksInfo",{get:function(){var e;return null!==(e=this._tasksInfo)&&void 0!==e||(this._tasksInfo=this.calculateTasksInfo()),this._tasksInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dependenciesInfo",{get:function(){var e;return null!==(e=this._dependenciesInfo)&&void 0!==e||(this._dependenciesInfo=this.calculateDependenciesInfo()),this._dependenciesInfo}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesInfo",{get:function(){var e;return null!==(e=this._resourcesInfo)&&void 0!==e||(this._resourcesInfo=this.calculateResourcesInfo()),this._resourcesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeMarkersInfo",{get:function(){var e;return null!==(e=this._timeMarkersInfo)&&void 0!==e||(this._timeMarkersInfo=this.calculateTimeMarkersInfoInfo()),this._timeMarkersInfo},enumerable:!1,configurable:!0}),e.prototype.getDataObjectLeftDelta=function(){return this.chartLeft-this.taskAreaHelper.objectsLeftDelta},e.prototype.getDataObjectTopDelta=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.objectsTopDelta},e.prototype.calculateTasksInfo=function(){var e=this,t=new Array;return this.visibleTaskIndices.forEach(function(n){return t.push(e.calculateTaskInfo(n))}),t},e.prototype.calculateTaskInfo=function(e){var t=new u.PdfTaskInfo,n=this.layoutCalculator.getTaskElementInfo(e);return t.taskColor=this.getTaskColor(e),t.sidePoints=this.getTaskSidePoints(e),t.isMilestone=n.className.indexOf(s.GridLayoutCalculator.milestoneClassName)>0,t.isMilestone||(t.isSmallTask=n.className.indexOf(s.GridLayoutCalculator.smallTaskClassName)>0,t.isParent=n.className.indexOf(s.GridLayoutCalculator.parentTaskClassName)>0,this.appendTaskTitle(t,e),this.appendTaskProgress(t,e)),t},e.prototype.appendTaskTitle=function(e,t){var n=this._owner.settings.taskTitlePosition;e.isSmallTask&&n!==o.TaskTitlePosition.Outside||n===o.TaskTitlePosition.None||(e.text=this._owner.getTaskText(t),e.textPosition=n,e.textStyle=this.getTaskTextStyle(t))},e.prototype.appendTaskProgress=function(e,t){var n=this.layoutCalculator.getTaskProgressElementInfo(t);e.progressWidth=n.size.width,e.progressColor=this.getTaskProgressColor(t),e.progressColor.applyOpacityToBackground(e.taskColor)},e.prototype.getTaskSidePoints=function(e){var t=this,n=this.layoutCalculator.getTaskSidePoints(e);return n.forEach(function(e){e.x+=t.getObjectsLeftOffset(!0),e.y+=t.dataObjectTopDelta}),n},e.prototype.getTaskColor=function(e){var t=this.taskAreaHelper.getTaskElementBackColor(e,s.GridLayoutCalculator.taskClassName);return new l.Color(t)},e.prototype.getTaskProgressColor=function(e){return new l.Color(this.taskAreaHelper.getTaskElementBackColor(e,s.GridLayoutCalculator.taskProgressClassName))},e.prototype.getTaskTextStyle=function(e){var t=new h.StyleDef;return t.cellPadding.assign(0),t.assign(this.taskAreaHelper.getTaskElementStyle(e,s.GridLayoutCalculator.taskTitleClassName)),t},e.prototype.calculateDependenciesInfo=function(){var e=this,t=new Array,n=this.taskAreaHelper,r=new l.Color(n.dependencyColor);return n.connectorLines.forEach(function(i){return t.push(e.createLineInfo(i,r,n.arrowWidth))}),t},e.prototype.createLineInfo=function(e,t,n){var r=new a.PdfDependencyLineInfo;if(r.fillColor=t,e.className.indexOf(s.GridLayoutCalculator.arrowClassName)>-1){var i=this.layoutCalculator.getArrowPositionByClassName(e.className);r.arrowInfo={position:i,width:n},r.points=[this.getArrowTopCorner(e,i,n)]}else r.points=this.getLinePoints(e);return r},e.prototype.getArrowTopCorner=function(e,t,n){var i=e.position.x+this.getObjectsLeftOffset(),s=e.position.y+this.dataObjectTopDelta;switch(t){case o.Position.Left:i+=n;break;case o.Position.Top:s+=n}return new r.Point(i,s)},e.prototype.getLinePoints=function(e){var t=e.position.x+this.getObjectsLeftOffset(),n=e.position.y+this.dataObjectTopDelta,i=t+e.size.width,o=n+e.size.height;return[new r.Point(t,n),new r.Point(i,o)]},e.prototype.calculateResourcesInfo=function(){var e=this,t=new Array;return this.taskAreaHelper.resourcesElements.forEach(function(n){return t=t.concat(e.calculateResourcesInLine(n))}),t},e.prototype.calculateResourcesInLine=function(e){var t=new Array;if(e)for(var n=i.DomUtils.pxToInt(e.style.left)+this.getObjectsLeftOffset(),r=i.DomUtils.pxToInt(e.style.top)+this.dataObjectTopDelta,o=e.getElementsByClassName(s.GridLayoutCalculator.taskResourceClassName),a=0;a<o.length;a++){var u=o[a];if(this.taskAreaHelper.isElementVisible(u)){var l=getComputedStyle(u);n+=this.getMargin(l).left,t.push(new c.PdfTaskResourcesInfo(u.textContent,new h.StyleDef(l),n,r)),n+=i.DomUtils.pxToInt(l.width)}}return t},e.prototype.calculateTimeMarkersInfoInfo=function(){var e=this,t=new Array;
21return this.taskAreaHelper.stripLinesElements.forEach(function(n){return t.push(e.createTimeMarkerInfo(n,!0))}),this.taskAreaHelper.noWorkingIntervalsElements.forEach(function(n){return t.push(e.createTimeMarkerInfo(n,!1))}),t},e.prototype.createTimeMarkerInfo=function(e,t){var n=getComputedStyle(e),o=i.DomUtils.pxToInt(n.left)+this.getObjectsLeftOffset(),s=i.DomUtils.pxToInt(n.top)+this.dataObjectTopDelta,a=i.DomUtils.pxToInt(n.width),c=i.DomUtils.pxToInt(n.height);return new b.PdfTimeMarkerInfo(new r.Point(o,s),new m.Size(a,c),new l.Color(n.backgroundColor),new l.Color(n.borderLeftColor),t)},e.prototype.getMargin=function(e){var t=new d.Margin(0);if(e){var n=e.margin;n||(n+=e.marginTop||"0",n+=" "+e.marginRight||0,n+=" "+e.marginBottom||0,n+=" "+e.marginLeft||0),t.assign(n)}return t},e._defaultPageMargin=10,e._autoFormatWidthAddStock=1,e}();t.GanttExportCalculator=_},4991:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfDependencyLineInfo=void 0;var r=n(8900),i=n(405),o=function(){function e(){}return e.prototype.assign=function(e){var t;this._copyPoints(e.points),this.arrowInfo=e.arrowInfo,null!==(t=this.fillColor)&&void 0!==t||(this.fillColor=new i.Color),this.fillColor.assign(e.fillColor)},e.prototype._copyPoints=function(e){var t=this;this.points=new Array,null==e||e.forEach(function(e){return t.points.push(new r.Point(e.x,e.y))})},e}();t.PdfDependencyLineInfo=o},266:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfObjectDrawer=void 0;var r=n(2449),i=n(817),o=n(3917),s=function(){function e(e,t){this._FONT_ROW_RATIO=1.15,this._info=t,this._pdfDoc=e}return e.prototype.draw=function(){this.drawTimeMarkers(),this.drawDependencies(),this.drawTasks(),this.drawResources()},e.prototype.drawTasks=function(){var e,t=this,n=null===(e=this._info)||void 0===e?void 0:e.tasks;n&&n.forEach(function(e){return t.drawTask(e)})},e.prototype.drawTask=function(e){var t=this._pdfDoc;t.setFillColor.apply(t,e.taskColor.getRBGColor()),t.setDrawColor.apply(t,e.taskColor.getRBGColor()),e.isMilestone?this.drawMilestone(e):this.drawRegularTask(e)},e.prototype.drawMilestone=function(e){var t=this._pdfDoc,n=e.sidePoints[0].x,r=e.sidePoints[0].y,i=e.sidePoints[1].x,o=e.sidePoints[1].y,s=e.sidePoints[2].x,a=e.sidePoints[2].y,c=e.sidePoints[3].x,u=e.sidePoints[3].y;t.triangle(n,r,i,o,s,a,"FD"),t.triangle(n,r,c,u,s,a,"FD")},e.prototype.drawRegularTask=function(e){var t=this._pdfDoc;t.rect(e.left,e.top,e.width,e.height,"FD"),e.isParent&&this.drawParentBorder(e),e.progressWidth&&(t.setFillColor.apply(t,e.progressColor.getRBGColor()),t.rect(e.left,e.top,e.progressWidth,e.height,"F")),e.text&&this.printTaskTitle(e)},e.prototype.drawParentBorder=function(e){var t=this._pdfDoc,n=e.sidePoints[0].x,r=e.sidePoints[1].y,i=e.sidePoints[3].y,o=e.sidePoints[2].x,s=e.sidePoints[3].y-e.sidePoints[1].y,a=e.progressWidth>s?e.progressColor.getRBGColor():e.taskColor.getRBGColor();t.setFillColor.apply(t,a),t.triangle(n,r,n,i,n+s,r,"FD"),t.setFillColor.apply(t,e.taskColor.getRBGColor()),t.triangle(o,r,o,i,o-s,r,"FD")},e.prototype.printTaskTitle=function(e){var t,n=this._pdfDoc,s=e.textStyle,a=s&&s.textColor.getRBGColor(),c=s&&s.fontSize;n.setTextColor.apply(n,a),n.setFontSize(c);var u=e.top+c*this._FONT_ROW_RATIO/n.internal.scaleFactor;e.isParent&&(u-=o.PdfTaskInfo.defaultParentHeightCorrection);var l=s&&s.cellPadding.left||0,h=s&&s.cellPadding.right||0;if(e.textPosition===r.TaskTitlePosition.Inside){var d=e.width-l-h;t=e.left+l,n.text(i.EllipsisHelper.limitPdfTextWithEllipsis(e.text,n,d),t,u)}else t=e.left-h,n.text(e.text,t,u,{align:"right"})},e.prototype.drawDependencies=function(){var e,t=this,n=null===(e=this._info)||void 0===e?void 0:e.dependencies;n&&n.forEach(function(e){return t.drawDependencyLine(e)})},e.prototype.drawDependencyLine=function(e){var t,n;if((t=this._pdfDoc).setFillColor.apply(t,e.fillColor.getRBGColor()),(n=this._pdfDoc).setDrawColor.apply(n,e.fillColor.getRBGColor()),e.arrowInfo)this.drawArrow(e);else{var r=e.points;this._pdfDoc.line(r[0].x,r[0].y,r[1].x,r[1].y)}},e.prototype.isValidLine=function(e){var t=e.points;return!(isNaN(t[0].x)||isNaN(t[0].y)||isNaN(t[1].x)||isNaN(t[1].y))},e.prototype.drawArrow=function(e){var t=e.arrowInfo.width||0,n=e.points[0].x,i=e.points[0].y;switch(e.arrowInfo.position){case r.Position.Left:this._pdfDoc.triangle(n,i+t,n+t,i,n+t,i+2*t,"FD");break;case r.Position.Right:this._pdfDoc.triangle(n,i,n,i+2*t,n+t,i+t,"FD");break;case r.Position.Top:this._pdfDoc.triangle(n,i+t,n+t,i,n+2*t,i+t,"FD");break;case r.Position.Bottom:this._pdfDoc.triangle(n,i,n+t,i+t,n+2*t,i,"FD")}}
21,e.prototype.drawResources=function(){var e,t=this,n=this._pdfDoc,r=null===(e=this._info)||void 0===e?void 0:e.resources;r&&r.forEach(function(e){var r,i,o;n.setFontSize(null!==(r=e.style.fontSize)&&void 0!==r?r:11);var s=e.y+e.style.fontSize*t._FONT_ROW_RATIO/n.internal.scaleFactor,a=null!==(i=e.style.cellPadding.left)&&void 0!==i?i:0,c=null!==(o=e.style.cellPadding.right)&&void 0!==o?o:1,u=Math.max(e.style.cellWidth.getValue(),a+n.getTextWidth(e.text)+c);n.setFillColor.apply(n,e.style.fillColor.getRBGColor()),n.rect(e.x,e.y,u,e.style.minCellHeight,"F"),n.setTextColor.apply(n,e.style.textColor.getRBGColor()),n.text(e.text,e.x+a,s)})},e.prototype.drawTimeMarkers=function(){var e,t=this,n=null===(e=this._info)||void 0===e?void 0:e.timeMarkers;null==n||n.forEach(function(e){return t.drawTimeMarker(e)})},e.prototype.drawTimeMarker=function(e){var t,n,r=this._pdfDoc,i=e.size.width>1,o=e.start.x,s=e.start.y,a=e.size.width,c=e.size.height,u=e.isStripLine;i&&(r.setFillColor.apply(r,e.color.getRBGColor()),r.saveGraphicsState(),r.setGState(new r.GState({opacity:null!==(n=e.color.opacity)&&void 0!==n?n:1})),r.rect(o,s,a,c,"F"),r.restoreGraphicsState()),u&&(this._pdfDoc.setLineDashPattern([3]),(t=this._pdfDoc).setDrawColor.apply(t,e.lineColor.getRBGColor()),i&&this._pdfDoc.line(o+a,s,o+a,s+c,"S"),this._pdfDoc.line(o,s,o,s+c,"S"),this._pdfDoc.setLineDashPattern())},e}();t.PdfObjectDrawer=s},3917:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfTaskInfo=void 0;var r=n(8900),i=n(405),o=n(6995),s=function(){function e(){}return Object.defineProperty(e.prototype,"left",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[0].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[1].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[2].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[3].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=this.bottom-this.top;return this.isParent&&(t-=e.defaultParentHeightCorrection),t},enumerable:!1,configurable:!0}),e.prototype.assign=function(e){var t,n,r;this.isMilestone=e.isMilestone,this._copyPoints(e.sidePoints),this.progressWidth=e.progressWidth,this.isSmallTask=e.isSmallTask,this.text=e.text,this.textPosition=e.textPosition,null!==(t=this.progressColor)&&void 0!==t||(this.progressColor=new i.Color),this.progressColor.assign(e.progressColor),null!==(n=this.taskColor)&&void 0!==n||(this.taskColor=new i.Color),this.taskColor.assign(e.taskColor),null!==(r=this.textStyle)&&void 0!==r||(this.textStyle=new o.StyleDef),this.textStyle.assign(e.textStyle),this.isParent=e.isParent},e.prototype._copyPoints=function(e){var t=this;this.sidePoints=new Array,null==e||e.forEach(function(e){return t.sidePoints.push(new r.Point(e.x,e.y))})},e.defaultParentHeightCorrection=4,e}();t.PdfTaskInfo=s},2485:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfTaskResourcesInfo=void 0;var r=n(2491),i=n(6995),o=function(){function e(e,t,n,o){e&&(this.text=e),t&&(this.style=new i.StyleDef(t)),(0,r.isDefined)(n)&&(this.x=n),(0,r.isDefined)(o)&&(this.y=o)}return e.prototype.assign=function(e){this.text=e.text,this.style=new i.StyleDef(e.style),this.x=e.x,this.y=e.y},e}();t.PdfTaskResourcesInfo=o}
21,7802:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfTimeMarkerInfo=void 0;var r=n(8900),i=n(6353),o=n(2491),s=n(405),a=function(){function e(e,t,n,a,c){this.lineColor=new s.Color,this.color=new s.Color,e&&(this.start=new r.Point(e.x,e.y)),t&&(this.size=new i.Size(t.width,t.height)),n&&this.color.assign(n),a&&this.lineColor.assign(a),(0,o.isDefined)(c)&&(this.isStripLine=c)}return e.prototype.assign=function(e){var t,n,o,s;e&&(this.start=new r.Point(null===(t=e.start)||void 0===t?void 0:t.x,null===(n=e.start)||void 0===n?void 0:n.y),this.size=new i.Size(null===(o=e.size)||void 0===o?void 0:o.width,null===(s=e.size)||void 0===s?void 0:s.height),this.isStripLine=e.isStripLine,this.color.assign(e.color),this.lineColor.assign(e.lineColor))},e}();t.PdfTimeMarkerInfo=a},2978:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttExporter=void 0;var r=n(4970),i=function(){function e(e){if(!e.settings.pdfDoc&&!e.settings.docCreateMethod)throw new Error("Cannot convert gantt to pdf without document instance!");this._info=e}return e.prototype.export=function(){var e,t,n=this.pdfDoc;this.applyCustomFont();for(var i=this._info,o=new r.PdfGanttPageDrawer(n,i.settings),s=i.getPages(n),a=s.length,c=0;c<a;c++){c>0&&n.addPage(this.getDocumentFormat(),this.getOrientation());var u=s[c];o.drawPage(u)}return(null===(e=this.props)||void 0===e?void 0:e.fileName)&&n.save(null===(t=this.props)||void 0===t?void 0:t.fileName),n},Object.defineProperty(e.prototype,"pdfDoc",{get:function(){var e,t;return null!==(e=this._pdfDoc)&&void 0!==e||(this._pdfDoc=null!==(t=this._info.settings.pdfDoc)&&void 0!==t?t:this.createDoc()),this._pdfDoc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"props",{get:function(){return this._info.settings},enumerable:!1,configurable:!0}),e.prototype.createDoc=function(){var e=this.getJsPDFProps();return this._info.settings.docCreateMethod(e)},e.prototype.getJsPDFProps=function(){var e={putOnlyUsedFonts:!0,unit:"px",hotfixes:["px_scaling"]};return e.orientation=this.getOrientation(),e.format=this.getDocumentFormat(),e},e.prototype.getOrientation=function(){var e;return(null===(e=this.props)||void 0===e?void 0:e.landscape)?"l":"p"},e.prototype.getDocumentFormat=function(){var e,t,n,r;return(null===(e=this.props)||void 0===e?void 0:e.format)||(null===(t=this.props)||void 0===t?void 0:t.pageSize)?(null===(n=this.props)||void 0===n?void 0:n.pageSize)?[this.props.pageSize.height,this.props.pageSize.width]:null===(r=this.props)||void 0===r?void 0:r.format:"a4"},e.prototype.applyCustomFont=function(){this.props.font&&this.props.font.applyToDoc(this.pdfDoc)},e}();t.PdfGanttExporter=i},8935:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTableNames=void 0;var n=function(){function e(){}return e.treeListHeader="treeListHeader",e.treeListMain="treeListMain",e.chartMain="chartMain",e.chartScaleTop="chartScaleTop",e.chartScaleBottom="chartScaleBottom",e}();t.PdfPageTableNames=n},4970:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttPageDrawer=void 0;var r=n(8900),i=n(266),o=n(8935),s=n(9895),a=n(5510),c=function(){function e(e,t){this._pdfDoc=e,this._props=t}return e.prototype.drawPage=function(e){var t=this._pdfDoc,n=new a.PdfGanttTableDrawer(t);return this.needDrawChart()&&(n.drawTable(e.tables[o.PdfPageTableNames.chartMain]),new i.PdfObjectDrawer(t,e.objects).draw(),n.drawTable(e.tables[o.PdfPageTableNames.chartScaleTop]),n.drawTable(e.tables[o.PdfPageTableNames.chartScaleBottom])),this.needDrawTreeList()&&(n.drawTable(e.tables[o.PdfPageTableNames.treeListMain]),n.drawTable(e.tables[o.PdfPageTableNames.treeListHeader])),this.drawMargins(e),t},e.prototype.needDrawChart=function(){return!this._props||this._props.exportMode===s.ExportMode.all||this._props.exportMode===s.ExportMode.chart},e.prototype.needDrawTreeList=function(){return!this._props||this._props.exportMode===s.ExportMode.all||this._props.exportMode===s.ExportMode.treeList},e.prototype.getContentRightBottom=function(e){var t=new r.Point(0,0);for(var n in e.tables)if(Object.prototype.hasOwnProperty.call(e.tables,n)){var i=e.tables[n];t.x=Math.max(t.x,i.position.x+i.size.width),t.y=Math.max(t.y,i.position.y+i.size.height)}return t},e.prototype.drawMargins=function(e){var t=this._pdfDoc,n=this._props,r=t.getPageWidth(),i=t.getPageHeight(),o=this.getContentRightBottom(e);t.setFillColor(255,255,255),t.rect(0,0,n.margins.left,i,"F"),t.rect(0,0,r,n.margins.top,"F"),t.rect(o.x,0,r,i,"F"),t.rect(0,o.y,r,i,"F")},e}();t.PdfGanttPageDrawer=c},4429:(e,t)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.PageNavigation=void 0;var n=function(){function e(e,t,n,r,i,o){this._correctedBottoms=new Array,this.vIndex=0,this.hIndex=0,this.pageX=0,this.pageY=0,this._top=null==e?void 0:e.top,this._left=null==e?void 0:e.left,this._bottom=null==e?void 0:e.bottom,this._right=null==e?void 0:e.right,this.vIndex=null!=t?t:this.vIndex,this.hIndex=null!=n?n:this.hIndex,this.pageX=null!=r?r:this.pageX,this.pageY=null!=i?i:this.pageY,o&&(this._correctedBottoms=o)}return e.prototype.offset=function(e,t){e&&this.offsetOneD(e),t&&this.offsetOneD(t,!0)},e.prototype.offsetOneD=function(e,t){for(var n=e,r=this.getSpaceToBorder(t);r<n;)t?(this.vIndex++,this.pageY=this._top):(this.hIndex++,this.pageX=this._left),n-=r,r=this.getSpaceToBorder(t);t?this.pageY+=n:this.pageX+=n},Object.defineProperty(e.prototype,"defaultPageHeight",{get:function(){return this.getCurrentPageBottom()-this._top},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultPageWidth",{get:function(){return this._right-this._left},enumerable:!1,configurable:!0}),e.prototype.getPageEnd=function(e){return e?this.getCurrentPageBottom():this._right},e.prototype.getPageStart=function(e){return e?this._top:this._left},e.prototype.getPageSize=function(e,t){return e?this.getPageHeight(t):this.defaultPageWidth},e.prototype.getSpaceToBorder=function(e){return e?this.getCurrentPageBottom()-this.pageY:this._right-this.pageX},e.prototype.getPageGlobalOffset=function(e,t){if(!t)return e*this.defaultPageWidth;for(var n=0,r=1;r<=e;r++)n+=this.getPageHeight(r-1);return n},e.prototype.assign=function(e){this._top=e._top,this._left=e._left,this._bottom=e._bottom,this._right=e._right,this._correctedBottoms=e._correctedBottoms,this.vIndex=e.vIndex,this.hIndex=e.hIndex,this.pageX=e.pageX,this.pageY=e.pageY},e.createFrom=function(t){var n=new e;return n.assign(t),n},e.prototype.clone=function(){var t=new e;return t.assign(this),t},e.prototype.getCurrentPageBottom=function(){return this.getPageBottom(this.vIndex)},e.prototype.getPageBottom=function(e){var t;return null!==(t=this._correctedBottoms[e])&&void 0!==t?t:this._bottom},e.prototype.getPageHeight=function(e){return this.getPageBottom(e)-this._top},e}();t.PageNavigation=n},3424:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttPaginator=void 0;var r=n(8900),i=n(6353),o=n(4991),s=n(3917),a=n(2485),c=n(7802),u=n(8935),l=n(6032),h=n(4429),d=function(e,t,n,r,i){this.pageVerIndex=t,this.pageHorIndex=e,this.cellRowIndexOnPage=n,this.cellColIndexOnPage=r,this.cell=i},f=function(){function e(e,t,n,r){this.pageIndex=e,this.globalCellIndex=t,this.pageOffset=n,this.cutSize=r}return Object.defineProperty(e.prototype,"isCutted",{get:function(){return this.cutSize>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellIndexOnPage",{get:function(){return this.globalCellIndex-this.pageOffset},enumerable:!1,configurable:!0}),e}(),p=function(){function e(e,t,n){this._pdfDoc=e,this._props=t,this._globalInfo=n}return e.prototype.getPages=function(){return delete this._pages,this._paginateTables(),this._paginateObjects(),this.pageMatrixToArray},e.prototype._paginateTables=function(){this._paginateTable(u.PdfPageTableNames.treeListHeader),this._paginateTable(u.PdfPageTableNames.treeListMain),this._paginateTable(u.PdfPageTableNames.chartScaleBottom),this._paginateTable(u.PdfPageTableNames.chartScaleTop),this._paginateTable(u.PdfPageTableNames.chartMain)},e.prototype._paginateObjects=function(){this._paginateTasks(),this._paginateDependencies(),this._paginateResources(),this._paginateTimeMarkers()},Object.defineProperty(e.prototype,"pageMatrixToArray",{get:function(){var e,t=new Array;return null===(e=this._pages)||void 0===e||e.forEach(function(e){t=t.concat(e)}),t},enumerable:!1,configurable:!0}),e.prototype._paginateTasks=function(){var e,t,n=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.tasks)||void 0===t||t.forEach(function(e){return n._paginateTask(e)})},e.prototype._paginateDependencies=function(){var e,t,n=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.dependencies)||void 0===t||t.forEach(function(e){e.arrowInfo?n._paginateArrow(e):n._paginateDependencyLine(e)})},e.prototype._paginateResources=function(){var e,t,n=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.resources)||void 0===t||t.forEach(function(e){return n._paginateResource(e)})},e.prototype._paginateTimeMarkers=function(){var e,t,n=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.timeMarkers)||void 0===t||t.forEach(function(e){return n._paginateTimeMarker(e)})},e.prototype._paginateTable=function(e){var t,n=null===(t=this._globalInfo)||void 0===t?void 0:t.tables[e];if(n){for(var r=this._getTableStart(n),i=this._preparePagesNavigationMatrixForTable(r,n),o=i.length,s=0;s<o;s++)for(var a=i[s].length,c=0;c<a;c++){var u=i[s][c],l=this._getPage(u.pageVerIndex,u.pageHorIndex,!0),h=u.pageHorIndex===r.hIndex?r.pageX:this.pageLeft,d=u.pageVerIndex===r.vIndex?r.pageY:this.pageTop;this._setTablePositionOnPage(l,e,h,d),this._addCellToPage(l,e,u)}this._updateTableSizeOnPages(e)}},e.prototype._paginateTask=function(e){for(var t=this._getTaskPagination(e),n=this._getTaskPagination(e,!0),r=0;r<n.length;r++)for(var i=0;i<t.length;i++){var o=new s.PdfTaskInfo;o.assign(e),this._offsetPoints(o.sidePoints,t[i].offset,n[r].offset),this._addTaskToPage(n[r].pageIndex,t[i].pageIndex,o)}},e.prototype._paginateArrow=function(e){var t=this._getPointPageInfo(e.points[0]),n=new o.PdfDependencyLineInfo;n.assign(e),this._offsetPoints(n.points,t.offsetX,t.offsetY),this._addDependencyToPage(t.pageVerIndex,t.pageHorIndex,n)},e.prototype._paginateDependencyLine=function(e){for(var t=this._getDependencyLinePagination(e),n=this._getDependencyLinePagination(e,!0),r=0;r<n.length;r++)for(var i=0;i<t.length;i++){var s=new o.PdfDependencyLineInfo;s.assign(e),this._offsetPoints(s.points,t[i].offset,n[r].offset),this._addDependencyToPage(n[r].pageIndex,t[i].pageIndex,s)}},e.prototype._paginateResource=function(e){var t=this._getPointPageInfo(new r.Point(e.x,e.y)),n=new a.PdfTaskResourcesInfo;n.assign(e),n.x-=t.offsetX,n.y-=t.offsetY,this._addResourceToPage(t.pageVerIndex,t.pageHorIndex,n)},e.prototype._paginateTimeMarker=function(e){for(var t=this._getTimeMarkerPagination(e),n=this._getTimeMarkerPagination(e,!0),r=0;r<n.length;r++)for(var i=0;i<t.length;i++){var o=new c.PdfTimeMarkerInfo;o.assign(e),o.start.x-=t[i].offset,o.start.y-=n[r].offset,this._addTimeMarkerToPage(n[r].pageIndex,t[i].pageIndex,o)}},e.prototype._getTableStart=function(e){var t=new h.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms);return t.offset(e.position.x,e.position.y),t},e.prototype._getPage=function(e,t,n){return n&&this._extendPageMatrixIfRequired(e,t),this._pages[e]&&this._pages[e][t]},e.prototype._getTableOrCreate=function(e,t){var n,r;return null!==(n=(r=e.tables)[t])&&void 0!==n||(r[t]=this._createTable(t)),e.tables[t]},e.prototype._preparePagesNavigationMatrixForTable=function(e,t){for(var n=new Array,r=this._getTableNavigationVector(e,t,!0),i=r.length,o=0;o<i;o++){for(var s=new Array,a=r[o],c=this._getTableNavigationVector(e,t,!1,a.globalCellIndex),l=c.length,h=0;h<l;h++){var f=c[h],p=t.name===u.PdfPageTableNames.chartScaleTop,A=this._prepareCuttedCell(t.cells[a.globalCellIndex][f.globalCellIndex],f,a,p),g=new d(f.pageIndex,a.pageIndex,a.cellIndexOnPage,f.cellIndexOnPage,A);s.push(g)}n.push(s)}return n},e.prototype._setTablePositionOnPage=function(e,t,n,i){this._getTableOrCreate(e,t).position=new r.Point(n,i)},e.prototype._extendPageMatrixIfRequired=function(e,t){var n;null!==(n=this._pages)&&void 0!==n||(this._pages=new Array);for(var r=this._pages.length;r<=e;r++)this._pages.push(new Array);var i=this._pages[e];for(r=i.length;r<=t;r++)i.push(this._createPage())},e.prototype._getTableAndExtendIfRequired=function(e,t,n,r){for(var i=this._getTableOrCreate(e,t),o=i.cells,s=o.length;s<=n;s++)o.push(new Array);var a=o[n];for(s=a.length;s<=r;s++)a.push(new l.CellDef);return i},e.prototype._createPage=function(){return{objects:{tasks:null,dependencies:null,resources:null,timeMarkers:null},tables:{}}},e.prototype._createTable=function(e){var t,n=null===(t=this._globalInfo)||void 0===t?void 0:t.tables[e];return{name:e,size:null,position:null,style:n.style,baseCellSize:n.baseCellSize,cells:new Array,hideRowLines:n.hideRowLines}},e.prototype._addCellToPage=function(e,t,n){var r=n.cellRowIndexOnPage,i=n.
21cellColIndexOnPage;this._getTableAndExtendIfRequired(e,t,r,i).cells[r][i].assign(n.cell)},e.prototype._updateTableSizeOnPages=function(e){for(var t,n=null===(t=this._pages[0])||void 0===t?void 0:t.length,r=this._pages.length,i=0;i<r;i++)for(var o=0;o<n;o++)this._updateTableSizeOnPage(this._pages[i][o],e)},e.prototype._updateTableSizeOnPage=function(e,t){var n,r=this,o=null==e?void 0:e.tables[t];if(o){var s=o.cells.length*o.baseCellSize.height||0,a=(null===(n=o.cells[0])||void 0===n?void 0:n.reduce(function(e,t,n){return e+r._getCellWidth(o,0,n)},0))||0;o.size=new i.Size(a,s)}},e.prototype._getTableNavigationVector=function(e,t,n,r){var i,o;void 0===n&&(n=!1),void 0===r&&(r=0);for(var s=new Array,a=h.PageNavigation.createFrom(e),c=n?null===(i=t.cells)||void 0===i?void 0:i.length:null===(o=t.cells[r])||void 0===o?void 0:o.length,u=0;u<c;u++){var l=n?t.baseCellSize.height:this._getCellWidth(t,r,u);this._placeCell(s,a,u,l,n)}return s},e.prototype._placeCell=function(e,t,n,r,i){var o,s,a=i?t.vIndex:t.hIndex,c=null!==(s=null===(o=e[e.length-1])||void 0===o?void 0:o.pageOffset)&&void 0!==s?s:n,u=r,l=t.getSpaceToBorder(i);t.offsetOneD(r,i);var h=i?t.vIndex:t.hIndex;if(!i)for(var d=a;d<h;d++){var p=new f(d,n,c,l);c=n,e.push(p),u-=l,l=t.getPageSize(i)}h!==a&&(c=n);var A=new f(h,n,c,u!==r?u:null);e.push(A)},e.prototype._prepareCuttedCell=function(e,t,n,r){var i=new l.CellDef(e);if(t.isCutted){var o=t.cutSize;if(!r){var s=i.content,a=e.styles,c=o-(a&&a.cellPadding.left||0)-(a&&a.cellPadding.right||0),u=this._pdfDoc.splitTextToSize(s,c);e.content=s.replace(u[0],""),i.content=u[0]}i.styles.cellWidth.assign(o)}return n.isCutted&&(i.styles.minCellHeight=n.cutSize),i},e.prototype._getCellWidth=function(e,t,n){var r,i=e.cells[t][n],o=i.styles,s=o.cellWidth.getValue(),a=null!=s?s:o.minCellWidth;return null!=a?a:e.baseCellSize.width*(null!==(r=i.colSpan)&&void 0!==r?r:1)},e.prototype._getTaskPagination=function(e,t){var n=t?e.height:e.width,r=t?e.top:e.left;return this._getLinePagination(r,n,t)},e.prototype._getDependencyLinePagination=function(e,t){var n=e.points[0],r=e.points[1],i=t?r.y-n.y:r.x-n.x,o=t?n.y:n.x;return this._getLinePagination(o,i,t)},e.prototype._getTimeMarkerPagination=function(e,t){var n=t?e.size.height:e.size.width,r=t?e.start.y:e.start.x;return this._getLinePagination(r,n,t)},e.prototype._getLinePagination=function(e,t,n){var r=new Array,i=this.pageNavigator.clone();i.offsetOneD(e,n);var o=n?i.vIndex:i.hIndex;i.offsetOneD(t,n);for(var s=n?i.vIndex:i.hIndex,a=o;a<=s;a++)r.push({offset:i.getPageGlobalOffset(a,n),pageIndex:a});return r},e.prototype._getPointPageInfo=function(e){var t=this.pageNavigator.clone();return t.offset(e.x,e.y),{offsetX:t.getPageGlobalOffset(t.hIndex),offsetY:t.getPageGlobalOffset(t.vIndex,!0),pageHorIndex:t.hIndex,pageVerIndex:t.vIndex}},Object.defineProperty(e.prototype,"pageWidth",{get:function(){var e;return null===(e=this._pdfDoc)||void 0===e?void 0:e.getPageWidth()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageHeight",{get:function(){var e;return null===(e=this._pdfDoc)||void 0===e?void 0:e.getPageHeight()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageLeftMargin",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageTopMargin",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageRightMargin",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBottomMargin",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageLeft",{get:function(){var e;return null!==(e=this._pageLeft)&&void 0!==e||(this._pageLeft=this.pageLeftMargin),this._pageLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageRight",{get:function(){var e;return null!==(e=this._pageRight)&&void 0!==e||(this._pageRight=this.pageWidth-this.pageRightMargin),this._pageRight}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageTop",{get:function(){var e;return null!==(e=this._pageTop)&&void 0!==e||(this._pageTop=this.pageTopMargin),this._pageTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBottom",{get:function(){var e;return null!==(e=this._pageBottom)&&void 0!==e||(this._pageBottom=this.pageHeight-this.pageBottomMargin),this._pageBottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBorders",{get:function(){return{left:this.pageLeft,top:this.pageTop,bottom:this.pageBottom,right:this.pageRight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"correctedPageBottoms",{get:function(){var e;return null!==(e=this._correctedPageBottoms)&&void 0!==e||(this._correctedPageBottoms=this._getCorrectedPagesBottom()),this._correctedPageBottoms},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageNavigator",{get:function(){var e;return null!==(e=this._pageNavigator)&&void 0!==e||(this._pageNavigator=new h.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms)),this._pageNavigator},enumerable:!1,configurable:!0}),e.prototype._getCorrectedPagesBottom=function(){var e,t,n,r,i=new Array,o=null===(e=this._globalInfo)||void 0===e?void 0:e.tables,s=null!==(t=o[u.PdfPageTableNames.treeListMain])&&void 0!==t?t:o[u.PdfPageTableNames.chartMain],a=new h.PageNavigation(this.pageBorders);a.pageY=s.position.y;for(var c=0;c<s.cells.length;c++){var l=null!==(r=null===(n=s.cells[c][0].styles)||void 0===n?void 0:n.minCellHeight)&&void 0!==r?r:s.baseCellSize.height,d=a.vIndex,f=a.pageY;a.offsetOneD(l,!0),d!==a.vIndex&&(i.push(f),a.pageY=a.getPageStart(!0)+l)}return i},e.prototype._addTaskToPage=function(e,t,n){var r,i,o=this._getPage(e,t);o&&(null!==(r=(i=o.objects).tasks)&&void 0!==r||(i.tasks=new Array),o.objects.tasks.push(n))},e.prototype._addDependencyToPage=function(e,t,n){var r,i,o=this._getPage(e,t);o&&(null!==(r=(i=o.objects).dependencies)&&void 0!==r||(i.dependencies=new Array),o.objects.dependencies.push(n))},e.prototype._addResourceToPage=function(e,t,n){var r,i,o=this._getPage(e,t);o&&(null!==(r=(i=o.objects).resources)&&void 0!==r||(i.resources=new Array),o.objects.resources.push(n))},e.prototype._addTimeMarkerToPage=function(e,t,n){var r,i,o=this._getPage(e,t);o&&(null!==(r=(i=o.objects).timeMarkers)&&void 0!==r||(i.timeMarkers=new Array),o.objects.timeMarkers.push(n))},e.prototype._offsetPoints=function(e,t,n){e.forEach(function(e){e.x-=t,e.y-=n})},e}();t.PdfGanttPaginator=p},5763:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScalingHelper=void 0;var r=n(8935),i=function(){function e(e){this._doc=e}return Object.defineProperty(e.prototype,"_docScaleFactor",{get:function(){var e,t;return null===(t=null===(e=this._doc)||void 0===e?void 0:e.internal)||void 0===t?void 0:t.scaleFactor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_correctScaleNeeded",{get:function(){return this._docScaleFactor&&Math.abs(this._docScaleFactor-e._defaultScaleFactor)>Number.EPSILON},enumerable:!1,configurable:!0}),e.prototype.getScaledSize=function(t){return t*e._defaultScaleFactor/this._docScaleFactor},e.prototype.scalePageMargins=function(e){var t,n,r,i;this._correctScaleNeeded&&((null===(t=null==e?void 0:e.margins)||void 0===t?void 0:t.left)&&(e.margins.left=this.getScaledSize(e.margins.left)),(null===(n=null==e?void 0:e.margins)||void 0===n?void 0:n.right)&&(e.margins.right=this.getScaledSize(e.margins.right)),(null===(r=null==e?void 0:e.margins)||void 0===r?void 0:r.top)&&(e.margins.top=this.getScaledSize(e.margins.top)),(null===(i=null==e?void 0:e.margins)||void 0===i?void 0:i.bottom)&&(e.margins.bottom=this.getScaledSize(e.margins.bottom)))},e.prototype.scaleSizes=function(e){this._correctScaleNeeded&&(this.scaleTables(e),this.scaleObjects(e.objects))},e.prototype.scaleTables=function(e){(null==e?void 0:e.tables)&&(this.scaleTable(e.tables[r.PdfPageTableNames.treeListHeader]),this.scaleTable(e.tables[r.PdfPageTableNames.treeListMain]),this.scaleTable(e.tables[r.PdfPageTableNames.chartMain]),this.scaleTable(e.tables[r.PdfPageTableNames.chartScaleTop]),this.scaleTable(e.tables[r.PdfPageTableNames.chartScaleBottom]))},e.prototype.scaleTable=function(e){var t,n,r,i,o,s;if(e&&((null===(t=e.size)||void 0===t?void 0:t.width)&&(e.size.width=this.getScaledSize(e.size.width)),(null===(n=e.size)||void 0===n?void 0:n.height)&&(e.size.height=this.getScaledSize(e.size.height)),(null===(r=e.position)||void 0===r?void 0:r.x)&&(e.position.x=this.getScaledSize(e.position.x)),(null===(i=e.position)||void 0===i?void 0:i.y)&&(e.position.y=this.getScaledSize(e.position.y)),(null===(o=e.baseCellSize)||void 0===o?void 0:o.width)&&(e.baseCellSize.width=this.getScaledSize(e.baseCellSize.width)),(null===(s=e.baseCellSize)||void 0===s?void 0:s.height)&&(e.baseCellSize.height=this.getScaledSize(e.baseCellSize.height)),e.cells))for(var a=0;a<e.cells.length;a++)for(var c=e.cells[a],u=0;u<c.length;u++){var l=c[u];this.scaleStyle(l.styles)}},e.prototype.scaleObjects=function(e){this.scaleTasks(null==e?void 0:e.tasks),this.scaleDependencies(null==e?void 0:e.dependencies),this.scaleResources(null==e?void 0:e.resources),this.scaleTimeMarkers(null==e?void 0:e.timeMarkers)},e.prototype.scaleTasks=function(e){var t=this;null==e||e.forEach(function(e){t.scalePoints(e.sidePoints),e.progressWidth=t.getScaledSize(e.progressWidth),t.scaleStyle(e.textStyle)})},e.prototype.scaleDependencies=function(e){var t=this;null==e||e.forEach(function(e){var n;t.scalePoints(e.points),(null===(n=e.arrowInfo)||void 0===n?void 0:n.width)&&(e.arrowInfo.width=t.getScaledSize(e.arrowInfo.width))})},e.prototype.scaleResources=function(e){var t=this;null==e||e.forEach(function(e){e.x=t.getScaledSize(e.x),e.y=t.getScaledSize(e.y),t.scaleStyle(e.style)}
21)},e.prototype.scaleTimeMarkers=function(e){var t=this;null==e||e.forEach(function(e){e.start.x=t.getScaledSize(e.start.x),e.start.y=t.getScaledSize(e.start.y),e.size.width=t.getScaledSize(e.size.width),e.size.height=t.getScaledSize(e.size.height)})},e.prototype.scaleStyle=function(e){var t,n,r,i;if(e){var o=e.cellWidth;if(null==o?void 0:o.hasValue()){var s=this.getScaledSize(Number(o.getValue()));o.assign(s)}e.minCellHeight&&(e.minCellHeight=this.getScaledSize(e.minCellHeight)),e.minCellWidth&&(e.minCellWidth=this.getScaledSize(e.minCellWidth)),(null===(t=e.cellPadding)||void 0===t?void 0:t.left)&&(e.cellPadding.left=this.getScaledSize(e.cellPadding.left)),(null===(n=e.cellPadding)||void 0===n?void 0:n.right)&&(e.cellPadding.right=this.getScaledSize(e.cellPadding.right)),(null===(r=e.cellPadding)||void 0===r?void 0:r.top)&&(e.cellPadding.top=this.getScaledSize(e.cellPadding.top)),(null===(i=e.cellPadding)||void 0===i?void 0:i.bottom)&&(e.cellPadding.bottom=this.getScaledSize(e.cellPadding.bottom))}},e.prototype.scalePoints=function(e){var t=this;null==e||e.forEach(function(e){e.x=t.getScaledSize(e.x),e.y=t.getScaledSize(e.y)})},e._defaultScaleFactor=.75,e}();t.ScalingHelper=i},7223:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfCustomFontSettings=void 0;var r=n(2491),i=function(){function e(e){this.style="normal",e&&this.assign(e)}return e.prototype.assign=function(e){(0,r.isDefined)(e.fontObject)&&(this.fontObject=e.fontObject),(0,r.isDefined)(e.name)&&(this.name=e.name),(0,r.isDefined)(e.style)&&(this.style=e.style),(0,r.isDefined)(e.weight)&&(this.weight=e.weight)},e.prototype.applyToDoc=function(e){try{if(e&&this.fontObject&&this.name){var t=this.name+"-"+this.style+".ttf";e.addFileToVFS(t,this.fontObject),e.addFont(t,this.name,this.style,this.weight),e.setFont(this.name)}}catch(e){}},e}();t.PdfCustomFontSettings=i},6431:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfDataRange=void 0;var r=n(2491),i=function(){function e(e,t,n,r){var i=!e||e instanceof Date?{startDate:e,endDate:t,startIndex:n,endIndex:r}:e;i&&this.assign(i)}return e.prototype.assign=function(e){(0,r.isDefined)(e.startDate)&&(this.startDate=e.startDate instanceof Date?e.startDate:new Date(e.startDate)),(0,r.isDefined)(e.endDate)&&(this.endDate=e.endDate instanceof Date?e.endDate:new Date(e.endDate)),(0,r.isDefined)(e.startIndex)&&(this.startIndex=parseInt(e.startIndex)),(0,r.isDefined)(e.endIndex)&&(this.endIndex=parseInt(e.endIndex))},e}();t.PdfDataRange=i},9895:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataExportMode=t.ExportMode=void 0,function(e){e[e.all=0]="all",e[e.treeList=1]="treeList",e[e.chart=2]="chart"}(t.ExportMode||(t.ExportMode={})),function(e){e[e.all=0]="all",e[e.visible=1]="visible"}(t.DataExportMode||(t.DataExportMode={}))},6997:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GanttPdfExportProps=void 0;var r=n(6353),i=n(2491),o=n(5063),s=n(6431),a=n(7223),c=n(9895),u=function(){function e(e){this.landscape=!1,this.margins=null,this.exportMode=c.ExportMode.all,this.exportDataMode=c.DataExportMode.visible,e&&this.assign(e)}return e.prototype.assign=function(e){if(e){if((0,i.isDefined)(e.pdfDocument)&&(this.pdfDoc=e.pdfDocument),(0,i.isDefined)(e.pdfDoc)&&(this.pdfDoc=e.pdfDoc),this.docCreateMethod=e.docCreateMethod,(0,i.isDefined)(e.fileName)&&(this.fileName=e.fileName),this.landscape=!!e.landscape,(0,i.isDefined)(e.margins)&&(this.margins=new o.Margin(e.margins)),(0,i.isDefined)(e.format)){var t=e.format;if("string"==typeof t)this.format=t;else{var n=parseInt(t.width),u=parseInt(t.height);this.pageSize=new r.Size(n,u)}}else if((0,i.isDefined)(e.pageSize)){var l=e.pageSize;this.pageSize=l instanceof r.Size?l.clone():new r.Size(l.width,l.height)}if((0,i.isDefined)(e.exportMode)&&(this.exportMode=this.getEnumValue(c.ExportMode,e.exportMode)),(0,i.isDefined)(e.dateRange)){var h=e.dateRange;"number"==typeof h||"string"==typeof h?this.exportDataMode=this.getEnumValue(c.DataExportMode,h):this.dateRange=new s.PdfDataRange(h)}(0,i.isDefined)(e.font)&&(this.font=new a.PdfCustomFontSettings(e.font))}},e.prototype.getEnumValue=function(e,t){if(!(0,i.isDefined)(e[t]))return null;var n=parseInt(t);return isNaN(n)?e[t]:n}
21,e.autoFormatKey="auto",e}();t.GanttPdfExportProps=u},6032:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellDef=void 0;var r=n(2491),i=n(6995),o=function(){function e(e,t,n){this.content="","string"==typeof e?(this.content=e,this.colSpan=t,n&&this.appendStyles(n)):e&&this.assign(e)}return Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles||(this._styles=new i.StyleDef),this._styles},enumerable:!1,configurable:!0}),e.prototype.assign=function(e){(0,r.isDefined)(e.content)&&(this.content=e.content),(0,r.isDefined)(e.colSpan)&&(this.colSpan=e.colSpan),e.styles&&this.appendStyles(e.styles)},e.prototype.appendStyles=function(e){e&&this.styles.assign(e)},e.prototype.hasValue=function(){return!0},e.prototype.getValue=function(){var e={};return e.content=this.content,this.colSpan>1&&(e.colSpan=this.colSpan),this._styles&&(e.styles=this._styles.getValue()),e},e}();t.CellDef=o},405:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Color=void 0;var r=n(2491),i=function(){function e(e){this._num=null,this._opacity=1,this._rgb=null,this.assign(e)}return Object.defineProperty(e.prototype,"opacity",{get:function(){return this._opacity},enumerable:!1,configurable:!0}),e.prototype.hasValue=function(){return(0,r.isDefined)(this._num)||!!this._rgb||0===this._opacity},e.prototype.getValue=function(){return!(0===this._opacity&&!this._rgb)&&((0,r.isDefined)(this._num)?this._num:this._rgb?this.getRBGColor():null)},e.prototype.assign=function(t){this.reset(),"string"==typeof t&&this.assignFromString(t),"number"==typeof t&&(this._num=t),t instanceof Array&&this.assignFromRgbArray(t),t instanceof e&&this.assignFromColor(t)},e.prototype.reset=function(){this._opacity=1,this._num=null,this._rgb=null},e.prototype.assignFromString=function(e){e&&("transparent"===e&&(this._opacity=0),0===e.indexOf("#")&&this.assignFromHexString(e),"rgb"===e.substr(0,3).toLowerCase()&&this.assignFromRgbString(e))},e.prototype.assignFromHexString=function(e){if(4===e.length&&(e="#"+e[1].repeat(2)+e[2].repeat(2)+e[3].repeat(2)),e.length>6){var t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),r=parseInt(e.substr(5,2),16);this._rgb=[t,n,r]}},e.prototype.assignFromRgbString=function(t){var n="rgba"===t.substr(0,4).toLowerCase(),r=t.toLowerCase().match(n?e.rgbaRegexp:e.rgbRegexp);if(r){var i=parseInt(r[1]),o=parseInt(r[2]),s=parseInt(r[3]);this._rgb=[i,o,s],n&&(this._opacity=parseFloat(r[4]))}},e.prototype.assignFromRgbArray=function(e){e&&e.length>2&&(this._rgb=[e[0],e[1],e[2]],(0,r.isDefined)(e[3])&&(this._opacity=e[3]))},e.prototype.assignFromColor=function(e){this._opacity=e._opacity,this._num=e._num,this._rgb=e._rgb},e.prototype.getRBGColor=function(){return this._rgb?this._rgb:[0,0,0]},e.prototype.applyOpacityToBackground=function(t){if(1!==this._opacity){var n=(t instanceof e?t:new e(t)).getValue();if(n instanceof Array){var r=this.opacity,i=Math.round((1-r)*n[0]+r*this._rgb[0]),o=Math.round((1-r)*n[1]+r*this._rgb[1]),s=Math.round((1-r)*n[2]+r*this._rgb[2]);this._rgb=[i,o,s]}}},e.rgbRegexp=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/,e.rgbaRegexp=/rgba?\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,?\s*([0-9]*\.?[0-9]*)\s*\)/,e}();t.Color=i},5510:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttTableDrawer=void 0;var r=n(2491),i=n(8935),o=n(817),s=n(7624),a=function(){function e(e){this._pdfDoc=e}return e.prototype.drawTable=function(e){var t,n;if(e){var r=this.createTableOptions(e);(null===(t=e.style)||void 0===t?void 0:t.fontSize)&&this._pdfDoc.setFontSize(null===(n=e.style)||void 0===n?void 0:n.fontSize),this._pdfDoc.autoTable(r.getValue())}},e.prototype.createTableOptions=function(e){var t=this.createDefaultTableOptions();return this.addTableCommonSettings(e,t),this.addCommonTableStyles(e,t),this.prepareBodyCells(e),t.addBody(e.cells),e.hideRowLines&&this.hideRowLines(t),t},e.prototype.createDefaultTableOptions=function(){var e=new s.TableOptions;return e.pageBreak="auto",e.margin.assign(0),e.tableWidth.assign("auto"),e.styles.cellPadding.assign(0),e.styles.halign="center",e.styles.valign="middle",e.styles.lineWidth=1,e.styles.overflow="hidden",e},e.prototype.addTableCommonSettings=function(e,t){t.startY=e.position.y,t.margin.assign({left:e.position.x}),t.tableWidth.assign(e.size.width)},e.prototype.addCommonTableStyles=function(e,t){var n=t.styles;n.assign(e.style),0===n.fillColor.opacity&&n.fillColor.assign("#FFFFFF"),n.minCellHeight=e.baseCellSize.height,t.alternateRowStyles.minCellHeight=t.styles.minCellHeight,t.alternateRowStyles.fillColor.assign(t.styles.fillColor),(0,r.isDefined)(e.baseCellSize.width)&&n.cellWidth.assign(e.baseCellSize.width)},e.prototype.prepareBodyCells=function(t){var n,r,s;if(t.name===i.PdfPageTableNames.treeListMain||t.name===i.PdfPageTableNames.chartScaleTop||t.name===i.PdfPageTableNames.chartScaleBottom)for(var a=t.cells,c=0;c<a.length;c++)for(var u=a[c],l=0;l<u.length;l++){var h=u[l],d=h.styles,f=(null===(n=null==d?void 0:d.cellWidth)||void 0===n?void 0:n.getValue())||t.baseCellSize.width||0,p=null!==(r=null==d?void 0:d.cellPadding.left)&&void 0!==r?r:0,A=null!==(s=null==d?void 0:d.cellPadding.right)&&void 0!==s?s:0,g=Math.max(f-p-A-e.cellEllipsisSpace,0);h.content=o.EllipsisHelper.limitPdfTextWithEllipsis(h.content,this._pdfDoc,g)}},e.prototype.hideRowLines=function(e){e.styles.lineWidth=0,e.onDrawCellCallback=function(e){var t=e.cell,n=e.doc,r=t.styles.lineColor,
21i=t.x,o=t.x+t.styles.cellWidth,s=t.y,a=t.y+e.row.height,c=e.column.index===e.table.columns.length-1,u=e.row.index===e.table.body.length-1,l=0===e.row.index;n.setDrawColor(r[0],r[1],r[2]),n.setLineWidth(1),n.line(i,a,i,s),c&&n.line(o,a,o,s),l&&n.line(i,s,o,s),u&&n.line(i,a,o,a)}},e.cellEllipsisSpace=3,e}();t.PdfGanttTableDrawer=a},817:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EllipsisHelper=void 0;var n=function(){function e(){}return e.limitPdfTextWithEllipsis=function(t,n,r){if(!(null==n?void 0:n.getTextWidth)||!r)return t;if(n.getTextWidth(t.toString())>r){for(var i=t,o=t.length-1;n.getTextWidth(i)>r&&o>0;)i=i.substring(0,o)+e.ellipsis,o--;return i}return t},e.ellipsis="...",e}();t.EllipsisHelper=n},5063:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Margin=void 0;var r=n(2491),i=n(6907),o=function(){function e(e){this.assign(e)}return e.prototype.assign=function(e){if((0,r.isDefined)(e))if("string"==typeof e)this.assignFromString(e);else if("number"==typeof e||e instanceof Array)this.assignWithValues(e);else{var t=e||e;this.assignWithMargin(t)}},e.prototype.assignFromString=function(e){var t=e.split(" ").map(function(e){return i.DomUtils.pxToInt(e)});this.assignWithValues(t)},e.prototype.assignWithMargin=function(e){(0,r.isDefined)(e.top)&&(this.top=e.top),(0,r.isDefined)(e.right)&&(this.right=e.right),(0,r.isDefined)(e.bottom)&&(this.bottom=e.bottom),(0,r.isDefined)(e.left)&&(this.left=e.left)},e.prototype.assignWithValues=function(e){var t=this.getCorrectedValues(e);this.top=t[0],this.right=t[1],this.bottom=t[2],this.left=t[3]},e.prototype.getCorrectedValues=function(e){var t=[this.top,this.right,this.bottom,this.left];if("number"==typeof e)t=[e,e,e,e];else{var n=e;switch(n.length){case 1:t=[n[0],n[0],n[0],n[0]];break;case 2:t=[n[0],n[1],n[0],n[1]];break;case 3:t=[n[0],n[1],n[2],n[1]];break;default:n.forEach(function(e,n){return t[n]=e})}}return t},e.prototype.hasValue=function(){return(0,r.isDefined)(this.top)||(0,r.isDefined)(this.left)||(0,r.isDefined)(this.right)||(0,r.isDefined)(this.bottom)},e.prototype.getValue=function(){if(!this.hasValue())return null;if(this.top===this.bottom&&this.left===this.right&&this.top===this.left)return this.top;var e={};return(0,r.isDefined)(this.top)&&(e.top=this.top),(0,r.isDefined)(this.left)&&(e.left=this.left),(0,r.isDefined)(this.right)&&(e.right=this.right),(0,r.isDefined)(this.bottom)&&(e.bottom=this.bottom),e},e}();t.Margin=o},2642:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PredefinedStyles=void 0;var n=function(){function e(){}return e.getPredefinedStringOrUndefined=function(e,t){var n=e&&t&&e.toLowerCase()||void 0;return n&&(t.filter(function(e){return e.toLowerCase()===n})[0]||t.filter(function(e){return n.indexOf(e.toLowerCase())>-1})[0])},e.fontFamilies=["helvetica","times","courier"],e.fontStyles=["normal","bold","italic","bolditalic"],e.headerFooterVisibility=["everyPage","firstPage","never"],e.horizontalAlign=["left","center","right"],e.overflow=["linebreak","ellipsize","visible","hidden"],e.pageBreak=["auto","avoid","always"],e.rowPageBreak=["auto","avoid"],e.verticalAlign=["top","middle","bottom"],e.width=["auto","wrap"],e}();t.PredefinedStyles=n},6995:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StyleDef=void 0;var r=n(2491),i=n(6907),o=n(405),s=n(2642),a=n(5063),c=n(7343),u=function(){function e(e){this._fillColor=new o.Color,this._textColor=new o.Color,this._lineColor=new o.Color,this._cellWidth=new c.Width,this._cellPadding=new a.Margin,e&&this.assign(e)}return Object.defineProperty(e.prototype,"font",{get:function(){return this._fontFamily},set:function(e){this._fontFamily=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.fontFamilies)||e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.fontStyles)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize=e}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(e){this._overflow=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.overflow)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"halign",{get:function(){return this._horizontalAlign},set:function(e){this._horizontalAlign=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.horizontalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valign",{get:function(){return this._verticalAlign},set:function(e){this._verticalAlign=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.verticalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillColor",{get:function(){return this._fillColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineColor",{get:function(){return this._lineColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellWidth",{get:function(){return this._cellWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return this._cellPadding},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){this._lineWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCellWidth",{get:function(){return this._minCellWidth},set:function(e){this._minCellWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCellHeight",{get:function(){return this._minCellHeight},set:function(e){this._minCellHeight=e},enumerable:!1,configurable:!0}),e.prototype.assign=function(t){t&&(t instanceof e?((0,r.isDefined)(t.font)&&(this.font=t.font),(0,r.isDefined)(t.fontStyle)&&(this.fontStyle=t.fontStyle),(0,r.isDefined)(t.overflow)&&(this.overflow=t.overflow),(0,r.isDefined)(t.halign)&&(this.halign=t.halign),(0,r.isDefined)(t.valign)&&(this.valign=t.valign),(0,r.isDefined)(t.fontSize)&&(this.fontSize=t.fontSize),(0,r.isDefined)(t.lineWidth)&&(this.lineWidth=t.lineWidth),(0,r.isDefined)(t.minCellWidth)&&(this.minCellWidth=t.minCellWidth),(0,r.isDefined)(t.minCellHeight)&&(this.minCellHeight=t.minCellHeight),(0,r.isDefined)(t.fillColor)&&this.fillColor.assign(t.fillColor),(0,r.isDefined)(t.textColor)&&this.textColor.assign(t.textColor),(0,r.isDefined)(t.lineColor)&&this.lineColor.assign(t.lineColor),(0,r.isDefined)(t.cellWidth)&&this.cellWidth.assign(t.cellWidth),(0,r.isDefined)(t.cellPadding)&&this.cellPadding.assign(t.cellPadding)):this.assignFromCssStyle(t))},e.prototype.assignFromCssStyle=function(e){if(e.fontFamily&&(this.font=this.getPdfFontFamily(e)),this.fontStyle=this.getPdfFontStyle(e),(0,r.isDefined)(e.fontSize)&&(this.fontSize=this.getPfrFontSize(e.fontSize)),e.textAlign&&(this.halign=e.textAlign),e.verticalAlign&&(this.valign=e.verticalAlign),(0,r.isDefined)(e.borderWidth)&&(this.lineWidth=e.borderWidth),(0,r.isDefined)(e.cellWidth)&&this.cellWidth.assign(e.cellWidth),(0,r.isDefined)(e.width)&&(this.minCellWidth="number"==typeof e.width?e.width:i.DomUtils.pxToInt(e.width)),(0,r.isDefined)(e.height)&&(this.minCellHeight="number"==typeof e.height?e.height:i.DomUtils.pxToInt(e.height)),e.backgroundColor&&this.fillColor.assign(e.backgroundColor),e.color&&this.textColor.assign(e.color),e.borderColor&&this.lineColor.assign(e.borderColor),(0,r.isDefined)(e.width)&&this.cellWidth.assign(e.width),this.assignPaddingFromCss(e),(0,r.isDefined)(e.extraLeftPadding)){var t=this._cellPadding.left;this._cellPadding.left=t?t+e.extraLeftPadding:e.extraLeftPadding}},e.prototype.getPdfFontStyle=function(e){var t=e.fontWeight,n=parseInt(t),r="bold"===t||!isNaN(n)&&n>500,i=r?"bold":"normal";return"italic"===e.fontStyle&&(i=r?"bolditalic":"italic"),i},e.prototype.getPdfFontFamily=function(e){var t=e.fontFamily&&e.fontFamily.toLowerCase(),n="helvetica";return t.indexOf("times")>-1&&(n="times"),t.indexOf("courier")>-1&&(n="courier"),n},e.prototype.getPfrFontSize=function(e){var t=i.DomUtils.pxToInt(e);if(!isNaN(t))return Math.ceil(t/96*72)},e.prototype.assignPaddingFromCss=function(e){if(e.padding)this._cellPadding.assign(e.padding);else{var t={};e.paddingLeft&&(t.left=i.DomUtils.pxToInt(e.paddingLeft)),e.paddingTop&&(t.top=i.DomUtils.pxToInt(e.paddingTop)),e.paddingRight&&(t.right=i.DomUtils.pxToInt(e.paddingRight)),e.paddingBottom&&(t.bottom=i.DomUtils.pxToInt(e.paddingBottom)),this._cellPadding.assign(t)}},e.prototype.hasValue=function(){return!0},e.prototype.getValue=function(){var e=this,t={};return(0,r.isDefined)(this.font)&&(t.font=this.font),(0,r.isDefined)(this.fontStyle)&&(t.fontStyle=this.fontStyle),(0,r.isDefined)(this.fontSize)&&(t.fontSize=this.fontSize),(0,r.isDefined)(this.overflow)&&(t.overflow=this.overflow),(0,r.isDefined)(this.halign)&&(t.halign=this.halign),(0,r.isDefined)(this.valign)&&(t.valign=this.valign),(0,r.isDefined)(this.lineWidth)&&(t.lineWidth=this.lineWidth),(0,r.isDefined)(this.minCellWidth)&&(t.minCellWidth=this.minCellWidth),(0,r.isDefined)(this.minCellHeight)&&(t.minCellHeight=this.minCellHeight),this.getJsPdfProviderProps().forEac
21h(function(n){var r=e[n];r&&r.hasValue()&&(t[n]=r.getValue())}),t},e.prototype.getJsPdfProviderProps=function(){return["fillColor","textColor","lineColor","cellWidth","cellPadding"]},e}();t.StyleDef=u},7624:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableOptions=void 0;var r=n(2491),i=n(6032),o=n(405),s=n(2642),a=n(5063),c=n(6995),u=n(7343),l=function(){function e(){this._margin=new a.Margin,this._tableLineColor=new o.Color,this._tableWidth=new u.Width,this._styles=new c.StyleDef,this._alternateRowStyles=new c.StyleDef}return Object.defineProperty(e.prototype,"pageBreak",{get:function(){return this._pageBreak},set:function(e){this._pageBreak=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.pageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowPageBreak",{get:function(){return this._rowPageBreak},set:function(e){this._rowPageBreak=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.rowPageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showHead",{get:function(){return this._showHead},set:function(e){this._showHead=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showFoot",{get:function(){return this._showFoot},set:function(e){this._showFoot=s.PredefinedStyles.getPredefinedStringOrUndefined(e,s.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startY",{get:function(){return this._startY},set:function(e){this._startY=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableLineWidth",{get:function(){return this._tableLineWidth},set:function(e){this._tableLineWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableLineColor",{get:function(){return this._tableLineColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableWidth",{get:function(){return this._tableWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternateRowStyles",{get:function(){return this._alternateRowStyles},enumerable:!1,configurable:!0}),e.prototype.hasValue=function(){return!0},e.prototype.getValue=function(){var e=this,t={};return t.pageBreak=this.pageBreak,t.rowPageBreak=this.rowPageBreak,t.showFoot=this.showFoot,t.showHead=this.showHead,t.startY=this.startY,t.tableLineWidth=this.tableLineWidth,this.getJsPdfProviderProps().forEach(function(n){var r=e[n];r&&r.hasValue()&&(t[n]=r.getValue())}),t.body=this.getBodyForJsPdf(),t.columnStyles=this.getColumnStylesForJsPdf(),this.onDrawCellCallback&&(t.didDrawCell=this.onDrawCellCallback),t},e.prototype.getJsPdfProviderProps=function(){return["margin","tableLineColor","tableWidth","styles","alternateRowStyles"]},e.prototype.getBodyForJsPdf=function(){for(var e=[],t=0;t<this._body.length;t++){for(var n=this._body[t],r=[],i=0;i<n.length;i++)r.push(n[i].getValue());e.push(r)}return e},e.prototype.assign=function(e){e&&((0,r.isDefined)(e.margin)&&this.margin.assign(e.margin),(0,r.isDefined)(e.pageBreak)&&(this.pageBreak=e.pageBreak),(0,r.isDefined)(e.rowPageBreak)&&(this.rowPageBreak=e.rowPageBreak),(0,r.isDefined)(e.showFoot)&&(this.showFoot=e.showFoot),(0,r.isDefined)(e.showHead)&&(this.showHead=e.showHead),(0,r.isDefined)(e.startY)&&(this.startY=e.startY),(0,r.isDefined)(e.tableLineWidth)&&(this.tableLineWidth=e.tableLineWidth),(0,r.isDefined)(e.tableLineColor)&&this.tableLineColor.assign(e.tableLineColor),(0,r.isDefined)(e.tableWidth)&&this.tableWidth.assign(e.tableWidth))},e.prototype.addBody=function(e){e&&(this._body=new Array,this.addCells(e,this._body))},e.prototype.addCells=function(e,t){for(var n=this.styles.fillColor,r=0;r<e.length;r++){for(var o=e[r],s=new Array,a=0;a<o.length;a++){var c=new i.CellDef(o[a]);n.hasValue()&&c.styles&&c.styles.fillColor.hasValue()&&c.styles.fillColor.applyOpacityToBackgroun
21d(n),s.push(c)}t.push(s)}},e.prototype.applyColumnStyle=function(e,t){var n;null!==(n=this._columnStyles)&&void 0!==n||(this._columnStyles=new Array),this._columnStyles[e]=new c.StyleDef(t)},e.prototype.getColumnStylesForJsPdf=function(){if(this._columnStyles){var e={};return this._columnStyles.forEach(function(t,n){t&&(e[n]=t.getValue())}),e}return null},e}();t.TableOptions=l},7343:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Width=void 0;var r=n(2642),i=n(6907),o=function(){function e(e){this.assign(e)}return e.prototype.assign=function(t){if(t instanceof e)this._widthInternal=t._widthInternal;else{var n="number"==typeof t?t:parseInt(t);isNaN(n)?this.assignFromString(t):this._widthInternal=n}},e.prototype.assignFromString=function(e){if(e){var t=i.DomUtils.pxToInt(e);this._widthInternal=t||r.PredefinedStyles.getPredefinedStringOrUndefined(e,r.PredefinedStyles.width)}},e.prototype.hasValue=function(){return!!this._widthInternal},e.prototype.getValue=function(){return this._widthInternal},e}();t.Width=o},8603:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaExportHelper=void 0;var r=n(6907),i=n(858),o=n(1855),s=n(9201),a=n(405),c=n(9895),u=function(){function e(e,t){this._owner=e,this._props=t}return Object.defineProperty(e.prototype,"customRangeLeftOffset",{get:function(){var e;return null!==(e=this._customRangeLeftOffset)&&void 0!==e||(this._customRangeLeftOffset=this.layoutCalculator.getWidthByDateRange(this.startDate,this.ownerStartDate)),this._customRangeLeftOffset},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellSize",{get:function(){return this._owner.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objectsLeftDelta",{get:function(){return this.renderedScaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objectsTopDelta",{get:function(){if(!this.hasTasks)return 0;var e=this.visibleTaskIndices[0];return this.getCellTop(e)+this.getTaskCellOffsetTop(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetLeft",{get:function(){var e;return null!==(e=this._offsetLeft)&&void 0!==e||(this._offsetLeft=Math.max(this.visibleLeft-this.renderedScaleLeft,0)),this._offsetLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetTop",{get:function(){var e;return null!==(e=this._offsetTop)&&void 0!==e||(this._offsetTop=this.getOffsetTop()),this._offsetTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){var e=this.settings.viewType;return[s.DateUtils.ViewTypeToScaleMap[e],e]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleRanges",{get:function(){var e;return null!==(e=this._scaleRanges)&&void 0!==e||(this._scaleRanges=this.layoutCalculator.getScaleRangesInArea(this.scaleLeft,this.scaleRight)),this._scaleRanges},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomStartIndex",{get:function(){return this.scaleRanges[1][0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomEndIndex",{get:function(){return this.scaleRanges[1][1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopStartIndex",{get:function(){return this.scaleRanges[0][0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopEndIndex",{get:function(){return this.scaleRanges[0][1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopWidths",{get:function(){var e;return null!==(e=this._scaleTopWidths)&&void 0!==e||(this._scaleTopWidths=this.getScaleTopWidths()),this._scaleTopWidths},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomWidths",{get:function(){var e;return null!==(e=this._scaleBottomWidths)&&void 0!==e||(this._scaleBottomWidths=this.getScaleBottomWidths()),this._scaleBottomWidths},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerRowHeight",{get:function(){if(!this._headerRowHeight){var e=this.scaleElements[0].filter(function(e){return!!e})[0];this._headerRowHeight=null==e?void 0:e.offsetHeight}return this._headerRowHeight}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTaskIndices",{get:function(){var e;return null!==(e=this._visibleTaskIndices)&&void 0!==e||(this._visibleTaskIndices=this.getTaskIndices()),this._visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellHeight",{get:function(){return this.hasTasks?this.baseCellSize.height:this.taskAreaHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaHeight",{get:function(){return this.hasTasks?this.visibleTaskIndices.length*this.baseCellHeight:this._owner.renderHelper.taskArea.offsetHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTableStyle",{get:function(){var e;return null!==(e=this._scaleTableStyle)&&void 0!==e||(this._scaleTableStyle=this.getScaleTableStyle()),this._scaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartMainTableStyle",{get:function(){var e;return null!==(e=this._chartMainTableStyle)&&void 0!==e||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentRowBackColor",{get:function(){var e;return null!==(e=this._parentRowBackColor)&&void 0!==e||(this._parentRowBackColor=this.getParentBackColor()),this._parentRowBackColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowWidth",{get:function(){var e;return null!==(e=this._arrowWidth)&&void 0!==e||(this._arrowWidth=this.getArrowWidth()),this._arrowWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dependencyColor",{get:function(){var e;return null!==(e=this._dependencyColor)&&void 0!==e||(this._dependencyColor=this.getDependencyColor()),this._dependencyColor},enumerable:!1,configurable:!0}),e.prototype.getTaskElementBackColor=function(e,t){var n=this.getTaskElementStyle(e,t);return null==n?void 0:n.backgroundColor},e.prototype.getTaskElementStyle=function(e,t){var n=this.getTaskWrapper(e);return this.getElementStyle(n.getElementsByClassName(t)[0])},e.prototype.isElementVisible=function(e){return e&&"none"!==getComputedStyle(e).display},Object.defineProperty(e.prototype,"hasTasks",{get:function(){return this.visibleTaskIndices.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleLeft",{get:function(){var e;return null!==(e=this._visibleLeft)&&void 0!==e||(this._visibleLeft=this.isVisibleMode?this.container.scrollLeft:0),this._visibleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTop",{get:function(){var e;return null!==(e=this._visibleTop)&&void 0!==e||(this._visibleTop=this.isVisibleMode?this.container.scrollTop:0),this._visibleTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleRight",{get:function(){var e;return null!==(e=this._visibleRight)&&void 0!==e||(this._visibleRight=this.getVisibleRight()),this._visibleRight},enumerable:!1,configurable:!0}),e.prototype.getVisibleRight=function(){var e=this.container.getElement().offsetWidth;return this.visibleLeft+e},Object.defineProperty(e.prototype,"visibleBottom",{get:function(){var e;return null!==(e=this._visibleBottom)&&void 0!==e||(this._visibleBottom=this.getVisibleBottom()),this._visibleBottom},enumerable:!1,configurable:!0}),e.prototype.getVisibleBottom=function(){return this.isVisibleMode?this.visibleTop+this.container.getHeight():this.visibleTaskIndices.length*this.baseCellSize.height},Object.defineProperty(e.prototype,"scaleLeft",{get:function(){var e;return null!==(e=this._scaleLeft)&&void 0!==e||(this._scaleLeft=this.isVisibleMode?this.visibleLeft:this.getPosByDate(this.startDate)),this._scaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleRight",{get:function(){var e;return null!==(e=this._scaleRight)&&void 0!==e||(this._scaleRight=this.isVisibleMode?this.visibleRight:this.getPosByDate(this.endDate)-1),this._scaleRight},enumerable:!1,configurable:!0}),e.prototype.getScaleTopWidths=function(){var e=this.getScaleWidths(this.scaleTopStartIndex,this.scaleTopEndIndex,this.scales[0]),t=this.layoutCalculator,n=t.getScaleItemInfo(this.scaleBottomStartIndex,this.scales[1]),r=t.getScaleItemInfo(this.scaleTopStartIndex,this.scales[0]),i=Math.max(n.position.x-r.position.x,0);e[this.scaleTopStartIndex]-=i;var o=t.getScaleItemInfo(this.scaleTopEndIndex,this.scales[0]),s=t.getScaleItemInfo(this.scaleBottomEndIndex,this.scales[1]);return i=Math.max(o.position.x+o.size.width-s.position.x-s.size.width,0),e[this.scaleTopEndIndex]-=i,e}
21,e.prototype.getScaleBottomWidths=function(){return this.getScaleWidths(this.scaleBottomStartIndex,this.scaleBottomEndIndex,this.scales[1])},e.prototype.getScaleWidths=function(e,t,n){for(var r=new Array,i=e;i<=t;i++)r[i]=this.layoutCalculator.getScaleItemInfo(i,n).size.width;return r},e.prototype.getOffsetTop=function(){return this.isVisibleMode&&this.hasTasks?this.getTaskCellOffsetTop(this.visibleTaskIndices[0]):0},Object.defineProperty(e.prototype,"renderedScaleLeft",{get:function(){return this.getCellLeft(this.scaleBottomStartIndex)},enumerable:!1,configurable:!0}),e.prototype.getTaskCellOffsetTop=function(e){var t=this.getCellTop(e);return Math.max(this.visibleTop-t,0)},e.prototype.getCellTop=function(e){return this.layoutCalculator.getGridBorderPosition(e-1,!1).y},e.prototype.getCellLeft=function(e){return this.layoutCalculator.getScaleItemInfo(e,this.scales[1]).position.x},e.prototype.getTaskIndices=function(){var e,t;return this.dataMode===c.DataExportMode.all||this.exportRange?this._owner.getAllVisibleTaskIndices(null===(e=this.exportRange)||void 0===e?void 0:e.startIndex,null===(t=this.exportRange)||void 0===t?void 0:t.endIndex):this.getVisibleTaskIndices()},e.prototype.getVisibleTaskIndices=function(){var e=this,t=[];return this.taskElements.forEach(function(n,i){if(n){var o=r.DomUtils.pxToInt(n.style.top),s=o+n.offsetHeight,a=o>=e.visibleTop&&o<=e.visibleBottom,c=s>=e.visibleTop&&s<=e.visibleBottom;(a||c)&&t.push(i)}}),t},Object.defineProperty(e.prototype,"scaleElements",{get:function(){return this._owner.renderHelper.scaleElements.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBorders",{get:function(){return this._owner.renderHelper.scaleBorders.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._owner.renderHelper.hlRowElements.filter(function(e){return!!e})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionElements",{get:function(){return this._owner.renderHelper.selectionElements.filter(function(e){return!!e})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._owner.renderHelper.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"connectorLines",{get:function(){var e,t=this;return null!==(e=this._connectorLines)&&void 0!==e||(this._connectorLines=this._owner.renderHelper.allConnectorLines.filter(function(e){return t.isLineVisible(e)})),this._connectorLines},enumerable:!1,configurable:!0}),e.prototype.isLineVisible=function(e){if(this.dataMode===c.DataExportMode.all)return!0;var t=e.attr["dependency-id"];return this.visibleDependencyKeys.indexOf(t)>-1},Object.defineProperty(e.prototype,"visibleDependencyKeys",{get:function(){var e;return null!==(e=this._visibleDependencyKeys)&&void 0!==e||(this._visibleDependencyKeys=this._owner.getVisibleDependencyKeysByTaskRange(this.visibleTaskIndices)),this._visibleDependencyKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){var e,t=this;return null!==(e=this._resourcesElements)&&void 0!==e||(this._resourcesElements=this.visibleTaskIndices.map(function(e){return t._owner.renderHelper.resourcesElements[e]}).filter(function(e){return t.isElementVisible(e)&&e.parentElement})),this._resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLinesElements",{get:function(){if(!this._stripLinesElements){var e=this._owner.renderHelper.stripLinesMap.filter(function(e){return!!e}).map(function(e){return e});this._stripLinesElements=e.map(function(e){return e})}return this._stripLinesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"noWorkingIntervalsElements",{get:function(){if(!this._noWorkingIntervalsElements){this._noWorkingIntervalsElements=[];var e=this._owner.renderHelper.noWorkingIntervalsToElementsMap;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this._noWorkingIntervalsElements.push(e[t])}return this._noWorkingIntervalsElements}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._owner.renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settings",{get:function(){return this._owner.settings},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataMode",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.exportDataMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportRange",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.dateRange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVisibleMode",{get:function(){return this.dataMode===c.DataExportMode.visible&&!this.exportRange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerStartDate",{get:function(){return this._owner.range.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerEndDate",{get:function(){return this._owner.range.end},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startDate",{get:function(){var e,t,n,r;if((null===(e=this.exportRange)||void 0===e?void 0:e.startDate)&&(null===(t=this.exportRange)||void 0===t?void 0:t.endDate)){var i=Math.min(null===(n=this.exportRange)||void 0===n?void 0:n.startDate.getTime(),null===(r=this.exportRange)||void 0===r?void 0:r.endDate.getTime());return new Date(i)}return this.ownerStartDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){var e,t,n,r;if((null===(e=this.exportRange)||void 0===e?void 0:e.startDate)&&(null===(t=this.exportRange)||void 0===t?void 0:t.endDate)){var i=Math.max(null===(n=this.exportRange)||void 0===n?void 0:n.startDate.getTime(),null===(r=this.exportRange)||void 0===r?void 0:r.endDate.getTime());return new Date(i)}return this.ownerEndDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCustomRangeOutOfRender",{get:function(){return this.startDate.getTime()!==this.ownerStartDate.getTime()||this.endDate.getTime()!==this.ownerEndDate.getTime()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layoutCalculator",{get:function(){if(!this._layoutCalculator){var e=this._owner.renderHelper.gridLayoutCalculator;this.hasCustomRangeOutOfRender?(this._layoutCalculator=new o.GridLayoutCalculator,this._layoutCalculator.setSettings(e.visibleTaskAreaSize,e.tickSize,e.elementSizeValues,new i.DateRange(this.startDate,this.endDate),e.viewModel,e.viewType,e.scrollBarHeight,this._owner.settings.firstDayOfWeek)):this._layoutCalculator=e}return this._layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._owner.renderHelper.taskAreaContainer},enumerable:!1,configurable:!0}),e.prototype.getPosByDate=function(e){return this.layoutCalculator.getPosByDate(e)},e.prototype.getScaleTableStyle=function(){var e={},t=this.scaleElements[0].filter(function(e){return!!e})[0],n=this.getElementStyle(t);return e.backgroundColor=this.findElementBackColor(t),e.borderColor=this.getChartTableBorderColor(),e.verticalAlign="middle",e.textAlign="center",e.fontSize=n.fontSize,e.fontFamily=n.fontFamily,e.fontWeight=n.fontWeight,e.fontStyle=n.fontStyle,e.color=n.color,e},e.prototype.getChartMainTableStyle=function(){var e={};return e.backgroundColor=this.findElementBackColor(this.taskArea),e.borderColor=this.getChartTableBorderColor(),e},e.prototype.findElementBackColor=function(e){if(!e)return null;for(var t=e,n=new a.Color("transparent");0===n.opacity&&t;){var r=this.getElementStyle(t);n.assign(r.backgroundColor),t=t.parentElement}return n},e.prototype.getChartTableBorderColor=function(){var e=this.getElementStyle(this.scaleBorders[0].filter(function(e){return!!e})[0]);return null==e?void 0:e.borderColor},e.prototype.getParentBackColor=function(){var e=this.getElementStyle(this.hlRowElements[0]);return null==e?void 0:e.backgroundColor},e.prototype.getArrowWidth=function(){var e=this.getDependencyLineStyle(o.GridLayoutCalculator.arrowClassName),t=e.borderWidth||e.borderLeftWidth||e.borderRightWidth||e.borderTopWidth||e.borderBottomWidth;return e&&r.DomUtils.pxToInt(t)},e.prototype.getDependencyColor=function(){var e=this.getDependencyLineStyle(o.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL);return null==e?void 0:e.borderColor},e.prototype.getDependencyLineStyle=function(e){return this.getElementStyle(this.taskArea.getElementsByClassName(e)[0])},e.prototype.getElementStyle=function(e){return e&&getComputedStyle(e)},e.prototype.getTaskWrapper=function(e){return this.isTaskTemplateMode?this._owner.renderHelper.fakeTaskWrapper:(this.taskElements[e]||this._owner.renderHelper.createDefaultTaskElement(e),this.taskElements[e])},Object.defineProperty(e.prototype,"isTaskTemplateMode",{get:function(){return!!this._owner.settings.taskContentTemplate}
21,enumerable:!1,configurable:!0}),e}();t.TaskAreaExportHelper=u},6057:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionBase=void 0;var r=n(2491),i=n(2601),o=function(){function e(){this._items=new Array,this._isGanttCollection=!0}return e.prototype.add=function(e){if((0,r.isDefined)(e)){if(this.getItemById(e.internalId))throw"The collection item with id ='"+e.internalId+"' already exists.";this._addItem(e)}},e.prototype.addRange=function(e){for(var t=0;t<e.length;t++)this.add(e[t])},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>-1&&t<this._items.length&&this._removeItems(t,1)},e.prototype.clear=function(){this._removeItems(0,this._items.length)},e.prototype.invalidate=function(){delete this._invertedItems},e.prototype._addItem=function(e){this._items.push(e),delete this._invertedItems},e.prototype._removeItems=function(e,t){this._items.splice(e,t),delete this._invertedItems},Object.defineProperty(e.prototype,"items",{get:function(){return this._items.slice()},set:function(e){e&&(this._items=e.slice())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e.prototype.getItem=function(e){return e>-1&&e<this._items.length?this._items[e]:null},Object.defineProperty(e.prototype,"invertedItems",{get:function(){var e;return null!==(e=this._invertedItems)&&void 0!==e||(this._invertedItems=this._createInvertedItems()),this._invertedItems},enumerable:!1,configurable:!0}),e.prototype._createInvertedItems=function(){for(var e={},t=0;t<this._items.length;t++){var n=this._items[t];e[n.internalId]=n}return e},e.prototype.getItemById=function(e){return this.invertedItems[e]},e.prototype.getItemByPublicId=function(e){return this._items.filter(function(t){return t.id===e||t.id.toString()===e})[0]},e.prototype.assign=function(e){(0,r.isDefined)(e)&&(this.items=e.items)},e.prototype.importFromObject=function(e){(0,r.isDefined)(e)&&(this.clear(),e._isGanttCollection?this.assign(e):e instanceof Array?this.importFromArray(e):this.createItemFromObjectAndAdd(e))},e.prototype.createItemFromObjectAndAdd=function(e){if((0,r.isDefined)(e)&&Object.keys(e).length>0){var t=this.createItem();t.assignFromObject(e),this.add(t)}},e.prototype.importFromArray=function(e){for(var t=0;t<e.length;t++)this.createItemFromObjectAndAdd(e[t])},e.prototype.importFromJSON=function(e){this.importFromObject(i.GanttJsonUtils.parseJson(e))},e}();t.CollectionBase=o},7380:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyCollection=void 0;var r=n(655),i=n(6057),o=n(7352),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.createItem=function(){return new o.Dependency},t}(i.CollectionBase);t.DependencyCollection=s},4432:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingDayRuleCollection=void 0;var r=n(655),i=n(6057),o=n(8401),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.createItem=function(){return new o.WorkingTimeRule},t}(i.CollectionBase);t.WorkingDayRuleCollection=s},9883:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceAssignmentCollection=void 0;var r=n(655),i=n(6057),o=n(7437),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.createItem=function(){return new o.ResourceAssignment},t}(i.CollectionBase);t.ResourceAssignmentCollection=s},8828:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceCollection=void 0;var r=n(655),i=n(6057),o=n(2301),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.createItem=function(){return new o.Resource},t}(i.CollectionBase);t.ResourceCollection=s},9504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCollection=void 0;var r=n(655),i=n(8492),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.createItem=function(){return new i.Task},t}(n(6057).CollectionBase);t.TaskCollection=o},5594:(e,t)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var n=function(){function e(){this.listeners=[]}return e.prototype.add=function(e){if(!e)throw new Error("Error");this.hasEventListener(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0,n=void 0;n=this.listeners[t];t++)if(n===e){this.listeners.splice(t,1);break}},e.prototype.raise=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=void 0;i=this.listeners[r];r++){var o=i[e];null==o||o.apply(i,t)}},e.prototype.hasEventListener=function(e){for(var t=0,n=this.listeners.length;t<n;t++)if(this.listeners[t]===e)return!0;return!1},e}();t.EventDispatcher=n},3452:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ModelChangesDispatcher=void 0;var r=n(255),i=n(8403),o=n(8738),s=n(9669),a=n(5594),c=function(){function e(){this.onModelChanged=new a.EventDispatcher,this.isLocked=!1}return e.prototype.notifyTaskCreating=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskCreating",e)},e.prototype.notifyTaskCreated=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyTaskCreated",e,t,n)},e.prototype.notifyTaskRemoving=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoving",e)},e.prototype.notifyTaskRemoved=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoved",e,t,n)},e.prototype.notifyTaskUpdating=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdating",e)},e.prototype.notifyTaskMoving=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskMoving",e)},e.prototype.notifyTaskEditDialogShowing=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskEditDialogShowing",e)},e.prototype.notifyResourceManagerDialogShowing=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceManagerDialogShowing",e)},e.prototype.notifyTaskUpdated=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdated",e,t,n)},e.prototype.notifyParentTaskUpdated=function(e,t){this.isLocked||this.onModelChanged.raise("NotifyParentTaskUpdated",e,t)},e.prototype.notifyDependencyInserting=function(e){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserting",e)},e.prototype.notifyDependencyInserted=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserted",e,t,n)},e.prototype.notifyDependencyRemoving=function(e){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoving",e)},e.prototype.notifyDependencyRemoved=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoved",e,t,n)},e.prototype.notifyResourceCreating=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceCreating",e)},e.prototype.notifyResourceCreated=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyResourceCreated",e,t,n)},e.prototype.notifyResourceRemoving=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoving",e)},e.prototype.notifyResourceRemoved=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoved",e,t,n)},e.prototype.notifyResourceColorChanged=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyResourceColorChanged",e,t,n)},e.prototype.notifyResourceAssigning=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigning",e)},e.prototype.notifyResourceAssigned=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigned",e,t,n)},e.prototype.notifyResourceUnassigning=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigning",e)},e.prototype.notifyResourceUnassigned=function(e,t,n){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigned",e,t,n)},e.prototype.notifyParentDataRecalculated=function(e){this.onModelChanged.raise("NotifyParentDataRecalculated",e)},e.prototype.notifyScaleCellPrepared=function(e){this.onModelChanged.raise("NotifyScaleCellPrepared",e)},e.prototype.notifyGanttViewUpdated=function(){this.onModelChanged.raise("NotifyGanttViewUpdated")},e.prototype.fireResourceUnassigning=function(e){var t=new o.ResourceUnassigningArguments(e);return this.notifyResourceUnassigning(t),!t.cancel},e.prototype.raiseTaskUpdating=function(e,t,n){var r=new s.TaskUpdatingArguments(e,t);return this.notifyTaskUpdating(r),!r.cancel&&(n(r.newValues),!0)},e.prototype.raiseTaskMoving=function(e,t,n,r){var i=new s.TaskUpdatingArguments(e,{start:t,end:n});return this.notifyTaskMoving(i),!i.cancel&&(r(i.start,i.end),!0)},e.prototype.raiseTaskTaskEditDialogShowing=function(e,t){var n=new i.TaskEditDialogShowingArguments(e);return this.notifyTaskEditDialogShowing(n),!n.cancel&&(t(n),!0)},e.prototype.raiseResourceManagerDialogShowing=function(e,t){var n=new r.ResourceManagerDialogShowingArguments(e);return this.notifyResourceManagerDialogShowing(n),!n.cancel&&(t(n),!0)},e.prototype.lock=function(){this.isLocked=!0},e.prototype.unlock=function(){this.isLocked=!1},e}();
21t.ModelChangesDispatcher=c},6124:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GanttDataObjectNames=t.DataObject=void 0;var r=n(2491),i=n(8679),o=function(){function e(){this.internalId=i.MathUtils.generateGuid()}return e.prototype.assignFromObject=function(e){(0,r.isDefined)(e)&&(0,r.isDefined)(e.id)&&this.updateId(e.id)},e.prototype.updateId=function(e){this.id=e,this.internalId=String(e)},e}();t.DataObject=o,t.GanttDataObjectNames={task:"task",dependency:"dependency",resource:"resource",resourceAssignment:"assignment"}},7352:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Dependency=void 0;var r=n(655),i=n(2491),o=n(6124),s=n(5950),a=function(e){function t(){var t=e.call(this)||this;return t.predecessorId="",t.successorId="",t.type=null,t}return r.__extends(t,e),Object.defineProperty(t.prototype,"isStartDependency",{get:function(){return this.type===s.DependencyType.SS||this.type===s.DependencyType.SF},enumerable:!1,configurable:!0}),t.prototype.assignFromObject=function(t){(0,i.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.predecessorId=String(t.predecessorId),this.successorId=String(t.successorId),this.type=this.parseType(t.type))},t.prototype.parseType=function(e){if(!(0,i.isDefined)(e))return s.DependencyType.FS;switch(e.toString().toUpperCase()){case"SS":case"1":return s.DependencyType.SS;case"FF":case"2":return s.DependencyType.FF;case"SF":case"3":return s.DependencyType.SF;default:return s.DependencyType.FS}},t}(o.DataObject);t.Dependency=a},5950:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyType=t.TaskType=void 0,function(e){e[e.Regular=0]="Regular",e[e.Summary=1]="Summary",e[e.Milestone=2]="Milestone"}(t.TaskType||(t.TaskType={})),function(e){e[e.FS=0]="FS",e[e.SS=1]="SS",e[e.FF=2]="FF",e[e.SF=3]="SF"}(t.DependencyType||(t.DependencyType={}))},2301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Resource=void 0;var r=n(655),i=n(2491),o=function(e){function t(){var t=e.call(this)||this;return t.text="",t.color="",t}return r.__extends(t,e),t.prototype.assignFromObject=function(t){(0,i.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.text=t.text,(0,i.isDefined)(t.color)&&(this.color=t.color))},t}(n(6124).DataObject);t.Resource=o},7437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceAssignment=void 0;var r=n(655),i=n(2491),o=function(e){function t(){var t=e.call(this)||this;return t.taskId="",t.resourceId="",t}return r.__extends(t,e),t.prototype.assignFromObject=function(t){(0,i.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.taskId=String(t.taskId),this.resourceId=String(t.resourceId))},t}(n(6124).DataObject);t.ResourceAssignment=o},8492:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Task=void 0;var r=n(655),i=n(2491),o=n(6124),s=-8e15,a=function(e){function t(){var t=e.call(this)||this;return t.start=null,t.end=null,t.duration=null,t.description="",t.parentId=null,t.title="",t.owner=null,t.progress=0,t.taskType=null,t.customFields={},t.expanded=!0,t.color="",t}return r.__extends(t,e),Object.defineProperty(t.prototype,"normalizedProgress",{get:function(){return Math.max(Math.min(this.progress,100),0)},enumerable:!1,configurable:!0}),t.prototype.assignFromObject=function(t){(0,i.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.owner=t.owner,this.parentId=(0,i.isDefined)(t.parentId)?String(t.parentId):null,this.rawParentId=t.parentId,this.description=t.description,this.title=t.title,this.start="string"==typeof t.start?new Date(t.start):t.start||this.createInvalidDate(),this.end="string"==typeof t.end?new Date(t.end):t.end||this.createInvalidDate(),this.duration=t.duration,this.progress=t.progress,this.taskType=t.taskType,(0,i.isDefined)(t.expanded)&&(this.expanded=!!t.expanded),(0,i.isDefined)(t.color)&&(this.color=t.color),this.assignCustomFields(t.customFields))},t.prototype.assignCustomFields=function(e){if(e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.customFields[t]=e[t])},t.prototype.isMilestone=function(){return this.start.getTime()===this.end.getTime()},t.prototype.getDuration=function(){return this.end.getTime()-this.start.getTime()},t.prototype.isValidStart=function(){return this.isValidTaskaDte(this.start)},t.prototype.isValidEnd=function(){return this.isValidTaskaDte(this.end)},t.prototype.isValid=function(){return this.isValidStart()&&this.isValidEnd()},t.prototype.createInvalidDate=function(){return new Date(s)},t.prototype.isValidTaskaDte=function(e){return!!e&&e.getTime()!==s},t}(o.DataObject);t.Task=a},8774:(e,t)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseArguments=void 0;var n=function(e){this.cancel=!1,this.values={},this.key=e};t.BaseArguments=n},3279:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyInsertingArguments=void 0;var r=n(655),i=function(e){function t(t,n,r){var i=e.call(this,null)||this;return i.values={predecessorId:t,successorId:n,type:r},i}return r.__extends(t,e),Object.defineProperty(t.prototype,"predecessorId",{get:function(){return this.values.predecessorId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"successorId",{get:function(){return this.values.successorId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.values.type},enumerable:!1,configurable:!0}),t}(n(8774).BaseArguments);t.DependencyInsertingArguments=i},4797:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyRemovingArguments=void 0;var r=n(655),i=function(e){function t(t){var n=e.call(this,t.id)||this;return n.values=t,n}return r.__extends(t,e),t}(n(8774).BaseArguments);t.DependencyRemovingArguments=i},255:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceManagerDialogShowingArguments=void 0;var r=n(655),i=function(e){function t(t){var n=e.call(this,void 0)||this;return n.values.resources=t.resources,n}return r.__extends(t,e),t}(n(8774).BaseArguments);t.ResourceManagerDialogShowingArguments=i},8403:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditDialogShowingArguments=void 0;var r=n(655),i=function(e){function t(t){var n=e.call(this,t.id)||this;return n.values={start:t.start,end:t.end,title:t.title,progress:t.progress},n.hiddenFields=t.hiddenFields,n.readOnlyFields=t.readOnlyFields,n}return r.__extends(t,e),t}(n(8774).BaseArguments);t.TaskEditDialogShowingArguments=i},1389:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceAssigningArguments=void 0;var r=n(655),i=function(e){function t(t,n){var r=e.call(this,null)||this;return r.values={resourceId:t,taskId:n},r}return r.__extends(t,e),Object.defineProperty(t.prototype,"resourceId",{get:function(){return this.values.resourceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"taskId",{get:function(){return this.values.taskId},enumerable:!1,configurable:!0}),t}(n(8774).BaseArguments);t.ResourceAssigningArguments=i},8738:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceUnassigningArguments=void 0;var r=n(655),i=function(e){function t(t){var n=e.call(this,t.internalId)||this;return n.values=t,n}return r.__extends(t,e),t}(n(8774).BaseArguments);t.ResourceUnassigningArguments=i},990:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceInsertingArguments=void 0;var r=n(655),i=function(e){function t(t,n){void 0===n&&(n="");var r=e.call(this,null)||this;return r.values={text:t,color:n},r}return r.__extends(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.values.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),t}(n(8774).BaseArguments);t.ResourceInsertingArguments=i},9748:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceRemovingArguments=void 0;var r=n(655),i=function(e){function t(t){var n=e.call(this,t.id)||this;return n.values=t,n}return r.__extends(t,e),t}(n(8774).BaseArguments);t.ResourceRemovingArguments=i},4605:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskInsertingArguments=void 0;var r=n(655),i=function(e){function t(t,n){var r=e.call(this,t)||this;return r.values=null!=n?n:{},r}return r.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.values.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.values.end},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.values.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.values.progress}
21,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentId",{get:function(){return this.values.parentId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),t}(n(8774).BaseArguments);t.TaskInsertingArguments=i},4642:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskRemovingArguments=void 0;var r=n(655),i=function(e){function t(t){var n=e.call(this,t.id)||this;return n.values=t,n}return r.__extends(t,e),t}(n(8774).BaseArguments);t.TaskRemovingArguments=i},9669:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskUpdatingArguments=void 0;var r=n(655),i=function(e){function t(t,n){var r=e.call(this,t.id)||this;return r.values=t,r.createNewValues(n),r}return r.__extends(t,e),t.prototype.createNewValues=function(e){var t=this;this.newValues={};var n=function(n){Object.prototype.hasOwnProperty.call(e,n)&&(r.newValues[n]=e[n],Object.defineProperty(r,n,{get:function(){return t.newValues[n]}}))},r=this;for(var i in e)n(i)},t}(n(8774).BaseArguments);t.TaskUpdatingArguments=i},8725:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.History=void 0;var r=n(5221),i=n(9751),o=function(){function e(e){this.historyItems=[],this.currentIndex=-1,this.currentProcessingItemInfo=null,this.transaction=null,this.transactionLevel=-1,this._listener=e}return e.prototype.undo=function(){this.canUndo()&&(this.activateItem(this.historyItems[this.currentIndex],!0),this.currentIndex--)},e.prototype.redo=function(){this.canRedo()&&(this.currentIndex++,this.activateItem(this.historyItems[this.currentIndex]))},e.prototype.beginTransaction=function(){var e;this.transactionLevel++,0==this.transactionLevel&&(this.transaction=new i.CompositionHistoryItem,null===(e=this._listener)||void 0===e||e.onTransactionStart())},e.prototype.endTransaction=function(){var e;if(!(--this.transactionLevel>=0)){var t=this.transaction.historyItems.length;t>1?this.addInternal(this.transaction):1==t&&this.addInternal(this.transaction.historyItems.pop()),this.transaction=null,null===(e=this._listener)||void 0===e||e.onTransactionEnd()}},e.prototype.addAndRedo=function(e){this.add(e),this.activateItem(e)},e.prototype.add=function(e){this.transactionLevel>=0?this.transaction.add(e):this.addInternal(e)},e.prototype.canUndo=function(){return this.currentIndex>=0},e.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},e.prototype.addInternal=function(e){this.currentIndex<this.historyItems.length-1&&this.historyItems.splice(this.currentIndex+1),this.historyItems.push(e),this.currentIndex++,this.deleteOldItems()},e.prototype.deleteOldItems=function(){var t=this.historyItems.length-e.MAX_HISTORY_ITEM_COUNT;t>0&&this.currentIndex>t&&(this.historyItems.splice(0,t),this.currentIndex-=t)},e.prototype.clear=function(){this.currentIndex=-1,this.historyItems=[]},e.prototype.activateItem=function(e,t){void 0===t&&(t=!1),this.currentProcessingItemInfo=new r.HistoryItemInfo(e,t),t?e.undo():e.redo(),this.currentProcessingItemInfo=null},e.prototype.getCurrentProcessingItemInfo=function(){return this.currentProcessingItemInfo},e.prototype.rollBackAndRemove=function(e){var t=e.item;this.checkAndRemoveItem(t)&&(e.isUndo?t.redo():t instanceof i.CompositionHistoryItem?t.undoItemsQuery():t.undo())},e.prototype.checkAndRemoveItem=function(e){var t=this.historyItems.indexOf(e);return t>-1?(this.historyItems.splice(t,1),this.currentIndex--):this.transaction&&(t=this.transaction.historyItems.indexOf(e))>-1&&this.transaction.historyItems.splice(t,1),t>-1},e.prototype.updateObsoleteInsertedKey=function(e,t,n){this.transaction&&this.updateItemsObsoleteInsertedKey(e,t,n,[this.transaction]),this.updateItemsObsoleteInsertedKey(e,t,n,this.historyItems)},e.prototype.updateItemsObsoleteInsertedKey=function(e,t,n,r){if(r)for(var o=0;o<r.length;o++){var s=r[o];s.keyUpdaters.filter(function(t){return t.getKey()===e&&t.objectType===n}).forEach(function(e){return e.updateKey(t)}),s instanceof i.CompositionHistoryItem&&this.updateItemsObsoleteInsertedKey(e,t,n,s.historyItems)}},e.MAX_HISTORY_ITEM_COUNT=100,e}();t.History=o},9751:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHistoryItem=void 0;var r=n(655),i=function(e){function t(){var t=e.call(this,null)||this;return t.historyItems=[],t}return r.__extends(t,e),t.prototype.redo=function(){for(var e,t=0;e=this.historyItems[t];t++)e.redo()},t.prototype.undo=function(){for(var e,t=this.historyItems.length-1;e=this.historyItems[t];t--)e.undo()},t.prototype.add=function(e){if(null==e)throw new Error("Can't add null HistoryItem");this.historyItems.push(e)},t.prototype.undoItemsQuery=function(){this.undo()},t.prototype.setModelManipulator=function(t){if(e.prototype.setModelManipulator.call(this,t),this.historyItems)for(var n=0;n<this.historyItems.length;n++)this.historyItems[n].setModelManipulator(t)},t}(n(7917).HistoryItem);t.CompositionHistoryItem=i},1211:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InsertDependencyHistoryItem=void 0;var r=n(655),i=n(8679),o=n(6124),s=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predecessorId=n,o.successorId=r,o.type=i,o}return r.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=i.MathUtils.generateGuid()),this.modelManipulator.dependency.insertDependency(this.predecessorId,this.successorId,this.type,this.insertedKey)},t.prototype.undo=function(){this.modelManipulator.dependency.removeDependency(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.dependency,getKey:function(){return e.insertedKey},updateKey:function(t){return e.insertedKey=t}},{objectType:o.GanttDataObjectNames.task,getKey:function(){return e.predecessorId},updateKey:function(t){return e.predecessorId=t}},{objectType:o.GanttDataObjectNames.task,getKey:function(){return e.successorId},updateKey:function(t){return e.successorId=t}}]},enumerable:!1,configurable:!0}),t}(n(7917).HistoryItem);t.InsertDependencyHistoryItem=s},5865:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveDependencyHistoryItem=void 0;var r=n(655),i=n(6124),o=function(e){function t(t,n){var r=e.call(this,t)||this;return r.dependencyId=n,r}return r.__extends(t,e),t.prototype.redo=function(){this.dependency=this.modelManipulator.dependency.removeDependency(this.dependencyId)},t.prototype.undo=function(){this.modelManipulator.dependency.insertDependency(this.dependency.predecessorId,this.dependency.successorId,this.dependency.type,this.dependencyId)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:i.GanttDataObjectNames.dependency,getKey:function(){return e.dependencyId},updateKey:function(t){return e.dependencyId=t}},{objectType:i.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.dependency)||void 0===t?void 0:t.predecessorId},updateKey:function(t){return e.dependency.predecessorId=t}},{objectType:i.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.dependency)||void 0===t?void 0:t.successorId},updateKey:function(t){return e.dependency.successorId=t}}]},enumerable:!1,configurable:!0}),t}(n(7917).HistoryItem);t.RemoveDependencyHistoryItem=o},7917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryItem=void 0;var n=function(){function e(e){this.setModelManipulator(e)}return e.prototype.setModelManipulator=function(e){this.modelManipulator=e},Object.defineProperty(e.prototype,"keyUpdaters",{get:function(){return[]},enumerable:!1,configurable:!0}),e}();t.HistoryItem=n},5221:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryItemInfo=void 0;var n=function(e,t){void 0===t&&(t=!1),this.item=e,this.isUndo=t};t.HistoryItemInfo=n},3064:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryItemState=void 0;var n=function(e,t){this.id=e,this.value=t};t.HistoryItemState=n},3683:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AssignResourceHistoryItem=void 0;var r=n(655),i=n(7917),o=n(6124),s=n(8679),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.resourceId=n,i.taskId=r,i}return r.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=s.MathUtils.generateGuid()),this.modelManipulator.resource.assign(this.resourceId,this.taskId,this.insertedKey)},t.prototype.undo=function(){this.modelManipulator.resource.deassig(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.resourceAssignment,getKey:function(){return e.insertedKey},updateKey:function(t){return e.insertedKey=t}},{objectType:o.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}},{objectType:o.GanttDataObjectNames.resource,getKey:function(){return e.resourceId},updateKey:function(t){return e.resourceId=t}}]}
21,enumerable:!1,configurable:!0}),t}(i.HistoryItem);t.AssignResourceHistoryItem=a},1493:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DeassignResourceHistoryItem=void 0;var r=n(655),i=n(7917),o=n(6124),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.assignmentId=n,r}return r.__extends(t,e),t.prototype.redo=function(){this.assignment=this.modelManipulator.resource.deassig(this.assignmentId)},t.prototype.undo=function(){this.modelManipulator.resource.assign(this.assignment.resourceId,this.assignment.taskId,this.assignmentId)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.resourceAssignment,getKey:function(){return e.assignmentId},updateKey:function(t){return e.assignmentId=t}},{objectType:o.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.assignment)||void 0===t?void 0:t.taskId},updateKey:function(t){return e.assignment.taskId=t}},{objectType:o.GanttDataObjectNames.resource,getKey:function(){var t;return null===(t=e.assignment)||void 0===t?void 0:t.resourceId},updateKey:function(t){return e.assignment.resourceId=t}}]},enumerable:!1,configurable:!0}),t}(i.HistoryItem);t.DeassignResourceHistoryItem=s},2961:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateResourceHistoryItem=void 0;var r=n(655),i=n(7917),o=n(6124),s=n(8679),a=function(e){function t(t,n,r,i){void 0===r&&(r="");var o=e.call(this,t)||this;return o.text=n,o.color=r,o.createCallback=i,o}return r.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=s.MathUtils.generateGuid()),this.modelManipulator.resource.create(this.text,this.color,this.insertedKey,this.createCallback)},t.prototype.undo=function(){this.modelManipulator.resource.remove(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.resource,getKey:function(){return e.insertedKey},updateKey:function(t){return e.insertedKey=t}}]},enumerable:!1,configurable:!0}),t}(i.HistoryItem);t.CreateResourceHistoryItem=a},4641:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceColorHistoryItem=void 0;var r=n(655),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.resource.properties.color},t}(n(7049).ResourcePropertiesHistoryItemBase);t.ResourceColorHistoryItem=i},7049:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePropertiesHistoryItemBase=void 0;var r=n(655),i=n(6124),o=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.resourceId=n,i.newValue=r,i}return r.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.resourceId,this.newValue)},t.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.oldState)},t.prototype.getPropertiesManipulator=function(){throw new Error("Not Implemented")},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:i.GanttDataObjectNames.resource,getKey:function(){return e.resourceId},updateKey:function(t){return e.resourceId=t}}]},enumerable:!1,configurable:!0}),t}(n(7917).HistoryItem);t.ResourcePropertiesHistoryItemBase=o},7466:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveResourceHistoryItem=void 0;var r=n(655),i=n(9751),o=n(6124),s=function(e){function t(t,n){var r=e.call(this)||this;return r.modelManipulator=t,r.resourceId=n,r}return r.__extends(t,e),t.prototype.redo=function(){e.prototype.redo.call(this),this.resource=this.modelManipulator.resource.remove(this.resourceId)},t.prototype.undo=function(){var t=this;this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,function(){t.resource.color&&t.modelManipulator.resource.properties.color.setValue(t.resource.internalId,t.resource.color),window.setTimeout(function(){return e.prototype.undo.call(t)},0)})},t.prototype.undoItemsQuery=function(){this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,function(){}),this.resource.color&&this.modelManipulator.resource.properties.color.setValue(this.resource.internalId,this.resource.color),e.prototype.undo.call(this)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.resource,getKey:function(){return e.resourceId},updateKey:function(t){return e.resourceId=t}}]}
21,enumerable:!1,configurable:!0}),t}(i.CompositionHistoryItem);t.RemoveResourceHistoryItem=s},1284:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateTaskHistoryItem=void 0;var r=n(655),i=n(8679),o=n(6124),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return r.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=i.MathUtils.generateGuid()),this.modelManipulator.task.create(this.data,this.insertedKey)},t.prototype.undo=function(){this.modelManipulator.task.remove(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e,t=this,n=[{objectType:o.GanttDataObjectNames.task,getKey:function(){return t.insertedKey},updateKey:function(e){return t.insertedKey=e}}];return(null===(e=this.data)||void 0===e?void 0:e.parentId)&&n.push({objectType:o.GanttDataObjectNames.task,getKey:function(){var e;return null===(e=t.data)||void 0===e?void 0:e.parentId},updateKey:function(e){return t.data.parentId=e}}),n},enumerable:!1,configurable:!0}),t}(n(7917).HistoryItem);t.CreateTaskHistoryItem=s},9599:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveTaskHistoryItem=void 0;var r=n(655),i=n(6124),o=n(9751),s=function(e){function t(t,n){var r=e.call(this)||this;return r.modelManipulator=t,r.taskId=n,r}return r.__extends(t,e),t.prototype.redo=function(){e.prototype.redo.call(this),this.task=this.modelManipulator.task.remove(this.taskId)},t.prototype.undo=function(){var t=this;this.modelManipulator.task.create(this.task,this.taskId,function(){window.setTimeout(function(){return e.prototype.undo.call(t)},0)})},t.prototype.undoItemsQuery=function(){var e;this.modelManipulator.task.create(this.task,this.taskId);for(var t=this.historyItems.length-1;e=this.historyItems[t];t--)e instanceof o.CompositionHistoryItem?e.undoItemsQuery():e.undo()},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:i.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}},{objectType:i.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.task)||void 0===t?void 0:t.parentId},updateKey:function(t){return e.task.parentId=t}}]},enumerable:!1,configurable:!0}),t}(o.CompositionHistoryItem);t.RemoveTaskHistoryItem=s},9496:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTaskHistoryItem=void 0;var r=n(655),i=n(6124),o=n(7917),s=n(3064),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.taskId=n,i.newValues=r,i}return r.__extends(t,e),t.prototype.redo=function(){var e=this.modelManipulator.task.update(this.taskId,this.newValues);this.oldState=new s.HistoryItemState(this.taskId,e)},t.prototype.undo=function(){this.modelManipulator.task.update(this.taskId,this.oldState.value)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:i.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}}]},enumerable:!1,configurable:!0}),t}(o.HistoryItem);t.UpdateTaskHistoryItem=a},6382:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseManipulator=void 0;var n=function(){function e(e,t){this.viewModel=e,this.dispatcher=t}return e.prototype.getErrorCallback=function(){return this.viewModel.getDataUpdateErrorCallback()},Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this.viewModel.owner.renderHelper},enumerable:!1,configurable:!0}),e}();t.BaseManipulator=n},1178:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskDependencyManipulator=void 0;var r=n(655),i=n(6124),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.insertDependency=function(e,t,n,r){var o=this.viewModel;o.onBeginDataObjectCreate();var s=o.dependencies.createItem();return s.predecessorId=e,s.successorId=t,s.type=n,r&&(s.internalId=r),s.id=s.internalId,o.dependencies.add(s),o.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(s.internalId,!0),this.dispatcher.notifyDependencyInserted(this.getObjectForDataSource(s),function(e){var t=s.internalId;s.updateId(e),o.processServerInsertedKey(t,s.internalId,i.GanttDataObjectNames.dependency)},this.getErrorCallback()),o.onEndDataObjectCreate(),s},t.prototype.removeDependency=function(e){var t=this.viewModel.dependencies.getItemById(e);return this.viewModel.dependencies.remove(t),this.dispatcher.notifyDependencyRemoved(t.id,this.getErrorCallback(),this.viewModel.getDependencyObjectForDataSource(t)),this.viewModel.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(t.internalId),t},t.prototype.getObjectForDataSource=function(e){var t=this.viewModel.tasks.getItemById(e.predecessorId),n=this.viewModel.tasks.getItemById(e.successorId);return{id:e.id,predecessorId:t.id,successorId:n.id,type:e.type}},t}(n(6382).BaseManipulator);t.TaskDependencyManipulator=o},9650:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.ModelManipulator=void 0;var r=n(1178),i=n(7518),o=n(728),s=function(e,t){this.task=new o.TaskManipulator(e,t),this.dependency=new r.TaskDependencyManipulator(e,t),this.resource=new i.ResourcesManipulator(e,t),this.dispatcher=t};t.ModelManipulator=s},4596:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceColorManipulator=void 0;var r=n(655),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getPropertyValue=function(e){return e.color},t.prototype.setPropertyValue=function(e,t){e.color=t,this.dispatcher.notifyResourceColorChanged(e.id,t,this.getErrorCallback())},t}(n(7470).ResourcePropertyManipulator);t.ResourceColorManipulator=i},79:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePropertiesManipulator=void 0;var r=n(655),i=n(6382),o=n(4596),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.color=new o.ResourceColorManipulator(t,n),r}return r.__extends(t,e),t}(i.BaseManipulator);t.ResourcePropertiesManipulator=s},7470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePropertyManipulator=void 0;var r=n(655),i=n(3064),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.setValue=function(e,t){var n=this,r=this.viewModel.resources.getItemById(e),o=new i.HistoryItemState(e,this.getPropertyValue(r));return this.setPropertyValue(r,t),this.viewModel.assignments.items.filter(function(e){return e.resourceId===r.internalId}).forEach(function(e){var t=n.viewModel.findItem(e.taskId).visibleIndex;n.renderHelper.recreateTaskElement(t)}),o},t.prototype.restoreValue=function(e){var t=this;if(e){var n=e.value,r=this.viewModel.resources.getItemById(e.id);this.setPropertyValue(r,n),this.viewModel.assignments.items.filter(function(e){return e.resourceId===r.internalId}).forEach(function(e){var n=t.viewModel.findItem(e.taskId).visibleIndex;t.renderHelper.recreateTaskElement(n)})}},t}(n(6382).BaseManipulator);t.ResourcePropertyManipulator=o},7518:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesManipulator=void 0;var r=n(655),i=n(6124),o=n(6382),s=n(79),a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.properties=new s.ResourcePropertiesManipulator(t,n),r}return r.__extends(t,e),t.prototype.create=function(e,t,n,r){var o=this.viewModel;o.onBeginDataObjectCreate();var s=o.resources.createItem();return s.text=e,t&&(s.color=t),n&&(s.internalId=n),s.id=s.internalId,this.viewModel.resources.add(s),this.dispatcher.notifyResourceCreated(this.getResourceObjectForDataSource(s),function(e){var t=s.internalId;s.updateId(e),o.processServerInsertedKey(t,s.internalId,i.GanttDataObjectNames.resource),r&&r(e)},this.getErrorCallback()),o.onEndDataObjectCreate(),s},t.prototype.remove=function(e){var t=this.viewModel.resources.getItemById(e);if(!t)throw new Error("Invalid resource id");if(this.viewModel.assignments.items.filter(function(t){return t.resourceId===e}).length)throw new Error("Can't delete assigned resource");return this.viewModel.resources.remove(t),this.dispatcher.notifyResourceRemoved(t.id,this.getErrorCallback(),this.viewModel.getResourceObjectForDataSource(t)),t},t.prototype.assign=function(e,t,n){var r=this.viewModel;r.onBeginDataObjectCreate();var o=r.assignments.createItem();return o.resourceId=e,o.taskId=t,n&&(o.internalId=n),o.id=o.internalId,this.viewModel.assignments.add(o),this.dispatcher.notifyResourceAssigned(this.getResourceAssignmentObjectForDataSource(o),function(e){var t=o.internalId;o.updateId(e),r.processServerInsertedKey(t,o.internalId,i.GanttDataObjectNames.resourceAssignment)},this.getErrorCallback()),this.viewModel.updateModel(),r.onEndDataObjectCreate(),this.viewModel.owner.resetAndUpdate(),o},t.prototype.deassig=function(e){var t=this.viewModel.assignments.getItemById(e);return this.viewModel.assignments.remove(t),this.dispatcher.notifyResourceUnassigned(t.id,this.getErrorCallback(),this.viewModel.getResourceAssignmentObjectForDataSource(t)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),t},t.prototype.getResourceObjectForDataSource=function(e){return{id:e.id,text:e.text}},t.prototype.getResourceAssignmentObjectForDataSource=function(e){return{id:e.id,taskId:this.viewModel.tasks.getItemById(e.taskId).id,resourceId:this.viewModel.resources.getItemById(e.resourceId).id}},t}(o.BaseManipulator);t.ResourcesManipulator=a}
21,728:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskManipulator=void 0;var r=n(655),i=n(2491),o=n(6124),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.create=function(e,t,n){var r=this,i=this.viewModel;i.onBeginDataObjectCreate();var s=i.tasks.createItem();s.start=e.start,s.end=e.end,s.title=e.title,s.progress=e.progress,e.color&&(s.color=e.color);var a=i.tasks.getItemById(e.parentId);return a&&(a.expanded=!0),s.parentId=e.parentId,t&&(s.internalId=t),s.id=s.internalId,i.tasks.add(s),i.updateModel(),this.dispatcher.notifyTaskCreated(this.getObjectForDataSource(s),function(e){var t=s.internalId;if(s.updateId(e),i.processServerInsertedKey(t,s.internalId,o.GanttDataObjectNames.task),n&&n(),r.viewModel.requireFirstLoadParentAutoCalc){var a=i.getCurrentTaskData().map(function(e){return""===e.parentId&&(e.parentId=null),e});r.dispatcher.notifyParentDataRecalculated(a)}},this.getErrorCallback()),i.onEndDataObjectCreate(),i.owner.resetAndUpdate(),s},t.prototype.remove=function(e){var t=this.viewModel.tasks.getItemById(e);if(!t)throw new Error("Invalid task id");if(this.viewModel.dependencies.items.filter(function(t){return t.predecessorId==e||t.successorId==e}).length)throw new Error("Can't delete task with dependency");if(this.viewModel.assignments.items.filter(function(t){return t.taskId==e}).length)throw new Error("Can't delete task with assigned resource");return this.viewModel.tasks.remove(t),this.dispatcher.notifyTaskRemoved(t.id,this.getErrorCallback(),this.viewModel.getTaskObjectForDataSource(t)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),t},t.prototype.update=function(e,t){var n=this.viewModel.tasks.getItemById(e),r={};Object.keys(t).forEach(function(e){(0,i.isDefined)(n[e])&&(r[e]=n[e],n[e]=t[e])});var o=this.viewModel.findItem(e);return o&&this.renderHelper.recreateTaskElement(o.visibleIndex),this.dispatcher.notifyTaskUpdated(n.id,t,this.getErrorCallback()),r},t.prototype.getObjectForDataSource=function(e){return this.viewModel.getTaskObjectForDataSource(e)},t}(n(6382).BaseManipulator);t.TaskManipulator=s},2601:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GanttJsonUtils=void 0;var r=n(9937),i=function(){function e(){}return e.parseJson=function(e){return r.JsonUtils.isValid(e)?JSON.parse(e):null},e}();t.GanttJsonUtils=i},8478:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationController=void 0;var r=n(655),i=n(2491),o=n(9201),s=n(5950),a=n(9496),c=n(858),u=n(7880),l=n(4927),h=function(){function e(e){this.lockPredecessorToSuccessor=!0,this.settings=e}return Object.defineProperty(e.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"history",{get:function(){return this.settings.getHistory()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.settings.getModelManipulator()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this.settings.getRange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationSettings",{get:function(){return this.settings.getValidationSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_parentAutoCalc",{get:function(){return this.viewModel.parentAutoCalc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enablePredecessorGap",{get:function(){return this.viewModel.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValidateDependenciesRequired",{get:function(){return this.settings.getIsValidateDependenciesRequired()},enumerable:!1,configurable:!0}),e.prototype.updateOwnerInAutoParentMode=function(){this.settings.updateOwnerInAutoParentMode()},e.prototype.checkStartDependencies=function(e,t){var n=this,r=[],i=this.viewModel.tasks.getItemById(e);return this.viewModel.dependencies.items.filter(function(t){return t.successorId===e}).forEach(function(e){var o=n.viewModel.tasks.getItemById(e.predecessorId);(e.type===s.DependencyType.FS&&o.end>t||e.type===s.DependencyType.SS&&o.start>t)&&r.push(new l.ValidationError(e.internalId,!0)),(e.type===s.DependencyType.FS&&o.end.valueOf()===i.start.valueOf()&&t>o.end||e.type===s.DependencyType.SS&&o.start.valueOf()===i.start.valueOf()&&t>o.start)&&r.push(new l.ValidationError(e.internalId))}),r},e.prototype.checkEndDependencies=function(e,t){var n=this,r=[],i=this.viewModel.tasks.getItemById(e);return this.viewModel.dependencies.items.filter(function(t){return t.successorId===e}
21).forEach(function(e){var o=n.viewModel.tasks.getItemById(e.predecessorId);(e.type===s.DependencyType.SF&&o.start>t||e.type===s.DependencyType.FF&&o.end>t)&&r.push(new l.ValidationError(e.internalId,!0)),(e.type===s.DependencyType.SF&&o.start.valueOf()===i.end.valueOf()&&t>o.start||e.type===s.DependencyType.FF&&o.end.valueOf()===i.end.valueOf()&&t>o.end)&&r.push(new l.ValidationError(e.internalId))}),r},e.prototype.moveEndDependTasks=function(e,t,n){var r=this;void 0===n&&(n=null);var i=this.viewModel.dependencies.items.filter(function(t){return t.predecessorId===e&&!t.isStartDependency}),o=this.viewModel.tasks.getItemById(e);i.forEach(function(e){var i=r.viewModel.tasks.getItemById(e.successorId);if(!(!i||n&&r.viewModel.checkParent(i.internalId,n)||i.parentId===o.id)){var u=new c.DateRange(new Date(i.start.getTime()),new Date(i.end.getTime())),l=new c.DateRange(new Date(i.start.getTime()),new Date(i.end.getTime())),h=o.end.getTime()-t.getTime(),d=r.enablePredecessorGap?o.end:t;if(e.type===s.DependencyType.FS&&(i.start<d||r.lockPredecessorToSuccessor&&i.start.getTime()===t.getTime())?(l.start.setTime(o.end.getTime()),l.end.setTime(l.start.getTime()+(i.end.getTime()-i.start.getTime())),r.correctMoving(i.internalId,l)):e.type===s.DependencyType.FF&&(i.end<d||r.lockPredecessorToSuccessor&&i.end.getTime()===t.getTime())?(l.start.setTime(o.end.getTime()-(i.end.getTime()-i.start.getTime())),l.end.setTime(o.end.getTime()),r.correctMoving(i.internalId,l)):r.enablePredecessorGap||(l.start.setTime(i.start.getTime()+h),l.end.setTime(i.end.getTime()+h)),!u.equal(l)){var f={start:l.start,end:l.end};r.history.addAndRedo(new a.UpdateTaskHistoryItem(r.modelManipulator,e.successorId,f)),r.moveRelatedTasks(e,u,i,l)}}})},e.prototype.moveStartDependTasks=function(e,t,n){var r=this;void 0===n&&(n=null);var i=this.viewModel.dependencies.items.filter(function(t){return t.predecessorId===e&&t.isStartDependency}),o=this.viewModel.tasks.getItemById(e);i.forEach(function(e){var i=r.viewModel.tasks.getItemById(e.successorId);if(!(!i||n&&r.viewModel.checkParent(i.internalId,n)||i.parentId===o.id)){var u=new c.DateRange(new Date(i.start.getTime()),new Date(i.end.getTime())),l=new c.DateRange(new Date(i.start.getTime()),new Date(i.end.getTime())),h=o.start.getTime()-t.getTime(),d=r.enablePredecessorGap?o.start:t;if(e.type===s.DependencyType.SF&&(i.end<d||r.lockPredecessorToSuccessor&&i.end.getTime()===t.getTime())?(l.start.setTime(o.start.getTime()-(i.end.getTime()-i.start.getTime())),l.end.setTime(o.start.getTime()),r.correctMoving(i.internalId,l)):e.type===s.DependencyType.SS&&(i.start<d||r.lockPredecessorToSuccessor&&i.start.getTime()===t.getTime())?(l.start.setTime(o.start.getTime()),l.end.setTime(o.start.getTime()+(i.end.getTime()-i.start.getTime())),r.correctMoving(i.internalId,l)):r.enablePredecessorGap||(l.start.setTime(i.start.getTime()+h),l.end.setTime(i.end.getTime()+h)),!u.equal(l)){var f={start:l.start,end:l.end};r.history.addAndRedo(new a.UpdateTaskHistoryItem(r.modelManipulator,e.successorId,f)),r.moveRelatedTasks(e,u,i,l)}}})},e.prototype.moveRelatedTasks=function(e,t,n,r){var i=r.start.getTime()-t.start.getTime();this.correctParentsOnChildMoving(n.internalId,i),this.moveStartDependTasks(e.successorId,t.start),this.moveEndDependTasks(e.successorId,t.end)},e.prototype.getCorrectDateRange=function(e,t,n){var i=this,o=new c.DateRange(new Date(t),new Date(n));return r.__spreadArray(r.__spreadArray([],this.checkStartDependencies(e,o.start),!0),this.checkEndDependencies(e,o.end),!0).filter(function(e){return e.critical}).forEach(function(e){var t=i.viewModel.dependencies.getItemById(e.dependencyId),n=i.viewModel.tasks.getItemById(t.predecessorId);t.type===s.DependencyType.FS&&o.start<n.end&&o.start.setTime(n.end.getTime()),t.type===s.DependencyType.SS&&o.start<n.start&&o.start.setTime(n.start.getTime()),t.type===s.DependencyType.FF&&o.end<n.end&&o.end.setTime(n.end.getTime()),t.type===s.DependencyType.SF&&o.end<n.start&&o.end.setTime(n.start.getTime())}),o},e.prototype.correctMoving=function(e,t){var n=this,i=t.end.getTime()-t.start.getTime();return r.__spreadArray(r.__spreadArray([],this.checkStartDependencies(e,t.start),!0),this.checkEndDependencies(e,t.end),!0).filter(function(e){return e.critical}
21).forEach(function(e){var r=n.viewModel.dependencies.getItemById(e.dependencyId),o=n.viewModel.tasks.getItemById(r.predecessorId);r.type===s.DependencyType.FS&&t.start<o.end&&(t.start.setTime(o.end.getTime()),t.end.setTime(t.start.getTime()+i)),r.type===s.DependencyType.SS&&t.start<o.start&&(t.start.setTime(o.start.getTime()),t.end.setTime(t.start.getTime()+i)),r.type===s.DependencyType.FF&&t.end<o.end&&(t.end.setTime(o.end.getTime()),t.start.setTime(t.end.getTime()-i)),r.type===s.DependencyType.SF&&t.end<o.start&&(t.end.setTime(o.start.getTime()),t.start.setTime(t.end.getTime()-i))}),t},e.prototype.recalculateParents=function(e,t){for(var n=e&&e.parent;n&&n.task;){for(var r=n.children,i=this.range.end,o=this.range.start,s=0,a=0,c={id:n.task.internalId},l=0;l<r.length;l++){var h=r[l].task;if(h.isValid()){i=u.DateTimeUtils.getMinDate(i,h.start),o=u.DateTimeUtils.getMaxDate(o,h.end);var d=h.getDuration();s+=h.progress*d,a+=d}}u.DateTimeUtils.areDatesEqual(n.task.start,i)||(c.start=i),u.DateTimeUtils.areDatesEqual(n.task.end,o)||(c.end=o),c.oldStart=n.task.start,c.oldEnd=n.task.end,(s=a>0?Math.round(s/a):0)!==n.task.progress&&(c.progress=s),t(c),n=n.parent}},e.prototype.updateParentsRangeByChild=function(e){var t=this;this.recalculateParents(this.viewModel.findItem(e),function(e){if((0,i.isDefined)(e.id)){var n=t.history,r=t.modelManipulator;(0,i.isDefined)(e.start)&&(n.addAndRedo(new a.UpdateTaskHistoryItem(r,e.id,{start:e.start})),t.moveStartDependTasks(e.id,e.oldStart)),(0,i.isDefined)(e.end)&&(n.addAndRedo(new a.UpdateTaskHistoryItem(r,e.id,{end:e.end})),t.moveEndDependTasks(e.id,e.oldEnd)),(0,i.isDefined)(e.progress)&&n.addAndRedo(new a.UpdateTaskHistoryItem(r,e.id,{progress:e.progress}))}})},e.prototype.updateChildRangeByParent=function(e,t,n){var r=this.viewModel.findItem(e);if(r&&0!==r.children.length)for(var i=r.children,s=0;s<i.length;s++){var c=i[s].task,u=new Date(c.start.getTime()+t),l=o.DateUtils.getRangeMSPeriod(c.start,c.end),h=o.DateUtils.getDSTCorrectedTaskEnd(u,l);n.push({id:c.internalId,start:c.start,end:c.end}),this.history.addAndRedo(new a.UpdateTaskHistoryItem(this.modelManipulator,c.internalId,{start:u,end:h})),this.updateChildRangeByParent(c.internalId,t,n)}},e.prototype.updateParentsIfRequired=function(e){this._parentAutoCalc&&(this.updateParentsRangeByChild(e),this.updateOwnerInAutoParentMode())},e.prototype.correctParentsOnChildMoving=function(e,t){var n=this;if(this._parentAutoCalc&&0!==t){this.updateParentsRangeByChild(e);var r=[];this.updateChildRangeByParent(e,t,r),this.isValidateDependenciesRequired&&r.forEach(function(t){n.moveStartDependTasks(t.id,t.start,e),n.moveEndDependTasks(t.id,t.end,e)}),this.updateOwnerInAutoParentMode()}},e.prototype.canCreateDependency=function(e,t){return this.viewModel.canCreateDependency(e,t)},e}();t.ValidationController=h},4927:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationError=void 0;var n=function(e,t){void 0===t&&(t=!1),this.dependencyId=e,this.critical=t};t.ValidationError=n},6350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ViewVisualModelDependencyInfo=void 0;var n=function(e,t,n){this.id=e,this.predecessor=t,this.type=n};t.ViewVisualModelDependencyInfo=n},3562:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ViewVisualModelItem=void 0;var r=n(2491),i=n(6353),o=function(){function e(e,t){this.dependencies=new Array,this.parent=null,this.visible=!0,this.selected=!1,this.visibleIndex=-1,this.task=e,this.resources=t,this.children=new Array,this.isCustom=!1,this.size=new i.Size(0,0)}return Object.defineProperty(e.prototype,"resourceText",{get:function(){var e="";return this.resources.items.forEach(function(t){return e+=t.text+" "}),e},enumerable:!1,configurable:!0}),e.prototype.addChild=function(e){(0,r.isDefined)(e)&&this.children.indexOf(e)<0&&this.children.push(e)},e.prototype.removeChild=function(e){var t=this.children.indexOf(e);t>-1&&this.children.splice(t,1)},e.prototype.getExpanded=function(){return!!this.task&&this.task.expanded},e.prototype.getVisible=function(){if(!this.visible)return!1;for(var e=this.parent;e;){if(!e.visible)return!1;e=e.parent}return!0},e.prototype.changeVisibility=function(e){this.visible=e},e.prototype.changeSelection=function(e){this.selected=e},e.prototype.setDependencies=function(e){e&&(this.dependencies=e.slice())},e}();t.ViewVisualModelItem=o},1408:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.ViewVisualModel=void 0;var r=n(8828),i=n(9504),o=n(7380),s=n(9883),a=n(3562),c=n(6350),u=n(21),l=n(2491),h=n(6124),d=n(7352),f=n(2301),p=n(7437),A=function(){function e(e,t,n,a,c,l,h){this._fLockCount=0,this.lockChangesProcessing=!1,this.owner=e,this.tasks=new i.TaskCollection,this.tasks.importFromObject(t),this.dependencies=new o.DependencyCollection,this.dependencies.importFromObject(n),this.resources=new r.ResourceCollection,this.resources.importFromObject(a),this.assignments=new s.ResourceAssignmentCollection,this.assignments.importFromObject(c),this._itemList=new Array,this._viewItemList=new Array,this._workTimeCalculator=new u.WorkingTimeCalculator(l,h),this.updateModel(!0)}return Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this.owner.renderHelper},enumerable:!1,configurable:!0}),e.prototype.updateModel=function(e){this._itemList.splice(0,this._itemList.length);for(var t=this.tasks.items,n=0;n<t.length;n++){var r=t[n];r&&this._itemList.push(new a.ViewVisualModelItem(r,this.getAssignedResources(r)))}this.createHierarchy(e),this.populateItemsForView(),this.owner&&this.owner.currentSelectedTaskID&&this.changeTaskSelected(this.owner.currentSelectedTaskID,!0)},e.prototype.createHierarchy=function(e){var t=this;this.root=new a.ViewVisualModelItem(null,null);for(var n=this._itemList,r=n.reduce(function(e,t){var n,r=null===(n=t.task)||void 0===n?void 0:n.internalId;return(0,l.isDefined)(r)&&(e[r]=t),e},{}),i=this.requireFirstLoadParentAutoCalc&&e,o=0;o<n.length;o++){var s=n[o],c=r[s.task.parentId]||this.root;s.parent=c,c.addChild(s),i&&this.owner.validationController.recalculateParents(s,function(e){if((0,l.isDefined)(e.id)){var n=t.tasks.getItemById(e.id);(0,l.isDefined)(e.start)&&(n.start=e.start),(0,l.isDefined)(e.end)&&(n.end=e.end),(0,l.isDefined)(e.progress)&&(n.progress=e.progress)}})}i&&this.owner.dispatcher.notifyParentDataRecalculated(this.getCurrentTaskData())},e.prototype.getCurrentTaskData=function(){var e=this;return this.tasks.items.map(function(t){return e.getTaskObjectForDataSource(t)})},e.prototype.getTaskObjectForDataSource=function(e){var t=e.parentId&&this.tasks.getItemById(e.parentId),n=this.getRootTaskId(),r=n&&e.parentId===n?this.getRootRawValue():null==t?void 0:t.id;return{id:e.id,start:e.isValidStart()?e.start:null,end:e.isValidEnd()?e.end:null,duration:e.duration,description:e.description,parentId:r,progress:e.progress,color:e.color,taskType:e.taskType,title:e.title,customFields:e.customFields,expanded:e.expanded}},e.prototype.getDependencyObjectForDataSource=function(e){var t=e instanceof d.Dependency?e:this.getItemByPublicId("dependency",e);if(t){var n=this.convertInternalToPublicKey("task",t.predecessorId),r=this.convertInternalToPublicKey("task",t.successorId);return{id:t.id,predecessorId:(0,l.isDefined)(n)?n:t.predecessorId,successorId:(0,l.isDefined)(r)?r:t.successorId,type:t.type}}return null},e.prototype.getResourceObjectForDataSource=function(e){var t=e instanceof f.Resource?e:this.getItemByPublicId("resource",e);return t?{id:t.id,text:t.text,color:t.color}:null},e.prototype.getResourceAssignmentObjectForDataSource=function(e){var t=e instanceof p.ResourceAssignment?e:this.getItemByPublicId("assignment",e);if(t){var n=this.convertInternalToPublicKey("task",t.taskId),r=this.convertInternalToPublicKey("resource",t.resourceId);return{id:t.id,taskId:(0,l.isDefined)(n)?n:t.taskId,resourceId:(0,l.isDefined)(r)?r:t.resourceId}}return null},e.prototype.getRootRawValue=function(){var e,t,n;return null!==(n=null===(t=null===(e=this.root.children[0])||void 0===e?void 0:e.task)||void 0===t?void 0:t.rawParentId)&&void 0!==n?n:null},e.prototype.populateItemsForView=function(){this._viewItemList.splice(0,this._viewItemList.length),this.populateVisibleItems(this.root),this.updateVisibleItemDependencies()},e.prototype.populateVisibleItems=function(e){var t=this,n=e===this.root;e&&(e.task||n)&&(n||(this._viewItemList.push(e),e.visibleIndex=this._viewItemList.length-1),(e.getExpanded()||e===this.root)&&e.children.forEach(function(e){return t.populateVisibleItems(e)}))},e.prototype.updateVisibleItemDependencies=function(){for(var e=this._viewItemList,t=0;t<e.length;t++){var n=e[t],r=this.getTasVisibleDependencies(n.task);n.setDependencies(r)}},e.prototype.getAssignedResources=function(e){var t=this,n=new r.ResourceCollection;return this.assignments.items.filter(function(t){return t.taskId==e.internalId}
21).forEach(function(e){n.add(t.resources.getItemById(e.resourceId))}),n},e.prototype.getTasVisibleDependencies=function(e){for(var t=new Array,n=e.internalId,r=this.dependencies.items.filter(function(e){return e.successorId==n}),i=0;i<r.length;i++){var o=r[i],s=this.findItem(o.predecessorId);s&&s.getVisible()&&t.push(new c.ViewVisualModelDependencyInfo(o.internalId,s,o.type))}return t},e.prototype.changeTaskExpanded=function(e,t){var n=this.tasks.getItemById(String(e));n&&(n.expanded=t,this.changed())},e.prototype.changeTaskVisibility=function(e,t){var n=this.findItem(e);n&&(n.visible=t,this.changed())},e.prototype.changeTaskSelected=function(e,t){var n=this._itemList.filter(function(t){return t.task&&t.task.internalId===e})[0];if(n){n.selected=t;var r=this.findItem(e),i=r&&r.visibleIndex;i>-1&&this.renderHelper.recreateTaskElement(i)}},e.prototype.beginUpdate=function(){this._fLockCount++},e.prototype.endUpdate=function(){this._fLockCount--,0==this._fLockCount&&this.changed()},e.prototype.compareTaskOrder=function(e){var t=new i.TaskCollection;t.importFromObject(e);var n=t.items,r=this.tasks.items;if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var s=n[o],a=r[o];if(s.id!==a.id)return!1}return!0},e.prototype.refreshTaskDataIfRequires=function(e){var t=!this.lockChangesProcessing&&!this.compareTaskOrder(e);if(t){var n=this.saveTaskInternalIds();this.tasks.importFromObject(e),this.restoreTaskInternalIds(n),this.updateModel()}return t},e.prototype.saveTaskInternalIds=function(){var e={};return this.tasks.items.map(function(t){return e[t.id]=t.internalId}),e},e.prototype.restoreTaskInternalIds=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=this.tasks.getItemByPublicId(t);n&&(n.internalId=e[t])}},e.prototype.canCreateDependency=function(e,t){if(!e||!t||e===t)return!1;var n=!1;if(this.enableDependencyValidation){var r=this.getDependentTasksHash();n=this.parentAutoCalc?this.checkTasksInterdependence(e,t,r)||this.checkParent(e,t)||this.checkParent(t,e):this.checkDependencyChain([e],[t],r,[])}return!n},e.prototype.checkParent=function(e,t){return this.getTaskTreeLine(e).indexOf(t)>-1},e.prototype.getTaskTreeLine=function(e){var t=[e],n=this.findItem(e);if(n)for(n=n.parent;null==n?void 0:n.task;)t.push(null==n?void 0:n.task.internalId),n=n.parent;else for(var r=this.tasks.getItemById(e),i=this.tasks.getItemById(null==r?void 0:r.parentId);i;)t.push(i.id),i=this.tasks.getItemById(i.parentId);return t},e.prototype.getDependentTasksHash=function(){var e={};return this.dependencies.items.forEach(function(t){var n,r,i=t.predecessorId,o=t.successorId;null!==(n=e[i])&&void 0!==n||(e[i]=[]),e[i].indexOf(o)<0&&e[i].push(o),null!==(r=e[o])&&void 0!==r||(e[o]=[]),e[o].indexOf(i)<0&&e[o].push(i)}),e},e.prototype.checkTasksInterdependence=function(e,t,n){for(var r,i,o=this.getTaskTreeLine(e).reverse(),s=this.getTaskTreeLine(t).reverse(),a=0;a<o.length-1;a++){var c=o[a],u=s.indexOf(c);u>-1&&(r=o[a+1],i=s[u+1])}return r||i||(r=o[0],i=s[0]),this.checkDependencyChain(this.getBranchIds(r),this.getBranchIds(i),n,[])},e.prototype.checkDependencyChain=function(e,t,n,r){if(e.some(function(e){return t.indexOf(e)>-1}))return!0;r.push.apply(r,e);for(var i=0;i<e.length;i++){var o=n[e[i]];if(o&&this.checkDependencyChain(o.filter(function(e){return-1===r.indexOf(e)}),t,n,r))return!0}return!1},e.prototype.getBranchIds=function(e){var t=this,n=[e],r=this.findItem(e),i=null==r?void 0:r.children;return i&&i.forEach(function(e){var r,i=null===(r=e.task)||void 0===r?void 0:r.internalId;i&&(n=n.concat(t.getBranchIds(i)))}),n},e.prototype.getTasksExpandedState=function(){var e=this.tasks.items,t={};return e.forEach(function(e){return t[e.id]=e.expanded}),t},e.prototype.applyTasksExpandedState=function(e){if(e){for(var t in this.beginUpdate(),e)Object.prototype.hasOwnProperty.call(e,t)&&this.changeTaskExpanded(t,e[t]);this.endUpdate()}},e.prototype.changed=function(){0===this._fLockCount&&(this.populateItemsForView(),this.owner&&this.owner.onVisualModelChanged&&this.owner.onVisualModelChanged())},e.prototype.findItem=function(e){return this._viewItemList.filter(function(t){return t.task&&t.task.internalId===e})[0]},Object.defineProperty(e.prototype,"items",{get:function(){return this._viewItemList}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemCount",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.getTaskVisibility=function(e){var t=this.findItem(e);return!!t&&t.getVisible()},e.prototype.getTaskSelected=function(e){var t=this.findItem(e);return!!t&&t.selected},Object.defineProperty(e.prototype,"noWorkingIntervals",{get:function(){return this._workTimeCalculator.noWorkingIntervals},enumerable:!1,configurable:!0}),e.prototype.updateRange=function(e){this._workTimeCalculator.updateRange(e)},e.prototype.taskHasChildrenByIndex=function(e){return this._viewItemList[e].children.length>0},e.prototype.taskHasChildren=function(e){var t=this.findItem(e);return t&&t.children.length>0},Object.defineProperty(e.prototype,"enableDependencyValidation",{get:function(){var e,t=this.owner&&this.owner.settings;return null===(e=null==t?void 0:t.validation)||void 0===e?void 0:e.validateDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentAutoCalc",{get:function(){var e=this.owner&&this.owner.settings;return e&&e.validation&&e.validation.autoUpdateParentTasks},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enablePredecessorGap",{get:function(){var e=this.owner&&this.owner.settings;return e&&e.validation&&e.validation.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requireFirstLoadParentAutoCalc",{get:function(){return this.parentAutoCalc&&this.owner.requireFirstLoadParentAutoCalc()},enumerable:!1,configurable:!0}),e.prototype.isTaskToCalculateByChildren=function(e){return this.parentAutoCalc&&this.taskHasChildren(e)},e.prototype.hasTasks=function(){return this.tasks.length>0},e.prototype.getDataUpdateErrorCallback=function(){return this.owner.getDataUpdateErrorCallback&&this.owner.getDataUpdateErrorCallback()},e.prototype.convertPublicToInternalKey=function(e,t){var n=this.getItemByPublicId(e,t);return n&&n.internalId},e.prototype.convertInternalToPublicKey=function(e,t){var n=this.getItemByInternalId(e,t);return n&&n.id},e.prototype.getItemByPublicId=function(e,t){var n=t.toString();switch(e){case"task":return this.tasks.getItemByPublicId(n);case"dependency":return this.dependencies.getItemByPublicId(n);case"resource":return this.resources.getItemByPublicId(n);case"assignment":return this.assignments.getItemByPublicId(n)}return null},e.prototype.getItemByInternalId=function(e,t){switch(e){case"task":return this.tasks.getItemById(t);case"dependency":return this.dependencies.getItemById(t);case"resource":return this.resources.getItemById(t);case"assignment":return this.assignments.getItemById(t)}return null},e.prototype.findAssignment=function(e,t){var n=this.convertPublicToInternalKey("resource",e),r=this.convertPublicToInternalKey("task",t);return this.assignments.items.filter(function(e){return e.resourceId===n&&e.taskId===r})[0]},e.prototype.findAllTaskAssignments=function(e){return this.assignments.items.filter(function(t){return t.taskId===e})},e.prototype.getAllVisibleTaskIndices=function(e,t){var n,r=[];null!=e||(e=0),null!=t||(t=this._viewItemList.length-1);for(var i=e;i<=t;i++){var o=this._viewItemList[i];(null==o?void 0:o.getVisible())&&(null===(n=null==o?void 0:o.task)||void 0===n?void 0:n.isValid())&&r.push(i)}return r},e.prototype.getVisibleTasks=function(){var e=this;return this.tasks.items.filter(function(t){return t&&e.getTaskVisibility(t.internalId)&&t.isValid()})},e.prototype.getVisibleDependencies=function(){var e=this.getVisibleTasks().map(function(e){return e.internalId});return this.dependencies.items.filter(function(t){return t&&e.indexOf(t.successorId)>-1&&e.indexOf(t.predecessorId)>-1})},e.prototype.getVisibleResourceAssignments=function(){var e=this.getVisibleTasks().map(function(e){return e.internalId});return this.assignments.items.filter(function(t){return t&&e.indexOf(t.taskId)>-1})},e.prototype.getVisibleResources=function(){for(var e=[],t=this.getVisibleResourceAssignments(),n=0;n<t.length;n++){var r=this.getItemByInternalId("resource",t[n].resourceId);r&&-1===e.indexOf(r)&&e.push(r)}return e},e.prototype.getRootTaskId=function(){var e;return null!==(e=this.rootTaskId)&&void 0!==e||(this.rootTaskId=this.calculateRootTaskId()),this.rootTaskId},e.prototype.calculateRootTaskId=function(){var e=this.items[0];if(!e)return null;for(;e.parent&&e.task;)e=e.parent;return e.children[0].task.parentId},e.prototype.getTaskMinStart=function(){var e=this.owner.dataRange.start;
21return this.tasks.items.forEach(function(t){t.isValid()&&t.start.getTime()<e.getTime()&&(e=t.start)}),e},e.prototype.getTaskMaxEnd=function(){var e=this.owner.dataRange.end;return this.tasks.items.forEach(function(t){t.isValid()&&t.end.getTime()>e.getTime()&&(e=t.end)}),e},e.prototype.processServerInsertedKey=function(e,t,n){var r;n===h.GanttDataObjectNames.task&&this.tasks.invalidate(),n===h.GanttDataObjectNames.dependency&&(this.dependencies.invalidate(),this.updateVisibleItemDependencies()),n===h.GanttDataObjectNames.resource&&this.resources.invalidate(),n===h.GanttDataObjectNames.resourceAssignment&&this.assignments.invalidate(),null===(r=this.owner)||void 0===r||r.updateHistoryObsoleteInsertedKey(e,t,n)},e.prototype.onBeginDataObjectCreate=function(){var e,t;null===(t=(e=this.owner).lockUpdateWithReload)||void 0===t||t.call(e)},e.prototype.onEndDataObjectCreate=function(){var e,t;null===(t=(e=this.owner).unlockUpdateWithReload)||void 0===t||t.call(e)},e}();t.ViewVisualModel=A},858:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateRange=void 0;var n=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.equal=function(e){var t=!0;return(t=t&&this.start.getTime()===e.start.getTime())&&this.end.getTime()===e.end.getTime()},e}();t.DateRange=n},7880:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeUtils=void 0;var r=n(2753),i=n(9331),o=n(2491),s=n(858),a=n(7812),c=function(){function e(){}return e.compareDates=function(e,t){return e&&t?t.getTime()-e.getTime():-1},e.areDatesEqual=function(e,t){return 0==this.compareDates(e,t)},e.getMaxDate=function(e,t){return e||t?e?t&&this.compareDates(e,t)>0?t:e:t:null},e.getMinDate=function(e,t){return e||t?e?t?this.compareDates(e,t)>0?e:t:e:t:null},e.getDaysBetween=function(e,t){var n=Math.abs(t.getTime()-e.getTime());return Math.ceil(n/this.msInDay)},e.getWeeksBetween=function(e,t){var n=this.getDaysBetween(e,t),r=Math.floor(n/7);return e.getDay()>t.getDay()&&r++,r},e.getMonthsDifference=function(e,t){var n=this.compareDates(e,t),r=n>=0?e:t,i=n>=0?t:e;return 12*(i.getFullYear()-r.getFullYear())+(i.getMonth()-r.getMonth())},e.getYearsDifference=function(e,t){return Math.abs(t.getFullYear()-e.getFullYear())},e.getDayNumber=function(e){return Math.ceil(e.getTime()/this.msInDay)},e.getDateByDayNumber=function(e){var t=new Date(e*this.msInDay);return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t},e.addDays=function(e,t){return new Date(e.getTime()+t*this.msInDay)},e.checkDayOfMonth=function(e,t){return e==t.getDate()},e.checkDayOfWeek=function(e,t){return e==t.getDay()},e.checkMonth=function(e,t){return e==t.getMonth()},e.checkYear=function(e,t){return e==t.getFullYear()},e.checkDayOfWeekOccurrenceInMonth=function(e,t,n){var r=this.getSpecificDayOfWeekInMonthDates(t,e.getFullYear(),e.getMonth());return n==a.DayOfWeekMonthlyOccurrence.Last?this.areDatesEqual(e,r[r.length-1]):this.areDatesEqual(e,r[n])},e.getFirstDayOfWeekInMonth=function(e,t){return new Date(e,t,1).getDay()},e.getSpecificDayOfWeekInMonthDates=function(e,t,n){for(var r=this.getFirstDayOfWeekInMonth(t,n),i=e>=r?e-r:e+7-r,o=new Array,s=new Date(t,n,i+1);s.getMonth()==n;)o.push(s),s=this.addDays(s,7);return o},e.getSpecificDayOfWeekInMonthDate=function(e,t,n,r){var i=this.getSpecificDayOfWeekInMonthDates(e,t,n);return r==a.DayOfWeekMonthlyOccurrence.Last?i[i.length-1]:i[r]},e.checkValidDayInMonth=function(e,t,n){return!(n<1||n>31||new Date(e,t,n).getMonth()!=t)},e.getNextMonth=function(e,t){return void 0===t&&(t=1),(e+t)%12},e.convertToDate=function(e){if(e instanceof Date)return new Date(e);var t=Date.parse(e);return isNaN(t)?null:new Date(t)},e.convertTimeRangeToDateRange=function(e,t){var n=this.getDateByDayNumber(t),r=n.getFullYear(),i=n.getMonth(),o=n.getDate(),a=e.start,c=new Date(r,i,o,a.hour,a.min,a.sec,a.msec),u=e.end,l=new Date(r,i,o,u.hour,u.min,u.sec,u.msec);return new s.DateRange(c,l)},e.convertToTimeRanges=function(e){var t=this;return e instanceof Array?e.map(function(e){return t.convertToTimeRange(e)}):this.parseTimeRanges(e)},e.convertToTimeRange=function(e){return e?e instanceof i.TimeRange?e:(0,o.isDefined)(e.start)&&(0,o.isDefined)(e.end)?new i.TimeRange(this.convertToTime(e.start),this.convertToTime(e.end)):this.parseTimeRange(e):null},e.convertToTime=function(e){return e?e instanceof r.Time?e:e instanceof Date?this.getTimeGromJs
21Date(e):this.parseTime(e):null},e.parseTimeRanges=function(e){var t=this;return e?e.split(/;|,/).map(function(e){return t.parseTimeRange(e)}).filter(function(e){return!!e}):null},e.parseTimeRange=function(e){if(!e)return null;var t=e.split("-"),n=t[0],r=t[1];return(0,o.isDefined)(n)&&(0,o.isDefined)(r)?new i.TimeRange(this.parseTime(n),this.parseTime(r)):null},e.parseTime=function(e){if(!e)return null;var t=e.split(":"),n=parseInt(t[0])||0,i=parseInt(t[1])||0,o=parseInt(t[2])||0,s=parseInt(t[3])||0;return new r.Time(n,i,o,s)},e.getTimeGromJsDate=function(e){if(!e)return null;var t=e.getHours(),n=e.getMinutes(),i=e.getSeconds(),o=e.getMilliseconds();return new r.Time(t,n,i,o)},e.caclTimeDifference=function(e,t){return t.getTimeInMilleconds()-e.getTimeInMilleconds()},e.areTimesEqual=function(e,t){return 0==this.caclTimeDifference(e,t)},e.getMaxTime=function(e,t){return e||t?e?t&&this.caclTimeDifference(e,t)>0?t:e:t:null},e.getMinTime=function(e,t){return e||t?e?t?this.caclTimeDifference(e,t)>0?e:t:e:t:null},e.getLastTimeOfDay=function(){return new r.Time(23,59,59,999)},e.msInDay=864e5,e}();t.DateTimeUtils=c},8719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayOfWeek=void 0,function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(t.DayOfWeek||(t.DayOfWeek={}))},7812:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayOfWeekMonthlyOccurrence=void 0,function(e){e[e.First=0]="First",e[e.Second=1]="Second",e[e.Third=2]="Third",e[e.Forth=3]="Forth",e[e.Last=4]="Last"}(t.DayOfWeekMonthlyOccurrence||(t.DayOfWeekMonthlyOccurrence={}))},1805:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DayWorkingTimeInfo=void 0;var r=n(9331),i=n(7880),o=n(2753),s=function(){function e(e,t,n){void 0===e&&(e=0),void 0===t&&(t=!0),void 0===n&&(n=null),this._workingIntervals=new Array,this.dayNumber=e,this.isWorkDay=t,this.addWorkingIntervals(n)}return e.prototype.addWorkingIntervals=function(e){e&&(this._workingIntervals=this._workingIntervals.concat(e.filter(function(e){return!!e})),this.rearrangeWorkingIntervals())},e.prototype.rearrangeWorkingIntervals=function(){for(var e=0;e<this._workingIntervals.length;e++)this.concatWithIntersectedRanges(this._workingIntervals[e]);this.sortIntervals()},e.prototype.concatWithIntersectedRanges=function(e){var t=this;this.getIntersectedIntervals(e).forEach(function(n){e.concatWith(n),t.removeInterval(n)})},e.prototype.getIntersectedIntervals=function(e){return this._workingIntervals.filter(function(t){return t.hasIntersect(e)&&t!==e})},e.prototype.sortIntervals=function(){this._workingIntervals.sort(function(e,t){return i.DateTimeUtils.caclTimeDifference(t.start,e.start)})},e.prototype.removeInterval=function(e){var t=this._workingIntervals.indexOf(e);t>-1&&t<this._workingIntervals.length&&this._workingIntervals.splice(t,1)},e.prototype.clearIntervals=function(){this._workingIntervals.splice(0,this._workingIntervals.length)},Object.defineProperty(e.prototype,"workingIntervals",{get:function(){return this._workingIntervals.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"noWorkingIntervals",{get:function(){var e=new Array;if(this.isWorkDay&&0===this._workingIntervals.length)return e;var t=this._workingIntervals.map(function(e){return e.end});t.splice(0,0,new o.Time);var n=this._workingIntervals.map(function(e){return e.start});n.push(i.DateTimeUtils.getLastTimeOfDay());for(var s=0;s<t.length;s++){var a=t[s],c=n[s];i.DateTimeUtils.areTimesEqual(a,c)||e.push(new r.TimeRange(a,c))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWorkDay",{get:function(){return this._isWorkDay},set:function(e){this._isWorkDay=e,e||this.clearIntervals()},enumerable:!1,configurable:!0}),e}();t.DayWorkingTimeInfo=s},3110:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Month=void 0,function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(t.Month||(t.Month={}))}
21,7872:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonthInfo=void 0;var r=n(7880),i=function(){function e(e,t){this.month=e,this.year=t}return e.prototype.addMonths=function(e){var t=r.DateTimeUtils.getNextMonth(this.month,e),n=Math.floor(e/12);t<this.month&&++n,this.month=t,this.year+=n},e}();t.MonthInfo=i},4902:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Daily=void 0;var r=n(655),i=n(1789),o=n(7880),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.checkDate=function(e){return!0},t.prototype.checkInterval=function(e){return o.DateTimeUtils.getDaysBetween(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=this.interval;return this.isRecurrencePoint(e)||(t-=o.DateTimeUtils.getDaysBetween(this.start,e)%this.interval),o.DateTimeUtils.addDays(e,t)},t.prototype.calculateNearestPoint=function(e){return o.DateTimeUtils.addDays(e,1)},t}(i.RecurrenceBase);t.Daily=s},4390:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Monthly=void 0;var r=n(655),i=n(1789),o=n(7880),s=n(7872),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.checkDate=function(e){return this._calculateByDayOfWeek?o.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(e,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):o.DateTimeUtils.checkDayOfMonth(this.dayInternal,e)},t.prototype.checkInterval=function(e){return o.DateTimeUtils.getMonthsDifference(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=this.start,n=o.DateTimeUtils.getMonthsDifference(t,e),r=Math.floor(n/this.interval)*this.interval,i=new s.MonthInfo(t.getMonth(),t.getFullYear());i.addMonths(r);var a=this.getSpecDayInMonth(i.year,i.month);return o.DateTimeUtils.compareDates(a,e)>=0&&(i.addMonths(this.interval),a=this.getSpecDayInMonth(i.year,i.month)),a},t.prototype.calculateNearestPoint=function(e){var t=e.getMonth(),n=e.getFullYear(),r=this.getSpecDayInMonth(n,t);if(o.DateTimeUtils.compareDates(r,e)>=0){var i=new s.MonthInfo(t,n);i.addMonths(1),r=this.getSpecDayInMonth(i.year,i.month)}return r},Object.defineProperty(t.prototype,"day",{get:function(){return this.dayInternal},set:function(e){this.dayInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(e){this.dayOfWeekOccurrenceInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(e){this._calculateByDayOfWeek=e},enumerable:!1,configurable:!0}),t}(i.RecurrenceBase);t.Monthly=a},1789:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceBase=void 0;var r=n(655),i=n(8719),o=n(7812),s=n(3110),a=n(2491),c=n(7880),u=n(9612),l=function(e){function t(t,n,r,i){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=1),void 0===i&&(i=0);var o=e.call(this)||this;return o._start=null,o._end=null,o._interval=1,o._occurrenceCount=0,o._dayOfWeek=0,o._day=1,o._dayOfWeekOccurrence=0,o._month=0,o._calculateByDayOfWeek=!1,o.start=t,o.end=n,o.interval=r,o.occurrenceCount=i,o}return r.__extends(t,e),t.prototype.assignFromObject=function(t){(0,a.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.start=c.DateTimeUtils.convertToDate(t.start),this.end=c.DateTimeUtils.convertToDate(t.end),(0,a.isDefined)(t.interval)&&(this.interval=t.interval),(0,a.isDefined)(t.occurrenceCount)&&(this.occurrenceCount=t.occurrenceCount),(0,a.isDefined)(t.dayOfWeek)&&(this.dayOfWeekInternal=u.RecurrenceFactory.getEnumValue(i.DayOfWeek,t.dayOfWeek)),(0,a.isDefined)(t.day)&&(this.dayInternal=t.day),(0,a.isDefined)(t.dayOfWeekOccurrence)&&(this.dayOfWeekOccurrenceInternal=u.RecurrenceFactory.getEnumValue(o.DayOfWeekMonthlyOccurrence,t.dayOfWeekOccurrence)),(0,a.isDefined)(t.month)&&(this.monthInternal=u.RecurrenceFactory.getEnumValue(s.Month,t.month)),(0,a.isDefined)(t.calculateByDayOfWeek)&&(this._calculateByDayOfWeek=!!t.calculateByDayOfWeek))},t.prototype.calculatePoints=function(e,t){if(!e||!t)return new Array;var n=c.DateTimeUtils.getMaxDate(e,this._start),r=c.DateTimeUtils.getMinDate(t,this._end);return this._occurrenceCount>0?this.calculatePointsByOccurrenceCount(n,r):this.calculatePointsByDateRange(n,r)},t.prototype.calculatePointsByOccurrenceCount=function(e,t){for(var n=new Array,r=this.getFirstPoint(e);r&&n.length<this._occurrenceCount&&c.DateTimeUtils.compareDates(r,t)>
21=0;)this.isRecurrencePoint(r)&&n.push(r),r=this.getNextPoint(r);return n},t.prototype.calculatePointsByDateRange=function(e,t){for(var n=new Array,r=this.getFirstPoint(e);r&&c.DateTimeUtils.compareDates(r,t)>=0;)this.isRecurrencePoint(r)&&n.push(r),r=this.getNextPoint(r);return n},t.prototype.getFirstPoint=function(e){return this.isRecurrencePoint(e)?e:this.getNextPoint(e)},t.prototype.isRecurrencePoint=function(e){return this.isDateInRange(e)&&this.checkDate(e)&&(!this.useIntervalInCalc()||this.checkInterval(e))},t.prototype.isDateInRange=function(e){return!!e&&!(this._start&&c.DateTimeUtils.compareDates(this.start,e)<0)&&!(0==this._occurrenceCount&&this.end&&c.DateTimeUtils.compareDates(e,this.end)<0)},t.prototype.useIntervalInCalc=function(){return this.interval>1&&!!this._start},t.prototype.getNextPoint=function(e){return this.isDateInRange(e)?this.useIntervalInCalc()?this.calculatePointByInterval(e):this.calculateNearestPoint(e):null},t.prototype.getSpecDayInMonth=function(e,t){return this._calculateByDayOfWeek?c.DateTimeUtils.getSpecificDayOfWeekInMonthDate(this.dayOfWeekInternal,e,t,this.dayOfWeekOccurrenceInternal):new Date(e,t,this.dayInternal)},Object.defineProperty(t.prototype,"dayInternal",{get:function(){return this._day},set:function(e){e>0&&e<=31&&(this._day=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekInternal",{get:function(){return this._dayOfWeek},set:function(e){e>=i.DayOfWeek.Sunday&&e<=i.DayOfWeek.Saturday&&(this._dayOfWeek=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrenceInternal",{get:function(){return this._dayOfWeekOccurrence},set:function(e){e>=o.DayOfWeekMonthlyOccurrence.First&&e<=o.DayOfWeekMonthlyOccurrence.Last&&(this._dayOfWeekOccurrence=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"monthInternal",{get:function(){return this._month},set:function(e){e>=s.Month.January&&e<=s.Month.December&&(this._month=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._start},set:function(e){e&&(this._start=e,this._end&&e>this._end&&(this._end=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},set:function(e){e&&(this._end=e,this._start&&e<this._start&&(this._start=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"occurrenceCount",{get:function(){return this._occurrenceCount},set:function(e){e<0&&(e=0),this._occurrenceCount=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"interval",{get:function(){return this._interval},set:function(e){e>0&&(this._interval=e)},enumerable:!1,configurable:!0}),t}(n(6124).DataObject);t.RecurrenceBase=l},9612:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceFactory=void 0;var r=n(2491),i=n(4902),o=n(5475),s=n(4390),a=n(7515),c=function(){function e(){}return e.createRecurrenceByType=function(e){if(!e)return null;switch(e.toLowerCase()){case"daily":return new i.Daily;case"weekly":return new o.Weekly;case"monthly":return new s.Monthly;case"yearly":return new a.Yearly}return null},e.createRecurrenceFromObject=function(e){if(!e)return null;var t=this.createRecurrenceByType(e.type);return t&&t.assignFromObject(e),t},e.getEnumValue=function(e,t){if(!(0,r.isDefined)(e[t]))return null;var n=parseInt(t);return isNaN(n)?e[t]:n},e}();t.RecurrenceFactory=c},5475:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Weekly=void 0;var r=n(655),i=n(1789),o=n(7880),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.checkDate=function(e){return o.DateTimeUtils.checkDayOfWeek(this.dayOfWeekInternal,e)},t.prototype.checkInterval=function(e){return o.DateTimeUtils.getWeeksBetween(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=o.DateTimeUtils.getWeeksBetween(this.start,e),n=Math.floor(t/this.interval);(t%this.interval>0||e.getDay()>=this.dayOfWeekInternal)&&n++;var r=n*this.interval;return this.calcNextPointWithWeekCount(this.start,r)},t.prototype.calculateNearestPoint=function(e){var t=this.dayOfWeekInternal-e.getDay();return t>0?o.DateTimeUtils.addDays(new Date(e),t):this.calcNextPointWithWeekCount(e,1)},t.prototype.calcNextPointWithWeekCount=function(e,t){void 0===t&&(t=1);var n=7*t+this.dayOfWeekInternal-e.getDay();return o.DateTimeUtils.addDays(new Date(e),n)}
21,Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),t}(i.RecurrenceBase);t.Weekly=s},7515:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Yearly=void 0;var r=n(655),i=n(1789),o=n(7880),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.checkDate=function(e){return!!o.DateTimeUtils.checkMonth(this.month,e)&&(this._calculateByDayOfWeek?o.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(e,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):o.DateTimeUtils.checkDayOfMonth(this.dayInternal,e))},t.prototype.checkInterval=function(e){return o.DateTimeUtils.getYearsDifference(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=o.DateTimeUtils.getYearsDifference(this.start,e),n=Math.floor(t/this.interval)*this.interval,r=this.start.getFullYear()+n,i=this.getSpecDayInMonth(r,this.monthInternal);return o.DateTimeUtils.compareDates(i,e)>=0&&(r+=this.interval,i=this.getSpecDayInMonth(r,this.monthInternal)),i},t.prototype.calculateNearestPoint=function(e){var t=e.getFullYear(),n=this.getSpecDayInMonth(t,this.monthInternal);return o.DateTimeUtils.compareDates(n,e)>=0&&(n=this.getSpecDayInMonth(++t,this.monthInternal)),n},Object.defineProperty(t.prototype,"month",{get:function(){return this.monthInternal},set:function(e){this.monthInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"day",{get:function(){return this.dayInternal},set:function(e){this.dayInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(e){this.dayOfWeekOccurrenceInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(e){this._calculateByDayOfWeek=e},enumerable:!1,configurable:!0}),t}(i.RecurrenceBase);t.Yearly=s},2753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;var n=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this._hour=0,this._min=0,this._sec=0,this._msec=0,this._fullmsec=0,this.hour=e,this.min=t,this.sec=n,this.msec=r}return Object.defineProperty(e.prototype,"hour",{get:function(){return this._hour},set:function(e){e>=0&&e<24&&(this._hour=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){e>=0&&e<60&&(this._min=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sec",{get:function(){return this._sec},set:function(e){e>=0&&e<60&&(this._sec=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"msec",{get:function(){return this._msec},set:function(e){e>=0&&e<1e3&&(this._msec=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),e.prototype.updateFullMilleconds=function(){var e=60*(60*this._hour+this._min)+this._sec;this._fullmsec=1e3*e+this._msec},e.prototype.getTimeInMilleconds=function(){return this._fullmsec},e}();t.Time=n},9331:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeRange=void 0;var r=n(7880),i=function(){function e(e,t){r.DateTimeUtils.caclTimeDifference(e,t)>=0?(this._start=e,this._end=t):(this._start=t,this._end=e)}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(e){e&&r.DateTimeUtils.caclTimeDifference(e,this._end)>=0&&(this._start=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},set:function(e){e&&r.DateTimeUtils.caclTimeDifference(this._start,e)>=0&&(this._end=e)},enumerable:!1,configurable:!0}),e.prototype.isTimeInRange=function(e){return r.DateTimeUtils.caclTimeDifference(this._start,e)>=0&&r.DateTimeUtils.caclTimeDifference(e,this._end)>=0},e.prototype.hasIntersect=function(e){return this.isTimeInRange(e.start)||this.isTimeInRange(e.end)||e.isTimeInRange(this.start)||e.isTimeInRange(this.end)},e.prototype.concatWith=function(e){return!!this.hasIntersect(e)&&(this.start=r.DateTimeUtils.getMinTime(this.start,e.start),this.end=r.DateTimeUtils.getMaxTime(this.end,e.end),!0)},e}();t.TimeRange=i},21:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingTimeCalculator=void 0;var r=n(4432),i=n(1805),o=n(7880),s=function(){function e(e,t){this._workingRules=new r.WorkingDayRuleCollection,this._workDayList=new Array,this._calculationRange=e,this._workingRules.importFromObject(t)}return e.prototype.calculateWorkDayList=function(){if(this._calculationRange){this.clearList();for(var e=this._workingRules.items,t=0;t<e.length;t++)this.processRule(e[t]);this.sortList()}},e.prototype.processRule=function(e){for(var t=e.recurrence.calculatePoints(this._calculationRange.start,this._calculationRange.end),n=function(n){var s=t[n],a=o.DateTimeUtils.getDayNumber(s),c=r._workDayList.filter(function(e){return e.dayNumber==a})[0];c?(c.isWorkDay=c.isWorkDay&&e.isWorkDay,c.addWorkingIntervals(e.workTimeRanges)):r._workDayList.push(new i.DayWorkingTimeInfo(a,e.isWorkDay,e.workTimeRanges))},r=this,s=0;s<t.length;s++)n(s)},e.prototype.sortList=function(){this._workDayList.sort(function(e,t){return e.dayNumber-t.dayNumber})},e.prototype.clearList=function(){this._workDayList.splice(0,this._workDayList.length)},e.prototype.calculateNoWorkTimeIntervals=function(){var e=this,t=new Array;return 0==this._workDayList.length&&this.calculateWorkDayList(),this._workDayList.forEach(function(n){return t=t.concat(e.getNoWorkTimeRangesFromDay(n))}),this.concatJointedRanges(t)},e.prototype.concatJointedRanges=function(e){for(var t=new Array,n=0;n<e.length;n++){var r=e[n];t.length>0&&o.DateTimeUtils.compareDates(t[t.length-1].end,r.start)<2?t[t.length-1].end=r.end:t.push(r)}return t},e.prototype.getNoWorkTimeRangesFromDay=function(e){return e.noWorkingIntervals.map(function(t){return o.DateTimeUtils.convertTimeRangeToDateRange(t,e.dayNumber)})},Object.defineProperty(e.prototype,"noWorkingIntervals",{get:function(){return this._noWorkingIntervals||(this._noWorkingIntervals=this.calculateNoWorkTimeIntervals()),this._noWorkingIntervals.slice()},enumerable:!1,configurable:!0}),e.prototype.updateRange=function(e){this._calculationRange=e,this.invalidate()},e.prototype.invalidate=function(){this._noWorkingIntervals=null,this.clearList()},e}();t.WorkingTimeCalculator=s},8401:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingTimeRule=void 0;var r=n(655),i=n(6124),o=n(2491),s=n(7880),a=n(9612),c=n(4902),u=function(e){function t(t,n,r){void 0===t&&(t=null),void 0===n&&(n=!0),void 0===r&&(r=null);var i=e.call(this)||this;return i.isWorkDay=!0,i.workTimeRanges=new Array,i.recurrence=t,i.isWorkDay=n,r&&i.workTimeRanges.concat(r),i}return r.__extends(t,e),t.prototype.assignFromObject=function(t){if((0,o.isDefined)(t)){e.prototype.assignFromObject.call(this,t),this.recurrence=a.RecurrenceFactory.createRecurrenceByType(t.recurrenceType)||new c.Daily,(0,o.isDefined)(t.recurrence)&&this.recurrence.assignFromObject(t.recurrence),(0,o.isDefined)(t.isWorkDay)&&(this.isWorkDay=!!t.isWorkDay);var n=s.DateTimeUtils.convertToTimeRanges(t.workTimeRanges);n&&(this.workTimeRanges=n)}},t}(i.DataObject);t.WorkingTimeRule=u},6626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GanttViewApi=void 0;var n=function(){function e(e){this.maxZoom=3,this._ganttView=e}return Object.defineProperty(e.prototype,"currentZoom",{get:function(){return this._ganttView.currentZoom},set:function(e){this._ganttView.currentZoom=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this._ganttView.renderHelper},enumerable:!1,configurable:!0}),e.prototype.getTaskAreaContainerWidth=function(){return this.renderHelper.getTaskAreaContainerWidth()},e.prototype.updateTickSizeWidth=function(){this._ganttView.updateTickSizeWidth()},Object.defineProperty(e.prototype,"settings",{get:function(){return this._ganttView.settings},enumerable:!1,configurable:!0}),e.prototype.resetAndUpdate=function(){this._ganttView.resetAndUpdate()},e.prototype.scrollToDateCore=function(e,t){this._ganttView.scrollToDateCore(e,t)},Object.defineProperty(e.prototype,"ganttOwner",{get:function(){return this._ganttView.ganttOwner},enumerable:!1,configurable:!0}),e.prototype.scrollLeftByViewType=function(){this._ganttView.scrollLeftByViewType()}
21,Object.defineProperty(e.prototype,"dataRange",{get:function(){return this._ganttView.dataRange},enumerable:!1,configurable:!0}),e.prototype.calculateAutoViewType=function(e,t){return this._ganttView.calculateAutoViewType(e,t)},e.prototype.zoomIn=function(e){void 0===e&&(e=this.getTaskAreaContainerWidth()/2);var t=this.renderHelper.getTargetDateByPos(e),n=this.settings.viewTypeRange.min;this.currentZoom<this.maxZoom?(this.currentZoom++,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType>n&&(this.currentZoom=1,this.setViewType(this.settings.viewType-1,!1)),this.scrollToDateCore(t,-e)},e.prototype.zoomOut=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2);var t=this.renderHelper.getTargetDateByPos(e),n=this.settings.viewTypeRange.max;this.currentZoom>1?(this.currentZoom--,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType<n&&(this.currentZoom=this.maxZoom,this.setViewType(this.settings.viewType+1,!1)),this.scrollToDateCore(t,-e)},e.prototype.setViewType=function(e,t){void 0===t&&(t=!0),null==e&&(e=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.settings.viewType!==e&&(this.settings.viewType=e,this.updateTickSizeWidth(),this.resetAndUpdate(),t&&this.scrollLeftByViewType(),this.ganttOwner.updateGanttViewType&&this.ganttOwner.updateGanttViewType(e))},e.prototype.setViewTypeRange=function(e,t){void 0!==e&&(this.settings.viewTypeRange.min=Math.min(e,t)),void 0!==t&&(this.settings.viewTypeRange.max=Math.max(e,t));var n=this.settings.viewTypeRange.min,r=this.settings.viewTypeRange.max,i=this.settings.viewType;n>i?this.setViewType(n):r<i&&this.setViewType(r)},e}();t.GanttViewApi=n},5098:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditController=void 0;var r=n(2449),i=n(858),o=n(6907),s=n(9279),a=n(1886),c=n(9080),u=n(9201),l=function(){function e(e){this.showInfoDelay=1e3,this.taskIndex=-1,this.successorIndex=-1,this.isEditingInProgress=!1,this.disableTaskEditBox=!1,this.isTaskEditBoxShown=!1,this.settings=e,this.createElements()}return Object.defineProperty(e.prototype,"taskId",{get:function(){return this.viewModel.items[this.taskIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"successorId",{get:function(){return this.viewModel.items[this.successorIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"task",{get:function(){return this.viewItem.task},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewItem",{get:function(){return this.viewModel.items[this.taskIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this.settings.getRenderHelper()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ganttSettings",{get:function(){return this.settings.getGanttSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"commandManager",{get:function(){return this.settings.getCommandManager()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateTaskCommand",{get:function(){return this.commandManager.updateTaskCommand},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationController",{get:function(){return this.settings.getValidationController()},enumerable:!1,configurable:!0}),e.prototype.raiseTaskMoving=function(e,t,n,r){return this.settings.getModelManipulator().dispatcher.raiseTaskMoving(e,t,n,r)},Object.defineProperty(e.prototype,"tooltip",{get:function(){var e;return null!==(e=this._tooltip)&&void 0!==e||(this._tooltip=new a.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo)),this._tooltip.tooltipSettings=this.tooltipSettings,this._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tooltipSettings",{get:function(){var e=this;return c.TooltipSettings.parse({getHeaderHeight:this.settings.getRenderHelper().header.clientHeight,getTaskProgressTooltipContentTemplate:this.ganttSettings.taskProgressTooltipContentTemplate,getTaskTimeTooltipContentTemplate:this.ganttSettings.taskTimeTooltipContentTemplate,getTaskTooltipContentTemplate:this.ganttSettings.taskTooltipContentTemplate,destroyTemplate:function(t){e.settings.destroyTemplate(t)}
21,formatDate:function(t){return e.settings.formatDate(t)},getTaskAreaContainer:function(){return e.settings.getRenderHelper().taskAreaContainer}})},enumerable:!1,configurable:!0}),e.prototype.show=function(t){if(!this.isEditingInProgress&&!this.disableTaskEditBox){this.taskIndex=t,this.hide(),this.changeWrapInfo(),this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.displayDependency(),this.task.isMilestone()&&!this.viewItem.isCustom?this.baseElement.className=this.baseElement.className+" milestone":(this.isTaskUpdateAllowed()||(this.baseElement.className=this.baseElement.className+" "+e.CLASSNAMES.TASK_EDIT_HIDE_UPDATING),this.viewItem.isCustom&&this.baseElement.classList.add(e.CLASSNAMES.TASK_EDIT_BOX_CUSTOM));var n=this.settings.getGanttSettings().editing.taskHoverDelay||0;this.taskDateRange=new i.DateRange(this.task.start,this.task.end),this.displayTaskEditBox(n),this.displayProgressEdit(),this.displayStartEndEditElements()}},e.prototype.displayStartEndEditElements=function(){!this.task.isMilestone()&&this.isTaskUpdateAllowed()&&this.canUpdateTask()?(this.startEdit.style.display="block",this.endEdit.style.display="block"):(this.startEdit.style.display="none",this.endEdit.style.display="none")},e.prototype.displayProgressEdit=function(){!this.viewItem.isCustom&&this.canUpdateTask()&&this.isTaskUpdateAllowed()&&this.wrapInfo.size.width>this.wrapInfo.size.height?(this.progressEdit.style.display="block",this.progressEdit.style.left=this.task.normalizedProgress/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px"):this.progressEdit.style.display="none"},e.prototype.displayDependency=function(){this.ganttSettings.editing.enabled&&this.ganttSettings.editing.allowDependencyInsert&&this.ganttSettings.showDependencies||(this.baseElement.className=this.baseElement.className+" hide-dependency")},e.prototype.changeWrapInfo=function(){this.updateWrapInfo(),this.wrapInfo.assignPosition(this.baseElement),this.wrapInfo.assignSize(this.baseElement)},e.prototype.displayTaskEditBox=function(e){var t=this;void 0===e&&(e=0);var n=function(){t.renderHelper.taskArea.appendChild(t.baseElement),t.isTaskEditBoxShown=!0};e?this.timerId=setTimeout(n,e):n()},e.prototype.endEditing=function(){this.isEditingInProgress=!1,this.hide()},e.prototype.hide=function(){this.isTaskEditBoxShown=!1;var e=this.baseElement.parentNode;e&&e.removeChild(this.baseElement),this.tooltip.hide(),clearTimeout(this.timerId)},e.prototype.cancel=function(){clearTimeout(this.timerId)},e.prototype.showTaskInfo=function(e,t){void 0===t&&(t=500),this.timerId&&(t=this.showInfoDelay),this.tooltip.showInfo(this.task,e,t)},e.prototype.updateWrapInfo=function(){this.wrapInfo=this.getTaskWrapperElementInfo(this.taskIndex),this.wrapInfo.position.x--},e.prototype.isAllowedToConnectTasks=function(e){var t,n=this.viewModel.items[e];return this.validationController.canCreateDependency(this.taskId,null===(t=n.task)||void 0===t?void 0:t.internalId)},e.prototype.showDependencySuccessor=function(e){if(this.isAllowedToConnectTasks(e)){this.successorIndex=e;var t=this.getTaskWrapperElementInfo(e);t.assignPosition(this.dependencySuccessorBaseElement),t.assignSize(this.dependencySuccessorBaseElement),t.assignSize(this.dependencySuccessorFrame),this.renderHelper.taskArea.appendChild(this.dependencySuccessorBaseElement)}},e.prototype.hideDependencySuccessor=function(){var e=this.dependencySuccessorBaseElement.parentNode;e&&e.removeChild(this.dependencySuccessorBaseElement),this.successorIndex=-1},e.prototype.processProgress=function(e){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!0;var t=e.x-this.wrapInfo.position.x,n=0;e.x>this.wrapInfo.position.x&&(n=e.x<this.wrapInfo.position.x+this.wrapInfo.size.width?Math.round(t/this.baseElement.clientWidth*100):100),this.progressEdit.style.left=n/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px",this.tooltip.showProgress(n,o.DomUtils.getAbsolutePositionX(this.progressEdit)+this.progressEdit.offsetWidth/2)}},e.prototype.confirmProgress=function(){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!1;var e=Math.round((this.progressEdit.offsetLeft+this.progressEdit.offsetWidth/2)/this.wrapInfo.size.width*100);this.updateTaskCommand.execute(this.taskId,{progress:e})}},e.prototype.processEnd=function(e){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var t=e.x>this.wrapInfo.position.x?e.x:this.wrapInfo.position.x,n=t-this.wrapInfo.position.x;this.baseElement.style.width=(n<1?0:n)+"px";var r=this.task.start,i=this.renderHelper.gridLayoutCalculator.getDateByPos(t);i.setSeconds(0),i<r||n<1?this.taskDateRange.end.setTime(r.getTime()):this.taskDateRange.end=this.getCorrectedDate(this.task.end,i),this.tooltip.showTime(r,this.taskDateRange.end,o.DomUtils.getAbsolutePositionX(this.baseElement)+this.baseElement.clientWidth)}},e.prototype.confirmEnd=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{end:this.taskDateRange.end}),this.hide(),this.updateWrapInfo())},e.prototype.processStart=function(e){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var t=e.x<this.wrapInfo.position.x+this.wrapInfo.size.width?e.x:this.wrapInfo.position.x+this.wrapInfo.size.width,n=this.wrapInfo.size.width-(t-this.wrapInfo.position.x);this.baseElement.style.left=t+"px",this.baseElement.style.width=(n<1?0:n)+"px";var r=this.task.end,i=this.renderHelper.gridLayoutCalculator.getDateByPos(t);i.setSeconds(0),i>r||n<1?this.taskDateRange.start.setTime(r.getTime()):this.taskDateRange.start=this.getCorrectedDate(this.task.start,i),this.tooltip.showTime(this.taskDateRange.start,r,o.Dom
21Utils.getAbsolutePositionX(this.baseElement))}},e.prototype.confirmStart=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start}),this.hide(),this.updateWrapInfo())},e.prototype.processMove=function(e){if(this.isTaskUpdateAllowed()&&this.isTaskEditBoxShown){this.baseElement.className=this.baseElement.className+" move";var t=this.baseElement.offsetLeft+e;this.baseElement.style.left=t+"px";var n=this.renderHelper.gridLayoutCalculator.getDateByPos(t);this.taskDateRange.start=this.getCorrectedDate(this.task.start,n);var r=u.DateUtils.getRangeMSPeriod(this.task.start,this.task.end);return this.taskDateRange.end=u.DateUtils.getDSTCorrectedTaskEnd(this.taskDateRange.start,r),this.isEditingInProgress=this.raiseTaskMoving(this.task,this.taskDateRange.start,this.taskDateRange.end,this.onTaskMovingCallback.bind(this)),this.isEditingInProgress&&this.tooltip.showTime(this.taskDateRange.start,this.taskDateRange.end,o.DomUtils.getAbsolutePositionX(this.baseElement)),this.isEditingInProgress}return!0},e.prototype.onTaskMovingCallback=function(e,t){if(this.taskDateRange.start!==e||this.taskDateRange.end!==t){var n=this.renderHelper.gridLayoutCalculator,r=n.getPosByDate(e),i=n.getPosByDate(t)-r;this.baseElement.style.left=r+"px",this.baseElement.style.width=(i<1?0:i)+"px",this.taskDateRange.start=e,this.taskDateRange.end=t}},e.prototype.confirmMove=function(){this.isTaskUpdateAllowed()&&(this.ganttSettings.editing.allowDependencyInsert||(this.baseElement.className=this.baseElement.className+" hide-dependency"),this.isEditingInProgress&&(this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start,end:this.taskDateRange.end}),this.updateWrapInfo(),this.hide(),this.isEditingInProgress=!1))},e.prototype.getCorrectedDate=function(e,t){if(this.ganttSettings.viewType>r.ViewType.SixHours){var n=t.getFullYear(),i=t.getMonth(),o=t.getDate(),s=this.ganttSettings.viewType===r.ViewType.Days?t.getHours():e.getHours(),a=e.getMinutes(),c=e.getSeconds(),u=e.getMilliseconds();return new Date(n,i,o,s,a,c,u)}return t},e.prototype.startDependency=function(t){this.dependencyLine=document.createElement("DIV"),this.dependencyLine.className=e.CLASSNAMES.TASK_EDIT_DEPENDENCY_LINE,this.renderHelper.taskArea.appendChild(this.dependencyLine),this.startPosition=t},e.prototype.processDependency=function(e){this.isEditingInProgress=!0,this.drawline(this.startPosition,e)},e.prototype.endDependency=function(e){this.isEditingInProgress=!1,null!=e&&this.commandManager.createDependencyCommand.execute(this.task.internalId,this.successorId,e);var t=this.dependencyLine.parentNode;t&&t.removeChild(this.dependencyLine),this.dependencyLine=null,this.hideDependencySuccessor(),this.hide()},e.prototype.selectDependency=function(e){this.ganttSettings.editing.allowDependencyDelete&&(this.dependencyId=e)},e.prototype.isDependencySelected=function(e){return this.dependencyId&&this.dependencyId===e},e.prototype.deleteSelectedDependency=function(){this.dependencyId&&this.commandManager.removeDependencyCommand.execute(this.dependencyId)},e.prototype.getTaskWrapperElementInfo=function(e){var t=this.renderHelper.gridLayoutCalculator,n=t.getTaskWrapperElementInfo(e);return n.size.width=t.getTaskWidth(e),n.size.height=t.getTaskHeight(e),n},e.prototype.createElements=function(){this.baseElement=document.createElement("DIV"),this.baseFrame=document.createElement("DIV"),this.baseFrame.className=e.CLASSNAMES.TASK_EDIT_FRAME,this.baseElement.appendChild(this.baseFrame),this.progressEdit=document.createElement("DIV"),this.progressEdit.className=e.CLASSNAMES.TASK_EDIT_PROGRESS,this.baseFrame.appendChild(this.progressEdit),this.progressEdit.appendChild(document.createElement("DIV")),this.dependencyFinish=document.createElement("DIV"),this.dependencyFinish.classList.add(e.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH),s.Browser.TouchUI&&this.dependencyFinish.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyFinish),this.dependencyStart=document.createElement("DIV"),this.dependencyStart.classList.add(e.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT),s.Browser.TouchUI&&this.dependencyStart.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyStart),this.startEdit=document.createElement("DIV"),this.startEdit.className=e.CLASSNAMES.TASK_EDIT_START,this.baseFrame.appendChild(this.startEdit),this.endEdit=document.createElement("DIV"),this.endEdit.className=e.CLASSNAMES.TASK_EDIT_END,this.baseFrame.appendChild(this.endEdit),this.dependencySuccessorBaseElement=document.createElement("DIV"),this.dependencySuccessorBaseElement.className=e.CLASSNAMES.TASK_EDIT_BOX_SUCCESSOR,this.dependencySuccessorFrame=document.createElement("DIV"),this.dependencySuccessorFrame.className=e.CLASSNAMES.TASK_EDIT_FRAME_SUCCESSOR,this.dependencySuccessorBaseElement.appendChild(this.dependencySuccessorFrame),this.dependencySuccessorStart=document.createElement("DIV"),this.dependencySuccessorStart.classList.add(e.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH),s.Browser.TouchUI&&this.dependencySuccessorStart.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorStart),this.dependencySuccessorFinish=document.createElement("DIV"),this.dependencySuccessorFinish.classList.add(e.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT),s.Browser.TouchUI&&this.dependencySuccessorFinish.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorFinish),this._tooltip=new a.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo),this.attachEvents()},e.prototype.attachEvents=function(){this.onMouseLeaveHandler=function(){this.isEditingInProgress||this.hide()}.bind(this),this.baseElement.addEventListener("mouseleave",this.onMouseLeaveHandler)},e.prototype.drawline=function(e,t){if(e.x>t.x){var n=t;t=e,e=n}var r=Math.atan((e.y-t.y)/(t.x-e.x));r=-(r=180*r/Math.PI);var i=Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y));this.dependencyLine.style.left=e.x+"px",this.dependencyLine.style.top=e.y+"px",this.dependencyLine.style.width=i+"px",this.dependencyLine.style.transform="rotate("+r+"deg)"},e.prototype.canUpdateTask=function(){return!this.viewModel.isTaskToCalculateByChildren(this.task.internalId)},e.prototype.isTaskUpdateAllowed=function(){var e=this.ganttSettings.editing;return e.enabled&&e.allowTaskUpdate},e.prototype.detachEvents=function(){var e;null===(e=this.baseElement)||void 0===e||e.removeEventListener("mouseleave",this.onMouseLeaveHandler)},e.CLASSNAMES={TASK_EDIT_BOX:"dx-gantt-task-edit-wrapper",TASK_EDIT_BOX_CUSTOM:"dx-gantt-task-edit-wrapper-custom",TASK_EDIT_FRAME:"dx-gantt-task-edit-frame",TASK_EDIT_PROGRESS:"dx-gantt-task-edit-progress",TASK_
21EDIT_DEPENDENCY_RIGTH:"dx-gantt-task-edit-dependency-r",TASK_EDIT_DEPENDENCY_LEFT:"dx-gantt-task-edit-dependency-l",TASK_EDIT_START:"dx-gantt-task-edit-start",TASK_EDIT_END:"dx-gantt-task-edit-end",TASK_EDIT_DEPENDENCY_LINE:"dx-gantt-task-edit-dependency-line",TASK_EDIT_BOX_SUCCESSOR:"dx-gantt-task-edit-wrapper-successor",TASK_EDIT_FRAME_SUCCESSOR:"dx-gantt-task-edit-frame-successor",TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH:"dx-gantt-task-edit-successor-dependency-r",TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT:"dx-gantt-task-edit-successor-dependency-l",TASK_EDIT_TOUCH:"dx-gantt-edit-touch",TASK_EDIT_HIDE_UPDATING:"hide-updating"},e}();t.TaskEditController=l},1886:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditTooltip=void 0;var r=n(6907),i=function(){function e(e,t,n){this.parentElement=e,this.cultureInfo=n,this.tooltipSettings=t}return Object.defineProperty(e.prototype,"baseElement",{get:function(){return this._baseElement||this.createTooltipContainer(),this._baseElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerHeight",{get:function(){return this.tooltipSettings.getHeaderHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainer",{get:function(){return this.tooltipSettings.getTaskAreaContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskProgressTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskProgressTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTimeTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTimeTooltipContentTemplate},enumerable:!1,configurable:!0}),e.prototype.destroyTemplate=function(e){this.tooltipSettings.destroyTemplate(e)},e.prototype.formatDate=function(e){return this.tooltipSettings.formatDate(e)},e.prototype.createTooltipContainer=function(){this._baseElement=document.createElement("DIV"),this._baseElement.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS,this.parentElement.appendChild(this._baseElement)},e.prototype.setDefaultTooltip=function(t){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT;var n=document.createElement("DIV");n.className=e.CLASSNAMES.TASK_EDIT_TASK_TITLE;var r=document.createElement("SPAN");if(n.appendChild(r),this.defaultTooltip.appendChild(n),r.innerText=t.title,this.defaultTooltip.appendChild(this.getTimeContent(t.start,t.end)),!isNaN(t.progress)){var i=document.createElement("DIV");i.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var o=document.createElement("SPAN"),s=document.createElement("SPAN");i.appendChild(o),i.appendChild(s),this.defaultTooltip.appendChild(i),o.innerText=(this.cultureInfo.progress?this.cultureInfo.progress:"Progress")+": ",s.innerText=t.progress+"%"}this.baseElement.appendChild(this.defaultTooltip)},e.prototype.setDefaultProgressTooltip=function(t){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.innerText=t+"%",this.baseElement.appendChild(this.defaultTooltip)},e.prototype.setDefaultTimeTooltip=function(t,n){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.appendChild(this.getTimeContent(t,n)),this.baseElement.appendChild(this.defaultTooltip)},e.prototype.showInfo=function(e,t,n){var r=this;void 0===n&&(n=0);var i=this.taskTooltipContentTemplate;this.destroyTemplate(this.baseElement),i?i(this.baseElement,e,function(){r.showTooltip(t,!1,n)}):(this.setDefaultTooltip(e),this.showTooltip(t,!1,n))},e.prototype.showProgress=function(e,t){var n=this,r=this.taskProgressTooltipContentTemplate;this.destroyTemplate(this.baseElement),r?r(this.baseElement,{progress:e},function(){n.showTooltip(t)}):(this.setDefaultProgressTooltip(e),this.show(t))},e.prototype.showTime=function(e,t,n){var r=this,i=this.taskTimeTooltipContentTemplate;this.destroyTemplate(this.baseElement),i?i(this.baseElement,{start:e,end:t},function(){r.showTooltip(n)}):(this.setDefaultTimeTooltip(e,t),this.show(n))},e.prototype.showTooltip=function(e,t,n){var r,i=this;if(void 0===t&&(t=!0),void 0===n&&(n=0),null===(r=this.baseElement)||void 0===r?void 0:r.innerHTML){var o=function(){i.show(e,t)};n?this.timerId=setTimeout(o,n):o()}},e.prototype.show=function(t,n){var r,i,o,s=this;void 0===n&&(n=!0),null===(r=this.defaultTooltip)||void 0===r||r.classList.remove(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER),null===(i=this.defaultTooltip)||void 0===i||i.classList.remove(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.display="block";var a=this.getLeftPosition(t),c=this.needToShowUnderParent(),u=this.getTopPosition(c),l=c?e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER:e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE;null===(o=this.defaultTooltip)||void 0===o||o.classList.add(l),this.baseElement.style.left=a+"px",this.baseElement.style.top=u+"px",n&&(this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){s.hide()},1500))},e.prototype.hide=function(){this.baseElement.style.display="none",this.destroyTemplate(this.baseElement),clearTimeout(this.timerId)},e.prototype.getTimeContent=function(t,n){var r=document.createElement("TABLE");r.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var i=document.createElement("TBODY");r.appendChild(i);var o=document.createElement("TR"),s=document.createElement("TD"),a=document.createElement("TD"),c=document.createElement("TR"),u=document.createElement("TD"),l=document.createElement("TD");return o.appendChild(s),o.appendChild(a),c.appendChild(u),c.appendChild(l),i.appendChild(o),i.appendChild(c),s.innerText=(this.cultureInfo.start?this.cultureInfo.start:"Start")+": ",a.innerText=this.formatDate(t),u.innerText=(this.cultureInfo.end?this.cultureInfo.end:"End")+": ",l.innerText=this.formatDate(n),r},e.prototype.getLeftPosition=function(t){var n=t-r.DomUtils.getAbsolutePositionX(this.parentElement)-2*e.defaultArrowHeight;if(this.taskAreaContainer){var i=r.DomUtils.getAbsolutePositionX(this.taskAreaContainer.getElement())+this.taskAreaContainer.getWidth(),o=t+this.baseElement.clientWidth-i;o>0&&(n-=o)}return n},e.prototype.getTopPosition=function(t){return t?this.parentElement.clientHeight+e.defaultArrowHeight:-this.baseElement.clientHeight-e.defaultArrowHeight},e.prototype.needToShowUnderParent=function(){var t,n=r.DomUtils.getAbsolutePositionY(this.parentElement)-this.headerHeight-r.DomUtils.getDocumentScrollTop()-e.defaultHeightOffset,i=(null===(t=this.taskAreaContainer)||void 0===t?void 0:t.scrollTop)||0,o=this.parentElement.offsetTop-i;return this.baseElement.clientHeight>n||this.baseElement.clientHeight>o},e.CLASSNAMES={TASK_EDIT_PROGRESS_STATUS:"dx-gantt-task-edit-tooltip",TASK_EDIT_TOOLTIP_DEFAULT:"dx-gantt-task-edit-tooltip-default",TASK_EDIT_TASK_TITLE:"dx-gantt-task-title",TASK_EDIT_PROGRESS_STATUS_TIME:"dx-gantt-status-time",TASK_EDIT_TOOLTIP_ARROW_BEFORE:"dx-gantt-task-edit-tooltip-before",TASK_EDIT_TOOLTIP_ARROW_AFTER:"dx-gantt-task-edit-tooltip-after"},e.defaultArrowHeight=5,e.defaultHeightOffset=15,e}();t.TaskEditTooltip=i},3336:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.GanttMovingHelper=void 0;var r=n(9279),i=n(3714),o=function(){function e(e){this.taskAreaContainer=e,this.movingInfo=null}return e.prototype.startMoving=function(e){this.movingInfo=this.calcMovingInfo(e),this.updateGanttAreaCursor(!0)},e.prototype.cancelMoving=function(){this.movingInfo=null},e.prototype.onMouseMove=function(e){this.move(e)},e.prototype.onMouseUp=function(e){this.cancelMoving(),this.updateGanttAreaCursor(!1)},e.prototype.move=function(e){this.updateScrollPosition(e)},e.prototype.updateScrollPosition=function(e){var t=Math.round(i.EvtUtils.getEventX(e)),n=Math.round(i.EvtUtils.getEventY(e)),r=t-this.movingInfo.eventX,o=n-this.movingInfo.eventY,s=r<0?-1:1,a=o<0?-1:1,c=s<0?this.movingInfo.maxRightDelta:this.movingInfo.maxLeftDelta,u=a<0?this.movingInfo.maxBottomDelta:this.movingInfo.maxTopDelta;Math.abs(r)>c&&(r=c*s),Math.abs(o)>u&&(o=u*a);var l=this.movingInfo.scrollLeft-r,h=this.movingInfo.scrollTop-o,d=this.taskAreaContainer;d.scrollLeft!==l&&(d.scrollLeft=l),d.scrollTop!==h&&(d.scrollTop=h)},e.prototype.calcMovingInfo=function(e){var t=this.taskAreaContainer;return{eventX:i.EvtUtils.getEventX(e),eventY:i.EvtUtils.getEventY(e),scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,maxLeftDelta:t.scrollLeft,maxRightDelta:t.scrollWidth-t.scrollLeft-t.getElement().offsetWidth,maxTopDelta:t.scrollTop,maxBottomDelta:t.scrollHeight-t.scrollTop-t.getElement().offsetHeight}},e.prototype.updateGanttAreaCursor=function(e){var t=r.Browser.IE?"move":"grabbing";this.taskAreaContainer.getElement().style.cursor=e?t:"default"},e}();t.GanttMovingHelper=o},6958:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaStateController=void 0;var r=n(8900),i=n(6907),o=n(3714),s=n(5098),a=n(2449),c=n(5376),u=n(4264),l=n(9155),h=n(125),d=n(1404),f=n(6591),p=n(2395),A=n(7295),g=function(){function e(e,t,n){var i=this;this.position=new r.Point(-1,-1),this._pointers={},this._listener=e,this._listener.setHandler(d.TaskAreaStateEventNames.STATE_EXIT,function(){i.switchToDefaultState()}),this._listener.setHandler(d.TaskAreaStateEventNames.GET_POINTERS_INFO,function(e){return i.getPointersInfo(e.triggerEvent)}),this._taskArea=t,this._cellSize=n,this.switchToDefaultState()}return e.prototype.onKeyDown=function(e){this._state.onKeyDown(e)},e.prototype.onScroll=function(e){this._state.onScroll(e)},e.prototype.onContextMenu=function(e){this._state.onContextMenu(e)},e.prototype.onMouseWheel=function(e){e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),this.switchState(f.TaskAreaZoomState)),this._state.onMouseWheel(e)},Object.defineProperty(e.prototype,"currentState",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.onTaskPointerEnter=function(e){this._state.onTaskPointerEnter(e)},e.prototype.onTaskAreaPointerLeave=function(e){this._state.onTaskAreaLeave(e)},e.prototype.onDocumentPointerCancel=function(e){this._clearPointerInfo(e)},e.prototype.onDocumentPointerDown=function(e){this._updatePinterInfo(e),this.toggleStateOnPointerDown(e),this._state.onDocumentPointerDown(e)},e.prototype.onDocumentPointerMove=function(e){this._updatePinterInfo(e),this.toggleStateOnPointerMove(e),this._state.onDocumentPointerMove(e)},e.prototype.onDocumentPointerUp=function(e){this._clearPointerInfo(e),this._state.onDocumentPointerUp(e)},e.prototype.onTaskTouchStart=function(e){this._state.onTaskTouchStart(e)},e.prototype.onTouchStart=function(e){this.toggleStateOnPointerDown(e),this._state.onTouchStart(e)},e.prototype.onTouchEnd=function(e){this._state.onTouchEnd(e)},e.prototype.onTouchMove=function(e){this.toggleStateOnPointerMove(e),this._state.onTouchMove(e)},e.prototype.onClick=function(e){this._state.onClick(e)},e.prototype.onDblClick=function(e){this._state.onDblClick(e)},e.prototype.onTaskAreaMouseLeave=function(e){this._state.onTaskAreaLeave(e)},e.prototype.onTaskElementHover=function(e){this._state.onTaskHover(e)},e.prototype.onTaskElementLeave=function(e){this._state.onTaskLeave(e)},e.prototype.onMouseUp=function(e){this._state.onMouseUp(e)},e.prototype.onMouseMove=function(e){this._state.onMouseMove(e)},e.prototype.onMouseDown=function(e){switch(this.getTaskAreaEventSource(e)){case a.TaskAreaEventSource.TaskArea:this.processMouseDownOnTaskArea(e);break;case a.TaskAreaEventSource.TaskEdit_Frame:this.switchState(A.TaskMoveState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(p.TaskEditState);break;case a.TaskAreaEventSource.TaskEdit_DependencyStart:case a.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(u.TaskAreaDependencyState)}this._state.onMouseDown(e)},Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._taskArea}
21,enumerable:!1,configurable:!0}),e.prototype.switchToDefaultState=function(){this._state=new c.TaskAreaDefaultState(this._listener,this.taskArea,this._cellSize)},e.prototype.switchState=function(e){this._state instanceof e||(this._state&&this._state.finish(),this._state=new e(this._listener,this.taskArea,this._cellSize),this._state.start())},e.prototype.processMouseDownOnTaskArea=function(e){o.EvtUtils.isLeftButtonPressed(e)&&!l.TaskAreaDomHelper.isConnectorLine(e)&&this.switchState(h.TaskAreaScrollState)},e.prototype.toggleStateOnPointerDown=function(e){var t=this.toggleStateWhenMultiOrOutsideTouch(e);if(this.position=new r.Point(o.EvtUtils.getEventX(e),o.EvtUtils.getEventY(e)),!t&&this._canStartDrag(e))switch(this.getTaskAreaEventSource(e)){case a.TaskAreaEventSource.TaskEdit_DependencyStart:case a.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(u.TaskAreaDependencyState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(p.TaskEditState)}},e.prototype.toggleStateOnPointerMove=function(e){var t=this.toggleStateWhenMultiOrOutsideTouch(e),n=Math.abs(this.position.x-o.EvtUtils.getEventX(e))>1||Math.abs(this.position.y-o.EvtUtils.getEventY(e))>1;if(!t&&n&&this._canStartDrag(e)&&this._state instanceof c.TaskAreaDefaultState)switch(this.getTaskAreaEventSource(e)){case a.TaskAreaEventSource.TaskArea:this.checkEventInTaskEditFrameArea(e)?this.switchState(A.TaskMoveState):this.switchState(h.TaskAreaScrollState);break;case a.TaskAreaEventSource.TaskEdit_Frame:this.isTaskUpdateDisabled()?this.switchState(h.TaskAreaScrollState):this.switchState(A.TaskMoveState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(p.TaskEditState)}},e.prototype.toggleStateWhenMultiOrOutsideTouch=function(e){var t=this._getActivePointersCount(e),n=!this.isInTaskArea(e),r=t>=2||n;return t>2||n?this.switchState(c.TaskAreaDefaultState):2===t&&this.switchState(f.TaskAreaZoomState),r},e.prototype.checkEventInTaskEditFrameArea=function(e){var t,n,r=this.getTaskEditFrameElement();if(this.isTaskUpdateDisabled()||!r)return!1;var i=(null==e?void 0:e.clientX)||(null===(t=null==e?void 0:e.touches[0])||void 0===t?void 0:t.clientX),o=(null==e?void 0:e.clientY)||(null===(n=null==e?void 0:e.touches[0])||void 0===n?void 0:n.clientY),s=r.getBoundingClientRect();return i>=s.left&&i<=s.left+s.width&&o>=s.top&&o<=s.top+s.height},e.prototype.isTaskUpdateDisabled=function(){return"false"===this._taskArea.getAttribute("task-edit-enabled")},e.prototype.isInTaskArea=function(e){return i.DomUtils.isItParent(this._taskArea,o.EvtUtils.getEventSource(e))},e.prototype.getTaskEditFrameElement=function(){return this._taskArea.getElementsByClassName(s.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME)[0]},e.prototype._updatePinterInfo=function(e){var t=e.pointerId;this._pointers[t]={pageX:e.pageX,pageY:e.pageY,pointerType:e.pointerType}},e.prototype._clearPointerInfo=function(e){var t=e.pointerId;delete this._pointers[t]},e.prototype.isTouchEvent=function(e){return l.TaskAreaDomHelper.isTouchEvent(e)},e.prototype.isPointerEvent=function(e){return l.TaskAreaDomHelper.isPointerEvent(e)},e.prototype._getActivePointersCount=function(e){var t=this;return this.isTouchEvent(e)?e.touches.length:Object.keys(this._pointers).filter(function(n){return t._pointers[n].pointerType===e.pointerType}).length},e.prototype.getPointersInfo=function(e){var t=this,n=null==e?void 0:e.pointerType,r=Object.keys(this._pointers).map(function(e){return t._pointers[e]});return n&&(r=r.filter(function(e){return e.pointerType===n})),r},e.prototype._canStartDrag=function(e){return!(this._getActivePointersCount(e)>1)&&(!l.TaskAreaDomHelper.isMousePointer(e)||1===e.buttons)&&!l.TaskAreaDomHelper.isConnectorLine(e)},e.prototype.getTaskAreaEventSource=function(e){return l.TaskAreaDomHelper.getEventSource(o.EvtUtils.getEventSource(e))},e}();t.TaskAreaStateController=g},5376:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDefaultState=void 0;var r=n(655),i=n(3714),o=n(9155),s=n(5867),a=n(1404),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.finish=function(){this.clearTimers(),this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE)},t.prototype.onMouseDownInternal=function(e){this.onPointerDownBase(e)},t.prototype.onDocumentPointerDownInternal=function(e){this.onPointerDownBase(e)},t.prototype.onDocumentPointerUpInternal=function(e){this.onPointerUpBase(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.clearTimers()},t.prototype.onTouchStartInternal=function(e){this.onPointerDownBase(e)},t.prototype.onTouchEndInternal=function(e){this.onPointerUpBase(e)},t.prototype.onTouchMoveInternal=function(e){this.clearTimers()},t.prototype.onPointerDownBase=function(e){var n=this;e.preventDefault(),this._lastTouchRowIndex=this.getClickedRowIndex(e),(this.isPointerEvent(e)?o.TaskAreaDomHelper.isMousePointer(e):this.isMouseEvent(e))?this.changeSelectionOnTouchDown(e):(setTimeout(function(){o.TaskAreaDomHelper.isMousePointer(e)||n.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE,e),n.changeSelectionOnTouchDown(e)},0),clearTimeout(this._contextMenuTimer),this._contextMenuTimer=setTimeout(function(){return n.showContextMenuOnTouchDown(e)},t.defaultContextMenuTimeout))},t.prototype.onPointerUpBase=function(e){var n=this;if(clearTimeout(this._contextMenuTimer),e.preventDefault(),this.canToEmulateClick(e)){var r=this.getClickedRowIndex(e),i=new Date;if(this._lastEmulatedClickTime)i.getTime()-this._lastEmulatedClickTime.getTime()<t.defaultDblClickTimeout&&(this.raiseEvent(a.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,e,r),delete this._lastEmulatedClickTime);else{var s=!this.raiseEvent(a.TaskAreaStateEventNames.TASK_AREA_CLICK,e,r);clearTimeout(this._dblClickClearTimer),o.TaskAreaDomHelper.isMousePointer(e)&&this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE,e),s||(this._lastEmulatedClickTime=i,this._dblClickClearTimer=setTimeout(function(){delete n._lastEmulatedClickTime},t.defaultDblClickClearTimeout))}}},t.prototype.canToEmulateClick=function(e){var t=!o.TaskAreaDomHelper.isConnectorLine(e)&&this.getClickedRowIndex(e)===this._lastTouchRowIndex;return t&&o.TaskAreaDomHelper.isMousePointer(e)&&t&&(t=2!==e.button),t},t.prototype.changeSelectionOnTouchDown=function(e){var t=o.TaskAreaDomHelper.isConnectorLine(e);t||this.raiseTaskSelection(e,this.getClickedRowIndex(e)),this.raiseDependencySelection(e,t?i.EvtUtils.getEventSource(e).getAttribute("dependency-id"):null)},t.prototype.showContextMenuOnTouchDown=function(e){var t=o.TaskAreaDomHelper.isConnectorLine(e);this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_SHOW,e,this.getClickedRowIndex(e),{type:t?"dependency":"task"})},t.prototype.clearTimers=function(){clearTimeout(this._contextMenuTimer),clearTimeout(this._dblClickClearTimer),delete this._lastEmulatedClickTime},t.defaultContextMenuTimeout=3e3,t.defaultDblClickTimeout=500,t.defaultDblClickClearTimeout=t.defaultDblClickTimeout+100,t}(s.TaskAreaStateBase);t.TaskAreaDefaultState=c}
21,4264:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDependencyState=t.dependencyMap=void 0;var r=n(655),i=n(8900),o=n(6907),s=n(3714),a=n(5950),c=n(2449),u=n(9155),l=n(5867),h=n(1404);t.dependencyMap=[],t.dependencyMap[c.TaskAreaEventSource.TaskEdit_DependencyStart]=[],t.dependencyMap[c.TaskAreaEventSource.TaskEdit_DependencyFinish]=[],t.dependencyMap[c.TaskAreaEventSource.TaskEdit_DependencyStart][c.TaskAreaEventSource.Successor_DependencyStart]=a.DependencyType.SS,t.dependencyMap[c.TaskAreaEventSource.TaskEdit_DependencyStart][c.TaskAreaEventSource.Successor_DependencyFinish]=a.DependencyType.SF,t.dependencyMap[c.TaskAreaEventSource.TaskEdit_DependencyFinish][c.TaskAreaEventSource.Successor_DependencyStart]=a.DependencyType.FS,t.dependencyMap[c.TaskAreaEventSource.TaskEdit_DependencyFinish][c.TaskAreaEventSource.Successor_DependencyFinish]=a.DependencyType.FF;var d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.onMouseUp=function(e){this.onDependencyEndByMouse(e)},n.prototype.onMouseDownInternal=function(e){this.onDependencyStart(e)},n.prototype.onMouseMoveInternal=function(e){this.onDependencyMoveStep(e)},n.prototype.onTouchStartInternal=function(e){this.onDependencyStart(e)},n.prototype.onTouchEndInternal=function(e){this.onDependencyEndByTouch(e)},n.prototype.onTouchMoveInternal=function(e){this.onDependencyMoveStep(e)},n.prototype.onDocumentPointerDownInternal=function(e){this.onDependencyStart(e)},n.prototype.onDocumentPointerUpInternal=function(e){this.onDependencyEndByTouch(e)},n.prototype.onDocumentPointerMoveInternal=function(e){this.onDependencyMoveStep(e)},n.prototype.onDependencyStart=function(e){var t=s.EvtUtils.getEventSource(e);this.source=u.TaskAreaDomHelper.getEventSource(t);var n=this.getRelativePos(new i.Point(o.DomUtils.getAbsolutePositionX(t)+t.clientWidth/2,o.DomUtils.getAbsolutePositionY(t)+t.clientHeight/2));this.raiseEvent(h.TaskAreaStateEventNames.DEPENDENCY_START,e,null,{pos:n})},n.prototype.onDependencyMoveStep=function(e){e.preventDefault();var t=this.getRelativePos(new i.Point(s.EvtUtils.getEventX(e),s.EvtUtils.getEventY(e)));this.raiseEvent(h.TaskAreaStateEventNames.DEPENDENCY_PROCESS,e,this.getClickedRowIndex(e),{pos:t})},n.prototype.onDependencyEndByMouse=function(e){var n=u.TaskAreaDomHelper.getEventSource(s.EvtUtils.getEventSource(e)),r=n===c.TaskAreaEventSource.Successor_DependencyStart||n===c.TaskAreaEventSource.Successor_DependencyFinish?t.dependencyMap[this.source][n]:null;this.processEndDependency(e,r)},n.prototype.onDependencyEndByTouch=function(e){var n=this.raiseEvent(h.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS,e),r=this.getRelativePos(n.successorStart),o=this.getRelativePos(n.successorFinish),a=this.getRelativePos(new i.Point(s.EvtUtils.getEventX(e),s.EvtUtils.getEventY(e))),u=this.isTouchNearby(a,r)?c.TaskAreaEventSource.Successor_DependencyStart:this.isTouchNearby(a,o)?c.TaskAreaEventSource.Successor_DependencyFinish:null,l=u===c.TaskAreaEventSource.Successor_DependencyStart||u===c.TaskAreaEventSource.Successor_DependencyFinish?t.dependencyMap[this.source][u]:null;this.processEndDependency(e,l)},n.prototype.onTaskAreaLeaveInternal=function(e){this.processEndDependency(e,null)},n.prototype.processEndDependency=function(e,t){this.raiseEvent(h.TaskAreaStateEventNames.DEPENDENCY_END,e,null,{type:t}),this.raiseEvent(h.TaskAreaStateEventNames.STATE_EXIT,e)},n.prototype.isTouchNearby=function(e,t){return Math.abs(t.x-e.x)<=20&&Math.abs(t.y-e.y)<=20},n}(l.TaskAreaStateBase);t.TaskAreaDependencyState=d},9155:(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDomHelper=void 0;var i=n(6907),o=n(3714),s=n(5098),a=n(2449),c=n(1855),u=function(){function e(){}return e.getEventSource=function(t){var n,r=(t.nodeType===(null===(n=null===window||void 0===window?void 0:window.Node)||void 0===n?void 0:n.ELEMENT_NODE)?t:t.parentNode).classList[0];return e.classToSource[r]||a.TaskAreaEventSource.TaskArea},e.isConnectorLine=function(e){var t=o.EvtUtils.getEventSource(e);return i.DomUtils.hasClassName(t,c.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||i.DomUtils.hasClassName(t,c.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)},e.isTaskElement=function(t){var n=o.EvtUtils.getEventSource(t),r=e.classToSource[n.classList[0]];return r===a.TaskAreaEventSource.TaskEdit_Frame||r===a.TaskAreaEventSource.TaskEdit_Progress||r===a.TaskAreaEventSource.TaskEdit_Start||r===a.TaskAreaEventSource.TaskEdit_End||r===a.TaskAreaEventSource.TaskEdit_DependencyStart||r===a.TaskAreaEventSource.TaskEdit_DependencyFinish},e.isMouseEvent=function(e){return e instanceof MouseEvent},e.isTouchEvent=function(e){return window.TouchEvent&&e instanceof TouchEvent},e.isPointerEvent=function(e){return window.PointerEvent&&e instanceof PointerEvent},e.isMousePointer=function(e){return this.isPointerEvent(e)&&"mouse"===e.pointerType},e.classToSource=((r={})[s.TaskEditController.CLASSNAMES.TASK_EDIT_PROGRESS]=a.TaskAreaEventSource.TaskEdit_Progress,r[s.TaskEditController.CLASSNAMES.TASK_EDIT_START]=a.TaskAreaEventSource.TaskEdit_Start,r[s.TaskEditController.CLASSNAMES.TASK_EDIT_END]=a.TaskAreaEventSource.TaskEdit_End,r[s.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME]=a.TaskAreaEventSource.TaskEdit_Frame,r[s.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH]=a.TaskAreaEventSource.TaskEdit_DependencyStart,r[s.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT]=a.TaskAreaEventSource.TaskEdit_DependencyFinish,r[s.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH]=a.TaskAreaEventSource.Successor_DependencyStart,r[s.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT]=a.TaskAreaEventSource.Successor_DependencyFinish,r),e}();t.TaskAreaDomHelper=u},125:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaScrollState=void 0;var r=n(655),i=n(5867),o=n(1404),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isStarted=!1,t}return r.__extends(t,e),t.prototype.finish=function(){this.raiseEvent(o.TaskAreaStateEventNames.TASK_AREA_END_MOVE,null)},t.prototype.onMouseUp=function(e){this.onEnd(e)},t.prototype.onMouseDownInternal=function(e){this.onBeforeStart(e)},t.prototype.onMouseMoveInternal=function(e){this.onMove(e)},t.prototype.onDocumentPointerUpInternal=function(e){this.onEnd(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.onMoveByPointer(e)},t.prototype.onTouchEndInternal=function(e){this.onEnd(e)},t.prototype.onTouchMoveInternal=function(e){this.onMoveByPointer(e)},t.prototype.onBeforeStart=function(e){e.preventDefault(),this.raiseDependencySelection(e,null),this.raiseEvent(o.TaskAreaStateEventNames.TASK_EDIT_END,e),this.raiseEvent(o.TaskAreaStateEventNames.TASK_AREA_START_MOVE,e),this._isStarted=!0},t.prototype.onMoveByPointer=function(e){this._isStarted?this.onMove(e):this.onBeforeStart(e)},t.prototype.onMove=function(e){e.preventDefault(),this.raiseEvent(o.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE,e)},t.prototype.onEnd=function(e){e.preventDefault(),this.raiseEvent(o.TaskAreaStateEventNames.TASK_AREA_END_MOVE,e),this.raiseEvent(o.TaskAreaStateEventNames.STATE_EXIT,e),this._isStarted=!1},t}(i.TaskAreaStateBase);t.TaskAreaScrollState=s},5867:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaStateBase=void 0;var r=n(9279),i=n(8900),o=n(6907),s=n(3714),a=n(2153),c=n(3461),u=n(9155),l=n(1404),h=function(){function e(e,t,n){this.position=new i.Point(-1,-1),this.isCursorInArea=!1,this._listener=e,this._taskArea=t,this._cellSize=n}return e.prototype.start=function(){},e.prototype.finish=function(){},e.prototype.isTouchEvent=function(e){return u.TaskAreaDomHelper.isTouchEvent(e)},e.prototype.isPointerEvent=function(e){return u.TaskAreaDomHelper.isPointerEvent(e)},e.prototype.isMouseEvent=function(e){return u.TaskAreaDomHelper.isMouseEvent(e)},e.prototype.onMouseWheel=function(e){},e.prototype.onScroll=function(e){this.raiseEvent(l.TaskAreaStateEventNames.TASK_AREA_SCROLL)},e.prototype.onKeyDown=function(e){this.isCursorInArea&&this.raiseEvent(l.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN,e,null,{code:this.getShortcutCode(e)})},e.prototype.onContextMenu=function(e){var t=this.getClickedRowIndex(e),n=u.TaskAreaDomHelper.isConnectorLine(e);n||this.raiseTaskSelection(e,t),e.stopPropagation(),e.preventDefault(),r.Browser.WebKitFamily&&(e.returnValue=!1),this.raiseEvent(l.TaskAreaStateEventNames.CONTEXTMENU_SHOW,e,t,{type:n?"dependency":"task"})},e.prototype.onTaskPointerEnter=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onDocumentPointerMove=function(e){this.processPointerMove(e)},e.prototype.onDocumentPointerDown=function(e){this.processPointerDown(e)},e.prototype.onDocumentPointerUp=function(e){this.processPointerUp(e)},e.prototype.onTaskTouchStart=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onTouchMove=function(e){this.processPointerMove(e)},e.prototype.onTouchStart=function(e){this.processPointerDown(e)},e.prototype.onTouchEnd=function(e){this.processPointerUp(e)},e.prototype.onMouseDown=function(e){this.processPointerDown(e)},e.prototype.onMouseUp=function(e){},e.prototype.onMouseMove=function(e){this.processPointerMove(e)},e.prototype.onTaskHover=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onTaskLeave=function(e){this.raiseEvent(l.TaskAreaStateEventNames.TASK_LEAVE,e,this.getClickedRowIndex(e))},e.prototype.onClick=function(e){var t=this.getClickedRowIndex(e);this.raiseTaskSelection(e,t),this.raiseEvent(l.TaskAreaStateEventNames.TASK_AREA_CLICK,e,t)},e.prototype.onDblClick=function(e){e.preventDefault(),this.raiseEvent(l.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,e,this.getClickedRowIndex(e))},e.prototype.onTaskAreaLeave=function(e){(!this.isPointerEvent(e)||u.TaskAreaDomHelper.isMousePointer(e))&&(this.isCursorInArea=!1,this.raiseEvent(l.TaskAreaStateEventNames.TASK_EDIT_END,e)),this.onTaskAreaLeaveInternal(e)},e.prototype.onTaskPointerEnterBase=function(e){this.isTouchEvent(e)||this.isPointerEvent(e)||e.preventDefault(),this.raiseEvent(l.TaskAreaStateEventNames.TASK_EDIT_START,e,this.getClickedRowIndex(e))},e.prototype.processPointerDown=function(e){var t=this.isTouchEvent(e),n=this.isPointerEvent(e);(t||n)&&this.checkAndProcessTouchOutsideArea(e)||(this.position=new i.Point(s.EvtUtils.getEventX(e),s.EvtUtils.getEventY(e)),(t||n)&&e.preventDefault(),t?this.onTouchStartInternal(e):n?this.onDocumentPointerDownInternal(e):this.onMouseDownInternal(e))},e.prototype.processPointerMove=function(e){var t,n=this.isTouchEvent(e),r=this.isPointerEvent(e);null!==(t=this.position)&&void 0!==t||(this.position=new i.Point(s.EvtUtils.getEventX(e),s.EvtUtils.getEventY(e)));var o=Math.abs(this.position.x-s.EvtUtils.getEventX(e))>2||Math.abs(this.position.y-s.EvtUtils.getEventY(e))>2;(!n&&!r||!this.checkAndProcessTouchOutsideArea(e))&&o&&((n||r)&&e.preventDefault(),this.isTouchEvent(e)?this.onTouchMoveInternal(e):this.isPointerEvent(e)?this.onDocumentPointerMoveInternal(e):(this.isCursorInArea=!0,this.onMouseMoveInternal(e)))},e.prototype.processPointerUp=function(e){this.checkAndProcessTouchOutsideArea(e)||(e.preventDefault(),this.isTouchEvent(e)?this.onTouchEndInternal(e):this.onDocumentPointerUpInternal(e))},e.prototype.onMouseDownInternal=function(e){},e.prototype.onMouseMoveInternal=function(e){},e.prototype.onDocumentPointerUpInternal=function(e){},e.prototype.onDocumentPointerDownInternal=function(e){},e.prototype.onDocumentPointerMoveInternal=function(e){},e.prototype.onTouchStartInternal=function(e){},e.prototype.onTouchEndInternal=function(e){},e.prototype.onTouchMoveInternal=function(e){},e.prototype.onTaskAreaLeaveInternal=function(e){},e.prototype.checkAndProcessTouchOutsideArea=function(e){var t=!this.isInTaskArea(e);return t&&this.raiseEvent(l.TaskAreaStateEventNames.TASK_EDIT_END,e),this.isCursorInArea=!t,t},e.prototype.raiseEvent=function(e,t,n,r){var i=new c.TaskAreaEventArgs(e,t,n,r),o=this._listener.getHandler(e);return o&&o(i)},e.prototype.raiseDependencySelection=function(e,t){this.raiseEvent(l.TaskAreaStateEventNames.DEPENDENCY_SELECTION,e,null,{key:t})}
21,e.prototype.raiseTaskSelection=function(e,t){o.DomUtils.isItParent(this._taskArea,s.EvtUtils.getEventSource(e))&&!u.TaskAreaDomHelper.isConnectorLine(e)&&this.raiseEvent(l.TaskAreaStateEventNames.TASK_SELECTION,e,t)},e.prototype.getClickedRowIndex=function(e){if(!e)return-1;var t=s.EvtUtils.getEventY(e)-o.DomUtils.getAbsolutePositionY(this._taskArea);return Math.floor(t/this._cellSize.height)},e.prototype.getRelativePos=function(e){var t=o.DomUtils.getAbsolutePositionX(this._taskArea),n=o.DomUtils.getAbsolutePositionY(this._taskArea);return new i.Point(e.x-t,e.y-n)},e.prototype.isInTaskArea=function(e){return o.DomUtils.isItParent(this._taskArea,s.EvtUtils.getEventSource(e))},e.prototype.getShortcutCode=function(e){var t=a.KeyUtils.getEventKeyCode(e),n=0;return e.altKey&&(n|=a.ModifierKey.Alt),e.ctrlKey&&(n|=a.ModifierKey.Ctrl),e.shiftKey&&(n|=a.ModifierKey.Shift),e.metaKey&&r.Browser.MacOSPlatform&&(n|=a.ModifierKey.Meta),n|t},e}();t.TaskAreaStateBase=h},1404:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaStateEventNames=void 0;var n=function(){function e(){}return e.TASK_AREA_CLICK="taskAreaClick",e.TASK_AREA_DBLCLICK="taskAreaDblClick",e.TASK_AREA_SCROLL="taskAreaScroll",e.TASK_AREA_START_MOVE="taskAreaStartMove",e.TASK_AREA_PROCESS_MOVE="taskAreaProcessMove",e.TASK_AREA_END_MOVE="taskAreaEndMove",e.TASK_AREA_ZOOM_IN="taskAreaZoomIn",e.TASK_AREA_ZOOM_OUT="taskAreaZoomOut",e.CONTEXTMENU_SHOW="contextMenuShow",e.CONTEXTMENU_HIDE="contextMenuHide",e.DEPENDENCY_SELECTION="dependencySelection",e.STATE_EXIT="stateExit",e.TASK_SELECTION="taskSelection",e.TASK_EDIT_START="taskEditStart",e.TASK_EDIT_END="taskEditEnd",e.TASK_LEAVE="taskLeave",e.TASK_PROCESS_MOVE="taskProcessMove",e.TASK_END_MOVE="taskEndMove",e.TASK_PROCESS_PROGRESS="taskProcessProgress",e.TASK_END_PROGRESS="taskEndProgress",e.TASK_PROCESS_START="taskProcessStart",e.TASK_CONFIRM_START="taskConfirmStart",e.TASK_PROCESS_END="taskProcessEnd",e.TASK_CONFIRM_END="taskConfirmEnd",e.G
21ET_DEPENDENCY_POINTS="getDependencyPoints",e.DEPENDENCY_START="dependencyStart",e.DEPENDENCY_PROCESS="dependencyProcess",e.DEPENDENCY_END="dependencyEnd",e.TASK_AREA_KEY_DOWN="taskAreaKeyDown",e.GET_POINTERS_INFO="getPointersInfo",e.GET_COORDINATES_REF_POINT="getCoordinatesRefPoint",e}();t.TaskAreaStateEventNames=n},6591:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaZoomState=void 0;var r=n(655),i=n(8900),o=n(3714),s=n(5596),a=n(5867),c=n(1404),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isInZooming=!1,t}return r.__extends(t,e),t.prototype.onMouseWheel=function(e){e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),this._isInZooming||this.processZoom(e,o.EvtUtils.getWheelDelta(e)>0,50))},t.prototype.onDocumentPointerUpInternal=function(e){this.onEndZoom(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.onTouchZoom(e)},t.prototype.onTouchEndInternal=function(e){this.onEndZoom(e)},t.prototype.onTouchMoveInternal=function(e){this.onTouchZoom(e)},t.prototype.onTouchZoom=function(e){var t;if(e.stopPropagation(),e.preventDefault(),!this._isInZooming){var n=this.getTouchDistance(e);null!==(t=this.prevDistance)&&void 0!==t||(this.prevDistance=n);var r=this.prevDistance-n;Math.abs(r)>3&&(this.processZoom(e,r>0,1e3),this.prevDistance=n)}},t.prototype.processZoom=function(e,t,n){var r=this;this._isInZooming=!0,setTimeout(function(){r._isInZooming=!1},n);var i=t?c.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN:c.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT;this.raiseEvent(i,e,null,{leftPos:this.getLeftPosition(e)})},t.prototype.onEndZoom=function(e){this.prevDistance=null,this.raiseEvent(c.TaskAreaStateEventNames.STATE_EXIT,e)},t.prototype.getTouchDistance=function(e){var t=this.GetTouchPoints(e);return this.getDistance(t[0],t[1])},t.prototype.GetTouchPoints=function(e){var t,n,r,o;if(this.isTouchEvent(e)){var s=e.touches;return[new i.Point(s[0].pageX,s[0].pageY),new i.Point(s[1].pageX,s[1].pageY)]}var a=this.raiseEvent(c.TaskAreaStateEventNames.GET_POINTERS_INFO,e);return[new i.Point(null===(t=a[0])||void 0===t?void 0:t.pageX,null===(n=a[0])||void 0===n?void 0:n.pageY),new i.Point(null===(r=a[1])||void 0===r?void 0:r.pageX,null===(o=a[1])||void 0===o?void 0:o.pageY)]},t.prototype.getDistance=function(e,t){return s.Metrics.euclideanDistance(e,t)},t.prototype.getLeftPosition=function(e){var t=0;return this.isTouchEvent(e)||this.isPointerEvent(e)?t=this.getZoomMiddlePoint(e).x:this.isMouseEvent(e)&&(t=this.getMouseZoomLeftPos(e)),t},t.prototype.getMouseZoomLeftPos=function(e){var t=this.raiseEvent(c.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT);return o.EvtUtils.getEventX(e)-t.x},t.prototype.getZoomMiddlePoint=function(e){var t=this.raiseEvent(c.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT),n=this.GetTouchPoints(e),r=this.convertScreenToChartCoordinates(n[0],t),o=this.convertScreenToChartCoordinates(n[1],t);return new i.Point((r.x+o.x)/2,(r.y+o.y)/2)},t.prototype.convertScreenToChartCoordinates=function(e,t){return new i.Point(e.x-t.x,e.y-t.y)},t}(a.TaskAreaStateBase);t.TaskAreaZoomState=u},6262:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskDragBaseState=void 0;var r=n(655),i=n(8900),o=n(3714),s=n(5867),a=n(1404),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.onMouseDownInternal=function(e){this.onStart(e)},t.prototype.onMouseUp=function(e){this.onEnd(e)},t.prototype.onMouseMoveInternal=function(e){this.onDrag(e)},t.prototype.onTouchStartInternal=function(e){this.onStart(e)},t.prototype.onTouchEndInternal=function(e){this.onEnd(e)},t.prototype.onTouchMoveInternal=function(e){this.onDrag(e)},t.prototype.onDocumentPointerDownInternal=function(e){this.onStart(e)},t.prototype.onDocumentPointerUpInternal=function(e){this.onEnd(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.onDrag(e)},t.prototype.onStart=function(e){this.currentPosition=new i.Point(o.EvtUtils.getEventX(e),o.EvtUtils.getEventY(e)),this.raiseDependencySelection(e,null),this.onStartInternal(e)},t.prototype.onDrag=function(e){var t;e.preventDefault();var n=new i.Point(o.EvtUtils.getEventX(e),o.EvtUtils.getEventY(e));null!==(t=this.currentPosition)&&void 0!==t||(this.currentPosition=n),this.onDragInternal(n),this.currentPosition=n},t.prototype.onEnd=function(e){this.onEndInternal(e),this.raiseEvent(a.TaskAreaStateEventNames.STATE_EXIT,e)},t.prototype.onStartInternal=function(e){},t.prototype.onEndInternal=function(e){},t.prototype.onDragInternal=function(e){},t.prototype.finish=function(){this.raiseEvent(a.TaskAreaStateEventNames.TASK_EDIT_END)},t}(s.TaskAreaStateBase);t.TaskDragBaseState=c},2395:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditState=void 0;var r=n(655),i=n(3714),o=n(2449),s=n(9155),a=n(1404),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.onStartInternal=function(e){var t;null!==(t=this._source)&&void 0!==t||(this._source=s.TaskAreaDomHelper.getEventSource(i.EvtUtils.getEventSource(e)))},t.prototype.onEndInternal=function(e){this.raiseEvent(this.getEventOnEndKey(),e)},t.prototype.onDragInternal=function(e){var t=this.getRelativePos(e);this.raiseEvent(this.getEventOnDragKey(),null,null,{position:t})},t.prototype.getEventOnDragKey=function(){switch(this._source){case o.TaskAreaEventSource.TaskEdit_Start:return a.TaskAreaStateEventNames.TASK_PROCESS_START;case o.TaskAreaEventSource.TaskEdit_End:return a.TaskAreaStateEventNames.TASK_PROCESS_END;case o.TaskAreaEventSource.TaskEdit_Progress:return a.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS}},t.prototype.getEventOnEndKey=function(){switch(this._source){case o.TaskAreaEventSource.TaskEdit_Start:return a.TaskAreaStateEventNames.TASK_CONFIRM_START;case o.TaskAreaEventSource.TaskEdit_End:return a.TaskAreaStateEventNames.TASK_CONFIRM_END;case o.TaskAreaEventSource.TaskEdit_Progress:return a.TaskAreaStateEventNames.TASK_END_PROGRESS}},t}(n(6262).TaskDragBaseState);t.TaskEditState=c},7295:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskMoveState=void 0;var r=n(655),i=n(1404),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.onEndInternal=function(e){this.raiseEvent(i.TaskAreaStateEventNames.TASK_END_MOVE,e)},t.prototype.onDragInternal=function(e){this.raiseEvent(i.TaskAreaStateEventNames.TASK_PROCESS_MOVE,null,null,{delta:e.x-this.currentPosition.x})||this.raiseEvent(i.TaskAreaStateEventNames.STATE_EXIT)},t}(n(6262).TaskDragBaseState);t.TaskMoveState=o},3461:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaEventArgs=void 0;var r=n(2491),i=function(e,t,n,i){this.rowIndex=-1,this.info={},this.eventName=e,this.triggerEvent=t,(0,r.isDefined)(n)&&(this.rowIndex=n),i&&(this.info=i)};t.TaskAreaEventArgs=i},8269:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaEventsListener=void 0;var r=n(8900),i=n(2491),o=n(6907),s=n(3714),a=n(2153),c=n(3336),u=n(1404),l=function(){function e(e){this._owner=e}return Object.defineProperty(e.prototype,"taskEditController",{get:function(){var e;return null===(e=this._owner)||void 0===e?void 0:e.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderHelper",{get:function(){var e;return null===(e=this._owner)||void 0===e?void 0:e.renderHelper},enumerable:!1,configurable:!0}),e.prototype.getHandler=function(e){return this.handlers[e]},e.prototype.setHandler=function(e,t){this.handlers[e]=t},Object.defineProperty(e.prototype,"handlers",{get:function(){var e;return null!==(e=this._handlers)&&void 0!==e||(this._handlers=this.createTaskAreaEventHandlers()),this._handlers},enumerable:!1,configurable:!0}),e.prototype.createTaskAreaEventHandlers=function(){var e={};return e[u.TaskAreaStateEventNames.TASK_AREA_CLICK]=this.taskAreaClickHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_AREA_DBLCLICK]=this.taskAreaDblClickHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_AREA_SCROLL]=this.taskAreaScrollHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_AREA_START_MOVE]=this.taskAreaStartMoveHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE]=this.taskAreaProcessMoveHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_AREA_END_MOVE]=this.taskAreaEndMoveHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN]=this.taskAreaZoomInHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT]=this.taskAreaZoomOutHandler.bind(this),e[u.TaskAreaStateEventNames.CONTEXTMENU_SHOW]=this.taskAreaContextMenuShowHandler.bind(this),e[u.TaskAreaStateEventNames.CONTEXTMENU_HIDE]=this.taskAreaContextMenuHideHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_SELECTION]=this.taskSelectionHandler.bind(this),e[u.TaskAreaStateEventNames.DEPENDENCY_SELECTION]=this.dependencySelectionHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_EDIT_START]=this.taskEditStartHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_EDIT_END]=this.taskEditEndHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_LEAVE]=this.taskLeaveHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_PROCESS_MOVE]=this.taskProcessMoveHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_END_MOVE]=this.taskEndMoveHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS]=this.taskProcessProgressHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_END_PROGRESS]=this.taskEndProgressHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_PROCESS_START]=this.taskProcessStartHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_CONFIRM_START]=this.taskConfirmStartHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_PROCESS_END]=this.taskProcessEndHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_CONFIRM_END]=this.taskConfirmEndHandler.bind(this),e[u.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS]=this.getDependencyPoints.bind(this),e[u.TaskAreaStateEventNames.DEPENDENCY_START]=this.dependencyStartHandler.bind(this),e[u.TaskAreaStateEventNames.DEPENDENCY_END]=this.dependencyEndHandler.bind(this),e[u.TaskAreaStateEventNames.DEPENDENCY_PROCESS]=this.dependencyProcessHandler.bind(this),e[u.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN]=this.onTaskAreaKeyDown.bind(this),e[u.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT]=this.getCoordinatesRefPoint.bind(this),e[u.TaskAreaStateEventNames.STATE_EXIT]=function(){},e},e.prototype.taskAreaClickHandler=function(e){return this._owner.onTaskAreaClick(e.rowIndex,e.triggerEvent)},e.prototype.taskAreaDblClickHandler=function(e){this._owner.onTaskAreaDblClick(e.rowIndex,e.triggerEvent)},e.prototype.taskSelectionHandler=function(e){this._owner.onTaskSelectionChanged(e.rowIndex,e.triggerEvent)},e.prototype.taskAreaContextMenuShowHandler=function(e){this._owner.onTaskAreaContextMenu(e.rowIndex,e.triggerEvent,e.info.type)},e.prototype.taskAreaContextMenuHideHandler=function(){this._owner.hidePopupMenu()},e.prototype.taskAreaScrollHandler=function(e){this._owner.updateView()}
21,e.prototype.dependencySelectionHandler=function(e){var t=e.info.key,n=this.taskEditController.dependencyId;(t!==n||!t&&(0,i.isDefined)(n))&&this._owner.selectDependency(t)},Object.defineProperty(e.prototype,"ganttMovingHelper",{get:function(){var e;return null!==(e=this._ganttMovingHelper)&&void 0!==e||(this._ganttMovingHelper=new c.GanttMovingHelper(this._owner.renderHelper.taskAreaContainer)),this._ganttMovingHelper},enumerable:!1,configurable:!0}),e.prototype.taskAreaStartMoveHandler=function(e){this.ganttMovingHelper.startMoving(e.triggerEvent)},e.prototype.taskAreaProcessMoveHandler=function(e){this.ganttMovingHelper.movingInfo&&(this.ganttMovingHelper.onMouseMove(e.triggerEvent),e.triggerEvent.preventDefault())},e.prototype.taskAreaEndMoveHandler=function(e){this.ganttMovingHelper.onMouseUp(e.triggerEvent)},e.prototype.taskAreaZoomInHandler=function(e){this._owner.zoomIn(e.info.leftPos)},e.prototype.taskAreaZoomOutHandler=function(e){this._owner.zoomOut(e.info.leftPos)},e.prototype.getCoordinatesRefPoint=function(e){var t=o.DomUtils.getAbsolutePositionX(this.renderHelper.taskAreaContainer.getElement()),n=o.DomUtils.getAbsolutePositionY(this.renderHelper.taskAreaContainer.getElement());return new r.Point(t,n)},e.prototype.taskEditStartHandler=function(e){this.taskEditController.show(e.rowIndex),this.taskEditController.showTaskInfo(s.EvtUtils.getEventX(e.triggerEvent))},e.prototype.taskLeaveHandler=function(e){this.taskEditController.cancel()},e.prototype.taskEditEndHandler=function(e){this.taskEditController.endEditing()},e.prototype.taskEndMoveHandler=function(e){this.taskEditController.confirmMove()},e.prototype.taskProcessMoveHandler=function(e){var t;return this.taskEditController.processMove(null!==(t=e.info.delta)&&void 0!==t?t:0)},e.prototype.taskEndProgressHandler=function(e){this.taskEditController.confirmProgress()},e.prototype.taskProcessProgressHandler=function(e){this.taskEditController.processProgress(e.info.position)},e.prototype.taskProcessStartHandler=function(e){this.taskEditController.processStart(e.info.position)},e.prototype.taskConfirmStartHandler=function(e){this.taskEditController.confirmStart()},e.prototype.taskProcessEndHandler=function(e){this.taskEditController.processEnd(e.info.position)},e.prototype.taskConfirmEndHandler=function(e){this.taskEditController.confirmEnd()},e.prototype.getDependencyPoints=function(e){var t={};return t.successorStart=new r.Point(o.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientWidth/2,o.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientHeight/2),t.successorFinish=new r.Point(o.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientWidth/2,o.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientHeight/2),t}
21,e.prototype.dependencyStartHandler=function(e){this.taskEditController.startDependency(e.info.pos)},e.prototype.dependencyEndHandler=function(e){this.taskEditController.endDependency(e.info.type)},e.prototype.dependencyProcessHandler=function(e){this.taskEditController.processDependency(e.info.pos),this._owner.viewModel.tasks.items[e.rowIndex]&&this.taskEditController.showDependencySuccessor(e.rowIndex)},e.prototype.onTaskAreaKeyDown=function(e){var t=e.info.code;t==(a.ModifierKey.Ctrl|a.KeyCode.Key_z)&&this._owner.history.undo(),t==(a.ModifierKey.Ctrl|a.KeyCode.Key_y)&&this._owner.history.redo(),t==a.KeyCode.Delete&&this.taskEditController.deleteSelectedDependency()},e}();t.TaskAreaEventsListener=l},3682:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaManager=t.TOUCH_ACTION_NONE=void 0;var r=n(9279),i=n(6907),o=n(3714),s=n(6958);t.TOUCH_ACTION_NONE="dx-gantt-touch-action";var a=function(){function e(e,t,n){this._eventListener=e,this._taskArea=t,this._cellSize=n,this.attachEvents()}return e.prototype.attachEvents=function(){window.PointerEvent?this.attachPointerEvents():r.Browser.TouchUI?this.attachTouchEvents():this.attachMouseEvents(),this.attachCommonEvents()},e.prototype.detachEvents=function(){window.PointerEvent?this.detachPointerEvents():r.Browser.TouchUI?this.detachTouchEvents():this.detachMouseEvents(),this.detachCommonEvents()},e.prototype.attachEventsOnTask=function(e){window.PointerEvent?null==e||e.addEventListener("pointerenter",this.onTaskPointerEnterHandler):r.Browser.TouchUI?null==e||e.addEventListener("touchstart",this.onTaskTouchStartHandler):(null==e||e.addEventListener("mouseenter",this.onTaskMouseEnterHandler),null==e||e.addEventListener("mouseleave",this.onTaskMouseLeaveHandler))},e.prototype.detachEventsOnTask=function(e){window.PointerEvent?null==e||e.removeEventListener("pointerenter",this.onTaskPointerEnterHandler):r.Browser.TouchUI?null==e||e.removeEventListener("touchstart",this.onTaskTouchStartHandler):(null==e||e.removeEventListener("mouseenter",this.onTaskMouseEnterHandler),null==e||e.removeEventListener("mouseleave",this.onTaskMouseLeaveHandler))},e.prototype.attachCommonEvents=function(){this.taskAreaAddEventListener("contextmenu",this.onContextMenuHandler),this.taskAreaAddEventListener(o.EvtUtils.getMouseWheelEventName(),this.onMouseWheelHandler),this.taskAreaAddEventListener("scroll",this.onScrollHandler),document.addEventListener("keydown",this.onKeyDownHandler)},e.prototype.detachCommonEvents=function(){this.taskAreaRemoveEventListener("contextmenu",this.onContextMenuHandler),this.taskAreaRemoveEventListener(o.EvtUtils.getMouseWheelEventName(),this.onMouseWheelHandler),this.taskAreaRemoveEventListener("scroll",this.onScrollHandler),document.removeEventListener("keydown",this.onKeyDownHandler)},e.prototype.attachPointerEvents=function(){i.DomUtils.addClassName(this.taskArea,t.TOUCH_ACTION_NONE),document.addEventListener("pointerdown",this.onDocumentPointerDownHandler),document.addEventListener("pointerup",this.onDocumentPointerUpHandler),document.addEventListener("pointermove",this.onDocumentPointerMoveHandler),document.addEventListener("pointercancel",this.onDocumentPointerCancelUpHandler),this.taskAreaAddEventListener("pointerleave",this.onTaskAreaPointerLeaveHandler)},e.prototype.detachPointerEvents=function(){document.removeEventListener("pointerdown",this.onDocumentPointerDownHandler),document.removeEventListener("pointerup",this.onDocumentPointerUpHandler),document.removeEventListener("pointermove",this.onDocumentPointerMoveHandler),document.removeEventListener("pointercancel ",this.onDocumentPointerCancelUpHandler),this.taskAreaRemoveEventListener("pointerleave",this.onTaskAreaPointerLeaveHandler),i.DomUtils.removeClassName(this.taskArea,t.TOUCH_ACTION_NONE)},e.prototype.attachTouchEvents=function(){i.DomUtils.addClassName(this.taskArea,t.TOUCH_ACTION_NONE),document.addEventListener("touchstart",this.onTouchStartHandler),document.addEventListener("touchend",this.onTouchEndHandler),document.addEventListener("touchmove",this.onTouchMoveHandler)},e.prototype.detachTouchEvents=function(){document.removeEventListener("touchstart",this.onTouchStartHandler),document.removeEventListener("touchend",this.onTouchEndHandler),document.removeEventListener("touchmove",this.onTouchMoveHandler),i.DomUtils.removeClassName(this.taskArea,t.TOUCH_ACTION_NONE)},e.prototype.attachMouseEvents=function(){this.taskAreaAddEventListener("click",this.onMouseClickHandler),this.taskAreaAddEventListener("dblclick",this.onMouseDblClickHandler),this.taskAreaAddEventListener("mousedown",this.onMouseDownHandler),this.taskAreaAddEventListener("mouseleave",this.onTaskAreaMouseLeaveHandler),document.addEventListener("mousemove",this.onMouseMoveHandler),document.addEventListener("mouseup",this.onMouseUpHandler)},e.prototype.detachMouseEvents=function(){this.taskAreaRemoveEventListener("click",this.onMouseClickHandler),this.taskAreaRemoveEventListener("dblclick",this.onMouseDblClickHandler),this.taskAreaRemoveEventListener("mouseleave",this.onTaskAreaMouseLeaveHandler),this.taskAreaRemoveEventListener("mousedown",this.onMouseDownHandler),document.removeEventListener("mousemove",this.onMouseMoveHandler),document.removeEventListener("mouseup",this.onMouseUpHandler)},Object.defineProperty(e.prototype,"stateController",{get:function(){var e;return null!==(e=this._stateController)&&void 0!==e||(this._stateController=new s.TaskAreaStateController(this._eventListener,this._taskArea,this._cellSize)),this._stateController}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),e.prototype.taskAreaAddEventListener=function(e,t){this.taskArea.addEventListener(e,t)},e.prototype.taskAreaRemoveEventListener=function(e,t){this.taskArea.removeEventListener(e,t)},Object.defineProperty(e.prototype,"onContextMenuHandler",{get:function(){var e,t=this;return null!==(e=this._onContextMenuHandler)&&void 0!==e||(this._onContextMenuHandler=function(e){t.stateController.onContextMenu(e)}),this._onContextMenuHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseWheelHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseWheelHandler)&&void 0!==e||(this._onMouseWheelHandler=function(e){t.stateController.onMouseWheel(e)}),this._onMouseWheelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScrollHandler",{get:function(){var e,t=this;return null!==(e=this._onScrollHandler)&&void 0!==e||(this._onScrollHandler=function(e){t.stateController.onScroll(e)}),this._onScrollHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDownHandler",{get:function(){var e,t=this;return null!==(e=this._onKeyDownHandler)&&void 0!==e||(this._onKeyDownHandler=function(e){t.stateController.onKeyDown(e)}),this._onKeyDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskPointerEnterHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskPointerEnterHandler)&&void 0!==e||(this._onTaskPointerEnterHandler=function(e){t.stateController.onTaskPointerEnter(e)}),this._onTaskPointerEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskAreaPointerLeaveHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskAreaPointerLeaveHandler)&&void 0!==e||(this._onTaskAreaPointerLeaveHandler=function(e){t.stateController.onTaskAreaPointerLeave(e)}),this._onTaskAreaPointerLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentPointerDownHandler",{get:function(){var e,t=this;return null!==(e=this._onDocumentPointerDownHandler)&&void 0!==e||(this._onDocumentPointerDownHandler=function(e){t.stateController.onDocumentPointerDown(e)}),this._onDocumentPointerDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentPointerUpHandler",{get:function(){var e,t=this;return null!==(e=this._onDocumentPointerUpHandler)&&void 0!==e||(this._onDocumentPointerUpHandler=function(e){t.stateController.onDocumentPointerUp(e)}),this._onDocumentPointerUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentPointerCancelUpHandler",{get:function(){var e,t=this;return null!==(e=this._onDocumentPointerCancelHandler)&&void 0!==e||(this._onDocumentPointerCancelHandler=function(e){t.stateController.onDocumentPointerCancel(e)}),this._onDocumentPointerCancelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentPointerMoveHandler",{get:function(){var e,t=this;return null!==(e=this._onDocumentPointerMoveHandler)&&void 0!==e||(this._onDocumentPointerMoveHandler=function(e){t.stateController.onDocumentPointerMove(e)}),this._onDocumentPointerMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStartHandler",{get:function(){var e,t=this;return null!==(e=this._onTouchStartHandler)&&void 0!==e||(this._onTouchStartHandler=function(e){t.stateController.onTouchStart(e)}),this._onTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTouchEndHandler",{get:function(){var e,t=this;return null!==(e=this._onTouchEndHandler)&&void 0!==e||(this._onTouchEndHandler=function(e){t.stateController.onTouchEnd(e)}),this._onTouchEndHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTouchMoveHandler",{get:function(){var e,t=this;return null!==(e=this._onTouchMoveHandler)&&void 0!==e||(this._onTouchMoveHandler=function(e){t.stateController.onTouchMove(e)}),this._onTouchMoveHandler}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskTouchStartHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskTouchStartHandler)&&void 0!==e||(this._onTaskTouchStartHandler=function(e){t.stateController.onTaskTouchStart(e)}),this._onTaskTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClickHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseClickHandler)&&void 0!==e||(this._onMouseClickHandler=function(e){t.stateController.onClick(e)}),this._onMouseClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClickHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseDblClickHandler)&&void 0!==e||(this._onMouseDblClickHandler=function(e){t.stateController.onDblClick(e)}),this._onMouseDblClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDownHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseDownHandler)&&void 0!==e||(this._onMouseDownHandler=function(e){t.stateController.onMouseDown(e)}),this._onMouseDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskAreaMouseLeaveHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskAreaMouseLeaveHandler)&&void 0!==e||(this._onTaskAreaMouseLeaveHandler=function(e){t.stateController.onTaskAreaMouseLeave(e)}),this._onTaskAreaMouseLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMoveHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseMoveHandler)&&void 0!==e||(this._onMouseMoveHandler=function(e){t.stateController.onMouseMove(e)}),this._onMouseMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseUpHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseUpHandler)&&void 0!==e||(this._onMouseUpHandler=function(e){t.stateController.onMouseUp(e)}),this._onMouseUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskMouseEnterHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskMouseEnterHandler)&&void 0!==e||(this._onTaskMouseEnterHandler=function(e){t.stateController.onTaskElementHover(e)}),this._onTaskMouseEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskMouseLeaveHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskMouseLeaveHandler)&&void 0!==e||(this._onTaskMouseLeaveHandler=function(e){t.stateController.onTaskElementLeave(e)}),this._onTaskMouseLeaveHandler},enumerable:!1,configurable:!0}),e.DBLCLICK_INTERVAL=300,e.MS_POINTER_ACTIVE_CLASS="ms-pointer-active",e}();t.TaskAreaManager=a},2366:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GanttView=void 0;var r=n(639),i=n(9279),o=n(7156),s=n(1284),a=n(858),c=n(7880),u=n(9201),l=n(9954),h=n(8695),d=n(6893),f=n(8725),p=n(2491),A=n(3452),g=n(9650),m=n(2978),y=n(1074),v=n(5351),b=n(6353),w=n(9057),C=n(5098),_=n(9640),S=n(8478),x=n(5846),T=n(2449),P=n(1408),E=n(6626),I=n(3714),k=n(6907),B=n(8900),M=n(8269),O=n(4730),D=n(6124),R=function(){function e(e,t,n){var i=this;this.currentSelectedTaskID="",this.isFocus=!1,this._updateWithModelReloadLockedCounter=0,this.scaleCount=2,this.tickSize=new b.Size(0,0),this.currentZoom=1,this.stripLinesUpdaterId=null,this.ganttOwner=t,this.settings=v.Settings.parse(n),this.initValidationController(),this.renderHelper=new y.RenderHelper(this),this.renderHelper.initMarkup(e),this.loadOptionsFromGanttOwner(),this.renderHelper.init(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),this.commandManager=new o.CommandManager(this),this.barManager=new r.BarManager(this.commandManager,this.ganttOwner.bars),this.initTaskEditController(),this.history=new f.History(this._getHistoryListener()),this.initFullScreenModeHelper(),this.updateView(),this._scrollTimeOut=setTimeout(function(){i.scrollLeftByViewType()},0),this.initializeStripLinesUpdater(),this.initGanttViewApi()}return e.prototype.initGanttViewApi=function(){this.ganttViewApi=new E.GanttViewApi(this)},e.prototype._getHistoryListener=function(){return{onTransactionStart:this.onHistoryTransactionStart.bind(this),onTransactionEnd:this.onHistoryTransactionEnd.bind(this)}},e.prototype.onHistoryTransactionStart=function(){this.lockUpdateWithReload()},e.prototype.onHistoryTransactionEnd=function(){this.unlockUpdateWithReload()},e.prototype.lockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter++},e.prototype.unlockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter--,0===this._updateWithModelReloadLockedCounter&&this._pendingUpdateInfo&&(this.updateWithDataReload(this._pe
21ndingUpdateInfo.keepExpandState),this._pendingUpdateInfo=null)},e.prototype.initValidationController=function(){var e=this,t=x.ValidationControllerSettings.parse({getViewModel:function(){return e.viewModel},getHistory:function(){return e.history},getModelManipulator:function(){return e.modelManipulator},getRange:function(){return e.range},getValidationSettings:function(){return e.settings.validation},updateOwnerInAutoParentMode:function(){e.updateOwnerInAutoParentMode()},getIsValidateDependenciesRequired:function(){return e.isValidateDependenciesRequired()}});this.validationController=new S.ValidationController(t)},e.prototype.initTaskEditController=function(){var e=this,t=_.TaskEditSettings.parse({destroyTemplate:function(t){e.destroyTemplate(t)},formatDate:function(t){return e.getDateFormat(t)},getRenderHelper:function(){return e.renderHelper},getGanttSettings:function(){return e.settings},getViewModel:function(){return e.viewModel},getCommandManager:function(){return e.commandManager},getModelManipulator:function(){return e.modelManipulator},getValidationController:function(){return e.validationController}});this.taskEditController=new C.TaskEditController(t)},Object.defineProperty(e.prototype,"taskAreaEventsListener",{get:function(){var e;return null!==(e=this._taskAreaEventsListener)&&void 0!==e||(this._taskAreaEventsListener=new M.TaskAreaEventsListener(this)),this._taskAreaEventsListener},enumerable:!1,configurable:!0}),e.prototype.initFullScreenModeHelper=function(){var e=this,t=l.FullScreenHelperSettings.parse({getMainElement:function(){return e.getOwnerControlMainElement()},adjustControl:function(){e.adjustOwnerControl()}});this.fullScreenModeHelper=new h.FullScreenModeHelper(t)},e.prototype.getDateRange=function(e,t){var n=this.getVisibleAreaTime(),r=this.settings.startDateRange||u.DateUtils.adjustStartDateByViewType(new Date(e.getTime()-n),this.settings.viewType,this.settings.firstDayOfWeek),i=this.settings.endDateRange||u.DateUtils.adjustEndDateByViewType(new Date(t.getTime()+n),this.settings.viewType,this.settings.firstDayOfWeek);return this.settings.startDateRange&&r>i?i=r:this.settings.endDateRange&&r>i&&(r=i),new a.DateRange(r,i)},e.prototype.getVisibleAreaTime=function(){return Math.ceil(this.renderHelper.getTaskAreaContainerWidth()/this.tickSize.width)*u.DateUtils.getTickTimeSpan(this.settings.viewType)},e.prototype.zoomIn=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomIn(e)},e.prototype.zoomOut=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomOut(e)},e.prototype.scrollToDate=function(e){if(e){var t=e instanceof Date?u.DateUtils.getOrCreateUTCDate(e):u.DateUtils.parse(e);this.scrollToDateCore(t,0)}},e.prototype.showDialog=function(e,t,n,r){this.ganttOwner.showDialog(e,t,n,r)},e.prototype.showPopupMenu=function(e){this.ganttOwner.showPopupMenu(e)},e.prototype.hidePopupMenu=function(){this.ganttOwner.hidePopupMenu&&this.ganttOwner.hidePopupMenu()},e.prototype.collapseAll=function(){this.ganttOwner.collapseAll()},e.prototype.expandAll=function(){this.ganttOwner.expandAll()},e.prototype.onGanttViewContextMenu=function(e,t,n){return this.ganttOwner.onGanttViewContextMenu(e,t,n)},e.prototype.changeGanttTaskSelection=function(e,t){this.ganttOwner.changeGanttTaskSelection(e,t)},e.prototype.hideTaskEditControl=function(){this.taskEditController.hide()},e.prototype.scrollLeftByViewType=function(){var e=u.DateUtils.roundStartDate(this.dataRange.start,this.settings.viewType);this.scrollToDateCore(e,1)},e.prototype.scrollToDateCore=function(e,t){this.renderHelper.setTaskAreaContainerScrollLeftToDate(e,t)},e.prototype.onVisualModelChanged=function(){this.resetAndUpdate()},e.prototype.initializeStripLinesUpdater=function(){var e=this;this.settings.stripLines.showCurrentTime&&(this.stripLinesUpdaterId=setInterval(function(){e.renderHelper.recreateStripLines()},Math.max(this.settings.stripLines.currentTimeUpdateInterval,100)))},e.prototype.clearStripLinesUpdater=function(){this.stripLinesUpdaterId&&clearInterval(this.stripLinesUpdaterId),this.stripLinesUpdaterId=null},e.prototype.getGanttViewStartDate=function(e){if(!e)return new Date;var t=e.map(function(e){return"string"==typeof e.start?new Date(e.start):e.start}).filter(function(e){return(0,p.isDefined)(e)});return t.length>0?t.reduce(function(e,t){return t<e?t:e},t[0]):new Date},e.prototype.getGanttViewEndDate=function(e){if(!e)return new Date;var t=e.map(function(e){return"string"==typeof e.end?new Date(e.end):e.end}).filter(function(e){return(0,p.isDefined)(e)});return t.length>0?t.reduce(function(e,t){return t>e?t:e},t[0]):new Date},e.prototype.getTask=function(e){var t=this.getViewItem(e);return null==t?void 0:t.task},e.prototype.getViewItem=function(e){var t;return null===(t=this.viewModel)||void 0===t?void 0:t.items[e]},e.prototype.isValidateDependenciesRequired=function(){return this.settings.val
21idation.validateDependencies&&this.settings.showDependencies},e.prototype.updateTickSizeWidth=function(){this.tickSize.width=this.renderHelper.etalonScaleItemWidths*this.currentZoom},e.prototype.updateView=function(){this.onBeginUpdateView(),this.renderHelper.setTimeScaleContainerScrollLeft(this.taskAreaContainerScrollLeft),this.processScroll(!1),this.processScroll(!0),this.ganttOwner.onGanttScroll(this.taskAreaContainerScrollTop),this.onEndUpdateView()},e.prototype.onBeginUpdateView=function(){this[e.taskAreaScrollTopKey]=this.renderHelper.taskAreaContainerScrollTop,this[e.taskAreaScrollLeftKey]=this.renderHelper.taskAreaContainerScrollLeft},e.prototype.onEndUpdateView=function(){delete this[e.taskAreaScrollTopKey],delete this[e.taskAreaScrollLeftKey],delete this[e.taskTextHeightKey]},Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){var t;return null!==(t=this[e.taskAreaScrollTopKey])&&void 0!==t?t:this.renderHelper.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){var t;return null!==(t=this[e.taskAreaScrollLeftKey])&&void 0!==t?t:this.renderHelper.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),e.prototype.processScroll=function(e){this.hideTaskEditControl(),this.renderHelper.processScroll(e)},e.prototype.allowTaskAreaBorders=function(e){return e?this.settings.areHorizontalBordersEnabled:this.settings.areVerticalBordersEnabled},e.prototype.getScaleItemText=function(e,t){return this.renderHelper.getScaleItemText(e,t)},e.prototype.getTaskText=function(e){return this.renderHelper.getTaskText(e)},e.prototype.rowHasChildren=function(e){var t=this.getViewItem(e);return(null==t?void 0:t.children.length)>0},e.prototype.rowHasSelection=function(e){var t=this.getViewItem(e);return null==t?void 0:t.selected},e.prototype.getAllVisibleTaskIndices=function(e,t){return this.viewModel.getAllVisibleTaskIndices(e,t)},e.prototype.getVisibleDependencyKeysByTaskRange=function(e){if(!this.settings.showDependencies)return[];var t=this.viewModel,n=e.map(function(e){return t.tasks.items[e].internalId});return t.dependencies.items.filter(function(e){return n.indexOf(e.successorId)>-1||n.indexOf(e.predecessorId)>-1}).map(function(e){return e.internalId})},e.prototype.getTreeListTableStyle=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListTableStyle)||void 0===t?void 0:t.call(e)},e.prototype.getTreeListColCount=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListColCount)||void 0===t?void 0:t.call(e)},e.prototype.getTreeListHeaderInfo=function(e){var t,n;return null===(n=(t=this.ganttOwner).getTreeListHeaderInfo)||void 0===n?void 0:n.call(t,e)},e.prototype.getTreeListCellInfo=function(e,t,n){var r,i;return null===(i=(r=this.ganttOwner).getTreeListCellInfo)||void 0===i?void 0:i.call(r,e,t,n)},e.prototype.getTreeListEmptyDataCellInfo=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListEmptyDataCellInfo)||void 0===t?void 0:t.call(e)},e.prototype.exportToPdf=function(e){var t;return null!==(t=e.docCreateMethod)&&void 0!==t||(e.docCreateMethod=this.getDefaultPdfDocCreateMethod()),new m.PdfGanttExporter(new d.GanttExportCalculator(this,e)).export()},e.prototype.getDefaultPdfDocCreateMethod=function(){var e;return null===(e=window.jspdf)||void 0===e?void 0:e.jsPDF},e.prototype.getTaskDependencies=function(e){return this.viewModel.dependencies.items.filter(function(t){return t.predecessorId==e||t.successorId==e})},e.prototype.isHighlightRowElementAllowed=function(e){var t=this.getViewItem(e);return e%2!=0&&this.settings.areAlternateRowsEnabled||(null==t?void 0:t.children.length)>0},e.prototype.calculateAutoViewType=function(e,t){var n=(t.getTime()-e.getTime())/36e5;return n>8760?T.ViewType.Years:n>720?T.ViewType.Months:n>168?T.ViewType.Weeks:n>24?T.ViewType.Days:n>6?T.ViewType.SixHours:n>1?T.ViewType.Hours:T.ViewType.TenMinutes},e.prototype.getExternalTaskAreaContainer=function(e){return this.ganttOwner.getExternalTaskAreaContainer(e)},e.prototype.prepareExternalTaskAreaContainer=function(e,t){return this.ganttOwner.prepareExternalTaskAreaContainer(e,t)},e.prototype.getHeaderHeight=function(){return this.ganttOwner.getHeaderHeight()},e.prototype.changeTaskExpanded=function(e,t){var n=this.getTaskByPublicId(e);n&&this.viewModel.changeTaskExpanded(n.internalId,t)},e.prototype.expandTask=function(e){this.viewModel.changeTaskExpanded(e,!0)},e.prototype.collapseTask=function(e){this.viewModel.changeTaskExpanded(e,!1)},e.prototype.showTask=function(e){this.viewModel.changeTaskVisibility(e,!0)},e.prototype.hideTask=function(e){this.viewModel.changeTaskVisibility(e,!1)},e.prototype.getTaskVisibility=function(e){return this.viewModel.getTaskVisibility(e)},e.prototype.unselectCurrentSelectedTask=function(){this.unselectTask(this.currentSelectedTaskID)},e.prototype.getTaskSelected=function(e){return this.viewModel.getTaskSelected(e)},e.prototype.setViewType=function(e,t){void 0===t&&(t=!0),this.ganttViewApi.setViewType(e,t)},e.prototype.setViewTypeRange=function(e,t){this.ganttViewApi.setViewTypeRange(e,t)},e.prototype.setTaskTitlePosition=function(e){this.settings.taskTitlePosition!==e&&(this.settings.taskTitlePosition=e,this.resetAndUpdate())},e.prototype.setShowResources=function(e){this.settings.showResources!==e&&(this.settings.showResources=e,this.resetAndUpdate())},e.prototype.toggleResources=function(){this.setShowResources(!this.settings.showResources)},e.prototype.setShowDependencies=function(e){this.settings.showDependencies!==e&&(this.settings.showDependencies=e,this.resetAndUpdate())},e.prototype.toggleDependencies=function(){this.setShowDependencies(!this.settings.showDependencies)},e.prototype.setFirstDayOfWeek=function(e){this.settings.firstDayOfWeek!==e&&(this.settings.firstDayOfWeek=e,this.resetAndUpdate())},e.prototype.setStartDateRange=function(e){c.DateTimeUtils.areDatesEqual(this.settings.startDateRange,e)||(this.settings.startDateRange=new Date(e),this.resetAndUpdate())},e.prototype.setEndDateRange=function(e){c.DateTimeUtils.areDatesEqual(this.settings.endDateRange,e)||(this.settings.endDateRange=new Date(e),this.resetAndUpdate())},e.prototype.loadOptionsFromGanttOwner=function(){var e,t=this;this.tickSize.height=this.ganttOwner.getRowHeight();var n=this.ganttOwner.getGanttTasksData();this.dataRange=new a.DateRange(this.getGanttViewStartDate(n),this.getGanttViewEndDate(n)),null==this.settings.viewType&&(this.settings.viewType=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.updateTickSizeWidth(),this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.dispatcher=new A.ModelChangesDispat
21cher;var r=this.ganttOwner.getModelChangesListener();r&&this.dispatcher.onModelChanged.add(r),this.viewModel=new P.ViewVisualModel(this,n,this.ganttOwner.getGanttDependenciesData(),this.ganttOwner.getGanttResourcesData(),this.ganttOwner.getGanttResourceAssignmentsData(),this.range,this.ganttOwner.getGanttWorkTimeRules()),this.modelManipulator=new g.ModelManipulator(this.viewModel,this.dispatcher),null===(e=this.history)||void 0===e||e.historyItems.forEach(function(e){return e.setModelManipulator(t.modelManipulator)})},e.prototype.resetAndUpdate=function(){this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.viewModel.updateRange(this.range),this.renderHelper.resetAndUpdate(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),i.Browser.IE&&this.taskEditController.createElements(),this.updateView()},e.prototype.cleanMarkup=function(){this.setNormalScreenMode(),this.renderHelper.taskAreaManagerDetachEvents(),this.taskEditController.detachEvents(),this.clearStripLinesUpdater(),this.renderHelper.reset(),clearTimeout(this._scrollTimeOut)},e.prototype.checkAndProcessModelChanges=function(){var e=this.ganttOwner.getGanttTasksData(),t=this.viewModel.refreshTaskDataIfRequires(e);return t&&this.resetAndUpdate(),t},e.prototype.updateHistoryObsoleteInsertedKey=function(e,t,n){var r;null===(r=this.history)||void 0===r||r.updateObsoleteInsertedKey(e,t,n),n===D.GanttDataObjectNames.dependency&&this.renderHelper.updateRenderedConnectorLinesId(e,t)},e.prototype.updateRowHeights=function(e){if(this.tickSize.height!==e){this.tickSize.height=e;var t=this.renderHelper.getTaskAreaContainerScrollLeft();this.resetAndUpdate(),this.renderHelper.setTaskAreaContainerScrollLeft(t)}},e.prototype.selectTask=function(e){this.selectDependency(null),this.viewModel.changeTaskSelected(e,!0),this.currentSelectedTaskID=e,this.updateBarManager()},e.prototype.unselectTask=function(e){this.viewModel.changeTaskSelected(e,!1),this.updateBarManager()},e.prototype.selectTaskById=function(e){this.unselectCurrentSelectedTask();var t=this.getTaskByPublicId(e);t&&this.selectTask(t.internalId)},e.prototype.selectDependency=function(e){this.taskEditController.selectDependency(e),this.renderHelper.createConnectorLines()},e.prototype.getTaskAreaContainer=function(){return this.renderHelper.taskAreaContainer},e.prototype.setWidth=function(e){this.renderHelper.setMainElementWidth(e)},e.prototype.setHeight=function(e){this.renderHelper.setMainElementHeight(e)},e.prototype.setAllowSelection=function(e){this.settings.allowSelectTask=e},e.prototype.setEditingSettings=function(e){this.settings.editing=e,this.updateBarManager()},e.prototype.setValidationSettings=function(e){this.settings.validation=e},e.prototype.setRowLinesVisible=function(e){this.settings.areHorizontalBordersEnabled=e,this.renderHelper.prepareTaskAreaContainer(),this.resetAndUpdate()},e.prototype.setStripLines=function(e){this.settings.stripLines=w.StripLineSettings.parse(e),this.clearStripLinesUpdater(),this.initializeStripLinesUpdater(),this.renderHelper.recreateStripLines()},e.prototype.deleteTask=function(e){var t=this.getTaskByPublicId(e.toString());t&&this.commandManager.removeTaskCommand.execute(t.internalId,!1,!0)},e.prototype.insertTask=function(e){if(e){var t=null!=e.parentId?String(e.parentId):null,n=this.getTaskByPublicId(t),r=this.viewModel.getRootTaskId(),i="string"==typeof e.start?new Date(e.start):e.start,o="string"==typeof e.end?new Date(e.end):e.end,s={parentId:r&&t===r?t:null==n?void 0:n.internalId,title:e.title,start:i,end:o,progress:parseInt(e.progress)||0,color:e.color};if(this.commandManager.createTaskCommand.execute(s))return this.getLastInsertedTaskId()}return""},e.prototype.updateTask=function(e,t){var n=this.getTaskByPublicId(e.toString()),r=this._getTaskDataForUpdate(t,n);r&&this.commandManager.updateTaskCommand.execute(n.internalId,r)},e.prototype.getTaskData=function(e){var t=this.getTaskByPublicId(e.toString());if(t)return this.viewModel.getTaskObjectForDataSource(t)},e.prototype.insertDependency=function(e){if(e){var t=String(e.predecessorId),n=this.getTaskByPublicId(t),r=String(e.successorId),i=this.getTaskByPublicId(r),o=e.type;n&&i&&this.validationController.canCreateDependency(t,r)&&this.commandManager.createDependencyCommand.execute(n.internalId,i.internalId,o)}},e.prototype.deleteDependency=function(e){var t=this.viewModel.convertPublicToInternalKey("dependency",e);(0,p.isDefined)(t)&&this.commandManager.removeDependencyCommand.execute(t)},e.prototype.getDependencyData=function(e){return this.viewModel.getDependencyObjectForDataSource(e)},e.prototype.insertResource=function(e,t){var n=this;e&&this.commandManager.createResourceCommand.execute(String(e.text),e.color&&String(e.color),function(e){if((0,p.isDefined)(t))for(var r=0;r<t.length;r++)n.assignResourceToTask(e,t[r])})},e.prototype.deleteResource=function(e){var t=this.viewModel.convertPublicToInternalKey("resource",e);(0,p.isDefined)(t)&&this.commandManager.removeResourceCommand.execute(t)},e.prototype.assignResourceToTask=function(e,t){var n=this.viewModel.convertPublicToInternalKey("resource",e),r=this.viewModel.convertPublicToInternalKey("task",t);(0,p.isDefined)(n)&&(0,p.isDefined)(r)&&this.commandManager.assignResourceCommand.execute(n,r)},e.prototype.unassignResourceFromTask=function(e,t){var n=this.viewModel.findAssignment(e,t);n&&this.commandManager.deassignResourceCommand.execute(n.internalId)},e.prototype.unassignAllResourcesFromTask=function(e){var t=this,n=this.viewModel.convertPublicToInternalKey("task",e);
21this.viewModel.findAllTaskAssignments(n).forEach(function(e){return t.commandManager.deassignResourceCommand.execute(e.internalId)})},e.prototype.getResourceData=function(e){return this.viewModel.getResourceObjectForDataSource(e)},e.prototype.getResourceAssignmentData=function(e){return this.viewModel.getResourceAssignmentObjectForDataSource(e)},e.prototype.getTaskResources=function(e){var t=this.viewModel,n=t.getItemByPublicId("task",e);return n&&t.getAssignedResources(n).items||[]},e.prototype.getVisibleTaskKeys=function(){return this.viewModel.getVisibleTasks().map(function(e){return e.id})},e.prototype.getVisibleDependencyKeys=function(){return this.viewModel.getVisibleDependencies().map(function(e){return e.id})},e.prototype.getVisibleResourceKeys=function(){return this.viewModel.getVisibleResources().map(function(e){return e.id})},e.prototype.getVisibleResourceAssignmentKeys=function(){return this.viewModel.getVisibleResourceAssignments().map(function(e){return e.id})},e.prototype.getTasksExpandedState=function(){return this.viewModel.getTasksExpandedState()},e.prototype.applyTasksExpandedState=function(e){this.viewModel.applyTasksExpandedState(e)},e.prototype.updateWithDataReload=function(e){if(this._updateWithModelReloadLockedCounter>0)this._pendingUpdateInfo={keepExpandState:e};else{var t=e&&this.getTasksExpandedState();this.loadOptionsFromGanttOwner(),e?this.applyTasksExpandedState(t):this.resetAndUpdate();var n=O.DialogBase.activeInstance;n&&n.canRefresh&&"TaskEdit"===n.getDialogName()&&n.refresh(),this.dispatcher.notifyGanttViewUpdated()}},e.prototype.onBrowserWindowResize=function(){this.fullScreenModeHelper.isInFullScreenMode?this.fullScreenModeHelper.adjustControlInFullScreenMode():this.adjustOwnerControl()},e.prototype.getTaskTreeLine=function(e){return this.viewModel.getTaskTreeLine(e).reverse()},e.prototype.isInFullScreenMode=function(){var e;return!!(null===(e=this.fullScreenModeHelper)||void 0===e?void 0:e.isInFullScreenMode)},e.prototype.setFullScreenMode=function(){this.isInFullScreenMode()||this.fullScreenModeHelper.toggle()},e.prototype.setNormalScreenMode=function(){this.isInFullScreenMode()&&this.fullScreenModeHelper.toggle()},e.prototype.setTaskValue=function(e,t,n){var r=this.commandManager.updateTaskCommand,i=this.getTaskByPublicId(e),o={};return i&&("title"===t&&(o[t]=n||""),"progress"===t&&(o[t]=n),"start"===t&&(o[t]=c.DateTimeUtils.getMinDate(n,i.end)),"end"===t&&(o[t]=c.DateTimeUtils.getMaxDate(n,i.start))),Object.keys(o).length>0&&r.execute(i.internalId,o)},e.prototype.getLastInsertedTaskId=function(){var e=this.history.historyItems.filter(function(e){return e instanceof s.CreateTaskHistoryItem}),t=e[e.length-1];return t&&t.insertedKey},e.prototype.getTaskByPublicId=function(e){return this.viewModel.tasks.getItemByPublicId(e)},e.prototype.getPrevTask=function(e){var t=this.viewModel.findItem(e);if(!t)return null;var n=(t.parent||this.viewModel.root).children.indexOf(t)-1;return n>-1?t.parent.children[n].task:t.parent.task},e.prototype.getTaskIdByInternalId=function(e){var t=this.viewModel.findItem(e),n=t&&t.task;return n?n.id:null},e.prototype.isTaskHasChildren=function(e){var t=this.viewModel.findItem(e);return t&&t.children.length>0},e.prototype.requireFirstLoadParentAutoCalc=function(){var e=this.ganttOwner;return e.getRequireFirstLoadParentAutoCalc&&e.getRequireFirstLoadParentAutoCalc()},e.prototype.updateOwnerInAutoParentMode=function(){this.viewModel.parentAutoCalc&&this.dispatcher.notifyParentDataRecalculated(this.viewModel.getCurrentTaskData())},e.prototype.getOwnerControlMainElement=function(){var e=this.ganttOwner;return e.getMainElement&&e.getMainElement()},e.prototype.adjustOwnerControl=function(){var e=this.ganttOwner;e.adjustControl&&e.adjustControl()},e.prototype.applySettings=function(e,t){void 0===t&&(t=!1);var n=v.Settings.parse(e),r=t||this.settings.equal(n);this.settings=n,r||this.resetAndUpdate()},e.prototype.getDataUpdateErrorCallback=function(){var e=this,t=this.history,n=t.getCurrentProcessingItemInfo();return function(){e.dispatcher.lock(),t.rollBackAndRemove(n),e.dispatcher.unlock(),e.updateBarManager()}},e.prototype.setTaskTooltipContentTemplate=function(e){this.settings.taskTooltipContentTemplate=e},e.prototype.setTaskProgressTooltipContentTemplate=function(e){this.settings.taskProgressTooltipContentTemplate=e},e.prototype.setTaskTimeTooltipContentTemplate=function(e){this.settings.taskTimeTooltipContentTemplate=e},e.prototype.setTaskContentTemplate=function(e){this.settings.taskContentTemplate=e},e.prototype.updateBarManager=function(){this.barManager.updateItemsState([])},e.prototype.onTaskAreaClick=function(e,t){var n,r=this.viewModel.items[e];return r&&this.onTaskClick(null===(n=r.task)||void 0===n?void 0:n.id,t)},e.prototype.onTaskAreaDblClick=function(e,t){var n=this.viewModel.items[e];n&&this.onTaskDblClick(n.task.id,t)&&this.commandManager.showTaskEditDialog.execute(n.task)},e.prototype.onTaskAreaContextMenu=function(e,t,n){var r,i,o="dependency"===n,s=t,a=this.viewModel,c=o?a.convertInternalToPublicKey("dependency",I.EvtUtils.getEventSource(t).getAttribute("dependency-id")):null===(i=null===(r=a.items[e])||void 0===r?void 0:r.task)||void 0===i?void 0:i.id;if(this.onGanttViewContextMenu(t,c,n)){var u={event:t,type:n,key:c,position:new B.Point(I.EvtUtils.getEventX(s),I.EvtUtils.getEventY(s))};this.showPopupMenu(u)}},e.prototype.onTaskSelectionChanged=function(e,t){var n=this,r=this.viewModel.items[e];this.isFocus=k.DomUtils.isItParent(this.renderHelper.taskArea,I.EvtUtils.getEventSource(t)),r&&this.isFocus&&this.settings.allowSelectTask&&setTimeout(function(){n.changeGanttTaskSelection(r.task.id,!0)},0)},e.prototype.onTaskClick=function(e,t){return!this.ganttOwner.onTaskClick||this.ganttOwner.onTaskClick(e,t)},e.prototype.onTaskDblClick=function(e,t){return!this.ganttOwner.onTaskDblClick||this.ganttOwner.onTaskDblClick(e,t)},e.prototype.getDateFormat=function(e){return this.ganttOwner.getFormattedDateText?this.ganttOwner.getFormattedDateText(e):this.getDefaultDateFormat(e)},e.prototype.getDefaultDateFormat=function(e){return("0"+e.getDate()).slice(-2)+"/"+("0"+(e.getMonth()+1)).slice(-2)+"/"+e.getFullYear()+" "+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)},e.prototype.destroyTemplate=function(e){this.ganttOwner.destroyTemplate?this.ganttOwner.destroyTemplate(e):e.innerHTML=""},e.prototype.onTaskAreaSizeChanged=function(e){this.ganttOwner.onTaskAreaSizeChanged&&this.ganttOwner.onTaskAreaSizeChanged(e)},e.prototype.showTaskEditDialog=function(){this.commandManager.showTaskEditDialog.execute()}
21,e.prototype.showTaskDetailsDialog=function(e){var t=this.getTaskByPublicId(e);t&&this.commandManager.showTaskEditDialog.execute(t,!0)},e.prototype.showResourcesDialog=function(){this.commandManager.showResourcesDialog.execute()},e.prototype.getCommandByKey=function(e){return this.commandManager.getCommand(e)},e.prototype._getTaskDataForUpdate=function(e,t){var n={};return t&&e&&((0,p.isDefined)(e.title)&&e.title!==t.title&&(n.title=e.title),(0,p.isDefined)(e.progress)&&e.progress!==t.progress&&(n.progress=e.progress),(0,p.isDefined)(e.start)&&e.start!==t.start&&(n.start=e.start),(0,p.isDefined)(e.end)&&e.end!==t.end&&(n.end=e.end),(0,p.isDefined)(e.color)&&e.color!==t.color&&(n.color=e.color)),Object.keys(n).length>0?n:null},e.prototype.updateViewDataRange=function(){var e=this.viewModel,t=e.getTaskMinStart(),n=e.getTaskMaxEnd(),r=t.getTime()<this.dataRange.start.getTime(),i=n.getTime()>this.dataRange.end.getTime();r&&(this.dataRange.start=t),i&&(this.dataRange.end=n),(r||i)&&this.resetAndUpdate()},e.cachedPrefix="cached_",e.taskAreaScrollLeftKey=e.cachedPrefix+"taskAreaScrollLeft",e.taskAreaScrollTopKey=e.cachedPrefix+"taskAreaScrollTop",e.taskTextHeightKey=e.cachedPrefix+"taskTextHeight",e}();t.GanttView=R},2449:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaEventSource=t.TaskTitlePosition=t.Position=t.ViewType=void 0,function(e){e[e.TenMinutes=0]="TenMinutes",e[e.Hours=1]="Hours",e[e.SixHours=2]="SixHours",e[e.Days=3]="Days",e[e.Weeks=4]="Weeks",e[e.Months=5]="Months",e[e.Quarter=6]="Quarter",e[e.Years=7]="Years",e[e.FiveYears=8]="FiveYears"}(t.ViewType||(t.ViewType={})),function(e){e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom"}(t.Position||(t.Position={})),function(e){e[e.Inside=0]="Inside",e[e.Outside=1]="Outside",e[e.None=2]="None"}(t.TaskTitlePosition||(t.TaskTitlePosition={})),function(e){e[e.TaskArea=0]="TaskArea",e[e.TaskEdit_Frame=1]="TaskEdit_Frame",e[e.TaskEdit_Progress=2]="TaskEdit_Progress",e[e.TaskEdit_Start=3]="TaskEdit_Start",e[e.TaskEdit_End=4]="TaskEdit_End",e[e.TaskEdit_DependencyStart=5]="TaskEdit_DependencyStart",e[e.TaskEdit_DependencyFinish=6]="TaskEdit_DependencyFinish",e[e.Successor_Wrapper=7]="Successor_Wrapper",e[e.Successor_DependencyStart=8]="Successor_DependencyStart",e[e.Successor_DependencyFinish=9]="Successor_DependencyFinish"}(t.TaskAreaEventSource||(t.TaskAreaEventSource={}))},8877:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EtalonSizeValues=void 0;var n=function(){this.scaleItemWidths={}};t.EtalonSizeValues=n},8695:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenModeHelper=void 0;var r=n(9279),i=n(2217),o=n(6907),s=function(){function e(e){this._isInFullScreenMode=!1,this.fullScreenTempVars={},this.settings=e}return Object.defineProperty(e.prototype,"isInFullScreenMode",{get:function(){return this._isInFullScreenMode},enumerable:!1,configurable:!0}),e.prototype.getMainElement=function(){return this.settings.getMainElement()},e.prototype.adjustControl=function(){this.settings.adjustControl()},e.prototype.toggle=function(){return this._isInFullScreenMode=!this._isInFullScreenMode,this._isInFullScreenMode?this.setFullScreenMode():this.setNormalMode(),!0},e.prototype.setFullScreenMode=function(){this.prepareFullScreenMode(),this.adjustControlInFullScreenMode()},e.prototype.prepareFullScreenMode=function(){var e=this.getMainElement();i.AttrUtils.changeElementStyleAttribute(e,"border-top-width","0px"),i.AttrUtils.changeElementStyleAttribute(e,"border-left-width","0px"),i.AttrUtils.changeElementStyleAttribute(e,"border-right-width","0px"),i.AttrUtils.changeElementStyleAttribute(e,"border-bottom-width","0px"),this.fullScreenTempVars.scrollTop=o.DomUtils.getDocumentScrollTop(),this.fullScreenTempVars.scrollLeft=o.DomUtils.getDocumentScrollLeft(),i.AttrUtils.changeElementStyleAttribute(e,"background-color","white"),i.AttrUtils.changeElementStyleAttribute(e,"position","fixed"),i.AttrUtils.changeElementStyleAttribute(e,"top","0px"),i.AttrUtils.changeElementStyleAttribute(e,"left","0px"),i.AttrUtils.changeElementStyleAttribute(e,"z-index","1010"),i.AttrUtils.changeElementStyleAttribute(document.documentElement,"position","static"),i.AttrUtils.changeElementStyleAttribute(document.documentElement,"overflow","hidden"),this.fullScreenTempVars.bodyMargin=document.body.style.margin,document.body.style.margin="0",this.fullScreenTempVars.width=e.style.width,this.fullScreenTempVars.height=e.style.height||e.clientHeight,window.self!==window.top&&this.requestFullScreen(document.body)}
21,e.prototype.setNormalMode=function(){this.cancelFullScreen(document);var e=this.getMainElement();i.AttrUtils.restoreElementStyleAttribute(e,"left"),i.AttrUtils.restoreElementStyleAttribute(e,"top"),i.AttrUtils.restoreElementStyleAttribute(e,"background-color"),i.AttrUtils.restoreElementStyleAttribute(document.documentElement,"overflow"),i.AttrUtils.restoreElementStyleAttribute(document.documentElement,"position"),i.AttrUtils.restoreElementStyleAttribute(e,"z-index"),document.body.style.margin=this.fullScreenTempVars.bodyMargin,i.AttrUtils.restoreElementStyleAttribute(e,"position"),i.AttrUtils.restoreElementStyleAttribute(e,"border-top-width"),i.AttrUtils.restoreElementStyleAttribute(e,"border-left-width"),i.AttrUtils.restoreElementStyleAttribute(e,"border-right-width"),i.AttrUtils.restoreElementStyleAttribute(e,"border-bottom-width"),this.setHeight(this.fullScreenTempVars.height),this.setWidth(this.fullScreenTempVars.width),document.documentElement.scrollTop=this.fullScreenTempVars.scrollTop,document.documentElement.scrollLeft=this.fullScreenTempVars.scrollLeft,this.adjustControl()},e.prototype.adjustControlInFullScreenMode=function(){var e=0==document.documentElement.clientWidth?document.body.clientWidth:document.documentElement.clientWidth,t=0==document.documentElement.clientHeight?document.body.clientHeight:document.documentElement.clientHeight;this.setWidth(e),this.setHeight(t),this.adjustControl()},e.prototype.requestFullScreen=function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},e.prototype.cancelFullScreen=function(e){r.Browser.Firefox&&!this.getFullScreenElement(e)||(e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen?e.msExitFullscreen():e.exitFullscreen&&e.exitFullscreen())},e.prototype.getFullScreenElement=function(e){return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement},e.prototype.setWidth=function(e){this.getMainElement().style.width=this.isNumber(e)?e+"px":e},e.prototype.setHeight=function(e){this.getMainElement().style.height=this.isNumber(e)?e+"px":e},e.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},e}();t.FullScreenModeHelper=s},1391:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridElementInfo=void 0;var r=n(8900),i=n(6353),o=n(3604),s=function(){function e(t,n,s){this.id=e.id++,this.position=new r.Point(void 0,void 0),this.size=new i.Size(0,0),this.margins=new o.Margins(void 0,void 0,void 0,void 0),this.attr={},this.style={},this.additionalInfo={},t&&(this.className=t),n&&this.setPosition(n),s&&this.setSize(s)}return e.prototype.setSize=function(e){this.size.width=e.width,this.size.height=e.height},e.prototype.setPosition=function(e){this.position.x=e.x,this.position.y=e.y},e.prototype.assignToElement=function(e){this.assignPosition(e),this.assignSize(e),this.assignMargins(e),this.className&&(e.className=this.className)},e.prototype.assignPosition=function(e){null!=this.position.x&&(e.style.left=this.position.x+"px"),null!=this.position.y&&(e.style.top=this.position.y+"px")},e.prototype.assignSize=function(e){this.size.width&&(e.style.width=this.size.width+"px"),this.size.height&&(e.style.height=this.size.height+"px")},e.prototype.assignMargins=function(e){this.margins.left&&(e.style.marginLeft=this.margins.left+"px"),this.margins.top&&(e.style.marginTop=this.margins.top+"px"),this.margins.right&&(e.style.marginRight=this.margins.right+"px"),this.margins.bottom&&(e.style.marginBottom=this.margins.bottom+"px")},e.prototype.setAttribute=function(e,t){this.attr[e]=t},e.id=0,e}();t.GridElementInfo=s},1855:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridLayoutCalculator=void 0;var r=n(6353),i=n(858),o=n(2449),s=n(1391),a=n(8900),c=n(9201),u=n(1442),l=n(5950),h=n(7072),d=n(2491),f=function(){function e(){this.tileToDependencyMap=[],this.tileToNoWorkingIntervalsMap=[],this.minLineLength=10,this.resourceMaxWidth=500,this.minTaskWidth=2,this._taskWrapperPoints=Array(),this._taskElementInfoList=Array(),this._scaleCalculator=new h.ScaleCalculator}return e.prototype.setSettings=function(e,t,n,i,o,s,a,u){void 0===a&&(a=0),void 0===u&&(u=0),this.visibleTaskAreaSize=e,this.tickSize=t,this._viewType=s,this.range=i,this.verticalTickCount=o.itemCount,this.viewModel=o,this.elementSizeValues=n,this.taskHeight=n.taskHeight,this.parentTaskHeight=n.parentTaskHeight,this.milestoneWidth=n.milestoneWidth,this.scaleHeight=n.scaleItemHeight,this.arrowSize=new r.Size(n.connectorArrowWidth,n.connectorArrowWidth),this.lineThickness=n.connectorLineThickness,this.minConnectorSpaceFromTask=(this.tickSize.height-this.taskHeight)/2,this.tickTimeSpan=c.DateUtils.getTickTimeSpan(s),this.scrollBarHeight=a,this.createTileToNonWorkingIntervalsMap(),this._scaleCalculator.setSettings(i,s,t,u),this.reset()},Object.defineProperty(e.prototype,"viewType",{get:function(){return this._viewType},set:function(e){this._viewType!==e&&(this._viewType=e,this._scaleCalculator.setViewType(e))}
21,enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._taskWrapperPoints=new Array,this._taskElementInfoList=Array()},e.prototype.resetTaskInfo=function(e){delete this._taskWrapperPoints[e],delete this._taskElementInfoList[e]},e.prototype.getTaskAreaBorderInfo=function(e,t){var n=t?this.getVerticalGridLineHeight():this.getTotalWidth();return this.getGridBorderInfo(e,t,n)},e.prototype.getTotalWidth=function(){return this._scaleCalculator.scaleWidth},e.prototype.getScaleBorderInfo=function(e,t){var n=new s.GridElementInfo,i=this._scaleCalculator;return n.setPosition(new a.Point(i.getScaleBorderPosition(e,t),void 0)),n.setSize(new r.Size(0,this.scaleHeight)),n.className="dx-gantt-vb",n},e.prototype.getGridBorderInfo=function(e,t,n){var r=new s.GridElementInfo;return r.setPosition(this.getGridBorderPosition(e,t)),n&&r.setSize(this.getGridBorderSize(t,n)),r.className=t?"dx-gantt-vb":"dx-gantt-hb",r},e.prototype.getGridBorderPosition=function(e,t){var n=new a.Point(void 0,void 0),r=this._scaleCalculator,i=t?r.getScaleBorderPosition(e,this.viewType):(e+1)*this.tickSize.height;return t?n.x=i:n.y=i,n},e.prototype.getGridBorderSize=function(e,t){var n=new r.Size(0,0);return e?n.height=t:n.width=t,n},e.prototype.getScaleElementInfo=function(e,t){var n=new s.GridElementInfo,r=this.getScaleItemInfo(e,t);if(r){n.setPosition(r.position),n.setSize(r.size),n.className=this.getScaleItem
21ClassName(t,n,this.getRenderedNoWorkingIntervals(n.position.x));var o=this._scaleCalculator.getScaleItems(t);(0===e||e===o.length-1)&&(n.style.overflowX="hidden",n.style.textOverflow="ellipsis"),n.additionalInfo.range=new i.DateRange(r.start,r.end)}return n},e.prototype.getScaleItemStart=function(e,t){return this._scaleCalculator.getScaleItemAdjustedStart(e,t)},e.prototype.getScaleItemClassName=function(e,t,n){var r="dx-gantt-si";return e.valueOf()==this.viewType.valueOf()&&this.isScaleItemInsideNoWorkingInterval(t,n)&&(r+=" dx-gantt-holiday-scaleItem"),r},e.prototype.getScaleItemInfo=function(e,t){return this._scaleCalculator.getScaleItem(e,t)},e.prototype.getScaleRangesInArea=function(e,t){var n=c.DateUtils.ViewTypeToScaleMap[this.viewType],r=this._scaleCalculator,i=Math.max(r.getScaleIndexByPos(e,n),0),o=r.getScaleIndexByPos(t,n);-1===o&&(o=r.topScaleItems.length-1);var s=Math.max(r.getScaleIndexByPos(e),0),a=r.getScaleIndexByPos(t);return-1===a&&(a=r.bottomScaleItems.length-1),[[i,o],[s,a]]},e.prototype.isScaleItemInsideNoWorkingInterval=function(e,t){for(var n=e.position.x,r=e.position.x+e.size.width,i=0;i<t.length;i++){var o=t[i].position.x,s=t[i].position.x+t[i].size.width;if(n>=o&&r<=s)return!0}return!1}
21,e.prototype.getScaleItemColSpan=function(e){return this._scaleCalculator.getScaleItemColSpan(e)},e.prototype.getTaskWrapperElementInfo=function(e){var t=new s.GridElementInfo;return t.className=this.getTaskWrapperClassName(e),t.setPosition(this.getTaskWrapperPoint(e)),t.setAttribute("task-index",e),t},e.prototype.getTaskWrapperClassName=function(e){var t="dx-gantt-taskWrapper",n=this.getViewItem(e);return n.task.isMilestone()&&!n.isCustom&&(t="dx-gantt-milestoneWrapper"),n.selected&&(t+=" dx-gantt-selectedTask"),t},e.prototype.getTaskWrapperPoint=function(e){if(!(0,d.isDefined)(this._taskWrapperPoints[e])){var t=this.getViewItem(e),n=this.getTaskHeight(e),r=e*this.tickSize.height+(this.tickSize.height-n)/2,i=new a.Point(this.getPosByDate(t.task.start),r);t.task.isMilestone()&&!t.isCustom&&(i.x-=n/2),this._taskWrapperPoints[e]=i}return this._taskWrapperPoints[e].clone()},e.prototype.getTaskElementInfo=function(e,t){if(void 0===t&&(t=!1),!(0,d.isDefined)(this._taskElementInfoList[e])){var n=new s.GridElementInfo,r=this.getTask(e),i=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(e);if(!r.isMilestone()){var o=this.getTaskWidth(e);n.size.width=this.getCorrectedTaskWidthByRange(e,o),n.size.width<o&&(n.additionalInfo.taskCut=!0),t&&(n.size.height=this.getTaskHeight(e))}n.className=this.getTaskClassName(e,n.size.width),r.color&&(n.style.backgroundColor=r.color,i&&(n.style.borderLeftColor=r.color,n.style.borderRightColor=r.color,n.style.borderTopColor=r.color)),this._taskElementInfoList[e]=n}return this._taskElementInfoList[e]},e.prototype.getTaskClassName=function(t,n){var r=e.taskClassName,i=this.getViewItem(t),o=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(t);return i.task.isMilestone()&&!i.isCustom?r+=" "+e.milestoneClassName:(n<=this.elementSizeValues.smallTaskWidth&&(r+=" "+e.smallTaskClassName),o&&(r+=this.getAutoCalcParentTaskClassName(i.task))),r},e.prototype.getAutoCalcParentTaskClassName=function(t){var n=" "+e.parentTaskClassName;return 0==t.progress&&(n+=" dx-gantt-noPrg"),t.progress>=100&&(n+=" dx-gantt-cmpl"),n},e.prototype.getTaskPoint=function(e){var t=this.getTaskWrapperPoint(e);return this.getTask(e).isMilestone()||(t.y+=this.elementSizeValues.taskWrapperTopPadding),t},e.prototype.getTaskSize=function(e){return new r.Size(this.getTaskWidth(e),this.getTaskHeight(e))},e.prototype.getTaskWidth=function(e){var t=this.getViewItem(e);return t.isCustom&&t.size.width?t.size.width:t.task.isMilestone()&&!t.isCustom?this.getTaskHeight(e):Math.max(this.getWidthByDateRange(t.task.start,t.task.end),this.minTaskWidth)},e.prototype.getTaskHeight=function(e){var t=this.getViewItem(e);return t.task.isMilestone()&&!t.isCustom?this.milestoneWidth:this.viewModel.isTaskToCalculateByChildren(t.task.internalId)?this.parentTaskHeight:t.isCustom&&t.size.height?t.size.height:this.taskHeight},e.prototype.getTask=function(e){var t=this.getViewItem(e);return null==t?void 0:t.task},e.prototype.getViewItem=function(e){return this.viewModel.items[e]},e.prototype.getTaskProgressElementInfo=function(t){var n=new s.GridElementInfo;return n.className=e.taskProgressClassName,n.setSize(this.getTaskProgressSize(t)),n},e.prototype.getTaskProgressSize=function(e){var t=this.getTaskProgressWidth(e);return this.isTaskCutByRange(e)&&(t=this.getCorrectedTaskWidthByRange(e,t)),new r.Size(t,0)},e.prototype.getTaskProgressWidth=function(e){return this.getTaskWidth(e)*this.getTask(e).normalizedProgress/100},e.prototype.getTaskTextElementInfo=function(e,t){var n=new s.GridElementInfo;if(n.className=this.getTaskTextElementClassName(t),!t){var r=this.getTaskPoint(e).x;if(r<this.elementSizeValues.outsideTaskTextDefaultWidth){var i=Math.max(r,0);n.size.width=i,i>0?n.margins.left=-i:n.additionalInfo.hidden=!0}}return n},e.prototype.getTaskTextElementClassName=function(t){return e.taskTitleClassName.concat(" ",t?e.titleInClassName:e.titleOutClassName)},e.prototype.getTaskResourcesWrapperElementInfo=function(e){var t=new s.GridElementInfo,n=this.getTaskSize(e).width;return t.className="dx-gantt-taskResWrapper",t.setPosition(this.getTaskWrapperPoint(e)),t.position.x=t.position.x+n,t},e.prototype.getTaskResourceElementInfo=function(){var t=new s.GridElementInfo;return t.className=e.taskResourceClassName,t},e.prototype.getSelectionElementInfo=function(e){return this.getRowElementInfo(e,"dx-gantt-sel")},e.prototype.getSelectionPosition=function(e){var t=new a.Point(void 0,void 0);return t.y=e*this.tickSize.height,t},e.prototype.getSelectionSize=function(){return new r.Size(this.getTotalWidth(),this.tickSize.height)},e.prototype.getHighlightRowInfo=function(e){return this.getRowElementInfo(e,"dx-gantt-altRow")},e.prototype.getRowElementInfo=function(e,t){var n=new s.GridElementInfo;return n.className=t,n.setPosition(this.getSelectionPosition(e)),n.setSize(this.getSelectionSize()),n},e.prototype.getNoWorkingIntervalInfo=function(e){var t=new s.GridElementInfo;return t.className="dx-gantt-nwi",t.setPosition(this.getNoWorkingIntervalPosition(e.start)),t.setSize(this.getNoWorkingIntervalSize(e)),t},e.prototype.getNoWorkingIntervalPosition=function(e){var t=new a.Point(void 0,void 0);return t.x=this.getPosByDate(e),t},e.prototype.getNoWorkingIntervalSize=function(e){return new r.Size(this.getWidthByDateRange(e.start,e.end),this.getVerticalGridLineHeight())},e.prototype.getVerticalGridLineHeight=function(){return Math.max(this.visibleTaskAreaSize.height-this.scrollBarHeight,this.tickSize.height*this.verticalTickCount)},e.prototype.getConnectorInfo=function(e,t,n,r){for(var i=new Array,o=this.getConnectorPoints(t,n,r),s=0;s<o.length-1;s++)i.push(this.getConnectorLineInfo(e,o[s],o[s+1],0==s||s==o.length-2));return i.push(this.getArrowInfo(e,o,i,t,n)),this.checkAndCorrectConnectorLinesByRange(i),i.filter(function(e){return!!e})},e.prototype.getConnectorLineInfo=function(e,t,n,r){var i=new s.GridElementInfo,o=t.x==n.x;return i.className=this.getConnectorClassName(o),i.setPosition(this.getConnectorPosition(t,n)),i.setSize(this.getConnectorSize(t,n,o,r)),i.setAttribute("dependency-id",e),i},e.prototype.getConnectorClassName=function(t){return t?e.CLASSNAMES.CONNECTOR_VERTICAL:e.CLASSNAMES.CONNECTOR_HORIZONTAL},e.prototype.getConnectorPosition=function(e,t){return new a.Point(Math.min(e.x,t.x),Math.min(e.y,t.y))},e.prototype.getConnectorSize=function(e,t,n,i){var o=new r.Size(0,0),s=i?0:1;return n?o.height=Math.abs(t.y-e.y)+s:o.width=Math.abs(t.x-e.x)+s,o},e.prototype.getArrowInfo=function(e,t,n,r,i){var o=new s.GridElementInfo,a=this.findArrowLineInfo(n,r,i),c=this.getArrowPosition(t,r,i);return o.className=this.getArrowClassName(c),o.setPosition(this.getArrowPoint(a,c)),o.setAttribute("dependency-id",e),o},e.prototype.findArrowLineInfo=function(e,t,n){return e[t<n?e.length-1:0]},e.prototype.getArrowPosition=function(e,t,n){var r=e[t<n?e.length-2:1],i=e[t<n?e.length-1:0];return r.x==i.x?r.y>i.y?o.Position.Top:o.Position.Bottom:r.x>i.x?o.Position.Left:o.Position.Right},e.prototype.getArrowClassName=function(t){var n=e.arrowClassName;switch(t){case o.Position.Left:n=n.concat(" ",e.leftArrowClassName);break;case o.Position.Top:n=n.concat(" ",e.topArrowClassName);break;case o.Position.Right:n=n.concat(" ",e.rightArrowClassName);break;case o.Position.Bottom:n=n.concat(" ",e.bottomArrowClassName)}return n},e.prototype.getArrowPositionByClassName=function(t){return t.indexOf(e.leftArrowClassName)>-1?o.Position.Left:t.indexOf(e.topArrowClassName)>-1?o.Position.Top:t.indexOf(e.rightArrowClassName)>-1?o.Position.Right:t.indexOf(e.bottomArrowClassName)>-1?o.Position.Bottom:void 0},e.prototype.getArrowPoint=function(e,t){return new a.Point(this.getArrowX(e,t),this.getArrowY(e,t))},e.prototype.getArrowX=function(e,t){switch(t){case o.Position.Left:return e.position.x-this.arrowSize.width/2;case o.Position.Right:return e.position.x+e.size.width-this.arrowSize.width/2;case o.Position.Top:case o.Position.Bottom:return e.position.x-(this.arrowSize.width-this.lineThickness)/2}},e.prototype.getArrowY=function(e,t){switch(t){case o.Position.Top:return e.position.y-this.arrowSize.height/2;case o.Position.Bottom:return e.position.y+e.size.height-this.arrowSize.height/2;case o.Position.Left:case o.Position.Right:return e.position.y-(this.arrowSize.height-this.lineThickness)/2}},e.prototype.getPosByDate=function(e){return this.getWidthByDateRange(this.range.start,e)},e.prototype.getWidthByDateRange=function(e,t){return c.DateUtils.getRangeTickCount(e,t,this.viewT
21ype)*this.tickSize.width},e.prototype.getDateByPos=function(e){if(this.viewType===o.ViewType.Months||this.viewType===o.ViewType.Quarter)return this.getDateByPosInMonthBasedViewTypes(e);var t=e/this.tickSize.width,n=new Date(this.range.start);return c.DateUtils.getDSTCorrectedTaskEnd(n,t*this.tickTimeSpan)},e.prototype.getDateByPosInMonthBasedViewTypes=function(e){return this._scaleCalculator.getDateInScale(e)},e.prototype.getConnectorPoints=function(e,t,n){switch(n){case l.DependencyType.FS:return this.getFinishToStartConnectorPoints(e,t);case l.DependencyType.SF:return this.getStartToFinishConnectorPoints(e,t);case l.DependencyType.SS:return this.getStartToStartConnectorPoints(e,t);case l.DependencyType.FF:return this.getFinishToFinishConnectorPoints(e,t);default:return new Array}},e.prototype.getFinishToStartConnectorPoints=function(e,t){return e<t?this.getTask(e).end<=this.getTask(t).start?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide(e,t,!1):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(e,t,!1):this.getTask(e).end<=this.getTask(t).start?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide(t,e,!1):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(t,e,!0)},e.prototype.getFinishToFinishConnectorPoints=function(e,t){return e<t?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(e,t):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(t,e)},e.prototype.getStartToStartConnectorPoints=function(e,t){return e<t?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(e,t):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(t,e)},e.prototype.getStartToFinishConnectorPoints=function(e,t){return e<t?this.getTask(e).start>=this.getTask(t).end?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide(e,t,!0):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(e,t,!1):this.getTask(e).start>=this.getTask(t).end?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide(t,e,!0):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(t,e,!0)},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide=function(e,t,n){var r=new Array,i=this.getTaskPoint(e),o=this.getTaskPoint(t),s=this.getTaskRightCenter(i,e),c=this.getTask(t).isMilestone(),u=this.getTaskTopCenter(o,t),l=this.getHorizontalIndentFromTaskEdge(t,n);return r.push(new a.Point(Math.floor(s.x),Math.floor(s.y))),r.push(new a.Point(Math.floor(c?u.x:o.x+l),Math.floor(r[0].y))),r.push(new a.Point(Math.floor(r[1].x),Math.floor(u.y))),r},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide=function(e,t){var n=new Array,r=this.getTaskPoint(e),i=this.getTaskPoint(t),o=this.getTaskRightCenter(r,e),s=this.getTaskRightCenter(i,t);return n.push(new a.Point(Math.floor(o.x),Math.floor(o.y))),n.push(new a.Point(Math.floor(Math.max(o.x,s.x)+this.minLineLength),Math.floor(n[0].y))),n.push(new a.Point(Math.floor(n[1].x),Math.floor(s.y))),n.push(new a.Point(Math.floor(s.x),Math.floor(s.y))),n},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide=function(e,t,n){var r=new Array,i=this.getTaskPoint(e),o=this.getTaskPoint(t),s=this.getTaskRightCenter(i,e),c=this.getTaskBottomCenter(i,e),u=this.getTaskLeftCenter(o,t),l=this.getTaskTopCenter(o,t),h=n?this.getViewItem(e):this.getViewItem(t),d=h.isCustom?(this.tickSize.height-h.size.height)/2:this.minConnectorSpaceFromTask;return r.push(new a.Point(Math.floor(s.x),Math.floor(s.y))),r.push(new a.Point(Math.floor(r[0].x+this.minLineLength),Math.floor(r[0].y))),r.push(new a.Point(Math.floor(r[1].x),Math.floor(n?c.y+d:l.y-d))),r.push(new a.Point(Math.floor(u.x-this.minLineLength),Math.floor(r[2].y))),r.push(new a.Point(Math.floor(r[3].x),Math.floor(u.y))),r.push(new a.Point(Math.floor(u.x),Math.floor(u.y))),r},e.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide=function(e,t,n){var r=new Array,i=this.getTaskPoint(e),o=this.getTaskPoint(t),s=this.getTaskBottomCenter(i,e),c=this.getTask(e).isMilestone(),u=this.getTaskRightCenter(o,t),l=this.getHorizontalIndentFromTaskEdge(e,n);return r.push(new a.Point(Math.floor(c?s.x:i.x+l),Math.floor(s.y))),r.push(new a.Point(Math.floor(r[0].x),Math.floor(u.y))),r.push(new a.Point(Math.floor(u.x),Math.floor(u.y))),r},e.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide=function(e,t,n){var r=new Array,i=this.getTaskPoint(e),o=this.getTaskPoint(t),s=this.getTaskBottomCenter(i,e),c=this.getTask(e).isMilestone(),u=this.getTaskLeftCenter(o,t),l=this.getHorizontalIndentFromTaskEdge(e,n);return r.push(new a.Point(Math.floor(c?s.x:i.x+l),Math.floor(s.y))),r.push(new a.Point(Math.floor(r[0].x),Math.floor(u.y))),r.push(new a.Point(Math.floor(u.x),Math.floor(u.y))),r},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide=function(e,t,n){var r=new Array,i=this.getTaskPoint(e),o=this.getTaskPoint(t),s=this.getTaskLeftCenter(i,e),c=this.getTaskTopCenter(o,t),u=this.getTask(t).isMilestone(),l=this.getHorizontalIndentFromTaskEdge(t,n);return r.push(new a.Point(Math.floor(s.x),Math.floor(s.y))),r.push(new a.Point(Math.floor(u?c.x:o.x+l),Math.floor(r[0].y))),r.push(new a.Point(Math.floor(r[1].x),Math.floor(c.y))),r},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide=function(e,t,n){var r=new Array,i=this.getTaskPoint(e),o=this.getTaskPoint(t),s=this.getTaskLeftCenter(i,e),c=this.getTaskBottomCenter(i,e),u=this.getTaskRightCenter(o,t),l=this.getTaskTopCenter(o,t),h=n?this.getViewItem(e):this.getViewItem(t),d=h.isCustom?(this.tickSize.height-h.size.height)/2:this.minConnectorSpaceFromTask;return r.push(new a.Point(Math.floor(s.x),s.y)),r.push(new a.Point(Math.floor(r[0].x-this.minLine
21Length),r[0].y)),r.push(new a.Point(Math.floor(r[1].x),Math.floor(n?c.y+d:l.y-d))),r.push(new a.Point(Math.floor(u.x+this.minLineLength),Math.floor(r[2].y))),r.push(new a.Point(Math.floor(r[3].x),Math.floor(u.y))),r.push(new a.Point(Math.floor(u.x),Math.floor(u.y))),r},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide=function(e,t){var n=new Array,r=this.getTaskPoint(e),i=this.getTaskPoint(t),o=this.getTaskLeftCenter(r,e),s=this.getTaskLeftCenter(i,t);return n.push(new a.Point(Math.floor(o.x),Math.floor(o.y))),n.push(new a.Point(Math.floor(Math.min(o.x,s.x)-this.minLineLength),Math.floor(n[0].y))),n.push(new a.Point(Math.floor(n[1].x),Math.floor(s.y))),n.push(new a.Point(Math.floor(s.x),Math.floor(s.y))),n},e.prototype.getTaskSidePoints=function(e){var t=this.getTaskPoint(e);return[this.getTaskLeftCenter(t,e),this.getTaskTopCenter(t,e),this.getTaskRightCenter(t,e),this.getTaskBottomCenter(t,e)]},e.prototype.getTaskLeftCenter=function(e,t){return new a.Point(e.x-this.getTaskEdgeCorrection(t),e.y+this.getTaskHeight(t)/2)},e.prototype.getTaskRightCenter=function(e,t){return new a.Point(e.x+this.getTaskWidth(t)+this.getTaskEdgeCorrection(t),e.y+this.getTaskHeight(t)/2)},e.prototype.getTaskTopCenter=function(e,t){return new a.Point(e.x+this.getTaskWidth(t)/2,e.y-this.getTaskEdgeCorrection(t))},e.prototype.getTaskBottomCenter=function(e,t){return new a.Point(e.x+this.getTaskWidth(t)/2,e.y+this.getTaskHeight(t)+this.getTaskEdgeCorrection(t))},e.prototype.getTaskEdgeCorrection=function(e){var t=this.getViewItem(e);return t.task.isMilestone()&&!t.isCustom?this.getTaskHeight(e)*(Math.sqrt(2)-1)/2:0},e.prototype.getHorizontalIndentFromTaskEdge=function(e,t){void 0===t&&(t=!1);var n=this.getTaskWidth(e),r=this.minLineLength<n/3?this.minLineLength:.2*n;return t?n-r:r},e.prototype.getRenderedRowColumnIndices=function(e,t){for(var n=t?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width,r=t?this.getFirstVisibleGridCellIndex(e,this.tickSize.height):this.getFirstScaleVisibleIndex(e),i=t?this.getLastVisibleGridCellIndex(e,this.tickSize.height,n,this.verticalTickCount):this.getLastScaleVisibleIndex(e),o=new Array,s=r;s<=i;s++)o.push(s);return o},e.prototype.getRenderedScaleItemIndices=function(e,t){for(var n=e===this.viewType,r=this._scaleCalculator,i=t[0],o=t[t.length-1],s=n?i:r.getTopScaleIndexByBottomIndex(i),a=n?o:r.getTopScaleIndexByBottomIndex(o),c=new Array,u=s;u<=a;u++)c.push(u);return c},e.prototype.getFirstScaleVisibleIndex=function(e){return this._scaleCalculator.getFirstScaleIndexForRender(e)},e.prototype.getLastScaleVisibleIndex=function(e){return this._scaleCalculator.getLastScaleIndexForRender(e+this.visibleTaskAreaSize.width)},e.prototype.getFirstVisibleGridCellIndex=function(e,t){var n=Math.floor(e/t);return Math.max(n-10,0)},e.prototype.getLastVisibleGridCellIndex=function(e,t,n,r){var i=Math.floor((e+n)/t);return Math.min(i+10,r-1)},e.prototype.createTileToConnectorLinesMap=function(){this.tileToDependencyMap=[];for(var e=0;e<this.viewModel.items.length;e++)for(var t=0;t<this.viewModel.items[e].dependencies.length;t++)this.createConnecotInfo(this.viewModel.items[e].dependencies[t],this.viewModel.items[e].visibleIndex)},e.prototype.updateTileToConnectorLinesMap=function(e){this.tileToDependencyMap.forEach(function(t,n,r){r[n]=t.filter(function(t){return t.attr["dependency-id"]!=e})});var t=[],n=this.viewModel.items.filter(function(t){return t.dependencies.filter(function(t){return t.id==e}).length>0})[0];if(n){var r=n.dependencies.filter(function(t){return t.id===e})[0];t=this.createConnecotInfo(r,n.visibleIndex)}return t},e.prototype.createConnecotInfo=function(e,t){var n=this,r=e.predecessor.visibleIndex,i=e.type,o=e.id,s=this.getConnectorInfo(o,r,t,i);return s.forEach(function(e){n.addElementInfoToTileMap(e,n.tileToDependencyMap,!0)}),s},e.prototype.createTileToNonWorkingIntervalsMap=function(){this.tileToNoWorkingIntervalsMap=[];for(var e=0;e<this.viewModel.noWorkingIntervals.length;e++){var t=this.getAdjustedNoWorkingInterval(this.viewModel.noWorkingIntervals[e]);if(t){var n=this.getNoWorkingIntervalInfo(t);this.addElementInfoToTileMap(n,this.tileToNoWorkingIntervalsMap,!1)}}},e.prototype.getAdjustedNoWorkingInterval=function(e){return e.end.getTime()-e.start.getTime()<this.tickTimeSpan-1?null:new i.DateRange(c.DateUtils.getNearestScaleTickDate(e.start,this.range,this.tickTimeSpan,this.viewT
21ype),c.DateUtils.getNearestScaleTickDate(e.end,this.range,this.tickTimeSpan,this.viewType))},e.prototype.addElementInfoToTileMap=function(e,t,n){var r=n?e.position.y:e.position.x,i=n?e.size.height:e.size.width,o=2*(n?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width);if(o>0)for(var s=Math.floor(r/o),a=Math.floor((r+i)/o),c=s;c<=a;c++)t[c]||(t[c]=new Array),t[c].push(e)},e.prototype.getRenderedConnectorLines=function(e){return this.getElementsInRenderedTiles(this.tileToDependencyMap,!0,e)},e.prototype.getRenderedNoWorkingIntervals=function(e){return this.getElementsInRenderedTiles(this.tileToNoWorkingIntervalsMap,!1,e)},e.prototype.getRenderedStripLines=function(e){var t=new Array,n=e.stripLines.map(function(e){return e.clone()});e.showCurrentTime&&n.push(new u.StripLine(new Date,null,e.currentTimeTitle,e.currentTimeCssClass,!0));for(var r=0,i=void 0;i=n[r];r++){var o=c.DateUtils.parse(i.start),a=i.end?c.DateUtils.parse(i.end):null;if(o>=this.range.start&&o<=this.range.end||a&&a>=this.range.start&&a<=this.range.end){var l=o>this.range.start?o:this.range.start,h=new s.GridElementInfo;h.size.height=this.getVerticalGridLineHeight(),h.position.x=this.getPosByDate(l),h.size.width=a?this.getWidthByDateRange(l,a<this.range.end?a:this.range.end):0,h.className=i.isCurrent?"dx-gantt-tc":a?"dx-gantt-ti":"dx-gantt-tm",h.className+=i.cssClass?" "+i.cssClass:"",h.attr.title=i.title,t.push(h)}}return t},e.prototype.getElementsInRenderedTiles=function(e,t,n){var r=new Array,i=t?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width;if(i>0)for(var o=Math.floor(n/(2*i)),s=Math.floor((n+i)/(2*i)),a=o;a<=s;a++)e[a]&&e[a].forEach(function(e){-1===r.indexOf(e)&&r.push(e)});return r},e.prototype.isTaskInRenderedRange=function(e){var t=this.getViewItem(e),n=this.getTaskPoint(e);return t.task.isMilestone()?n.x+this.getTaskWidth(e)<this.getTotalWidth():n.x<this.getTotalWidth()},e.prototype.isTaskCutByRange=function(e){return!!this.getTaskElementInfo(e).additionalInfo.taskCut},e.prototype.checkAndCorrectElementDisplayByRange=function(e){e.parentElement.offsetLeft+e.offsetLeft+e.offsetWidth>this.getTotalWidth()&&(e.style.display="none")},e.prototype.checkAndCorrectArrowElementDisplayByRange=function(e){e.offsetLeft+e.offsetWidth>this.getTotalWidth()&&(e.style.display="none")},e.prototype.checkAndCorrectConnectorLinesByRange=function(e){if(null==e?void 0:e.length)for(var t=this.getTotalWidth(),n=0;n<e.length;n++){var r=e[n],i=!r.size.width;r.position.x>t?delete e[n]:!i&&r.position.x+r.size.width>t&&(r.size.width=t-r.position.x)}},e.prototype.getCorrectedTaskWidthByRange=function(e,t){var n=this.getTotalWidth()-this.getTaskPoint(e).x;return Math.min(n,t)},e.dxGanttPrefix="dx-gantt-",e.taskClassName=e.dxGanttPrefix+"task",e.milestoneClassName=e.dxGanttPrefix+"milestone",e.smallTaskClassName=e.dxGanttPrefix+"smallTask",e.parentTaskClassName=e.dxGanttPrefix+"parent",e.taskProgressClassName=e.dxGanttPrefix+"tPrg",e.taskTitleClassName=e.dxGanttPrefix+"taskTitle",e.titleInClassName=e.dxGanttPrefix+"titleIn",e.titleOutClassName=e.dxGanttPrefix+"titleOut",e.taskResourceClassName=e.dxGanttPrefix+"taskRes",e.arrowClassName=e.dxGanttPrefix+"arrow",e.leftArrowClassName=e.dxGanttPrefix+"LA",e.topArrowClassName=e.dxGanttPrefix+"TA",e.rightArrowClassName=e.dxGanttPrefix+"RA",e.bottomArrowClassName=e.dxGanttPrefix+"BA",e.CLASSNAMES={CONNECTOR_VERTICAL:"dx-gantt-conn-v",CONNECTOR_HORIZONTAL:"dx-gantt-conn-h"},e}();t.GridLayoutCalculator=f},7072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleCalculator=t.ScaleItemInfo=void 0;var r=n(8900),i=n(6353),o=n(9201),s=n(2449),a=function(e,t,n,r){this.start=e,this.end=t,this.position=n,this.size=r};t.ScaleItemInfo=a;var c=function(){function e(){this.firstDayOfWeek=0}return e.prototype.setSettings=function(e,t,n,r){void 0===r&&(r=0),this.range=e,this.viewType=t,this.tickSize=n,this.firstDayOfWeek=r,this.reset()},e.prototype.setViewType=function(e){this.viewType=e,this.reset()},e.prototype.reset=function(){delete this._bottomScaleItems,delete this._topScaleItems,delete this._scaleWidth},e.prototype.getScaleIndexByPos=function(e,t){null!=t||(t=this.viewT
21ype);var n=t===this.viewType?this.bottomScaleItems:this.topScaleItems,r=-1;if(n.findIndex)r=n.findIndex(function(t){return e>=t.position.x&&e<=t.position.x+t.size.width});else{var i=n.filter(function(t){return e>=t.position.x&&e<=t.position.x+t.size.width})[0];i&&(r=n.indexOf(i))}return r},e.prototype.getScaleBorderPosition=function(e,t){var n=this.getScaleItems(t)[e];if(n)return n.position.x+n.size.width},e.prototype.getScaleItems=function(e){return e===this.viewType?this.bottomScaleItems:e===o.DateUtils.ViewTypeToScaleMap[this.viewType]?this.topScaleItems:null},e.prototype.getScaleItem=function(e,t){return this.getScaleItems(t)[e]},e.prototype.getScaleItemAdjustedStart=function(e,t){var n=this.getScaleItems(t)[e];if(e>0)return n.start;var r=t!==this.viewType,i=r?o.DateUtils.adjustStartDateByViewType(this.range.start,this.viewType,this.firstDayOfWeek):this.getAdjustedBottomScaleItemStart(n.start,t,this.firstDayOfWeek);if(r&&t===s.ViewType.Months){var a=this.range.start;i=new Date(a.getFullYear(),a.getMonth(),1)}if(r&&t===s.ViewType.FiveYears){var c=5*Math.trunc(i.getFullYear()/5);i=new Date(c,i.getMonth(),i.getDate())}return i},Object.defineProperty(e.prototype,"topScaleItems",{get:function(){var e;return null!==(e=this._topScaleItems)&&void 0!==e||(this._topScaleItems=this.calculateTopScale(o.DateUtils.ViewTypeToScaleMap[this.viewT
21ype])),this._topScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomScaleItems",{get:function(){var e;return null!==(e=this._bottomScaleItems)&&void 0!==e||(this._bottomScaleItems=this.calculateBottomScale(this.viewType)),this._bottomScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleWidth",{get:function(){var e;return null!==(e=this._scaleWidth)&&void 0!==e||(this._scaleWidth=this.calculateScaleWidth()),this._scaleWidth},enumerable:!1,configurable:!0}),e.prototype.getFirstScaleIndexForRender=function(e){var t=this.getScaleIndexByPos(e);return Math.max(t-10,0)},e.prototype.getLastScaleIndexForRender=function(e){var t=this.getScaleIndexByPos(e);return-1===t?this.bottomScaleItems.length-1:Math.min(t+10,this.bottomScaleItems.length-1)},e.prototype.getTopScaleIndexByBottomIndex=function(e){var t=this.bottomScaleItems[e];return t?this.getScaleIndexByPos(t.position.x,o.DateUtils.ViewTypeToScaleMap[this.viewType]):-1},e.prototype.calculateBottomScale=function(e){for(var t=new Array,n=this.tickSize.width,c=this.range.start,u=0;c.getTime()<this.range.end.getTime();){var l=this.getNextScaleDate(c,e),h=c.getTime()===this.range.start.getTime(),d=l.getTime()>=this.range.end.getTime(),f=h||d||e>s.ViewType.Hours&&o.DateUtils.hasDST()?this.getRangeTickCount(c,l)*n:n;t.push(new a(c,l,new r.Point(u,void 0),new i.Size(f,0))),c=l,u+=f}return t},e.prototype.calculateTopScale=function(e){for(var t=new Array,n=this.range.end.getTime(),o=this.range.start,s=0,c=0;o.getTime()<n;)for(var u=this.getNextScaleDate(o,e),l=u.getTime(),h=c;h<this.bottomScaleItems.length;h++){var d=this.bottomScaleItems[h],f=d.start.getTime(),p=d.end.getTime();if(l>=f&&l<=p){var A=(l-f)/(p-f)*d.size.width+d.position.x;t.push(new a(o,u,new r.Point(s,void 0),new i.Size(A-s,0))),c=h,s=A,o=u;break}}return t},e.prototype.getDateInScale=function(e){if(e<0){var t=e/this.tickSize.width,n=o.DateUtils.getTickTimeSpan(this.viewType);return new Date(this.range.start.getTime()+t*n)}for(var r=0;r<this.bottomScaleItems.length;r++){var i=this.bottomScaleItems[r],s=i.size.width,a=i.position.x;if(e>=a&&e<=a+s){var c=i.start.getTime();return t=(e-a)/s*(i.end.getTime()-c),new Date(i.start.getTime()+t)}}return new Date(this.range.end)},e.prototype.getNextScaleDate=function(e,t){var n;switch(t){case s.ViewType.TenMinutes:n=this.getNextDateInTenMinutesScale(e);break;case s.ViewType.Hours:n=this.getNextDateInHoursScale(e);break;case s.ViewType.SixHours:n=this.getNextDateInSixHoursScale(e);break;case s.ViewType.Days:n=this.getNextDateInDaysScale(e);break;case s.ViewType.Weeks:n=this.getNextDateInWeeksScale(e,this.firstDayOfWeek);break;case s.ViewType.Months:n=this.getNextDateInMonthsScale(e);break;case s.ViewType.Quarter:n=this.getNextDateInQuartersScale(e);break;case s.ViewType.Years:n=this.getNextDateInYearsScale(e);break;case s.ViewType.FiveYears:n=this.getNextDateInFiveYearsScale(e)}return n.getTime()>this.range.end.getTime()&&(n=this.range.end),n},e.prototype.getNextTimeBySpan=function(e,t){return(Math.trunc(e/t)+1)*t},e.prototype.getNextDateInTenMinutesScale=function(e){var t=this.getNextTimeBySpan(e.getMinutes(),10);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),t)},e.prototype.getNextDateInHoursScale=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+1)},e.prototype.getNextDateInSixHoursScale=function(e){var t=this.getNextTimeBySpan(e.getHours(),6);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t)},e.prototype.getNextDateInDaysScale=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)},e.prototype.getNextDateInWeeksScale=function(e,t){return void 0===t&&(t=0),new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+t+7)},e.prototype.getNextDateInMonthsScale=function(e){return new Date(e.getFullYear(),e.getMonth()+1,1)},e.prototype.getNextDateInQuartersScale=function(e){var t=this.getNextTimeBySpan(e.getMonth(),3);return new Date(e.getFullYear(),t,1)},e.prototype.getNextDateInYearsScale=function(e){return new Date(e.getFullYear()+1,0,1)},e.prototype.getNextDateInFiveYearsScale=function(e){var t=this.getNextTimeBySpan(e.getFullYear(),5);return new Date(t,0,1)},e.prototype.getAdjustedBottomScaleItemStart=function(e,t,n){switch(void 0===n&&(n=0),t){case s.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),10*Math.floor(e.getMinutes()/10));case s.ViewType.SixHours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),6*Math.floor(e.getHours()/6));case s.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case s.ViewType.Days:return new Date(e.getFullYear(),e.getMonth(),e.getDate());case s.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+n);case s.ViewType.Months:return new Date(e.getFullYear(),e.getMonth(),1);case s.ViewType.Quarter:return new Date(e.getFullYear(),3*Math.floor(e.getMonth()/3),1);case s.ViewType.Years:return new Date(e.getFullYear(),0,1);default:return new Date}},e.prototype.calculateScaleWidth=function(){return this.bottomScaleItems.reduce(function(e,t){return e+t.size.width},0)}
21,e.prototype.getScaleItemColSpan=function(e){return e.valueOf()===this.viewType.valueOf()?1:this.viewType===s.ViewType.TenMinutes?6:this.viewType===s.ViewType.Hours?24:this.viewType===s.ViewType.SixHours?4:this.viewType===s.ViewType.Days?7:this.viewType===s.ViewType.Weeks?4.29:this.viewType===s.ViewType.Months?12:this.viewType===s.ViewType.Quarter?4:this.viewType===s.ViewType.Years?5:1},e.prototype.getRangeTickCount=function(e,t){return o.DateUtils.getRangeTickCount(e,t,this.viewType)},e}();t.ScaleCalculator=c},9377:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaContainer=void 0;var n=function(){function e(e,t){this.element=e,this.onScrollHandler=function(){t.updateView()},this.element.addEventListener("scroll",this.onScrollHandler)}return Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.element.scrollTop},set:function(e){this.element.scrollTop=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollLeft",{get:function(){return this.element.scrollLeft},set:function(e){this.element.scrollLeft=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollWidth",{get:function(){return this.element.scrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this.element.scrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.getWidth=function(){return this.element.offsetWidth},e.prototype.getHeight=function(){return this.element.offsetHeight},e.prototype.getElement=function(){return this.element},e.prototype.detachEvents=function(){this.element.removeEventListener("scroll",this.onScrollHandler)},e}();t.TaskAreaContainer=n}
21,6923:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorLinesRender=void 0;var r=n(658),i=n(1855),o=function(){function e(e){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[],this._renderHelper=e}return Object.defineProperty(e.prototype,"taskEditController",{get:function(){return this._renderHelper.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"connectorLinesToElementsMap",{get:function(){return this._connectorLinesToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDependencies",{get:function(){return this._renderHelper.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedConnectorLines",{get:function(){return this._renderedConnectorLines},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[]},e.prototype.createConnectorLineElement=function(e){if(this.showDependencies){var t=e.attr["dependency-id"];if(!this.invalidTaskDependencies.some(function(e){return e.id==t})){this.taskEditController.isDependencySelected(t)&&(e.className=e.className+" active");var n=e.className.indexOf(i.GridLayoutCalculator.arrowClassName)>-1,o=r.RenderElementUtils.create(e,null,this.taskArea,this.connectorLinesToElementsMap);return n&&this.gridLayoutCalculator.checkAndCorrectArrowElementDisplayByRange(o),o}}},e.prototype.removeConnectorLineElement=function(e){r.RenderElementUtils.remove(e,null,this.taskArea,this.connectorLinesToElementsMap)},e.prototype.recreateConnectorLineElement=function(e,t){var n=this;void 0===t&&(t=!1);var r=[];this._renderedConnectorLines=this.renderedConnectorLines.filter(function(t){return t.attr["dependency-id"]!=e||(r.push(t),!1)});var i=r.length>0;r.forEach(function(e){n.removeConnectorLineElement(e)}),r=this.gridLayoutCalculator.updateTileToConnectorLinesMap(e),(i||t)&&r.forEach(function(e){n.createConnectorLineElement(e),n.renderedConnectorLines.push(e)})},e.prototype.recreateConnectorLineElements=function(){var e=this,t=this.gridLayoutCalculator.getRenderedConnectorLines(this.taskAreaContainerScrollTop);r.RenderElementUtils.recreate(this.renderedConnectorLines,t,function(t){e.removeConnectorLineElement(t)},function(t){e.createConnectorLineElement(t)}),this._renderedConnectorLines=t},e.prototype.updateRenderedConnectorLinesId=function(e,t){for(var n in this._renderedConnectorLines.forEach(function(n){n.attr["dependency-id"]===e&&(n.attr["dependency-id"]=t)}),this.connectorLinesToElementsMap)if(Object.prototype.hasOwnProperty.call(this.connectorLinesToElementsMap,n)){var r=this.connectorLinesToElementsMap[n];r.getAttribute("dependency-id")===e&&r.setAttribute("dependency-id",t)}this.gridLayoutCalculator.updateTileToConnectorLinesMap(e),this.gridLayoutCalculator.updateTileToConnectorLinesMap(t)},e}();t.ConnectorLinesRender=o},1419:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTaskRender=void 0;var r=n(2449),i=n(658),o=function(){function e(e,t){this._pendingTemplateFuncsToRender=[],this._renderHelper=e,this._taskRender=t}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),e.prototype.getViewItem=function(e){return this._renderHelper.getViewItem(e)},e.prototype.getTask=function(e){return this._renderHelper.getTask(e)},e.prototype.destroyTemplate=function(e){this._renderHelper.destroyTemplate(e)},e.prototype.getTaskDependencies=function(e){return this._renderHelper.getTaskDependencies(e)},e.prototype.getTaskResources=function(e){return this._renderHelper.getTaskResources(e)},e.prototype.attachEventsOnTask=function(e){this._renderHelper.attachEventsOnTask(e)},e.prototype.recreateConnectorLineElement=function(e,t){void 0===t&&(t=!1),this._renderHelper.recreateConnectorLineElement(e,t)},e.prototype.createTaskSelectionElement=function(e){this._taskRender.createTaskSelectionElement(e)},e.prototype.createCustomTaskElement=function(e,t){if(this._saveTemplateFuncToStack(e,t),!this._hasRepeatedTemplateRenderCall(e)){var n=this.getViewItem(e);n.isCustom=!1;var r=document.createElement("DIV"),i=this.createCustomTaskInformation(e);n.isCustom=!0,t(r,i,this.onTaskTemplateContainerRendered.bind(this),e)}},e.prototype.onTaskTemplateContainerRendered=function(e,t){var n=this;if(this._hasRepeatedTemplateRenderCall(t)){e&&this._renderHelper.destroyTemplate(e);var r=this._getLastPendingTemplateFunc(t);setTimeout(function(){return n.createCustomTaskElement(t,r)})}else this.drawCustomTask(e,t);this._clearTemplateFuncsStack(t)},e.prototype._saveTemplateFuncToStack=function(e,t){var n,r;null!==(n=(r=this._pendingTemplateFuncsToRender)[e])&&void 0!==n||(r[e]=[]),this._pendingTemplateFuncsToRender[e].push(t)},e.prototype._clearTemplateFuncsStack=function(e){this._pendingTemplateFuncsToRender[e]=[]},e.prototype._hasRepeatedTemplateRenderCall=function(e){return this._pendingTemplateFuncsToRender[e].length>1},e.prototype._getLastPendingTemplateFunc=function(e){var t=this._pendingTemplateFuncsToRender[e];return t[t.length-1]},e.prototype.createCustomTaskWrapperElement=function(e,t){i.RenderElementUtils.create(t,e,this.taskArea,this.taskElements)},e.prototype.createCustomTaskVisualElement=function(e,t){return i.RenderElementUtils.create(t,e,this.taskElements[e])},e.prototype.drawCustomTask=function(e,t){var n=this;if(this.taskElements[t]){var r=this.getViewItem(t);if(r.visible=!!e.innerHTML,this.taskElements[t].innerHTML=e.innerHTML,r.size.height=this.taskElements[t].offsetHeight,r.size.width=this.taskElements[t].offsetWidth,this.destroyTemplate(this.taskElements[t]),this._taskRender.removeTaskElement(t),r.visible){var i=this.gridLayoutCalculator.getTaskWrapperElementInfo(t);this.createCustomTaskWrapperElement(t,i),this.taskElements[t].appendChild(e),this.attachEventsOnTask(t)}else{var o=this.getTaskDependencies(r.task.internalId);o.length&&(this._taskRender.addInvalidTaskDependencies(o),o.forEach(function(e){return n.recreateConnectorLineElement(e.internalId,!0)}))}this._taskRender.isHighlightRowElementAllowed(t)&&this._taskRender.createHighlightRowElement(t),r.selected&&this.createTaskSelectionElement(t)}},e.prototype.createCustomTaskInformation=function(e){var t=this.getTask(e),n=this.getViewItem(e),i=this.gridLayoutCalculator.getTaskWrapperElementInfo(e),o=this.gridLayoutCalculator.getTaskElementInfo(e,this.taskTitlePosition!==r.TaskTitlePosition.Inside);this.createCustomTaskWrapperElement(e,i);var s=this.createCustomTaskVisualElement(e,o);this._taskRender.createTaskTextElement(e,s);var a=this.getTaskResources(t.id);return{cellSize:this.tickSize,isMilestone:t.isMilestone(),isParent:!!(null==n?void 0:n.children.length),taskData:t,taskHTML:s,taskPosition:i.position,taskResources:a,taskSize:o.size}},e}();t.CustomTaskRender=o},9385:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EtalonsHelper=void 0;var r=n(6907),i=n(2449),o=n(1391),s=n(658),a=function(){function e(e){this._renderHelper=e}return Object.defineProperty(e.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),e.prototype.getScaleItemTextTemplate=function(e){return this._renderHelper.getScaleItemTextTemplate(e)},e.prototype.getHeaderHeight=function(){return this._renderHelper.getHeaderHeight()},e.prototype.getSmallTaskWidth=function(e){return this._renderHelper.getSmallTaskWidth(e)},e.prototype.createEtalonElementsContainer=function(){var e=document.createElement("DIV");return e.style.visibility="hidden",e.style.position="absolute",e.style.left="-1000px",this.mainElement.appendChild(e),e},e.prototype.createEtalonElements=function(e){var t=[],n=s.RenderElementUtils.create(new o.GridElementInfo("dx-gantt-taskWrapper"),null,e),r=s.RenderElementUtils.create(new o.GridElementInfo("dx-gantt-task"),null,n);s.RenderElementUtils.create(new o.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,r).innerText="WWW",t.push(n);var i=s.RenderElementUtils.create(new o.GridElementInfo("dx-gantt-taskWrapper"),null,e);s.RenderElementUtils.create(new o.GridElementInfo("dx-gantt-task dx-gantt-milestone"),null,i),t.push(i);for(var a=["dx-gantt-conn-h","dx-gantt-arrow","dx-gantt-si","dx-gantt-taskTitle dx-gantt-titleOut"],c=0;c<a.length;c++){var u=new o.GridElementInfo(a[c]);t.push(s.RenderElementUtils.create(u,null,e))}var l=s.RenderElementUtils.create(new o.GridElementInfo("dx-gantt-taskWrapper"),null,e),h=s.RenderElementUtils.create(new o.GridElementInfo("dx-gantt-task dx-gantt-parent"),null,l);return s.RenderElementUtils.create(new o.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,h).innerText="WWW",t.push(l),t},e.prototype.calculateEtalonSizeValues=function(){var e=this.createEtalonElementsContainer(),t=this.createEtalonElements(e);this.calculateEtalonSizeValuesCore(t),this.mainElement.removeChild(e)},e.prototype.calculateEtalonSizeValuesCore=function(e){this.etalonSizeValues.taskHeight=e[0].firstChild.offsetHeight,this.etalonSizeValues.milestoneWidth=e[1].firstChild.offsetWidth,this.etalonSizeValues.taskWrapperTopPadding=r.DomUtils.pxToInt(r.DomUtils.getCurrentStyle(e[0]).paddingTop),this.etalonSizeValues.connectorLineThickness=r.DomUtils.getVerticalBordersWidth(e[2]),this.etalonSizeValues.connectorArrowWidth=r.DomUtils.getHorizontalBordersWidth(e[3]);for(var t=0;t<=i.ViewType.Years;t++)e[4].innerText=this.getScaleItemTextTemplate(t),this.etalonSizeValues.scaleItemWidths[t]=e[4].offsetWidth;this.etalonSizeValues.smallTaskWidth=this.getSmallTaskWidth(r.DomUtils.getCurrentStyle(e[0].firstChild.firstChild).paddingLeft),this.etalonSizeValues.outsideTaskTextDefaultWidth=r.DomUtils.pxToFloat(r.DomUtils.getCurrentStyle(e[5]).width),this.etalonSizeValues.scaleItemHeight=this.getHeaderHeight()/this.scaleCount,this.etalonSizeValues.parentTaskHeight=e[e.length-1].firstChild.offsetHeight},e}();t.EtalonsHelper=a},4289:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleCellPreparedArguments=void 0;var n=function(){function e(e){this.info=e}return Object.defineProperty(e.prototype,"scaleIndex",{get:function(){var e;return null===(e=this.info)||void 0===e?void 0:e.scaleIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleType",{get:function(){var e;return null===(e=this.info)||void 0===e?void 0:e.scaleType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){var e,t;return null===(t=null===(e=this.info)||void 0===e?void 0:e.range)||void 0===t?void 0:t.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){var e,t;return null===(t=null===(e=this.info)||void 0===e?void 0:e.range)||void 0===t?void 0:t.end},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleElement",{get:function(){var e;return null===(e=this.info)||void 0===e?void 0:e.scaleElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"separatorElement",{get:function(){var e;return null===(e=this.info)||void 0===e?void 0:e.separatorElement}
21,enumerable:!1,configurable:!0}),e}();t.ScaleCellPreparedArguments=n},2121:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MainElementsRender=void 0;var n=function(){function e(){}return e.prototype.createMainElement=function(e){var t=document.createElement("DIV");return t.style.width=e.offsetWidth+"px",t.style.height=e.offsetHeight+"px",t},e.prototype.createHeader=function(){var e=document.createElement("DIV");return e.className="dx-gantt-header",e},e}();t.MainElementsRender=n},1027:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoWorkingIntervalRender=void 0;var r=n(658),i=function(){function e(e){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[],this._renderHelper=e}return Object.defineProperty(e.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedNoWorkingIntervals",{get:function(){return this._renderedNoWorkingIntervals},set:function(e){this._renderedNoWorkingIntervals=e},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[]},e.prototype.createNoWorkingIntervalElement=function(e){return r.RenderElementUtils.create(e,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},e.prototype.removeNoWorkingIntervalElement=function(e){r.RenderElementUtils.remove(e,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},e.prototype.recreateNoWorkingIntervalElements=function(){var e=this,t=this.gridLayoutCalculator.getRenderedNoWorkingIntervals(this.taskAreaContainerScrollLeft);r.RenderElementUtils.recreate(this.renderedNoWorkingIntervals,t,function(t){e.removeNoWorkingIntervalElement(t)},function(t){e.createNoWorkingIntervalElement(t)}),this.renderedNoWorkingIntervals=t},e}();t.NoWorkingIntervalRender=i},658:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderElementUtils=void 0;var n=function(){function e(){}return e.create=function(e,t,n,r){var i=document.createElement("DIV");for(var o in e.assignToElement(i),n.appendChild(i),r&&(r instanceof Array&&null!==t?r[t]=i:r[e.id]=i),e.attr)Object.prototype.hasOwnProperty.call(e.attr,o)&&i.setAttribute(o,e.attr[o]);for(var o in e.style)Object.prototype.hasOwnProperty.call(e.style,o)&&(i.style[o]=e.style[o]);return i},e.remove=function(e,t,n,r){var i;r instanceof Array&&null!==t?(i=r[t],delete r[t]):(i=r[e.id],delete r[e.id]),i&&i.parentNode==n&&n.removeChild(i)},e.recreate=function(e,t,n,r){e.filter(function(e){return-1===t.indexOf(e)}).forEach(function(e){n(e)}),t.filter(function(t){return-1===e.indexOf(t)}).forEach(function(e){r(e)})},e}();t.RenderElementUtils=n},1074:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderHelper=void 0;var r=n(6923),i=n(9385),o=n(8877),s=n(2366),a=n(1855),c=n(1027),u=n(4966),l=n(6700),h=n(8148),d=n(3682),f=n(2349),p=n(2290),A=n(2121),g=n(6353),m=n(9377),y=n(8380),v=function(){function e(e){this.hlRowElements=[],this.renderedColIndices=[],this.renderedRowIndices=[],this.invalidTaskDependencies=[],this.etalonSizeValues=new o.EtalonSizeValues,this._gridLayoutCalculator=new a.GridLayoutCalculator,this._ganttView=e,this._connectorLinesRender=new r.ConnectorLinesRender(this),this._etalonsHelper=new i.EtalonsHelper(this),this._noWorkingIntervalRender=new c.NoWorkingIntervalRender(this),this._resourceRender=new u.ResourseRender(this),this._scaleRender=new l.ScaleRender(this),this._stripLinesRender=new h.StripLinesRender(this),this._taskAreaRender=new f.TaskAreaRender(this),this._taskRender=new p.TaskRender(this),this._mainElementsRender=new A.MainElementsRender}return e.prototype.reset=function(){this.invalidTaskDependencies=[],this._taskAreaRender.reset(),this._taskRender.reset(),this._taskArea.innerHTML="",this._scaleRender.reset(),this.hlRowElements=[],this.renderedRowIndices=[],this.renderedColIndices=[],this._connectorLinesRender.reset(),this._stripLinesRender.reset(),this._noWorkingIntervalRender.reset()},e.prototype.createMainElement=function(e){this.mainElement=this._mainElementsRender.createMainElement(e),e.appendChild(this.mainElement)},e.prototype.createHeader=function(){this.header=this._mainElementsRender.createHeader(),this.mainElement.appendChild(this.header)},e.prototype.init=function(e,t,n,r,i){void 0===i&&(i=0),this._elementTextHelper.setFont(this.mainElement),this.setupHelpers(e,t,n,r,i),this.setSizeForTaskArea(),this.createTimeScale(),this._taskAreaManager=new d.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)},e.prototype.initMarkup=function(e){this._elementTextHelper=new y.ElementTextHelper(this.ganttViewSettings.cultureInfo),this.createMainElement(e),this.createHeader(),this._etalonsHelper.calculateEtalonSizeValues(),this._taskAreaRender.createTaskAreaContainer()},e.prototype.processScroll=function(e){this._taskAreaRender.recreateTaskAreaBordersAndTaskElements(e),e?this._connectorLinesRender.recreateConnectorLineElements():(this._noWorkingIntervalRender.recreateNoWorkingIntervalElements(),this._stripLinesRender.recreateStripLines(),this._scaleRender.recreateScalesElements())},Object.defineProperty(e.prototype,"ganttViewSettings",{get:function(){return this._ganttView.settings}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTextHeightKey",{get:function(){return s.GanttView.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResources",{get:function(){return this.ganttViewSettings.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDependencies",{get:function(){return this.ganttViewSettings.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModelItems",{get:function(){return this._ganttView.viewModel.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLines",{get:function(){return this.ganttViewSettings.stripLines},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._ganttView.range},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewType",{get:function(){return this.ganttViewSettings.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTitlePosition",{get:function(){return this.ganttViewSettings.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickSize",{get:function(){return this._ganttView.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ganttViewTaskAreaContainerScrollTop",{get:function(){return this._ganttView.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ganttTaskAreaContainerScrollLeft",{get:function(){return this._ganttView.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._ganttView.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areHorizontalBordersEnabled",{get:function(){return this.ganttViewSettings.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskEditController",{get:function(){return this._ganttView.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dispatcher",{get:function(){return this._ganttView.dispatcher},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaManager",{get:function(){var e;return null!==(e=this._taskAreaManager)&&void 0!==e||(this._taskAreaManager=new d.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)),this._taskAreaManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternalTaskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer.isExternal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fakeTaskWrapper",{get:function(){return this._taskRender.fakeTaskWrapper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionElements",{get:function(){return this._taskRender.selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleElements",{get:function(){return this._scaleRender.scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBorders",{get:function(){return this._scaleRender.scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeScaleContainer",{get:function(){return this._scaleRender.timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._gridLayoutCalculator}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonScaleItemWidths",{get:function(){return this.etalonSizeValues.scaleItemWidths[this.viewType]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementTextHelperCultureInfo",{get:function(){return this._elementTextHelper.cultureInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalRender.noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLinesMap",{get:function(){return this._stripLinesRender.stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedConnectorLines",{get:function(){return this._connectorLinesRender.renderedConnectorLines},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allConnectorLines",{get:function(){return this.gridLayoutCalculator.tileToDependencyMap.reduce(function(e,t){return e.concat(t)},[])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){return this._resourceRender.resourcesElements},enumerable:!1,configurable:!0}),e.prototype.setupHelpers=function(e,t,n,r,i){void 0===i&&(i=0);var o=new g.Size(this._taskAreaRender.taskAreaContainer.getWidth(),this._taskAreaRender.taskAreaContainer.getHeight()),s=this._taskAreaRender.taskAreaContainer.getHeight()-this._taskAreaRender.taskAreaContainer.getElement().clientHeight;this._gridLayoutCalculator.setSettings(o,e,this.etalonSizeValues,t,r,n,s,i),this._elementTextHelper.setSettings(t.start.getTime(),n,r.items)},e.prototype.resetAndUpdate=function(e,t,n,r,i){void 0===i&&(i=0);var o=this.getTaskAreaContainerScrollLeft();this.reset(),this.setupHelpers(e,t,n,r,i),this._scaleRender.createTimeScaleAreas(),this.setSizeForTaskArea(),this.setTaskAreaContainerScrollLeft(o)},e.prototype.createConnectorLines=function(){this._gridLayoutCalculator.createTileToConnectorLinesMap(),this._connectorLinesRender.recreateConnectorLineElements()},e.prototype.getTargetDateByPos=function(e){return this._gridLayoutCalculator.getDateByPos(this._taskAreaRender.taskAreaContainer.scrollLeft+e)},e.prototype.getExternalTaskAreaContainer=function(e){return this._ganttView.getExternalTaskAreaContainer(e)},e.prototype.prepareExternalTaskAreaContainer=function(e,t){return this._ganttView.prepareExternalTaskAreaContainer(e,t)},e.prototype.isAllowTaskAreaBorders=function(e){return this._ganttView.allowTaskAreaBorders(e)},e.prototype.getHeaderHeight=function(){return this._ganttView.getHeaderHeight()},e.prototype.getViewItem=function(e){return this._ganttView.getViewItem(e)},e.prototype.getTask=function(e){return this._ganttView.getTask(e)},e.prototype.hasTaskTemplate=function(){return!!this._ganttView.settings.taskContentTemplate},e.prototype.destroyTemplate=function(e){this._ganttView.destroyTemplate(e)},e.prototype.getTaskDependencies=function(e){return this._ganttView.getTaskDependencies(e)},e.prototype.getTaskResources=function(e){return this._ganttView.getTaskResources(e)},e.prototype.isHighlightRowElementAllowed=function(e){return this._ganttView.isHighlightRowElementAllowed(e)},e.prototype.updateRenderedConnectorLinesId=function(e,t){this._connectorLinesRender.updateRenderedConnectorLinesId(e,t)},e.prototype.recreateConnectorLineElement=function(e,t){void 0===t&&(t=!1),this._connectorLinesRender.recreateConnectorLineElement(e,t)},e.prototype.recreateConnectorLineElemensts=function(){this._connectorLinesRender.recreateConnectorLineElements()},e.prototype.setMainElementWidth=function(e){this.mainElement.style.width=e+"px"},e.prototype.setMainElementHeight=function(e){this.mainElement.style.height=e+"px"},e.prototype.createResources=function(e){this._resourceRender.createResourcesWrapperElement(e),this._resourceRender.createResources(e)},e.prototype.createTimeScale=function(){this._scaleRender.createTimeScaleContainer(this.header),this._scaleRender.createTimeScaleAreas()},e.prototype.setTimeScaleContainerScrollLeft=function(e){this._scaleRender.setTimeScaleContainerScrollLeft(e)},e.prototype.recreateStripLines=function(){this._stripLinesRender.recreateStripLines&&this._stripLinesRender.recreateStripLines()},e.prototype.createTaskArea=function(e){this._taskArea=this._taskAreaRender.createTaskArea(),this._taskArea.setAttribute("task-edit-enabled",this.isTaskUpdateAllowed().toString()),e.appendChild(this._taskArea)},e.prototype.isTaskUpdateAllowed=function(){var e=this.ganttViewSettings.editing;return e.enabled&&e.allowTaskUpdate},e.prototype.setSizeForTaskArea=function(){var e=this.getTaskAreaWidth(),t=this.getTaskAreaHeight();this._taskAreaRender.setSizeForTaskArea(e,t),this._ganttView.onTaskAreaSizeChanged({width:e,height:t})},e.prototype.getTaskAreaWidth=function(){return this.gridLayoutCalculator.getTotalWidth()},e.prototype.getTaskAreaHeight=function(){return this.gridLayoutCalculator.getVerticalGridLineHeight()},e.prototype.getTaskAreaContainerScrollLeft=function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},e.prototype.setTaskAreaContainerScrollLeft=function(e){this._taskAreaRender.taskAreaContainer.scrollLeft=e},e.prototype.setTaskAreaContainerScrollLeftToDate=function(e,t){this._taskAreaRender.taskAreaContainer.scrollLeft=Math.round(this._gridLayoutCalculator.getPosByDate(e))+t},e.prototype.getTaskAreaContainer=function(e){return new m.TaskAreaContainer(e,this._ganttView)},e.prototype.prepareTaskAreaContainer=function(){this._taskAreaRender.prepareTaskAreaContainer()},e.prototype.getTaskAreaContainerWidth=function(){return this._taskAreaRender.taskAreaContainer.getWidth()},e.prototype.createHighlightRowElement=function(e){this._taskAreaRender.createHighlightRowElement(e)},e.prototype.getSmallTaskWidth=function(e){return this._taskRender.getSmallTaskWidth(e)},e.prototype.createTaskElement=function(e){this._taskRender.createTaskElement(e,this._ganttView.settings.taskContentTemplate)},e.prototype.removeTaskElement=function(e){this._taskRender.removeTaskElement(e)},e.prototype.recreateTaskElement=function(e){this._taskRender.recreateTaskElement(e)},e.prototype.createDefaultTaskElement=function(e){this._taskRender.createDefaultTaskElement(e)},e.prototype.getScaleItemText=function(e,t){var n=this._gridLayoutCalculator.getScaleItemStart(e,t);
21return this.getScaleItemTextByStart(n,t)},e.prototype.getScaleItemTextByStart=function(e,t){return this._elementTextHelper.getScaleItemText(e,t)},e.prototype.getTextWidth=function(e){return this._elementTextHelper.getTextWidth(e)},e.prototype.getTaskVisibility=function(e){return this.gridLayoutCalculator.isTaskInRenderedRange(e)&&this._elementTextHelper.getTaskVisibility(e)},e.prototype.getTaskResourcesVisibility=function(e){return this.getTaskVisibility(e)&&!this.gridLayoutCalculator.isTaskCutByRange(e)},e.prototype.getScaleItemTextTemplate=function(e){return this._elementTextHelper.getScaleItemTextTemplate(e)},e.prototype.getTaskText=function(e){return this._elementTextHelper.getTaskText(e)},e.prototype.taskAreaManagerDetachEvents=function(){this.taskAreaManager.detachEvents()},e.prototype.attachEventsOnTask=function(e){this.taskAreaManager.attachEventsOnTask(this._taskRender.taskElements[e])},e.prototype.detachEventsOnTask=function(e){this.taskAreaManager.detachEventsOnTask(this._taskRender.taskElements[e])},e}();t.RenderHelper=v},4966:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourseRender=void 0;var r=n(658),i=function(){function e(e){this._resourcesElements=[],this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){return this._resourcesElements},enumerable:!1,configurable:!0}),e.prototype.getViewItem=function(e){return this._renderHelper.getViewItem(e)},e.prototype.getTaskResourcesVisibility=function(e){return this._renderHelper.getTaskResourcesVisibility(e)},e.prototype.createResources=function(e){for(var t=this.getViewItem(e).resources.items,n=0;n<t.length;n++)this.createResourceElement(e,t[n])},e.prototype.createResourcesWrapperElement=function(e){var t=this.gridLayoutCalculator.getTaskResourcesWrapperElementInfo(e);r.RenderElementUtils.create(t,e,this.taskArea,this.resourcesElements),this.resourcesElements[e].style.display=this.getTaskResourcesVisibility(e)?"":"none"},e.prototype.createResourceElement=function(e,t){var n=this.gridLayoutCalculator.getTaskResourceElementInfo();t.color&&(n.style.backgroundColor=t.color);var i=r.RenderElementUtils.create(n,e,this.resourcesElements[e]);i.innerText=t.text,this.gridLayoutCalculator.checkAndCorrectElementDisplayByRange(i)},e}();t.ResourseRender=i},6700:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleRender=void 0;var r=n(6907),i=n(2449),o=n(9201),s=n(4289),a=n(658),c=function(){function e(e){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=new Array,this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeScaleContainer",{get:function(){return this._timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._renderHelper.range},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewType",{get:function(){return this._renderHelper.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeScaleAreas",{get:function(){return this._timeScaleAreas},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleElements",{get:function(){return this._scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBorders",{get:function(){return this._scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedScaleItemIndices",{get:function(){return this._renderedScaleItemIndices},enumerable:!1,configurable:!0}),e.prototype.getScaleItemText=function(e,t){return this._renderHelper.getScaleItemText(e,t)},e.prototype.getTaskAreaWidth=function(){return this._renderHelper.getTaskAreaWidth()},e.prototype.reset=function(){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=[],this._timeScaleContainer.innerHTML=""},e.prototype.setTimeScaleContainerScrollLeft=function(e){this._timeScaleContainer.scrollLeft=e},e.prototype.createTimeScaleContainer=function(e){var t=document.createElement("DIV");t.className="dx-gantt-tsac",t.style.height=this.etalonSizeValues.scaleItemHeight*this.scaleCount+"px",this._timeScaleContainer=t,e.appendChild(this.timeScaleContainer)},e.prototype.createTimeScaleArea=function(){var e=document.createElement("DIV");return e.className="dx-gantt-tsa",e.style.width=this.getTaskAreaWidth()+"px",e.style.height=this.etalonSizeValues.scaleItemHeight+"px",this.timeScaleContainer.appendChild(e),this.timeScaleAreas.unshift(e),e},e.prototype.createTimeScaleAreas=function(){for(var e=0;e<this.scaleCount;e++)this.createTimeScaleArea()},e.prototype.createScaleElementCore=function(e,t,n,r){return r[n]||(r[n]=[]),a.RenderElementUtils.create(t,e,this.timeScaleAreas[n],r[n])},e.prototype.createScaleElement=function(e,t,n,o){var s=this._renderHelper.getTextWidth("a"),a=this.createScaleElementCore(e,o,t,this.scaleElements);if(a.style.lineHeight=this.etalonSizeValues.scaleItemHeight+"px",(null==o?void 0:o.size.width)>5*s){var c=this.getScaleItemText(e,n);a.innerText=c,n===i.ViewType.Quarter&&(a.style.padding="0");var u=getComputedStyle(a);o.size.width-r.DomUtils.pxToInt(u.paddingLeft)-r.DomUtils.pxToInt(u.paddingRight)<this._renderHelper.getTextWidth(c)&&(a.title=c)}return a},e.prototype.createScaleBorder=function(e,t,n){var r=this.gridLayoutCalculator.getScaleBorderInfo(e,n);return this.createScaleElementCore(e,r,t,this.scaleBorders)},e.prototype.createScaleElementAndBorder=function(e,t,n){var r=this.gridLayoutCalculator.getScaleElementInfo(e,n),i=this.createScaleElement(e,t,n,r),o=this.createScaleBorder(e,t,n);this.onScaleCellPrepared(n,t,i,o,r.additionalInfo.range)},e.prototype.removeScaleElementAndBorder=function(e,t){a.RenderElementUtils.remove(null,e,this.timeScaleAreas[t],this.scaleElements[t]),a.RenderElementUtils.remove(null,e,this.timeScaleAreas[t],this.scaleBorders[t])},e.prototype.recreateScalesElements=function(){this.recreateScaleElements(this.viewType,0),this.recreateScaleElements(o.DateUtils.ViewTypeToScaleMap[this.viewT
21ype],1)},e.prototype.recreateScaleElements=function(e,t){var n=this,r=this.gridLayoutCalculator.getRenderedScaleItemIndices(e,this.renderedColIndices),i=this.renderedScaleItemIndices[e-this.viewType]||[];a.RenderElementUtils.recreate(i,r,function(e){n.removeScaleElementAndBorder(e,t)},function(r){n.createScaleElementAndBorder(r,t,e)}),this.renderedScaleItemIndices[e-this.viewType]=r},Object.defineProperty(e.prototype,"dispatcher",{get:function(){return this._renderHelper.dispatcher},enumerable:!1,configurable:!0}),e.prototype.onScaleCellPrepared=function(e,t,n,r,i){var o=new s.ScaleCellPreparedArguments({scaleType:e,scaleIndex:t,range:i,scaleElement:n,separatorElement:r});this.dispatcher.notifyScaleCellPrepared(o)},e}();t.ScaleRender=c},8148:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StripLinesRender=void 0;var r=n(658),i=function(){function e(e){this._stripLinesMap=[],this._renderedStripLines=[],this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLinesMap",{get:function(){return this._stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedStripLines",{get:function(){return this._renderedStripLines},set:function(e){this._renderedStripLines=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLines",{get:function(){return this._renderHelper.stripLines},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._renderedStripLines=[]},e.prototype.recreateStripLines=function(){var e=this,t=this.gridLayoutCalculator.getRenderedStripLines(this.stripLines);r.RenderElementUtils.recreate(this.renderedStripLines,t,function(t){r.RenderElementUtils.remove(t,null,e.taskArea,e.stripLinesMap)},function(t){return r.RenderElementUtils.create(t,null,e.taskArea,e.stripLinesMap)}),this.renderedStripLines=t},e}();t.StripLinesRender=i},2349:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaRender=void 0;var r=n(6907),i=n(658),o=function(){function e(e){this._vertTaskAreaBorders=[],this._horTaskAreaBorders=[],this._isExternalTaskAreaContainer=!1,this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},set:function(e){this._renderHelper.renderedRowIndices=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},set:function(e){this._renderHelper.renderedColIndices=e}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vertTaskAreaBorders",{get:function(){return this._vertTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"horTaskAreaBorders",{get:function(){return this._horTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainer",{get:function(){return this._taskAreaContainer},enumerable:!1,configurable:!0}),e.prototype.getExternalTaskAreaContainer=function(e){return this._renderHelper.getExternalTaskAreaContainer(e)},e.prototype.prepareExternalTaskAreaContainer=function(e,t){return this._renderHelper.prepareExternalTaskAreaContainer(e,t)},e.prototype.isAllowTaskAreaBorders=function(e){return this._renderHelper.isAllowTaskAreaBorders(e)},e.prototype.getTaskAreaContainerElement=function(){return this._taskAreaContainer.getElement()},e.prototype.initTaskAreaContainer=function(e){this._renderHelper.createTaskArea(e),this._taskAreaContainer=this.getExternalTaskAreaContainer(e),this._isExternalTaskAreaContainer=!!this._taskAreaContainer,null==this.taskAreaContainer&&(this._taskAreaContainer=this._renderHelper.getTaskAreaContainer(e))},e.prototype.createTaskElement=function(e){this._renderHelper.createTaskElement(e)},e.prototype.removeTaskElement=function(e){this._renderHelper.removeTaskElement(e)},e.prototype.reset=function(){this._horTaskAreaBorders=[],this._vertTaskAreaBorders=[]},e.prototype.prepareTaskAreaContainer=function(){var e="dx-gantt-tac-hb",t=this.getTaskAreaContainerElement();this.areHorizontalBordersEnabled?r.DomUtils.addClassName(t,e):r.DomUtils.removeClassName(t,e);var n=parseInt(getComputedStyle(t).getPropertyValue("margin-top"))||0,i="calc(100% - ".concat(this.etalonSizeValues.scaleItemHeight*this.scaleCount+n,"px)");this._isExternalTaskAreaContainer?this.prepareExternalTaskAreaContainer(t,{height:i}):t.style.height=i},e.prototype.createTaskAreaContainer=function(){var e=document.createElement("DIV");e.className="dx-gantt-tac",this.mainElement.appendChild(e),this.initTaskAreaContainer(e),this.prepareTaskAreaContainer()},e.prototype.createTaskAreaBorder=function(e,t){var n=this.gridLayoutCalculator.getTaskAreaBorderInfo(e,t);i.RenderElementUtils.create(n,e,this.taskArea,this.getTaskAreaBordersDictionary(t))},e.prototype.createTaskArea=function(){var e=document.createElement("DIV");return e.id="dx-gantt-ta",e},e.prototype.removeTaskAreaBorder=function(e,t){i.RenderElementUtils.remove(null,e,this.taskArea,this.getTaskAreaBordersDictionary(t))},e.prototype.createTaskAreaBorderAndTaskElement=function(e,t){this.isAllowTaskAreaBorders(t)&&this.createTaskAreaBorder(e,!t),t&&this.createTaskElement(e)},e.prototype.removeTaskAreaBorderAndTaskElement=function(e,t){this.isAllowTaskAreaBorders(t)&&this.removeTaskAreaBorder(e,!t),t&&this.removeTaskElement(e)},e.prototype.recreateTaskAreaBordersAndTaskElements=function(e){var t=this,n=e?this.taskAreaContainerScrollTop:this.taskAreaContainerScrollLeft,r=this.gridLayoutCalculator.getRenderedRowColumnIndices(n,e),o=e?this.renderedRowIndices:this.renderedColIndices;i.RenderElementUtils.recreate(o,r,function(n){t.removeTaskAreaBorderAndTaskElement(n,e)},function(n){t.createTaskAreaBorderAndTaskElement(n,e)}),e?this.renderedRowIndices=r:this.renderedColIndices=r,this.gridLayoutCalculator.createTileToConnectorLinesMap()},e.prototype.getTaskAreaBordersDictionary=function(e){return e?this.vertTaskAreaBorders:this.horTaskAreaBorders},e.prototype.setSizeForTaskArea=function(e,t){this.taskArea.style.width=e+"px",this.taskArea.style.height=t+"px"},e.prototype.createHighlightRowElement=function(e){var t=this.gridLayoutCalculator.getHighlightRowInfo(e);i.RenderElementUtils.create(t,e,this.taskArea,this.hlRowElements)},e}();t.TaskAreaRender=o},2290:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskRender=void 0;var r=n(6907),i=n(2449),o=n(1419),s=n(658),a=function(){function e(e){this._selectionElements=[],this._taskElements=[],this._renderHelper=e,this.customTaskRender=new o.CustomTaskRender(e,this)}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator}
21,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionElements",{get:function(){return this._selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternalTaskAreaContainer",{get:function(){return this._renderHelper.isExternalTaskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){return this._renderHelper.resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResources",{get:function(){return this._renderHelper.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTextHeightKey",{get:function(){return this._renderHelper.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModelItems",{get:function(){return this._renderHelper.viewModelItems},enumerable:!1,configurable:!0}),e.prototype.isHighlightRowElementAllowed=function(e){return this._renderHelper.isHighlightRowElementAllowed(e)},e.prototype.getTaskVisibility=function(e){return this._renderHelper.getTaskVisibility(e)},e.prototype.getTaskText=function(e){return this._renderHelper.getTaskText(e)},Object.defineProperty(e.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fakeTaskWrapper",{get:function(){var e;return null!==(e=this._fakeTaskWrapper)&&void 0!==e||(this._fakeTaskWrapper=this.createFakeTaskWrapper()),this._fakeTaskWrapper},enumerable:!1,configurable:!0}),e.prototype.getViewItem=function(e){return this._renderHelper.getViewItem(e)},e.prototype.getTask=function(e){return this._renderHelper.getTask(e)},e.prototype.createHighlightRowElement=function(e){this._renderHelper.createHighlightRowElement(e)},e.prototype.getTaskDependencies=function(e){return this._renderHelper.getTaskDependencies(e)},e.prototype.addInvalidTaskDependencies=function(e){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.concat(e)},e.prototype.removeInvalidTaskDependencies=function(e){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.filter(function(t){return t.predecessorId!=e||t.successorId!=e})},e.prototype.createResources=function(e){this.showResources&&this._renderHelper.createResources(e)},e.prototype.attachEventsOnTask=function(e){this._renderHelper.attachEventsOnTask(e)},e.prototype.detachEventsOnTask=function(e){this._renderHelper.detachEventsOnTask(e)},e.prototype.recreateConnectorLineElement=function(e,t){void 0===t&&(t=!1),this._renderHelper.recreateConnectorLineElement(e,t)},e.prototype.renderTaskElement=function(e){this._renderHelper.createTaskElement(e)},e.prototype.reset=function(){var e=this;this._taskElements.forEach(function(t,n){return e.removeTaskElement(n)}),this._selectionElements=[],this._taskElements=[]},e.prototype.createTaskWrapperElement=function(e){var t=this.gridLayoutCalculator.getTaskWrapperElementInfo(e);s.RenderElementUtils.create(t,e,this.taskArea,this.taskElements),this.taskElements[e].style.display=this.getTaskVisibility(e)?"":"none"},e.prototype.createTaskElement=function(e,t){var n=this.getViewItem(e);if(t&&this.customTaskRender.createCustomTaskElement(e,t),!n.task.isValid()||!n.visible){var r=this.getTaskDependencies(n.task.internalId);return this.addInvalidTaskDependencies(r),void(n.selected&&this.createTaskSelectionElement(e))}n.isCustom||this.createDefaultTaskElement(e)},e.prototype.createTaskVisualElement=function(e){var t=this.gridLayoutCalculator.getTaskElementInfo(e,this.taskTitlePosition!==i.TaskTitlePosition.Inside),n=s.RenderElementUtils.create(t,e,this.taskElements[e]);return this.attachEventsOnTask(e),n},e.prototype.createDefaultTaskElement=function(e){var t=this.getViewItem(e);this.isHighlightRowElementAllowed(e)&&this.createHighlightRowElement(e),t.selected&&this.createTaskSelectionElement(e),this.createTaskWrapperElement(e),this.taskTitlePosition===i.TaskTitlePosition.Outside&&this.createTaskTextElement(e,this.taskElements[e]);var n=this.createTaskVisualElement(e);t.task.isMilestone()||(this.taskTitlePosition===i.TaskTitlePosition.Inside&&this.createTaskTextElement(e,n),this.createTaskProgressElement(e,n)),this.createResources(e)},e.prototype.removeTaskElement=function(e){var t=this.getTask(e);if(t&&this.removeInvalidTaskDependencies(t.id),this.detachEventsOnTask(e),this._renderHelper.hasTaskTemplate()){var n=this.taskElements[e],r=null==n?void 0:n.firstElementChild;r&&(this._renderHelper.destroyTemplate(r),n.removeChild(r))}s.RenderElementUtils.remove(null,e,this.taskArea,this.taskElements),s.RenderElementUtils.remove(null,e,this.taskArea,this.resourcesElements),s.RenderElementUtils.remove(null,e,this.taskArea,this.selectionElements),this.isHighlightRowElementAllowed(e)&&s.RenderElementUtils.remove(null,e,this.taskArea,this.hlRowElements),this.gridLayoutCalculator.resetTaskInfo(e)},e.prototype.recreateTaskElement=function(e){var t=this,n=this.renderedRowIndices.filter(function(t){return t===e}).length>0,r=this.getTask(e);if(r){n&&(this.removeTaskElement(e),this.renderTaskElement(e));var i=this.getTaskDependencies(r.internalId);
21i.length&&i.forEach(function(e){return t.recreateConnectorLineElement(e.internalId,!0)})}},e.prototype.createFakeTaskWrapper=function(){var e,t,n=null!==(t=null===(e=this.viewModelItems.filter(function(e){return e.task&&!e.task.isMilestone})[0])||void 0===e?void 0:e.visibleIndex)&&void 0!==t?t:0,r=this.gridLayoutCalculator,i=s.RenderElementUtils.create(r.getTaskWrapperElementInfo(n),null,this.taskArea),o=s.RenderElementUtils.create(r.getTaskElementInfo(n),null,i);return this.createTaskTextElement(n,o),this.createTaskProgressElement(n,o),i.style.display="none",i},e.prototype.createTaskProgressElement=function(e,t){var n=this.gridLayoutCalculator.getTaskProgressElementInfo(e);s.RenderElementUtils.create(n,e,t)},e.prototype.getTextWidth=function(e){return this._renderHelper.getTextWidth(e)},Object.defineProperty(e.prototype,"minTextWidth",{get:function(){var e;return null!==(e=this._minTextWidth)&&void 0!==e||(this._minTextWidth=5*this.getTextWidth("a")),this._minTextWidth},enumerable:!1,configurable:!0}),e.prototype.createTaskTextElement=function(t,n){var o,a,c=this.gridLayoutCalculator.getTaskTextElementInfo(t,this.taskTitlePosition===i.TaskTitlePosition.Inside);if(!c.additionalInfo.hidden){var u=s.RenderElementUtils.create(c,t,n),l=this.getTaskText(t);if(this.taskTitlePosition===i.TaskTitlePosition.Outside&&c.size.width>0){var h=getComputedStyle(u),d=c.size.width-r.DomUtils.pxToInt(h.paddingLeft);if(d>=this.minTextWidth){var f=r.DomUtils.pxToInt(h.paddingRight),p=l?this.getTextWidth(l):0;f&&p>d-f&&(f=Math.min(e.minTitleOutRightPadding,d-this.minTextWidth),u.style.paddingRight=f+"px"),p>d-f&&(u.style.overflowX="hidden",u.style.textOverflow="ellipsis")}else u.style.display="none"}l||(null!==(o=this[a=this.taskTextHeightKey])&&void 0!==o||(this[a]=this.getTaskTextHeight(u)),u.style.height=this[this.taskTextHeightKey]),u.innerText=l}},e.prototype.createTaskSelectionElement=function(e){var t=this.gridLayoutCalculator.getSelectionElementInfo(e);this.isExternalTaskAreaContainer&&!this.areHorizontalBordersEnabled&&t.size.height++,s.RenderElementUtils.create(t,e,this.taskArea,this.selectionElements)},e.prototype.getTaskTextHeight=function(e){e.innerText="WWW";var t=getComputedStyle(e).height;return e.innerText="",t},e.prototype.getSmallTaskWidth=function(e){var t=0;if(null!=e&&""!==e){var n=e.indexOf("rem");if(n>-1)try{t=parseFloat(e.substr(0,n))*parseFloat(getComputedStyle(document.documentElement).fontSize)}catch(e){}else t=r.DomUtils.pxToInt(e)}return 2*t},e.minTitleOutRightPadding=5,e}();t.TaskRender=a},2990:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditingSettings=void 0;var r=n(2491),i=function(){function e(){this.enabled=!1,this.allowDependencyDelete=!0,this.allowDependencyInsert=!0,this.allowTaskDelete=!0,this.allowTaskInsert=!0,this.allowTaskUpdate=!0,this.allowResourceDelete=!0,this.allowResourceInsert=!0,this.allowResourceUpdate=!0,this.allowTaskResourceUpdate=!0,this.taskHoverDelay=0}return e.parse=function(t){var n=new e;return t&&((0,r.isDefined)(t.enabled)&&(n.enabled=t.enabled),(0,r.isDefined)(t.allowDependencyDelete)&&(n.allowDependencyDelete=t.allowDependencyDelete),(0,r.isDefined)(t.allowDependencyInsert)&&(n.allowDependencyInsert=t.allowDependencyInsert),(0,r.isDefined)(t.allowTaskDelete)&&(n.allowTaskDelete=t.allowTaskDelete),(0,r.isDefined)(t.allowTaskInsert)&&(n.allowTaskInsert=t.allowTaskInsert),(0,r.isDefined)(t.allowTaskUpdate)&&(n.allowTaskUpdate=t.allowTaskUpdate),(0,r.isDefined)(t.allowResourceDelete)&&(n.allowResourceDelete=t.allowResourceDelete),(0,r.isDefined)(t.allowResourceInsert)&&(n.allowResourceInsert=t.allowResourceInsert),(0,r.isDefined)(t.allowResourceUpdate)&&(n.allowResourceUpdate=t.allowResourceUpdate),(0,r.isDefined)(t.allowTaskResourceUpdate)&&(n.allowTaskResourceUpdate=t.allowTaskResourceUpdate),(0,r.isDefined)(t.taskHoverDelay)&&(n.taskHoverDelay=t.taskHoverDelay)),n},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=(t=(t=(t=(t=(t=(t=t&&this.enabled===e.enabled)&&this.allowDependencyDelete===e.allowDependencyDelete)&&this.allowDependencyInsert===e.allowDependencyInsert)&&this.allowTaskDelete===e.allowTaskDelete)&&this.allowTaskInsert===e.allowTaskInsert)&&this.allowTaskUpdate===e.allowTaskUpdate)&&this.allowRes
21ourceDelete===e.allowResourceDelete)&&this.allowResourceInsert===e.allowResourceInsert)&&this.allowResourceUpdate===e.allowResourceUpdate)&&this.allowTaskResourceUpdate===e.allowTaskResourceUpdate},e}();t.EditingSettings=i},9954:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenHelperSettings=void 0;var r=n(2491),i=function(){function e(){}return e.parse=function(t){var n=new e;return t&&((0,r.isDefined)(t.getMainElement)&&(n.getMainElement=t.getMainElement),(0,r.isDefined)(t.adjustControl)&&(n.adjustControl=t.adjustControl)),n},e}();t.FullScreenHelperSettings=i},9640:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditSettings=void 0;var r=n(655),i=n(2491),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.parse=function(e){var n=new t;return e&&((0,i.isDefined)(e.getCommandManager)&&(n.getCommandManager=e.getCommandManager),(0,i.isDefined)(e.getViewModel)&&(n.getViewModel=e.getViewModel),(0,i.isDefined)(e.getGanttSettings)&&(n.getGanttSettings=e.getGanttSettings),(0,i.isDefined)(e.getRenderHelper)&&(n.getRenderHelper=e.getRenderHelper),(0,i.isDefined)(e.destroyTemplate)&&(n.destroyTemplate=e.destroyTemplate),(0,i.isDefined)(e.formatDate)&&(n.formatDate=e.formatDate),(0,i.isDefined)(e.getModelManipulator)&&(n.getModelManipulator=e.getModelManipulator),(0,i.isDefined)(e.getValidationController)&&(n.getValidationController=e.getValidationController)),n},t}(n(9080).TooltipSettings);t.TaskEditSettings=o},9080:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipSettings=void 0;var r=n(2491),i=function(){function e(){}return e.parse=function(t){var n=new e;return t&&((0,r.isDefined)(t.getHeaderHeight)&&(n.getHeaderHeight=t.getHeaderHeight),(0,r.isDefined)(t.getTaskTooltipContentTemplate)&&(n.getTaskTooltipContentTemplate=t.getTaskTooltipContentTemplate),(0,r.isDefined)(t.getTaskProgressTooltipContentTemplate)&&(n.getTaskProgressTooltipContentTemplate=t.getTaskProgressTooltipContentTemplate),(0,r.isDefined)(t.getTaskTimeTooltipContentTemplate)&&(n.getTaskTimeTooltipContentTemplate=t.getTaskTimeTooltipContentTemplate),(0,r.isDefined)(t.destroyTemplate)&&(n.destroyTemplate=t.destroyTemplate),(0,r.isDefined)(t.formatDate)&&(n.formatDate=t.formatDate),(0,r.isDefined)(t.getTaskAreaContainer)&&(n.getTaskAreaContainer=t.getTaskAreaContainer)),n},e}();t.TooltipSettings=i},5846:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationControllerSettings=void 0;var r=n(2491),i=function(){function e(){}return e.parse=function(t){var n=new e;return t&&((0,r.isDefined)(t.getViewModel)&&(n.getViewModel=t.getViewModel),(0,r.isDefined)(t.getHistory)&&(n.getHistory=t.getHistory),(0,r.isDefined)(t.getModelManipulator)&&(n.getModelManipulator=t.getModelManipulator),(0,r.isDefined)(t.getRange)&&(n.getRange=t.getRange),(0,r.isDefined)(t.getValidationSettings)&&(n.getValidationSettings=t.getValidationSettings),(0,r.isDefined)(t.updateOwnerInAutoParentMode)&&(n.updateOwnerInAutoParentMode=t.updateOwnerInAutoParentMode),(0,r.isDefined)(t.getIsValidateDependenciesRequired)&&(n.getIsValidateDependenciesRequired=t.getIsValidateDependenciesRequired)),n},e}();t.ValidationControllerSettings=i},5351:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=void 0;var r=n(2491),i=n(7880),o=n(2449),s=n(2990),a=n(9057),c=n(2762),u=n(9820),l=function(){function e(){this.viewType=void 0,this.taskTitlePosition=o.TaskTitlePosition.Inside,this.showResources=!0,this.showDependencies=!0,this.areHorizontalBordersEnabled=!0,this.areVerticalBordersEnabled=!0,this.areAlternateRowsEnabled=!0,this.allowSelectTask=!0,this.firstDayOfWeek=0,this.editing=new s.EditingSettings,this.validation=new c.ValidationSettings,this.stripLines=new a.StripLineSettings,this.viewTypeRange=new u.ViewTypeRangeSettings}return e.parse=function(t){var n=new e;return t&&((0,r.isDefined)(t.viewType)&&(n.viewType=t.viewType),(0,r.isDefined)(t.taskTitlePosition)&&(n.taskTitlePosition=t.taskTitlePosition),(0,r.isDefined)(t.showResources)&&(n.showResources=t.showResources),(0,r.isDefined)(t.showDependencies)&&
21(n.showDependencies=t.showDependencies),(0,r.isDefined)(t.areHorizontalBordersEnabled)&&(n.areHorizontalBordersEnabled=t.areHorizontalBordersEnabled),(0,r.isDefined)(t.areVerticalBordersEnabled)&&(n.areHorizontalBordersEnabled=t.areHorizontalBordersEnabled),(0,r.isDefined)(t.areAlternateRowsEnabled)&&(n.areAlternateRowsEnabled=t.areAlternateRowsEnabled),(0,r.isDefined)(t.allowSelectTask)&&(n.allowSelectTask=t.allowSelectTask),(0,r.isDefined)(t.firstDayOfWeek)&&(n.firstDayOfWeek=t.firstDayOfWeek),(0,r.isDefined)(t.startDateRange)&&(n.startDateRange=new Date(t.startDateRange)),(0,r.isDefined)(t.endDateRange)&&(n.endDateRange=new Date(t.endDateRange)),(0,r.isDefined)(t.editing)&&(n.editing=s.EditingSettings.parse(t.editing)),(0,r.isDefined)(t.validation)&&(n.validation=c.ValidationSettings.parse(t.validation)),(0,r.isDefined)(t.stripLines)&&(n.stripLines=a.StripLineSettings.parse(t.stripLines)),(0,r.isDefined)(t.viewTypeRange)&&(n.viewTypeRange=u.ViewTypeRangeSettings.parse(t.viewTypeRange)),(0,r.isDefined)(t.taskTooltipContentTemplate)&&(n.taskTooltipContentTemplate=t.taskTooltipContentTemplate),(0,r.isDefined)(t.taskProgressTooltipContentTemplate)&&(n.taskProgressTooltipContentTemplate=t.taskProgressTooltipContentTemplate),(0,r.isDefined)(t.taskTimeTooltipContentTemplate)&&(n.taskTimeTooltipContentTemplate=t.taskTimeTooltipContentTemplate),(0,r.isDefined)(t.taskContentTemplate)&&(n.taskContentTemplate=t.taskContentTemplate),(0,r.isDefined)(t.cultureInfo)&&(n.cultureInfo=t.cultureInfo)),n},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t&&this.viewType===e.viewType)&&this.taskTitlePosition===e.taskTitlePosition)&&this.showResources===e.showResources)&&this.showDependencies===e.showDependencies)&&this.areHorizontalBordersEnabled===e.areHorizontalBordersEnabled)&&this.areAlternateRowsEnabled===e.areAlternateRowsEnabled)&&this.allowSelectTask===e.allowSelectTask)&&this.editing.equal(e.editing))&&this.validation.equal(e.validation))&&this.stripLines.equal(e.stripLines))&&i.DateTimeUtils.areDatesEqual(this.startDateRange,e.startDateRange))&&i.DateTimeUtils.areDatesEqual(this.endDateRange,e.endDateRange)},e}();t.Settings=l},1442:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StripLine=void 0;var r=n(2491),i=function(){function e(e,t,n,r,i){this.isCurrent=!1,this.start=e,this.end=t,this.title=n,this.cssClass=r,this.isCurrent=i}return e.parse=function(t){var n=new e;return t&&((0,r.isDefined)(t.start)&&(n.start=t.start),(0,r.isDefined)(t.end)&&(n.end=t.end),(0,r.isDefined)(t.title)&&(n.title=t.title),(0,r.isDefined)(t.cssClass)&&(n.cssClass=t.cssClass)),n},e.prototype.clone=function(){return new e(this.start,this.end,this.title,this.cssClass,this.isCurrent)},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=t&&this.start==e.start)&&this.end==e.end)&&this.title==e.title)&&this.cssClass==e.cssClass},e}();t.StripLine=i},9057:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StripLineSettings=void 0;var r=n(2491),i=n(1442),o=function(){function e(){this.showCurrentTime=!1,this.currentTimeUpdateInterval=6e4,this.stripLines=[]}return e.parse=function(t){var n=new e;if(t&&((0,r.isDefined)(t.showCurrentTime)&&(n.showCurrentTime=t.showCurrentTime),(0,r.isDefined)(t.currentTimeUpdateInterval)&&(n.currentTimeUpdateInterval=t.currentTimeUpdateInterval),(0,r.isDefined)(t.currentTimeTitle)&&(n.currentTimeTitle=t.currentTimeTitle),(0,r.isDefined)(t.currentTimeCssClass)&&(n.currentTimeCssClass=t.currentTimeCssClass),(0,r.isDefined)(t.stripLines)))for(var o=0;o<t.stripLines.length;o++)n.stripLines.push(i.StripLine.parse(t.stripLines[o]));return n},e.prototype.equal=function(e){var t=!0;if(t=(t=(t=(t=(t=t&&this.showCurrentTime==e.showCurrentTime)&&this.currentTimeUpdateInterval==e.currentTimeUpdateInterval)&&this.currentTimeTitle==e.currentTimeTitle)&&this.currentTimeCssClass==e.currentTimeCssClass)&&this.stripLines.length===e.stripLines.length)for(var n=0;n<e.stripLines.length;n++)t=t&&this.stripLines[n].equal(e.stripLines[n]);return t},e}();t.StripLineSettings=o},2762:(e,t,n)=>
21{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationSettings=void 0;var r=n(2491),i=function(){function e(){this.validateDependencies=!1,this.autoUpdateParentTasks=!1,this.enablePredecessorGap=!1}return e.parse=function(t){var n=new e;return t&&((0,r.isDefined)(t.validateDependencies)&&(n.validateDependencies=t.validateDependencies),(0,r.isDefined)(t.autoUpdateParentTasks)&&(n.autoUpdateParentTasks=t.autoUpdateParentTasks),(0,r.isDefined)(t.enablePredecessorGap)&&(n.enablePredecessorGap=t.enablePredecessorGap)),n},e.prototype.equal=function(e){var t=!0;return(t=(t=t&&this.validateDependencies===e.validateDependencies)&&this.autoUpdateParentTasks===e.autoUpdateParentTasks)&&this.enablePredecessorGap===e.enablePredecessorGap},e}();t.ValidationSettings=i},9820:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ViewTypeRangeSettings=void 0;var r=n(2491),i=n(2449),o=function(){function e(){this.min=i.ViewType.TenMinutes,this.max=i.ViewType.Years}return e.parse=function(t){var n=new e;return t&&((0,r.isDefined)(t.min)&&(n.min=t.min),(0,r.isDefined)(t.max)&&(n.max=t.max)),n},e.prototype.equal=function(e){var t=!0;return(t=t&&this.min===e.min)&&this.max===e.max},e}();t.ViewTypeRangeSettings=o},9201:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateUtils=void 0;var r=n(2449),i=function(){function e(){}var t;return e.getDaysInQuarter=function(t){var n=3*Math.floor(t.getMonth()/3);return[n,n+1,n+2].reduce(function(n,r){return n+e.getDaysInMonth(r,t.getFullYear())},0)},e.getDaysInMonth=function(e,t){return new Date(t,e+1,0).getDate()},e.getOffsetInMonths=function(e,t){return 12*(t.getFullYear()-e.getFullYear())+t.getMonth()-e.getMonth()},e.getOffsetInQuarters=function(e,t){return 4*(t.getFullYear()-e.getFullYear())+Math.floor(t.getMonth()/3)-Math.floor(e.getMonth()/3)},e.getNearestScaleTickDate=function(e,t,n,r){var i=new Date,o=t.start.getTime(),s=t.end.getTime();if(i.setTime(e.getTime()),e.getTime()<o)i.setTime(o);else if(e.getTime()>s)i.setTime(s);else if(this.needCorrectDate(e,o,n,r)){var a=this.getNearestLeftTickTime(e,o,n,r),c=this.getNextTickTime(a,n,r);Math.abs(e.getTime()-a)>Math.abs(e.getTime()-c)?i.setTime(c):i.setTime(a)}return i},e.needCorrectDate=function(e,t,n,i){return i==r.ViewType.Months?e.getTime()!==new Date(e.getFullYear(),e.getMonth(),1).getTime():(e.getTime()-t)%n!=0},e.getNearestLeftTickTime=function(e,t,n,i){return i==r.ViewType.Months?new Date(e.getFullYear(),e.getMonth(),1).getTime():t+Math.floor((e.getTime()-t)/n)*n},e.getNextTickTime=function(e,t,n){if(n==r.ViewType.Months){var i=new Date;return i.setTime(e),i.setMonth(i.getMonth()+1),i.getTime()}return e+t},e.adjustStartDateByViewType=function(e,t,n){switch(void 0===n&&(n=0),t){case r.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case r.ViewType.SixHours:case r.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate());case r.ViewType.Days:case r.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+n);case r.ViewType.Months:case r.ViewType.Quarter:case r.ViewType.Years:return new Date(e.getFullYear(),0,1);default:return new Date}},e.adjustEndDateByViewType=function(e,t,n){switch(void 0===n&&(n=0),t){case r.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+1);case r.ViewType.SixHours:case r.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1);case r.ViewType.Days:case r.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()+7-e.getDay()+n);case r.ViewType.Months:case r.ViewType.Quarter:case r.ViewType.Years:return new Date(e.getFullYear()+1,0,1);default:return new Date}},e.roundStartDate=function(e,t){switch(t){case r.ViewType.TenMinutes:case r.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()-1);case r.ViewType.SixHours:case r.ViewType.Days:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-1);case r.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case r.ViewType.Months:return new Date(e.getFullYear(),e.getMonth()-1);case r.ViewType.Quarter:case r.ViewType.Years:return new Date(e.getFullYear()-1,0,1);default:return new Date}},e.getTickTimeSpan=function(t){switch(t){case r.ViewType.TenMinutes:return e.msPerHour/6;case r.ViewType.Hours:return e.msPerHour;case r.ViewType.SixHours:return 6*e.msPerHour;case r.ViewType.Days:return e.msPerDay;case r.ViewType.Weeks:return e.msPerWeek;case r.ViewType.Months:return e.msPerMonth;case r.ViewType.Quarter:return 3*e.msPerMonth;case r.ViewType.Years:return e.msPerYear}}
21,e.getRangeTickCount=function(t,n,i){return i===r.ViewType.Months?this.getRangeTickCountInMonthsViewType(t,n):i===r.ViewType.Quarter?this.getRangeTickCountInQuarterViewType(t,n):e.getRangeMSPeriod(t,n)/e.getTickTimeSpan(i)},e.getRangeMSPeriod=function(t,n){return n.getTime()-e.getDSTTotalDelta(t,n)-t.getTime()},e.getRangeTickCountInMonthsViewType=function(t,n){var r=new Date(t.getFullYear(),t.getMonth(),1),i=new Date(n.getFullYear(),n.getMonth(),1);return e.getOffsetInMonths(r,i)+(n.getTime()-i.getTime())/(e.getDaysInMonth(n.getMonth(),n.getFullYear())*e.msPerDay)-(t.getTime()-r.getTime())/(e.getDaysInMonth(t.getMonth(),t.getFullYear())*e.msPerDay)},e.getRangeTickCountInQuarterViewType=function(t,n){var r=new Date(t.getFullYear(),3*Math.floor(t.getMonth()/3),1),i=new Date(n.getFullYear(),3*Math.floor(n.getMonth()/3),1);return e.getOffsetInQuarters(r,i)+(n.getTime()-i.getTime())/(e.getDaysInQuarter(i)*e.msPerDay)-(t.getTime()-r.getTime())/(e.getDaysInQuarter(r)*e.msPerDay)},e.parse=function(e){return"function"==typeof e?new Date(e()):new Date(e)},e.getOrCreateUTCDate=function(e){var t=e.getTimezoneOffset();return t?new Date(e.valueOf()+6e4*t):e},e.getTimezoneOffsetDiff=function(e,t){return t.getTimezoneOffset()-e.getTimezoneOffset()},e.getDSTDelta=function(t,n){var r=e.getTimezoneOffsetDiff(t,n)*e.msPerMinute;return r>0?r:0},e.getDSTTotalDelta=function(t,n){if(!e.hasDST())return 0;for(var r=t,i=0,o=r.getFullYear(),s=r.getMonth();r<n;){s>=5?(o++,s=0):s=5;var a=new Date(o,s,1);a>n&&(a=n),i+=e.getDSTDelta(r,a),r=a}return i},e.getDSTCorrectedTaskEnd=function(t,n){var r=t.getTime()+n,i=e.getDSTTotalDelta(t,new Date(r));return new Date(r+i)},e.hasDST=function(){var t=(new Date).getFullYear(),n=new Date(t,0,1),r=new Date(t,5,1);return 0!==e.getTimezoneOffsetDiff(n,r)},e.msPerMinute=6e4,e.msPerHour=36e5,e.msPerDay=24*e.msPerHour,e.msPerWeek=7*e.msPerDay,e.msPerMonth=30*e.msPerDay,e.msPerYear=365*e.msPerDay,e.ViewTypeToScaleMap=((t={})[r.ViewType.TenMinutes]=r.ViewType.Hours,t[r.ViewType.Hours]=r.ViewType.Days,t[r.ViewType.SixHours]=r.ViewType.Days,t[r.ViewType.Days]=r.ViewType.Weeks,t[r.ViewType.Weeks]=r.ViewType.Months,t[r.ViewType.Months]=r.ViewType.Years,t[r.ViewType.Quarter]=r.ViewType.Years,t[r.ViewType.Years]=r.ViewType.FiveYears,t),e}();t.DateUtils=i},8380:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ElementTextHelper=void 0;var r=n(6907),i=n(2449),o=n(9201),s=function(){function e(e){this.longestAbbrMonthName=null,this.longestMonthName=null,this.longestAbbrDayName=null;var t=document.createElement("canvas");this.textMeasureContext=t.getContext("2d"),this.cultureInfo=e}return e.prototype.setFont=function(e){var t=r.DomUtils.getCurrentStyle(e),n=t.font?t.font:t.fontStyle+" "+t.fontVariant+" "+t.fontWeight+" "+t.fontSize+" / "+t.lineHeight+" "+t.fontFamily;this.textMeasureContext.font=n},e.prototype.setSettings=function(e,t,n){this.startTime=e,this.viewType=t,this.modelItems=n},e.prototype.getScaleItemText=function(e,t){var n=this.viewType.valueOf()===t.valueOf();switch(t){case i.ViewType.TenMinutes:return this.getTenMinutesScaleItemText(e);case i.ViewType.Hours:case i.ViewType.SixHours:return this.getHoursScaleItemText(e);case i.ViewType.Days:return this.getDaysScaleItemText(e,n);case i.ViewType.Weeks:return this.getWeeksScaleItemText(e,n);case i.ViewType.Months:return this.getMonthsScaleItemText(e,n);case i.ViewType.Quarter:return this.getQuarterScaleItemText(e,n);case i.ViewType.Years:return this.getYearsScaleItemText(e);case i.ViewType.FiveYears:return this.getFiveYearsScaleItemText(e)}},e.prototype.getTenMinutesScaleItemText=function(e){var t=e.getMinutes()+1;return(10*Math.ceil(t/10)).toString()},e.prototype.getThirtyMinutesScaleItemText=function(e){return e.getMinutes()<30?"30":"60"},e.prototype.getHoursScaleItemText=function(e){var t=e.getHours(),n=this.getHourDisplayText(t),r=t<12?this.getAmText():this.getPmText();return this.getHoursScaleItemTextCore(n,r)},e.prototype.getDaysScaleItemText=function(e,t){return this.getDayTotalText(e,!0,t,t,!t)},e.prototype.getWeeksScaleItemText=function(e,t){var n=o.DateUtils.getDSTCorrectedTaskEnd(e,o.DateUtils.msPerWeek-o.DateUtils.msPerDay);return this.getWeeksScaleItemTextCore(this.getDayTotalText(e,t,!0,t,!t),this.getDayTotalText(n,t,!0,t,!t))},e.prototype.getMonthsScaleItemText=function(e,t){var n=this.getMonthNames(),r=t?"":e.getFullYear().toString();return this.getMonthsScaleItemTextCore(n[e.getMonth()],r)},e.prototype.getQuarterScaleItemText=function(e,t){var n=this.getQuarterNames(),r=t?"":e.getFullYear().toString();return this.getMonthsScaleItemTextCore(n[Math.floor(e.getMonth()/3)],r)},e.prototype.getYearsScaleItemText=function(e){return e.getFullYear().toString()},e.prototype.getFiveYearsScaleItemText=function(e){return e.getFullYear().toString()+" - "+(e.getFullYear()+4).toString()},e.prototype.getHourDisplayText=function(e){return this.hasAmPm()?(0==e?12:e<=12?e:e-12).toString():e<10?"0"+e:e.toString()},e.prototype.getDayTotalText=function(e,t,n,r,i){var o=r?this.getAbbrMonthNames():this.getMonthNames(),s=n?this.getAbbrDayNames():this.getDayNames(),a=t?s[e.getDay()]:"",c=e.getDate(),u=o[e.getMonth()],l=i?e.getFullYear().toString():"";return this.getDayTotalTextCore(a,c.toString(),u,l)},e.prototype.getTaskText=function(e){var t=this.modelItems[e];return t?t.task.title:""},e.prototype.getTaskVisibility=function(e){var t=this.modelItems[e];return!!t&&t.getVisible()},e.prototype.hasAmPm=function(){return this.getAmText().length>0||this.getPmText().length>0},e.prototype.getScaleItemTextTemplate=function(e){switch(e){case i.ViewType.TenMinutes:return"00";case i.ViewType.Hours:case i.ViewType.SixHours:return this.getHoursScaleItemTextCore("00",this.getAmText());case i.ViewType.Days:return this.getDayTextTemplate();case i.ViewType.Weeks:return this.getWeekTextTemplate();case i.ViewType.Months:return this.getMonthsScaleItemTextCore(this.getLongestMonthName(),"");case i.ViewType.Quarter:return"Q4";case i.ViewType.Years:return"0000"}},e.prototype.getDayTextTemplate=function(){return this.getDayTotalTextCore(this.getLongestAbbrDayName(),"00",this.getLongestAbbrMonthName(),"")},e.prototype.getWeekTextTemplate=function(){var e=this.getDayTextTemplate();return this.getWeeksScaleItemTextCore(e,e)},e.prototype.getHoursScaleItemTextCore=function(e,t){return e+":00"+(this.hasAmPm()?" "+t:"")},e.prototype.getDayTotalTextCore=function(e,t,n,r){var i=e.length>0?e+", ":"";return i+=t+" "+n,i+(r.length>0?" "+r:"")},e.prototype.getWeeksScaleItemTextCore=function(e,t){return e+" - "+t},e.prototype.getMonthsScaleItemTextCore=function(e,t){var n=e;return t.length>0&&(n+=" "+t),n},e.prototype.getLongestAbbrMonthName=function(){return null==this.longestAbbrMonthName&&(this.longestAbbrMonthName=this.getLongestText(this.getAbbrMonthNames())),this.longestAbbrMonthName},e.prototype.getLongestMonthName=function(){return null==this.longestMonthName&&(this.longestMonthName=this.getLongestText(this.getMonthNames())),this.longestMonthName},e.prototype.getLongestAbbrDayName=function(){return null==this.longestAbbrDayName&&(this.longestAbbrDayName=this.getLongestText(this.getAbbrDayNames())),this.longestAbbrDayName},e.prototype.getLongestText=function(e){var t=this,n="",r=0;return e.forEach(function(e){var i=t.getTextWidth(e);i>r&&(r=i,n=e)}),n},e.prototype.getTextWidth=function(e){return Math.round(this.textMeasureContext.measureText(e).width)},e.prototype.getAmText=function(){return this.cultureInfo.amText},e.prototype.getPmText=function(){return this.cultureInfo.pmText},e.prototype.getQuarterNames=function(){return this.cultureInfo.quarterN
vendor: 6,489 bytes, line 21
21ames},e.prototype.getMonthNames=function(){return this.cultureInfo.monthNames},e.prototype.getDayNames=function(){return this.cultureInfo.dayNames},e.prototype.getAbbrMonthNames=function(){return this.cultureInfo.abbrMonthNames},e.prototype.getAbbrDayNames=function(){return this.cultureInfo.abbrDayNames},e}();t.ElementTextHelper=s},655:(e,t,n)=>{n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>b,__asyncValues:()=>C,__await:()=>v,__awaiter:()=>l,__classPrivateFieldGet:()=>P,__classPrivateFieldSet:()=>E,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:()=>T,__importStar:()=>x,__makeTemplateObject:()=>_,__metadata:()=>u,__param:()=>c,__read:()=>A,__rest:()=>s,__spread:()=>g,__spreadArray:()=>y,__spreadArrays:()=>m,__values:()=>p});var r=function(e,t){return r=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])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};
vendor: 8,370 bytes, lines 21-23
21function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return S(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.GanttView=e.default=void 0,n(8721);var t=n(2366);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.GanttView}}),Object.defineProperty(e,"GanttView",{enumerable:!0,get:function(){return t.GanttView}})})(),r})())},24974:function(e,t,n){
22/*! ExcelJS 19-10-2023 */
23!function(t){e.exports=t()}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var c=void 0;if(!a&&c)return require(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){return i(t[s][1][e]||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";const r=e("fs"),i=e("fast-csv"),o=e("dayjs/plugin/customParseFormat"),s=e("dayjs/plugin/utc"),a=e("dayjs").extend(o).extend(s),c=e("../utils/stream-buf"),{fs:{exists:u}}=e("../utils/utils"),l={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};t.exports=class{constructor(e){this.workbook=e,this.worksheet=null}async readFile(e,t){if(t=t||{},!await u(e))throw new Error("File not found: "+e);const n=r.createReadStream(e),i=await this.read(n,t);return n.close(),i}read(e,t){return t=t||{},new Promise((n,r)=>{const o=this.workbook.addWorksheet(t.sheetName),s=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],c=t.map||function(e){if(""===e)return null;const t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;const n=s.reduce((t,n)=>{if(t)return t;const r=a(e,n,!0);return r.isValid()?r:null},null);if(n)return new Date(n.valueOf());const r=l[e];return void 0!==r?r:e},u=i.parse(t.parserOptions).on("data",e=>{o.addRow(e.map(c))}).on("end",()=>{u.emit("worksheet",o)});u.on("worksheet",n).on("error",r),e.pipe(u)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise((n,r)=>{t=t||{};const o=this.workbook.getWorksheet(t.sheetName||t.sheetId),s=i.format(t.formatterOptions);e.on("finish",()=>{n()}),s.on("error",r),s.pipe(e);const{dateFormat:c,dateUTC:u}=t,l=t.map||(e=>{if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return c?u?a.utc(e).format(c):a(e).format(c):u?a.utc(e).format():a(e).format();if(e.error)return e.error;if("object"==typeof e)return JSON.stringify(e)}return e}),h=void 0===t.includeEmptyRows||t.includeEmptyRows;let d=1;o&&o.eachRow((e,t)=>{if(h)for(;d++<t-1;)s.write([]);const{values:n}=e;n.shift(),s.write(n.map(l)),d=t}),s.end()})}writeFile(e,t){const n={encoding:(t=t||{}).encoding||"utf8"},i=r.createWriteStream(e,n);return this.write(i,t)}async writeBuffer(e){const t=new c;return await this.write(t,e),t.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,n){"use strict";const r=e("../utils/col-cache");class i{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=e,t)if("string"==typeof t){const e=r.decodeAddress(t);this.nativeCol=e.col+n,this.nativeColOff=0,this.nativeRow=e.row+n,this.nativeRowOff=0}else void 0!==t.nativeCol?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):void 0!==t.col?(this.col=t.col+n,this.row=t.row+n):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(e){return e instanceof i||null==e?e:new i(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}t.exports=i},{"../utils/col-cache":19}],3:[function(e,t,n){"use strict";const r=e("../utils/col-cache"),i=e("../utils/under-dash"),o=e("./enums"),{slideFormula:s}=e("../utils/shared-formula"),a=e("./note");class c{constructor(e,t,n){if(!e||!t)throw new Error("A Cell needs a Row");this._row=e,this._column=t,r.validateAddress(n),this._address=n,this._value=u.create(c.Types.Null,this),this.style=this._mergeStyle(e.style,t.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,n){const r=e&&e.numFmt||t&&t.numFmt;r&&(n.numFmt=r);const i=e&&e.font||t&&t.font;i&&(n.font=i);const o=e&&e.alignment||t&&t.alignment;o&&(n.alignment=o);const s=e&&e.border||t&&t.border;s&&(n.border=s);const a=e&&e.fill||t&&t.fill;a&&(n.fill=a);const c=e&&e.protection||t&&t.protection;return c&&(n.protection=c),n}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===c.Types.Merge}merge(e,t){this._value.release(),this._value=u.create(c.Types.Merge,this,e),t||(this.style=e.style)}
vendor: 46,303 bytes, line 23
23unmerge(){this.type===c.Types.Merge&&(this._value.release(),this._value=u.create(c.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(e){return this._value.type===c.Types.Merge&&this._value.isMergedTo(e)}get master(){return this.type===c.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===c.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){this.type!==c.Types.Merge?(this._value.release(),this._value=u.create(u.getType(e),this,e)):this._value.master.value=e}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new a(e)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){this.type===c.Types.String&&(this._value=u.create(c.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress),e.forEach(e=>{t.addEx(this.fullAddress,e)})}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e}set model(e){if(this._value.release(),this._value=u.create(e.type,this),this._value.model=e,e.comment)switch(e.comment.type){case"note":this._comment=a.fromModel(e.comment)}e.style?this.style=e.style:this.style={}}}c.Types=o.ValueType;const u={getType:e=>null==e?c.Types.Null:e instanceof String||"string"==typeof e?c.Types.String:"number"==typeof e?c.Types.Number:"boolean"==typeof e?c.Types.Boolean:e instanceof Date?c.Types.Date:e.text&&e.hyperlink?c.Types.Hyperlink:e.formula||e.sharedFormula?c.Types.Formula:e.richText?c.Types.RichText:e.sharedString?c.Types.SharedString:e.error?c.Types.Error:c.Types.JSON,types:[{t:c.Types.Null,f:class{constructor(e){this.model={address:e.address,type:c.Types.Null}}get value(){return null}set value(e){}get type(){return c.Types.Null}get effectiveType(){return c.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}},{t:c.Types.Number,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Number}get effectiveType(){return c.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.String,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:c.Types.Date,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Date}get effectiveType(){return c.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Hyperlink,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip&&(this.model.tooltip=t.tooltip)}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return c.Types.Hyperlink}get effectiveType(){return c.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:c.Types.Formula,f:class{constructor(e,t){this.cell=e,this.model={address:e.address,type:c.Types.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}}_copyModel(e){const t={},n=n=>{const r=e[n];r&&(t[n]=r)};return n("formula"),n("result"),n("ref"),n("shareType"),n("sharedFormula"),t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(u.getType(e)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return c.Types.Formula}get effectiveType(){const e=this.model.result;return null==e?o.ValueType.Null:e instanceof String||"string"==typeof e?o.ValueType.String:"number"==typeof e?o.ValueType.Number:e instanceof Date?o.ValueType.Date:e.text&&e.hyperlink?o.ValueType.Hyperlink:e.formula?o.ValueType.Formula:o.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell,t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&s(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:c.Types.Merge,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Merge,master:t?t.address:void 0},this._master=t,t&&t.addMergeRef()}get value(){return this._master.value}set value(e){e instanceof c?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return c.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:c.Types.JSON,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:c.Types.SharedString,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.SharedString}get effectiveType(){return c.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.RichText,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map(e=>e.text).join("")}get type(){return c.Types.RichText}get effectiveType(){return c.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:c.Types.Boolean,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Boolean}get effectiveType(){return c.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Error,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Error}get effectiveType(){return c.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((e,t)=>(e[t.t]=t.f,e),[]),create(e,t,n){const r=this.types[e];if(!r)throw new Error("Could not create Value of type "+e);return new r(t,n)}};t.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,n){"use strict";const r=e("../utils/under-dash"),i=e("./enums"),o=e("../utils/col-cache");class s{constructor(e,t,n){this._worksheet=e,this._number=t,!1!==n&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){void 0!==e?(this._header=e,this.headers.forEach((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&r.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,t){const n=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(e,r)=>{t(e.getCell(n),r)})}get values(){const e=[];return this.eachCell((t,n)=>{t&&t.type!==i.ValueType.Null&&(e[n]=t.value)}),e}set values(e){if(!e)return;const t=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((e,r)=>{this._worksheet.getCell(r+n,t).value=e})}_applyStyle(e,t){return this.style[e]=t,this.eachCell(n=>{n[e]=t}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let n=null;return e&&e.forEach((e,r)=>{e.isDefault?n&&(n=null):n&&e.equivalentTo(n)?n.max=r+1:(n={min:r+1,max:r+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(n))}),t.length?t:void 0}static fromModel(e,t){const n=[];let r=1,i=0;for(t=(t=t||[]).sort(function(e,t){return e.min-t.min});i<t.length;){const o=t[i++];for(;r<o.min;)n.push(new s(e,r++));for(;r<=o.max;)n.push(new s(e,r++,o))}return n.length?n:null}}t.exports=s},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,n){"use strict";t.exports=class{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=void 0}}},{}],6:[function(e,t,n){"use strict";const r=e("../utils/under-dash"),i=e("../utils/col-cache"),o=e("../utils/cell-matrix"),s=e("./range"),a=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new o)}add(e,t){const n=i.decodeEx(e);this.addEx(n,t)}addEx(e,t){const n=this.getMatrix(t);if(e.top)for(let r=e.left;r<=e.right;r++)for(let t=e.top;t<=e.bottom;t++){const o={sheetName:e.sheetName,address:i.n2l(r)+t,row:t,col:r};n.addCellEx(o)}else n.addCellEx(e)}remove(e,t){const n=i.decodeEx(e);this.removeEx(n,t)}removeEx(e,t){this.getMatrix(t).removeCellEx(e)}removeAllNames(e){r.each(this.matrixMap,t=>{t.removeCellEx(e)})}forEach(e){r.each(this.matrixMap,(t,n)=>{t.forEach(t=>{e(n,t)})})}getNames(e){return this.getNamesEx(i.decodeEx(e))}getNamesEx(e){return r.map(this.matrixMap,(t,n)=>t.findCellEx(e)&&n).filter(Boolean)}_explore(e,t){t.mark=!1;const{sheetName:n}=t,r=new s(t.row,t.col,t.row,t.col,n);let i,o;function a(i,o){const s=e.findCellAt(n,i,t.col);return!(!s||!s.mark)&&(r[o]=i,s.mark=!1,!0)}for(o=t.row-1;a(o,"top");o--);for(o=t.row+1;a(o,"bottom");o++);function c(t,i){const s=[];for(o=r.top;o<=r.bottom;o++){const r=e.findCellAt(n,o,t);if(!r||!r.mark)return!1;s.push(r)}r[i]=t;for(let e=0;e<s.length;e++)s[e].mark=!1;return!0}for(i=t.col-1;c(i,"left");i--);for(i=t.col+1;c(i,"right");i++);return r}getRanges(e,t){return(t=t||this.matrixMap[e])?(t.forEach(e=>{e.mark=!0}),{name:e,ranges:t.map(e=>e.mark&&this._explore(t,e)).filter(Boolean).map(e=>e.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,t){e.forEachInSheet(t,(e,t,n)=>{e&&(e.row===t&&e.col===n||(e.row=t,e.col=n,e.address=i.n2l(n)+t))})}spliceRows(e,t,n,i){r.each(this.matrixMap,r=>{r.spliceRows(e,t,n,i),this.normaliseMatrix(r,e)})}spliceColumns(e,t,n,i){r.each(this.matrixMap,r=>{r.spliceColumns(e,t,n,i),this.normaliseMatrix(r,e)})}get model(){return r.map(this.matrixMap,(e,t)=>this.getRanges(t,e)).filter(e=>e.ranges.length)}set model(e){const t=this.matrixMap={};e.forEach(e=>{const n=t[e.name]=new o;e.ranges.forEach(e=>{a.test(e.split("!").pop()||"")&&n.addCell(e)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,n){"use strict";t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,n){"use strict";const r=e("../utils/col-cache"),i=e("./anchor");t.exports=class{constructor(e,t){this.worksheet=e,this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(e){let{type:t,imageId:n,range:o,hyperlinks:s}=e;if(this.type=t,this.imageId=n,"image"===t)if("string"==typeof o){const e=r.decode(o);this.range={tl:new i(this.worksheet,{col:e.left,row:e.top},-1),br:new i(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,o.tl,0),br:o.br&&new i(this.worksheet,o.br,0),ext:o.ext,editAs:o.editAs,hyperlinks:s||o.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,n){"use strict";const r=e("../utils/under-dash");class i{constructor(e){this.note=e}get model(){let e=null;switch(typeof this.note){case"string":e={type:"note",note:{texts:[{text:this.note}]}};break;default:e={type:"note",note:this.note}}return r.deepMerge({},i.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e,{texts:n}=t;1===n.length&&1===Object.keys(n[0]).length?this.note=n[0].text:this.note=t}static fromModel(e){const t=new i;return t.model=e,t}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,n){"use strict";const r=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(e,t,n,i,o){if(arguments.length<4){const i=r.decodeAddress(e),s=r.decodeAddress(t);this.model={top:Math.min(i.row,s.row),left:Math.min(i.col,s.col),bottom:Math.max(i.row,s.row),right:Math.max(i.col,s.col),sheetName:n},this.setTLBR(i.row,i.col,s.row,s.col,o)}else this.model={top:Math.min(e,n),left:Math.min(t,i),bottom:Math.max(e,n),right:Math.max(t,i),sheetName:o}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof i)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=r.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+e.length)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;return e?/^[a-zA-Z0-9]*$/.test(e)?e+"!":`'${e}'!`:""}expand(e,t,n,r){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||r>this.right)&&(this.right=r)}expandRow(e){if(e){const{dimensions:t,number:n}=e;t&&this.expand(n,t.min,n,t.max)}}expandToAddress(e){const t=r.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return r.n2l(this.left)+this.top}get $t$l(){return`$${r.n2l(this.left)}$${this.top}`}get br(){return r.n2l(this.right)+this.bottom}get $b$r(){return`$${r.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&!(e.bottom<this.top)&&!(e.top>this.bottom)&&!(e.right<this.left)&&!(e.left>this.right)}contains(e){const t=r.decodeEx(e);return this.containsEx(t)}containsEx(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++)for(let n=this.top;n<=this.bottom;n++)e(r.encodeAddress(n,t),n,t)}}t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,n){"use strict";const r=e("../utils/under-dash"),i=e("./enums"),o=e("../utils/col-cache"),s=e("./cell");t.exports=class{constructor(e,t){this._worksheet=e,this._number=t,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const n=this._worksheet.getColumn(e.col);t=new s(this,n,e.address),this._cells[e.col-1]=t}return t}getCell(e){if("string"==typeof e){const t=this._worksheet.getColumnKey(e);e=t?t.number:o.l2n(e)}return this._cells[e-1]||this.getCellEx({address:o.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t){const n=e+t;for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];const s=i.length-t,a=this._cells.length;let c,u,l;if(s<0)for(c=e+i.length;c<=a;c++)l=this._cells[c-1],u=this._cells[c-s-1],u?(l=this.getCell(c),l.value=u.value,l.style=u.style,l._comment=u._comment):l&&(l.value=null,l.style={},l._comment=void 0);else if(s>0)for(c=a;c>=n;c--)u=this._cells[c-1],u?(l=this.getCell(c+s),l.value=u.value,l.style=u.style,l._comment=u._comment):this._cells[c+s-1]=void 0;for(c=0;c<i.length;c++)l=this.getCell(e+c),l.value=i[c],l.style={},l._comment=void 0}eachCell(e,t){if(t||(t=e,e=null),e&&e.includeEmpty){const e=this._cells.length;for(let n=1;n<=e;n++)t(this.getCell(n),n)}else this._cells.forEach((e,n)=>{e&&e.type!==i.ValueType.Null&&t(e,n+1)})}addPageBreak(e,t){const n=this._worksheet,r=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,o={id:this._number,max:i,man:1};r&&(o.min=r),n.rowBreaks.push(o)}get values(){const e=[];return this._cells.forEach(t=>{t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let t=0;e.hasOwnProperty("0")&&(t=1),e.forEach((e,n)=>{void 0!==e&&(this.getCellEx({address:o.encodeAddress(this._number,n+t),row:this._number,col:n+t}).value=e)})}else this._worksheet.eachColumnKey((t,n)=>{void 0!==e[n]&&(this.getCellEx({address:o.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[n])})}get hasValues(){return r.some(this._cells,e=>e&&e.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,t=0;return this._cells.forEach(n=>{n&&n.type!==i.ValueType.Null&&((!e||e>n.col)&&(e=n.col),t<n.col&&(t=n.col))}),e>0?{min:e,max:t}:null}_applyStyle(e,t){return this.style[e]=t,this._cells.forEach(n=>{n&&(n[e]=t)}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0,n=0;return this._cells.forEach(r=>{if(r){const i=r.model;i&&((!t||t>r.col)&&(t=r.col),n<r.col&&(n=r.col),e.push(i))}}),this.height||e.length?{cells:e,number:this.number,min:t,max:n,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let t;this._cells=[],e.cells.forEach(e=>{switch(e.type){case s.Types.Merge:break;default:{let n;if(e.address)n=o.decodeAddress(e.address);else if(t){const{row:e}=t,r=t.col+1;n={row:e,col:r,address:o.encodeAddress(e,r),$col$row:`$${o.n2l(r)}$${e}`}}t=n,this.getCellEx(n).model=e;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,n){"use strict";const r=e("../utils/col-cache");class i{constructor(e,t,n){this.table=e,this.column=t,this.index=n}_set(e,t){this.table.cacheState(),this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}t.exports=class{constructor(e,t){this.worksheet=e,t&&(this.table=t,this.validate(),this.store())}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+e.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:e}=this,t=(e,t,n)=>{void 0===e[t]&&(e[t]=n)};t(e,"headerRow",!0),t(e,"totalsRow",!1),t(e,"style",{}),t(e.style,"theme","TableStyleMedium2"),t(e.style,"showFirstColumn",!1),t(e.style,"showLastColumn",!1),t(e.style,"showRowStripes",!1),t(e.style,"showColumnStripes",!1);const n=(e,t)=>{if(!e)throw new Error(t)};n(e.ref,"Table must have ref"),n(e.columns,"Table must have column definitions"),n(e.rows,"Table must have row definitions"),e.tl=r.decodeAddress(e.ref);const{row:i,col:o}=e.tl;n(i>0,"Table must be on valid row"),n(o>0,"Table must be on valid col");const{width:s,filterHeight:a,tableHeight:c}=this;e.autoFilterRef=r.encode(i,o,i+a-1,o+s-1),e.tableRef=r.encode(i,o,i+c-1,o+s-1),e.columns.forEach((e,r)=>{n(e.name,`Column ${r} must have a name`),0===r?t(e,"totalsRowLabel","Total"):(t(e,"totalsRowFunction","none"),e.totalsRowFormula=this.getFormula(e))})}store(){const e=(e,t)=>{t&&Object.keys(t).forEach(n=>{e[n]=t[n]})},{worksheet:t,table:n}=this,{row:r,col:i}=n.tl;let o=0;if(n.headerRow){const s=t.getRow(r+o++);n.columns.forEach((t,n)=>{const{style:r,name:o}=t,a=s.getCell(i+n);a.value=o,e(a,r)})}if(n.rows.forEach(s=>{const a=t.getRow(r+o++);s.forEach((t,r)=>{const o=a.getCell(i+r);o.value=t,e(o,n.columns[r].style)})}),n.totalsRow){const s=t.getRow(r+o++);n.columns.forEach((t,n)=>{const r=s.getCell(i+n);if(0===n)r.value=t.totalsRowLabel;else{const e=this.getFormula(t);r.value=e?{formula:t.totalsRowFormula,result:t.totalsRowResult}:null}e(r,t.style)})}}load(e){const{table:t}=this,{row:n,col:r}=t.tl;let i=0;if(t.headerRow){const o=e.getRow(n+i++);t.columns.forEach((e,t)=>{o.getCell(r+t).value=e.name})}if(t.rows.forEach(t=>{const o=e.getRow(n+i++);t.forEach((e,t)=>{o.getCell(r+t).value=e})}),t.totalsRow){const o=e.getRow(n+i++);t.columns.forEach((e,t)=>{const n=o.getCell(r+t);0===t?n.value=e.totalsRowLabel:this.getFormula(e)&&(n.value={formula:e.totalsRowFormula,result:e.totalsRowResult})})}}get model(){return this.table}set model(e){this.table=e}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const e=r.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let t=0;t<this._cache.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)n.getCell(e.col+t).value=null}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)n.getCell(e.col+t).value=null}for(let t=0;t<this.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++)n.getCell(e.col+t).value=null}}this.store()}addRow(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}removeRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new i(this,t,e)}addColumn(e,t,n){this.cacheState(),void 0===n?(this.table.columns.push(e),this.table.rows.forEach((e,n)=>{e.push(t[n])})):(this.table.columns.splice(n,0,e),this.table.rows.forEach((e,r)=>{e.splice(n,0,t[r])}))}removeColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach(n=>{n.splice(e,t)})}_assign(e,t,n){this.cacheState(),e[t]=n}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}},{"../utils/col-cache":19}],13:[function(e,t,n){"use strict";const r=e("./worksheet"),i=e("./defined-names"),o=e("../xlsx/xlsx"),s=e("../csv/csv");t.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}get csv(){return this._csv||(this._csv=new s(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,t){const n=this.nextId;t&&("string"==typeof t?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),t={properties:{tabColor:t}}));const i=this._worksheets.reduce((e,t)=>(t&&t.orderNo)>e?t.orderNo:e,0),o=Object.assign({},t,{id:n,name:e,orderNo:i+1,workbook:this}),s=new r(o);return this._worksheets[n]=s,s}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);t&&t.destroy()}getWorksheet(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find(t=>t&&t.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,t)=>e.orderNo-t.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(t=>{e(t,t.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(t=>{const{id:n,name:i,state:o}=t,s=e.sheets&&e.sheets.findIndex(e=>e.id===n);(this._worksheets[n]=new r({id:n,name:i,orderNo:s,state:o,workbook:this})).model=t}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,n){"use strict";const r=e("../utils/under-dash"),i=e("../utils/col-cache"),o=e("./range"),s=e("./row"),a=e("./column"),c=e("./enums"),u=e("./image"),l=e("./table"),h=e("./data-validations"),d=e("../utils/encryptor"),{copyStyle:f}=e("../utils/copy-style");t.exports=class{constructor(e){e=e||{},this._workbook=e.workbook,this.id=e.id,this.orderNo=e.orderNo,this.name=e.name,this.state=e.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},e.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.dataValidations=new h,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(void 0===e&&(e="sheet"+this.id),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+e);if(e&&e.length>31&&(console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`),e=e.substring(0,31)),this._workbook._worksheets.find(t=>t&&t.name.toLowerCase()===e.toLowerCase()))throw new Error("Worksheet name already exists: "+e);this._name=e}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new o;return this._rows.forEach(t=>{if(t){const n=t.dimensions;n&&e.expand(t.number,n.min,t.number,n.max)}}),e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce((e,t)=>{const n=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,n)},0);let t=1;const n=this._columns=[];e.forEach(e=>{const r=new a(this,t++,!1);n.push(r),r.defn=e})}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){r.each(this._keys,e)}getColumn(e){if("string"==typeof e){const t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new a(this,t++))}return this._columns[e-1]}spliceColumns(e,t){const n=this._rows.length;for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(i.length>0)for(let u=0;u<n;u++){const n=[e,t];i.forEach(e=>{n.push(e[u]||null)});const r=this.getRow(u+1);r.splice.apply(r,n)}else this._rows.forEach(n=>{n&&n.splice(e,t)});const s=i.length-t,a=e+t,c=this._columns.length;if(s<0)for(let u=e+i.length;u<=c;u++)this.getColumn(u).defn=this.getColumn(u-s).defn;else if(s>0)for(let u=c;u>=a;u--)this.getColumn(u+s).defn=this.getColumn(u).defn;for(let u=e;u<e+i.length;u++)this.getColumn(u).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,i.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;return this.eachRow(t=>{e=Math.max(e,t.cellCount)}),e}get actualColumnCount(){const e=[];let t=0;return this.eachRow(n=>{n.eachCell(n=>{let{col:r}=n;e[r]||(e[r]=!0,t++)})}),t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;for(;t>0&&void 0===e[t-1];)t--;return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;return this.eachRow(()=>{e++}),e}getRow(e){let t=this._rows[e-1];return t||(t=this._rows[e-1]=new s(this,e)),t}getRows(e,t){if(t<1)return;const n=[];for(let r=e;r<e+t;r++)n.push(this.getRow(r));return n}addRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const n=this._nextRow,r=this.getRow(n);return r.values=e,this._setStyleOption(n,"i"===t[0]?t:"n"),r}addRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const n=[];return e.forEach(e=>{n.push(this.addRow(e,t))}),n}insertRow(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,n),this.getRow(e)}insertRows(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows(e,0,...t),"n"!==n)for(let r=0;r<t.length;r++)"o"===n[0]&&void 0!==this.findRow(t.length+e+r)?this._copyStyle(t.length+e+r,e+r,"+"===n[1]):"i"===n[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+r,"+"===n[1]);return this.getRows(e,t.length)}_setStyleOption(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}_copyStyle(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.getRow(e),i=this.getRow(t);i.style=f(r.style),r.eachCell({includeEmpty:n},(e,t)=>{i.getCell(t).style=f(e.style)}),i.height=r.height}duplicateRow(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this._rows[e-1],i=new Array(t).fill(r.values);this.spliceRows(e+1,n?0:t,...i);for(let o=0;o<t;o++){const t=this._rows[e+o];t.style=r.style,t.height=r.height,r.eachCell({includeEmpty:!0},(e,n)=>{t.getCell(n).style=e.style})}}spliceRows(e,t){const n=e+t;for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];const s=i.length,a=s-t,c=this._rows.length;let u,l;if(a<0)for(e===c&&(this._rows[c-1]=void 0),u=n;u<=c;u++)if(l=this._rows[u-1],l){const e=this.getRow(u+a);e.values=l.values,e.style=l.style,e.height=l.height,l.eachCell({includeEmpty:!0},(t,n)=>{e.getCell(n).style=t.style}),this._rows[u-1]=void 0}else this._rows[u+a-1]=void 0;else if(a>0)for(u=c;u>=n;u--)if(l=this._rows[u-1],l){const e=this.getRow(u+a);e.values=l.values,e.style=l.style,e.height=l.height,l.eachCell({includeEmpty:!0},(t,n)=>{if(e.getCell(n).style=t.style,"MergeValue"===t._value.constructor.name){const e=this.getRow(t._row._number+s).getCell(n),r=t._value._master,i=this.getRow(r._row._number+s).getCell(r._column._number);e.merge(i)}})}else this._rows[u+a-1]=void 0;for(u=0;u<s;u++){const t=this.getRow(e+u);t.style={},t.values=i[u]}this.workbook.definedNames.spliceRows(this.name,e,t,s)}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){const e=this._rows.length;for(let n=1;n<=e;n++)t(this.getRow(n),n)}else this._rows.forEach(e=>{e&&e.hasValues&&t(e,e.number)})}getSheetValues(){const e=[];return this._rows.forEach(t=>{t&&(e[t.number]=t.values)}),e}findCell(e,t){const n=i.getAddress(e,t),r=this._rows[n.row-1];return r?r.findCell(n.col):void 0}getCell(e,t){const n=i.getAddress(e,t);return this.getRow(n.row).getCellEx(n)}mergeCells(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new o(t);this._mergeCellsInternal(r)}mergeCellsWithoutStyle(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new o(t);this._mergeCellsInternal(r,!0)}_mergeCellsInternal(e,t){r.each(this._merges,t=>{if(t.intersects(e))throw new Error("Cannot merge already merged cells")});const n=this.getCell(e.top,e.left);for(let r=e.top;r<=e.bottom;r++)for(let i=e.left;i<=e.right;i++)(r>e.top||i>e.left)&&this.getCell(r,i).merge(n,t);this._merges[n.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++)for(let n=t.left;n<=t.right;n++)this.getCell(e,n).unmerge();delete this._merges[e.address]}}get hasMerges(){return r.some(this._merges,Boolean)}unMergeCells(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new o(t);for(let i=r.top;i<=r.bottom;i++)for(let e=r.left;e<=r.right;e++){const t=this.findCell(i,e);t&&(t.type===c.ValueType.Merge?this._unMergeMaster(t.master):this._merges[t.address]&&this._unMergeMaster(t))}}fillFormula(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared";const o=i.decode(e),{top:s,left:a,bottom:c,right:u}=o,l=u-a+1,h=i.encodeAddress(s,a),d="shared"===r;let f;f="function"==typeof n?n:Array.isArray(n)?Array.isArray(n[0])?(e,t)=>n[e-s][t-a]:(e,t)=>n[(e-s)*l+(t-a)]:()=>{};let p=!0;for(let i=s;i<=c;i++)for(let n=a;n<=u;n++)p?(this.getCell(i,n).value={shareType:r,formula:t,ref:e,result:f(i,n)},p=!1):this.getCell(i,n).value=d?{sharedFormula:h,result:f(i,n)}:f(i,n)}addImage(e,t){const n={type:"image",imageId:e,range:t};this._media.push(new u(this,n))}getImages(){return this._media.filter(e=>"image"===e.type)}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new u(this,t))}getBackgroundImageId(){const e=this._media.find(e=>"background"===e.type);return e&&e.imageId}protect(e,t){return new Promise(n=>{this.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e&&"spinCount"in t&&delete this.sheetProtection.spinCount),n()})}unprotect(){this.sheetProtection=null}addTable(e){const t=new l(this,e);return this.tables[e.name]=t,t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}
vendor: 2,723 bytes, line 23
23removeConditionalFormatting(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(e=>e.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(e=>e.model),conditionalFormattings:this.conditionalFormattings};e.cols=a.toModel(this.columns);const t=e.rows=[],n=e.dimensions=new o;return this._rows.forEach(e=>{const r=e&&e.model;r&&(n.expand(r.number,r.min,r.number,r.max),t.push(r))}),e.merges=[],r.each(this._merges,t=>{e.merges.push(t.range)}),e}_parseRows(e){this._rows=[],e.rows.forEach(e=>{const t=new s(this,e.number);this._rows[t.number-1]=t,t.model=e})}_parseMergeCells(e){r.each(e.mergeCells,e=>{this.mergeCellsWithoutStyle(e)})}set model(e){this.name=e.name,this._columns=a.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new h(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map(e=>new u(this,e)),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((e,t)=>{const n=new l;return n.model=t,e[t.name]=n,e},{}),this.conditionalFormattings=e.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,n){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const r={Workbook:e("./doc/workbook")},i=e("./doc/enums");
vendor: 178,553 bytes, line 23
23Object.keys(i).forEach(e=>{r[e]=i[e]}),t.exports=r},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,n){"use strict";const r="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");n.bufferToString=function(e){return"string"==typeof e?e:r?r.decode(e):e.toString()}},{}],17:[function(e,t,n){"use strict";const r="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");n.stringToBuffer=function(e){return"string"!=typeof e?e:r?i.from(r.encode(e).buffer):i.from(e)}},{buffer:220}],18:[function(e,t,n){"use strict";const r=e("./under-dash"),i=e("./col-cache");t.exports=class{constructor(e){this.template=e,this.sheets={}}addCell(e){this.addCellEx(i.decodeEx(e))}getCell(e){return this.findCellEx(i.decodeEx(e),!0)}findCell(e){return this.findCellEx(i.decodeEx(e),!1)}findCellAt(e,t,n){const r=this.sheets[e],i=r&&r[t];return i&&i[n]}addCellEx(e){if(e.top)for(let t=e.top;t<=e.bottom;t++)for(let n=e.left;n<=e.right;n++)this.getCellAt(e.sheetName,t,n);else this.findCellEx(e,!0)}getCellEx(e){return this.findCellEx(e,!0)}findCellEx(e,t){const n=this.findSheet(e,t),r=this.findSheetRow(n,e,t);return this.findRowCell(r,e,t)}getCellAt(e,t,n){const r=this.sheets[e]||(this.sheets[e]=[]),o=r[t]||(r[t]=[]);return o[n]||(o[n]={sheetName:e,address:i.n2l(n)+t,row:t,col:n})}removeCellEx(e){const t=this.findSheet(e);if(!t)return;const n=this.findSheetRow(t,e);n&&delete n[e.col]}forEachInSheet(e,t){const n=this.sheets[e];n&&n.forEach((e,n)=>{e&&e.forEach((e,r)=>{e&&t(e,n,r)})})}forEach(e){r.each(this.sheets,(t,n)=>{this.forEachInSheet(n,e)})}map(e){const t=[];return this.forEach(n=>{t.push(e(n))}),t}findSheet(e,t){const n=e.sheetName;return this.sheets[n]?this.sheets[n]:t?this.sheets[n]=[]:void 0}findSheetRow(e,t,n){const{row:r}=t;return e&&e[r]?e[r]:n?e[r]=[]:void 0}findRowCell(e,t,n){const{col:r}=t;return e&&e[r]?e[r]:n?e[r]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}spliceRows(e,t,n,r){const i=this.sheets[e];if(i){const e=[];for(let t=0;t<r;t++)e.push([]);i.splice(t,n,...e)}}spliceColumns(e,t,n,i){const o=this.sheets[e];if(o){const e=[];for(let t=0;t<i;t++)e.push(null);r.each(o,r=>{r.splice(t,n,...e)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,n){"use strict";const r=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:e=>e<=26?1:e<=676?2:3,_fill(e){let t,n,r,i,o,s=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;s<=26;)t=this._dictionary[s-1],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(s=27;s<=702;)n=s-27,r=n%26,i=Math.floor(n/26),t=this._dictionary[i]+this._dictionary[r],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(s=703;s<=16384;)n=s-703,r=n%26,i=Math.floor(n/26)%26,o=Math.floor(n/676),t=this._dictionary[o]+this._dictionary[i]+this._dictionary[r],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=3}},l2n(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: "+e);return this._l2n[e]},n2l(e){if(e<1||e>16384)throw new Error(e+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress(e){if(!r.test(e))throw new Error("Invalid Address: "+e);return!0},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t)return t;let n=!1,r="",i=0,o=!1,s="",a=0;for(let u,l=0;l<e.length;l++)if(u=e.charCodeAt(l),!o&&u>=65&&u<=90)n=!0,r+=e[l],i=26*i+u-64;else if(u>=48&&u<=57)o=!0,s+=e[l],a=10*a+u-48;else if(o&&n&&36!==u)break;if(n){if(i>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else i=void 0;o||(a=void 0);const c={address:e=r+s,col:i,row:a,$col$row:`$${r}$${s}`};return i<=100&&a<=100&&(this._hash[e]=c,this._hash[c.$col$row]=c),c},getAddress(e,t){if(t){const n=this.n2l(t)+e;return this.decodeAddress(n)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(2===t.length){const e=this.decodeAddress(t[0]),n=this.decodeAddress(t[1]),r={top:Math.min(e.row,n.row),left:Math.min(e.col,n.col),bottom:Math.max(e.row,n.row),right:Math.max(e.col,n.col)};return r.tl=this.n2l(r.left)+r.top,r.br=this.n2l(r.right)+r.bottom,r.dimensions=`${r.tl}:${r.br}`,r}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),n=t[1]||t[2],r=t[3],i=r.split(":");if(i.length>1){let e=this.decodeAddress(i[0]),t=this.decodeAddress(i[1]);const r=Math.min(e.row,t.row),o=Math.min(e.col,t.col),s=Math.max(e.row,t.row),a=Math.max(e.col,t.col);return e=this.n2l(o)+r,t=this.n2l(a)+s,{top:r,left:o,bottom:s,right:a,sheetName:n,tl:{address:e,col:o,row:r,$col$row:`$${this.n2l(o)}$${r}`,sheetName:n},br:{address:t,col:a,row:s,$col$row:`$${this.n2l(a)}$${s}`,sheetName:n},dimensions:`${e}:${t}`}}if(r.startsWith("#"))return n?{sheetName:n,error:r}:{error:r};const o=this.decodeAddress(r);return n?{sheetName:n,...o}:o},encodeAddress:(e,t)=>i.n2l(t)+e,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[n,r,,i,o]=e,[s,a]=t;return s>=n&&s<=i&&a>=r&&a<=o}};t.exports=i},{}],20:[function(e,t,n){"use strict";const r=(e,t)=>({...e,...t.reduce((t,n)=>(e[n]&&(t[n]={...e[n]}),t),{})}),i=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e[n]&&(t[n]=r(e[n],i))};n.copyStyle=e=>{if(!e)return e;if(t=e,0===Object.keys(t).length)return{};var t;const n={...e};return i(e,n,"font",["color"]),i(e,n,"alignment"),i(e,n,"protection"),e.border&&(i(e,n,"border"),i(e.border,n.border,"top",["color"]),i(e.border,n.border,"left",["color"]),i(e.border,n.border,"bottom",["color"]),i(e.border,n.border,"right",["color"]),i(e.border,n.border,"diagonal",["color"])),e.fill&&(i(e,n,"fill",["fgColor","bgColor","center"]),e.fill.stops&&(n.fill.stops=e.fill.stops.map(e=>r(e,["color"])))),n}},{}],21:[function(e,t,n){(function(n){(function(){"use strict";const r=e("crypto"),i={hash(e){const t=r.createHash(e);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return t.update(n.concat(o)),t.digest()},convertPasswordToHash(e,t,i,o){if(t=t.toLowerCase(),r.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const s=n.from(e,"utf16le");let a=this.hash(t,n.from(i,"base64"),s);for(let r=0;r<o;r++){const e=n.alloc(4);e.writeUInt32LE(r,0),a=this.hash(t,a,e)}return a.toString("base64")},randomBytes:e=>r.randomBytes(e)};t.exports=i}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,n){"use strict";const{SaxesParser:r}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:o}=e("./browser-buffer-decode");t.exports=async function*(e){e.pipe&&!e[Symbol.asyncIterator]&&(e=e.pipe(new i));const t=new r;let n;t.on("error",e=>{n=e});let s=[];t.on("opentag",e=>s.push({eventType:"opentag",value:e})),t.on("text",e=>s.push({eventType:"text",value:e})),t.on("closetag",e=>s.push({eventType:"closetag",value:e}));for await(const r of e){if(t.write(o(r)),n)throw n;yield s,s=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,n){"use strict";const r=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,n){const s=r.decode(t),a=r.decode(n);return e.replace(i,(e,t,n,i,c)=>{if(c)return e;const u=o.exec(i);if(u){const n=u[1],i=u[2].toUpperCase(),o=u[3],c=u[4];if(i.length>3||3===i.length&&i>"XFD")return e;let l=r.l2n(i),h=parseInt(c,10);return n||(l+=a.col-s.col),o||(h+=a.row-s.row),(t||"")+(n||"")+r.n2l(l)+(o||"")+h}return e})}}},{"./col-cache":19}],24:[function(e,t,n){(function(n,r){(function(){"use strict";const i=e("readable-stream"),o=e("./utils"),s=e("./string-buf");class a{constructor(e,t){this._data=e,this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,n,r){return this.toBuffer().copy(e,t,n,r)}toBuffer(){return this._buffer||(this._buffer=r.from(this._data,this._encoding)),this._buffer}}class c{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,n,r){return this._data._buf.copy(e,t,n,r)}toBuffer(){return this._data.toBuffer()}}class u{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,n,r){this._data.copy(e,t,n,r)}toBuffer(){return this._data}}class l{constructor(e){this.size=e,this.buffer=r.alloc(e),this.iRead=0,this.iWrite=0}toBuffer(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;const e=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=r.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}write(e,t,n){const r=Math.min(n,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+r),this.iWrite+=r,r}}const h=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};o.inherits(h,i.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map(e=>e.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full)return e}const e=new l(this.bufSize);return this.buffers.push(e),e},async _pipe(e){await Promise.all(this.pipes.map(function(t){return new Promise(n=>{t.write(e.toBuffer(),()=>{n()})})}))},_writeToBuffers(e){let t=0;const n=e.length;for(;t<n;)t+=this._getWritableBuffer().write(e,t,n-t)},async write(e,t,i){let l;if(t instanceof Function&&(i=t,t="utf8"),i=i||o.nop,e instanceof s)l=new c(e);else if(e instanceof r)l=new u(e);else{if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");l=new a(e,t)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(l);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(l),n.nextTick(i)):(await this._pipe(l),i());else this.paused||this.emit("data",l.toBuffer()),this._writeToBuffers(l),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(e,t,n){const r=e=>{e?n(e):(this._flush(),this.pipes.forEach(e=>{e.end()}),this.emit("finish"))};e?this.write(e,t,r):r()},read(e){let t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){const n=this.buffers[0],r=n.read(e);e-=r.length,t.push(r),n.eod&&n.full&&this.buffers.shift()}return r.concat(t)}return t=this.buffers.map(e=>e.toBuffer()).filter(Boolean),this.buffers=[],r.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe(e){this.pipes=this.pipes.filter(t=>t!==e)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),t.exports=h}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,n){(function(e){(function(){"use strict";t.exports=class{constructor(t){this._buf=e.alloc(t&&t.size||16384),this._encoding=t&&t.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(e){e=e||0,this._buffer=void 0,this._inPos=e}_grow(t){let n=2*this._buf.length;for(;n<t;)n*=2;const r=e.alloc(n);this._buf.copy(r,0),this._buf=r}addText(e){this._buffer=void 0;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}addStringBuf(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,n){"use strict";const{toString:r}=Object.prototype,i=/["&<>]/,o={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach(n=>{t(e[n],n)}))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some(n=>t(e[n],n)))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every(n=>t(e[n],n)))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map(n=>t(e[n],n)):[]},keyBy:(e,t)=>e.reduce((e,n)=>(e[n[t]]=n,e),{}),isEqual:function(e,t){const n=typeof e,r=typeof t,i=Array.isArray(e),s=Array.isArray(t);let a;if(n!==r)return!1;switch(typeof e){case"object":if(i||s)return!(!i||!s)&&e.length===t.length&&e.every((e,n)=>{const r=t[n];return o.isEqual(e,r)});if(null===e||null===t)return e===t;if(a=Object.keys(e),Object.keys(t).length!==a.length)return!1;for(const e of a)if(!t.hasOwnProperty(e))return!1;return o.every(e,(e,n)=>{const r=t[n];return o.isEqual(e,r)});default:return e===t}},escapeHtml(e){const t=i.exec(e);if(!t)return e;let n="",r="",o=0,s=t.index;for(;s<e.length;s++){switch(e.charAt(s)){case'"':r="&quot;";break;case"&":r="&amp;";break;case"'":r="&apos;";break;case"<":r="&lt;";break;case">":r="&gt;";break;default:continue}o!==s&&(n+=e.substring(o,s)),o=s+1,n+=r}return o!==s?n+e.substring(o,s):n},strcmp:(e,t)=>e<t?-1:e>t?1:0,isUndefined:e=>"[object Undefined]"===r.call(e),isObject:e=>"[object Object]"===r.call(e),deepMerge(){const e=arguments[0]||{},{length:t}=arguments;let n,r,i;function s(t,s){n=e[s],i=Array.isArray(t),o.isObject(t)||i?(i?(i=!1,r=n&&Array.isArray(n)?n:[]):r=n&&o.isObject(n)?n:{},e[s]=o.deepMerge(r,t)):o.isUndefined(t)||(e[s]=t)}for(let a=0;a<t;a++)o.each(arguments[a],s);return e}};t.exports=o},{}],27:[function(e,t,r){(function(n,r){(function(){"use strict";const i=e("fs"),o=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,s={nop(){},promiseImmediate:e=>new Promise(t=>{n.setImmediate?r(()=>{t(e)}):setTimeout(()=>{t(e)},1)}),inherits:function(e,t,n,r){e.super_=t,r||(r=n,n=null),n&&Object.keys(n).forEach(t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))});const i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};r&&Object.keys(r).forEach(e=>{i[e]=Object.getOwnPropertyDescriptor(r,e)}),e.prototype=Object.create(t.prototype,i)},dateToExcel:(e,t)=>25569+e.getTime()/864e5-(t?1462:0),excelToDate(e,t){const n=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=s.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=o.exec(e);if(!t)return e;let n="",r="",i=0,s=t.index;for(;s<e.length;s++){const t=e.charCodeAt(s);switch(t){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&apos;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;case 127:r="";break;default:if(t<=31&&(t<=8||t>=11&&13!==t)){r="";break}continue}i!==s&&(n+=e.substring(i,s)),i=s+1,r&&(n+=r)}return i!==s?n+e.substring(i,s):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,e=>{switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}}),validInt(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt(e){return!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)},fs:{exists:e=>new Promise(t=>{i.access(e,i.constants.F_OK,e=>{t(!e)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>!0===e||"true"===e||1===e||"1"===e};t.exports=s}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,n){"use strict";const r=e("./under-dash"),i=e("./utils");function o(e,t,n){e.push(` ${t}="${i.xmlEncode(n.toString())}"`)}function s(e,t){if(t){const n=[];r.each(t,(e,t)=>{void 0!==e&&o(n,t,e)}),e.push(n.join(""))}}class a{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(e){const t=this._xml;t.push("<?xml"),s(t,e),t.push("?>\n")}openNode(e,t){const n=this.tos,r=this._xml;n&&this.open&&r.push(">"),this._stack.push(e),r.push("<"),r.push(e),s(r,t),this.leaf=!0,this.open=!0}addAttribute(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&o(this._xml,e,t)}addAttributes(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s(this._xml,e)}writeText(e){const t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}writeXml(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}closeNode(){const e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}leafNode(e,t,n){this.openNode(e,t),void 0!==n&&this.writeText(n),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}get xml(){return this.closeAll(),this._xml.join("")}}a.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=a},{"./under-dash":26,"./utils":27}],29:[function(e,t,n){(function(n){(function(){"use strict";const r=e("events"),i=e("jszip"),o=e("./stream-buf"),{stringToBuffer:s}=e("./browser-buffer-encode");class a extends r.EventEmitter{constructor(e){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),this.zip=new i,this.stream=new o}append(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(n.browser&&"string"==typeof e&&(e=s(e)),this.zip.file(t.name,e))}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e),this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}t.exports={ZipWriter:a}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,n){"use strict";t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,t,n){"use strict";t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,t,n){"use strict";const r=e("../../utils/parse-sax"),i=e("../../utils/xml-stream");class o{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof o?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e)for(const{eventType:e,value:n}of t)if("opentag"===e)this.parseOpen(n);else if("text"===e)this.parseText(n);else if("closetag"===e&&!this.parseClose(n.name))return this.model;return this.model}async parseStream(e){return this.parse(r(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new i;return this.render(t,e),t.xml}static toAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e.toString()}static toStringAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.toAttribute(e,t,n)}static toStringValue(e,t){return void 0===e?t:e}static toBoolAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e?"1":"0"}static toBoolValue(e,t){return void 0===e?t:"1"===e}static toIntAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.toAttribute(e,t,n)}static toIntValue(e,t){return void 0===e?t:parseInt(e,10)}static toFloatAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.toAttribute(e,t,n)}static toFloatValue(e,t){return void 0===e?t:parseFloat(e)}}t.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../../../utils/col-cache");function o(e){try{return i.decodeEx(e),!0}catch(e){return!1}}function s(e){const t=[];let n=!1,r="";return e.split(",").forEach(e=>{if(!e)return;const i=(e.match(/'/g)||[]).length;if(!i)return void(n?r+=e+",":o(e)&&t.push(e));const s=i%2==0;!n&&s&&o(e)?t.push(e):n&&!s?(n=!1,o(r+e)&&t.push(r+e),r=""):(n=!0,r+=e+",")}),t}t.exports=class extends r{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}parseOpen(e){switch(e.name){case"definedName":return this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:s(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,n){"use strict";const r=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){return"sheet"===e.name&&(this.model={name:r.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(e){return"calcPr"===e.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){const n={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(n.visibility=t.visibility),e.leafNode("workbookView",n)}parseOpen(e){if("workbookView"===e.name){const t=this.model={},n=function(e,n,r){const i=void 0!==n?t[e]=n:r;void 0!==i&&(t[e]=i)},r=function(e,n,r){const i=void 0!==n?t[e]=parseInt(n,10):r;void 0!==i&&(t[e]=i)};return r("x",e.attributes.xWindow,0),r("y",e.attributes.yWindow,0),r("width",e.attributes.windowWidth,25e3),r("height",e.attributes.windowHeight,1e4),n("visibility",e.attributes.visibility,"visible"),r("activeTab",e.attributes.activeTab,void 0),r("firstSheet",e.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),s=e("../base-xform"),a=e("../static-xform"),c=e("../list-xform"),u=e("./defined-name-xform"),l=e("./sheet-xform"),h=e("./workbook-view-xform"),d=e("./workbook-properties-xform"),f=e("./workbook-calc-properties-xform");class p extends s{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new d,bookViews:new c({tag:"bookViews",count:!1,childXform:new h}),sheets:new c({tag:"sheets",count:!1,childXform:new l}),definedNames:new c({tag:"definedNames",count:!1,childXform:new u}),calcPr:new f}}prepare(e){e.sheets=e.worksheets;const t=[];let n=0;e.sheets.forEach(e=>{if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach(r=>{const i=r.split(":"),o={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${i[0]}:$${i[1]}`],localSheetId:n};t.push(o)}),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const r=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");r.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");r.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const i={name:"_xlnm.Print_Titles",ranges:r,localSheetId:n};t.push(i)}n++}),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach((e,t)=>{e.name=e.type+(t+1)})}render(e,t){e.openXml(o.StdDocAttributes),e.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"workbook":return!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(e){const t=(e.workbookRels||[]).reduce((e,t)=>(e[t.Id]=t,e),{}),n=[];let o,s=0;(e.sheets||[]).forEach(r=>{const i=t[r.rId];i&&(o=e.worksheetHash["xl/"+i.Target.replace(/^(\s|\/xl\/)+/,"")],o&&(o.name=r.name,o.id=r.id,o.state=r.state,n[s++]=o))});const a=[];r.each(e.definedNames,e=>{if("_xlnm.Print_Area"===e.name){if(o=n[e.localSheetId],o){o.pageSetup||(o.pageSetup={});const t=i.decodeEx(e.ranges[0]);o.pageSetup.printArea=o.pageSetup.printArea?`${o.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(o=n[e.localSheetId],o){o.pageSetup||(o.pageSetup={});const t=e.ranges.join(","),n=/\$/g,r=/\$\d+:\$\d+/,i=t.match(r);if(i&&i.length){const e=i[0];o.pageSetup.printTitlesRow=e.replace(n,"")}const s=/\$[A-Z]+:\$[A-Z]+/,a=t.match(s);if(a&&a.length){const e=a[0];o.pageSetup.printTitlesColumn=e.replace(n,"")}}}else a.push(e)}),e.definedNames=a,e.media.forEach((e,t)=>{e.index=t})}}p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new a({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,n){"use strict";const r=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),o=e("../base-xform"),s=t.exports=function(e){this.model=e};i.inherits(s,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new r),this._richTextXform},render(e,t){t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach(t=>{this.richTextXform.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),o=e("../base-xform"),s=e("./comment-xform"),a=t.exports=function(){this.map={comment:new s}};i.inherits(a,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model,e.openXml(r.StdDocAttributes),e.openNode("comments",a.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach(t=>{this.map.comment.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,n){(t===n[2]||"x:SizeWithCells"===this.tag&&t===n[1])&&e.leafNode(this.tag)}parseOpen(e){switch(e.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){switch(e.name){case this.tag:return this.text="",!0;default:return!1}}parseText(e){this.text=e}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left),n=Math.floor(68*(e.left-t)),r=Math.floor(e.top),i=Math.floor(18*(e.top-r)),o=Math.floor(e.right),s=Math.floor(68*(e.right-o)),a=Math.floor(e.bottom);return[t,n,r,i,o,s,a,Math.floor(18*(e.bottom-a))]}getDefaultRect(e){const t=e.col,n=Math.max(e.row-2,0);return[t,6,n,14,t+2,2,n+4,16]}render(e,t){const n=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,n.join(", "))}parseOpen(e){switch(e.name){case this.tag:return this.text="",!0;default:return!1}}parseText(e){this.text=e}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./vml-anchor-xform"),o=e("./style/vml-protection-xform"),s=e("./style/vml-position-xform"),a=["twoCells","oneCells","absolute"];t.exports=class extends r{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new s({tag:"x:SizeWithCells"}),"x:MoveWithCells":new s({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:n,editAs:r}=t.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,r,a),this.map["x:SizeWithCells"].render(e,r,a),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=a[t],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./vml-shape-xform");class s extends i{constructor(){super(),this.map={"v:shape":new o}}get tag(){return"xml"}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(this.tag,s.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach((t,n)=>{this.map["v:shape"].render(e,t,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}reconcile(e,t){e.anchors.forEach(e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)})}}s.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./vml-textbox-xform"),o=e("./vml-client-data-xform");class s extends r{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new o}}get tag(){return"v:shape"}render(e,t,n){e.openNode("v:shape",s.V_SHAPE_ATTRIBUTES(t,n)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}s.V_SHAPE_ATTRIBUTES=(e,t)=>({id:"_x0000_s"+(1025+t),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),t.exports=s},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"v:textbox"}conversionUnit(e,t,n){return`${parseFloat(e)*t.toFixed(2)}${n}`}reverseConversionUnit(e){return(e||"").split(",").map(e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2)))}render(e,t){const n={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;Array.isArray(e)&&(e=e.map(e=>this.conversionUnit(e,10,"mm")).join(",")),e&&(n.inset=e)}e.openNode("v:textbox",n),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:return this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(e){switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(e,t,n){"use strict";const r=e("./base-xform");t.exports=class extends r{createNewModel(e){return{}}parseOpen(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}onParserClose(e,t){this.model[e]=t.model}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}},{"./base-xform":32}],49:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}parseOpen(e){return"HeadingPairs"===e.name}parseText(){}parseClose(e){return"HeadingPairs"!==e}}},{"../base-xform":32}],50:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach(t=>{e.leafNode("vt:lpstr",void 0,t.name)}),e.closeNode(),e.closeNode()}parseOpen(e){return"TitlesOfParts"===e.name}parseText(){}parseClose(e){return"TitlesOfParts"!==e}}},{"../base-xform":32}],51:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../simple/string-xform"),s=e("./app-heading-pairs-xform"),a=e("./app-titles-of-parts-xform");class c extends i{constructor(){super(),this.map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new s,TitleOfParts:new a}}render(e,t){e.openXml(r.StdDocAttributes),e.openNode("Properties",c.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Properties":return!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform");class o extends i{render(e,t){e.openXml(r.StdDocAttributes),e.openNode("Types",o.PROPERTY_ATTRIBUTES);const n={};(t.media||[]).forEach(t=>{if("image"===t.type){const r=t.extension;n[r]||(n[r]=!0,e.leafNode("Default",{Extension:r,ContentType:"image/"+r}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach(t=>{const n=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:n,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach(t=>{e.leafNode("Override",{PartName:"/xl/tables/"+t.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),t.drawings&&t.drawings.forEach(t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach(t=>{let{commentName:n}=t;e.leafNode("Override",{PartName:`/xl/${n}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}o.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../simple/date-xform"),s=e("../simple/string-xform"),a=e("../simple/integer-xform");class c extends i{constructor(){super(),this.map={"dc:creator":new s({tag:"dc:creator"}),"dc:title":new s({tag:"dc:title"}),"dc:subject":new s({tag:"dc:subject"}),"dc:description":new s({tag:"dc:description"}),"dc:identifier":new s({tag:"dc:identifier"}),"dc:language":new s({tag:"dc:language"}),"cp:keywords":new s({tag:"cp:keywords"}),"cp:category":new s({tag:"cp:category"}),"cp:lastModifiedBy":new s({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new o({tag:"cp:lastPrinted",format:c.DateFormat}),"cp:revision":new a({tag:"cp:revision"}),"cp:version":new s({tag:"cp:version"}),"cp:contentStatus":new s({tag:"cp:contentStatus"}),"cp:contentType":new s({tag:"cp:contentType"}),"dcterms:created":new o({tag:"dcterms:created",attrs:c.DateAttrs,format:c.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:c.DateAttrs,format:c.DateFormat})}}render(e,t){e.openXml(r.StdDocAttributes),e.openNode("cp:coreProperties",c.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){switch(e.name){case"Relationship":return this.model=e.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./relationship-xform");class s extends i{constructor(){super(),this.map={Relationship:new o}}render(e,t){t=t||this._values,e.openXml(r.StdDocAttributes),e.openNode("Relationships",s.RELATIONSHIPS_ATTRIBUTES),t.forEach(t=>{this.map.Relationship.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(e){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}s.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}reconcilePicture(e,t){if(e&&e.rId){const n=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=t.mediaIndex[e];return t.media[r]}}}}},{"../base-xform":32}],57:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./blip-xform");t.exports=class extends r{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(e){switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:default:return!0}}parseText(){}parseClose(e){switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./hlink-click-xform"),o=e("./ext-lst-xform");t.exports=class extends r{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new o}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../simple/integer-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})}}render(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,n){"use strict";const r=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("./two-cell-anchor-xform"),a=e("./one-cell-anchor-xform");class c extends o{constructor(){super(),this.map={"xdr:twoCellAnchor":new s,"xdr:oneCellAnchor":new a}}prepare(e){e.anchors.forEach((e,t)=>{e.anchorType=function(e){return("string"==typeof e.range?r.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(e),this.map[e.anchorType].prepare(e,{index:t})})}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(i.StdDocAttributes),e.openNode(this.tag,c.DRAWING_ATTRIBUTES),t.anchors.forEach(t=>{this.map[t.anchorType].render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}reconcile(e,t){e.anchors.forEach(e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)})}}c.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=c},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:extLst"}render(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:default:return!0}}parseText(){}parseClose(e){switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.map={}}render(e,t){e.openNode(this.tag);const n=Math.floor(9525*t.width),r=Math.floor(9525*t.height);e.addAttribute("cx",n),e.addAttribute("cy",r),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/9525,height:parseInt(e.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:hlinkClick"}render(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){switch(e.name){case this.tag:return this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./c-nv-pr-xform"),o=e("./c-nv-pic-pr-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new o}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,n){"use strict";const r=e("./base-cell-anchor-xform"),i=e("../static-xform"),o=e("./cell-position-xform"),s=e("./ext-xform"),a=e("./pic-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new s({tag:"xdr:ext"}),"xdr:pic":new a,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../static-xform"),o=e("./blip-fill-xform"),s=e("./nv-pic-pr-xform"),a=e("./sp-pr");t.exports=class extends r{constructor(){super(),this.map={"xdr:nvPicPr":new s,"xdr:blipFill":new o,"xdr:spPr":new i(a)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,n){"use strict";t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,t,n){"use strict";const r=e("./base-cell-anchor-xform"),i=e("../static-xform"),o=e("./cell-position-xform"),s=e("./pic-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new s,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,n){"use strict";const r=e("./base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.always=!!e.always,this.count=e.count,this.empty=e.empty,this.$count=e.$count||"count",this.$=e.$,this.childXform=e.childXform,this.maxItems=e.maxItems}prepare(e,t){const{childXform:n}=this;e&&e.forEach((e,r)=>{t.index=r,n.prepare(e,t)})}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);const{childXform:n}=this;(t||[]).forEach((t,r)=>{n.render(e,t,r)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(e,t){if(e){const{childXform:n}=this;e.forEach(e=>{n.reconcile(e,t)})}}}},{"./base-xform":32}],72:[function(e,t,n){"use strict";const r=e("../../../utils/col-cache"),i=e("../base-xform");t.exports=class extends i{get tag(){return"autoFilter"}render(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{const n=function(e){return"string"==typeof e?e:r.getAddress(e.row,e.column).address},i=n(t.from),o=n(t.to);i&&o&&e.leafNode("autoFilter",{ref:`${i}:${o}`})}}parseOpen(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,n){"use strict";const r=e("../../../utils/utils"),i=e("../base-xform"),o=e("../../../doc/range"),s=e("../../../doc/enums"),a=e("../strings/rich-text-xform");function c(e){if(null==e)return s.ValueType.Null;if(e instanceof String||"string"==typeof e)return s.ValueType.String;if("number"==typeof e)return s.ValueType.Number;if("boolean"==typeof e)return s.ValueType.Boolean;if(e instanceof Date)return s.ValueType.Date;if(e.text&&e.hyperlink)return s.ValueType.Hyperlink;if(e.formula)return s.ValueType.Formula;if(e.error)return s.ValueType.Error;throw new Error("I could not understand type of value")}t.exports=class extends i{constructor(){super(),this.richTextXForm=new a}get tag(){return"c"}prepare(e,t){const n=t.styles.addStyleModel(e.style||{},function(e){switch(e.type){case s.ValueType.Formula:return c(e.result);default:return e.type}}(e));switch(n&&(e.styleId=n),e.comment&&t.comments.push({...e.comment,ref:e.address}),e.type){case s.ValueType.String:case s.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case s.ValueType.Date:t.date1904&&(e.date1904=!0);break;case s.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case s.ValueType.Merge:t.merges.add(e);break;case s.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){const n=t.formulae[e.sharedFormula];if(!n)throw new Error("Shared Formula master must exist above and or left of clone for cell "+e.address);void 0===n.si?(n.shareType="shared",n.si=t.siFormulae++,n.range=new o(n.address,e.address)):n.range&&n.range.expandToAddress(e.address),e.si=n.si}}}renderFormula(e,t){let n=null;switch(t.shareType){case"shared":n={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":n={t:"array",ref:t.ref};break;default:void 0!==t.si&&(n={t:"shared",si:t.si})}switch(c(t.result)){case s.ValueType.Null:e.leafNode("f",n,t.formula);break;case s.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case s.ValueType.Number:e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case s.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result?1:0);break;case s.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result.error);break;case s.ValueType.Date:e.leafNode("f",n,t.formula),e.leafNode("v",null,r.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type!==s.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case s.ValueType.Null:break;case s.ValueType.Number:e.leafNode("v",null,t.value);break;case s.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case s.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case s.ValueType.String:case s.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach(t=>{this.richTextXForm.render(e,t)}),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case s.ValueType.Date:e.leafNode("v",null,r.dateToExcel(t.value,t.date1904));break;case s.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case s.ValueType.Formula:this.renderFormula(e,t);break;case s.ValueType.Merge:}e.closeNode()}}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType)e.type=s.ValueType.Formula,e.value&&("str"===this.t?e.result=r.xmlDecode(e.value):"b"===this.t?e.result=0!==parseInt(e.value,10):"e"===this.t?e.result={error:e.value}:e.result=parseFloat(e.value),e.value=void 0);else if(void 0!==e.value)switch(this.t){case"s":e.type=s.ValueType.String,e.value=parseInt(e.value,10);break;case"str":e.type=s.ValueType.String,e.value=r.xmlDecode(e.value);break;case"inlineStr":e.type=s.ValueType.String;break;case"b":e.type=s.ValueType.Boolean,e.value=0!==parseInt(e.value,10);break;case"e":e.type=s.ValueType.Error,e.value={error:e.value};break;default:e.type=s.ValueType.Number,e.value=parseFloat(e.value)}else e.styleId?e.type=s.ValueType.Null:e.type=s.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}reconcile(e,t){const n=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(n&&(e.style=n),void 0!==e.styleId&&(e.styleId=void 0),e.type){case s.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=s.ValueType.RichText);break;case s.ValueType.Number:n&&r.isDateFmt(n.numFmt)&&(e.type=s.ValueType.Date,e.value=r.excelToDate(e.value,t.date1904));break;case s.ValueType.Formula:void 0!==e.result&&n&&r.isDateFmt(n.numFmt)&&(e.result=r.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}const i=t.hyperlinkMap[e.address];i&&(e.type===s.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=s.ValueType.Hyperlink,e.hyperlink=i);const o=t.commentsMap&&t.commentsMap[e.address];o&&(e.comment=o)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen(e){let{attributes:t}=e;this.model={iconSet:t.iconSet,iconId:r.toIntValue(t.iconId)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],75:[function(e,t,n){"use strict";const{v4:r}=e("uuid"),i=e("../../base-xform"),o=e("../../composite-xform"),s=e("./databar-ext-xform"),a=e("./icon-set-ext-xform"),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends o{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new s,"x14:iconSet":this.iconSetXform=new a}}get tag(){return"x14:cfRule"}static isExt(e){return"dataBar"===e.type?s.isExt(e):!("iconSet"!==e.type||!e.custom&&!c[e.iconSet])}prepare(e){u.isExt(e)&&(e.x14Id=`{${r()}}`.toUpperCase())}render(e,t){if(u.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${r()}}`}),this.iconSetXform.render(e,t),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{type:t.type,x14Id:t.id,priority:i.toIntValue(t.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}t.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("./f-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){switch(e){case"xm:f":this.model.value=t.model?parseFloat(t.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("./sqref-ext-xform"),o=e("./cf-rule-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new o}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(e,t){t.rules.some(o.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(o.isExt).forEach(t=>this.cfRule.render(e,t)),this.sqRef.render(e,t.ref),e.closeNode())}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),o=e("./conditional-formatting-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new o}}get tag(){return"x14:conditionalFormattings"}hasContent(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some(e=>e.rules.some(i.isExt))),e.hasExtContent}prepare(e,t){e.forEach(e=>{this.cfXform.prepare(e,t)})}render(e,t){this.hasContent(t)&&(e.openNode(this.tag),t.forEach(t=>this.cfXform.render(e,t)),e.closeNode())}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform"),o=e("../../style/color-xform"),s=e("./cfvo-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:borderColor":this.borderColorXform=new o("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new o("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:r.toIntAttribute(t.minLength,0,!0),maxLength:r.toIntAttribute(t.maxLength,100,!0),border:r.toBoolAttribute(t.border,!1),gradient:r.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toAttribute(t.axisPosition,"auto"),direction:r.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],minLength:r.toIntValue(t.minLength,0),maxLength:r.toIntValue(t.maxLength,100),border:r.toBoolValue(t.border,!1),gradient:r.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toStringValue(t.axisPosition,"auto"),direction:r.toStringValue(t.direction,"leftToRight")}}onParserClose(e,t){const[,n]=e.split(":");switch(n){case"cfvo":this.model.cfvo.push(t.model);break;default:this.model[n]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],81:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform"),o=e("./cfvo-ext-xform"),s=e("./cf-icon-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:cfIcon":this.cfIconXform=new s}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0),custom:r.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.icons&&t.icons.forEach((t,n)=>{t.iconId=n,this.cfIconXform.render(e,t)}),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],iconSet:r.toStringValue(t.iconSet,"3TrafficLights"),reverse:r.toBoolValue(t.reverse,!1),showValue:r.toBoolValue(t.showValue,!0)}}onParserClose(e,t){const[,n]=e.split(":");switch(n){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[n]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],83:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform"),o=e("../../../../doc/range"),s=e("./databar-xform"),a=e("./ext-lst-ref-xform"),c=e("./formula-xform"),u=e("./color-scale-xform"),l=e("./icon-set-xform"),h={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},d=e=>{const{type:t,operator:n}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:n}}};class f extends i{constructor(){super(),this.map={dataBar:this.databarXform=new s,extLst:this.extLstRefXform=new a,formula:this.formulaXform=new c,colorScale:this.colorScaleXform=new u,iconSet:this.iconSetXform=new l}}get tag(){return"cfRule"}static isPrimitive(e){return"iconSet"!==e.type||!e.custom&&!h[e.iconSet]}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach(t=>{this.formulaXform.render(e,t)}),e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:r.toBoolAttribute(t.percent,!1),bottom:r.toBoolAttribute(t.bottom,!1),rank:r.toIntValue(t.rank,10,!0)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:r.toBoolAttribute(t.aboveAverage,!0)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}renderIconSet(e,t){f.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:r.toStringAttribute(t.operator,"containsText")});const n=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new o(e.ref),{tl:n}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${n})))`;case"containsBlanks":return`LEN(TRIM(${n}))=0`;case"notContainsBlanks":return`LEN(TRIM(${n}))>0`;case"containsErrors":return`ISERROR(${n})`;case"notContainsErrors":return`NOT(ISERROR(${n}))`;default:return}})(t);n&&this.formulaXform.render(e,n),e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const n=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new o(e.ref),{tl:n}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${n},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${n},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${n},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${n},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${n},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${n},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${n},1)=TODAY()-1`;case"today":return`FLOOR(${n},1)=TODAY()`;case"tomorrow":return`FLOOR(${n},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${n},1)<=6,FLOOR(${n},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${n})=MONTH(EDATE(TODAY(),0-1)),YEAR(${n})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${n})=MONTH(TODAY()),YEAR(${n})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${n})=MONTH(EDATE(TODAY(),0+1)),YEAR(${n})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(t);n&&this.formulaXform.render(e,n),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{...d(t),dxfId:r.toIntValue(t.dxfId),priority:r.toIntValue(t.priority),timePeriod:t.timePeriod,percent:r.toBoolValue(t.percent),bottom:r.toBoolValue(t.bottom),rank:r.toIntValue(t.rank),aboveAverage:r.toBoolValue(t.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}t.exports=f},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:r.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],85:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("../../style/color-xform"),o=e("./cfvo-xform");t.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new i}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.color.forEach(t=>{this.colorXform.render(e,t)}),e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("./cf-rule-xform");t.exports=class extends r{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(e,t){t.rules.some(i.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach(n=>{i.isPrimitive(n)&&(n.ref=t.ref,this.map.cfRule.render(e,n))}),e.closeNode())}createNewModel(e){let{attributes:t}=e;return{ref:t.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("./conditional-formatting-xform");t.exports=class extends r{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let n=e.reduce((e,t)=>Math.max(e,...t.rules.map(e=>e.priority||0)),1);e.forEach(e=>{e.rules.forEach(e=>{e.priority||(e.priority=n++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))})})}render(e,t){t.forEach(t=>{this.cfXform.render(e,t)})}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(!!this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(e,t){e.forEach(e=>{e.rules.forEach(e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("../../style/color-xform"),o=e("./cfvo-xform");t.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new i}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.colorXform.render(e,t.color),e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform");class o extends r{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class s extends i{constructor(){super(),this.map={"x14:id":this.idXform=new o}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}t.exports=class extends i{constructor(){super(),this.map={ext:new s}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],91:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform"),o=e("./cfvo-xform");t.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new o}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{iconSet:r.toStringValue(t.iconSet,"3TrafficLights"),reverse:r.toBoolValue(t.reverse),showValue:r.toBoolValue(t.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,n){"use strict";const r=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{get tag(){return"col"}prepare(e,t){const n=t.styles.addStyleModel(e.style||{});n&&(e.styleId=n)}render(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}parseOpen(e){if("col"===e.name){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),r.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),r.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),r.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../../utils/utils"),o=e("../../../utils/col-cache"),s=e("../base-xform"),a=e("../../../doc/range");function c(e,t,n,r){const i=t[n];void 0!==i?e[n]=i:void 0!==r&&(e[n]=r)}function u(e,t,n,r){const o=t[n];void 0!==o?e[n]=i.parseBoolean(o):void 0!==r&&(e[n]=r)}t.exports=class extends s{get tag(){return"dataValidations"}render(e,t){const n=function(e){const t=r.map(e,(e,t)=>({address:t,dataValidation:e,marked:!1})).sort((e,t)=>r.strcmp(e.address,t.address)),n=r.keyBy(t,"address"),i=(t,n,i)=>{for(let s=0;s<n;s++){const n=o.encodeAddress(t.row+s,i);if(!e[n]||!r.isEqual(e[t.address],e[n]))return!1}return!0};return t.map(t=>{if(!t.marked){const s=o.decodeEx(t.address);if(s.dimensions)return n[s.dimensions].marked=!0,{...t.dataValidation,sqref:t.address};let a=1,c=o.encodeAddress(s.row+a,s.col);for(;e[c]&&r.isEqual(t.dataValidation,e[c]);)a++,c=o.encodeAddress(s.row+a,s.col);let u=1;for(;i(s,a,s.col+u);)u++;for(let e=0;e<a;e++)for(let t=0;t<u;t++)c=o.encodeAddress(s.row+e,s.col+t),n[c].marked=!0;if(a>1||u>1){const e=s.row+(a-1),n=s.col+(u-1);return{...t.dataValidation,sqref:`${t.address}:${o.encodeAddress(e,n)}`}}return{...t.dataValidation,sqref:t.address}}return null}).filter(Boolean)}(t);n.length&&(e.openNode("dataValidations",{count:n.length}),n.forEach(t=>{e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach((n,r)=>{e.openNode("formula"+(r+1)),"date"===t.type?e.writeText(i.dateToExcel(new Date(n))):e.writeText(n),e.closeNode()}),e.closeNode()}),e.closeNode())}parseOpen(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&u(t,e.attributes,"allowBlank"),u(t,e.attributes,"showInputMessage"),u(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:c(t,e.attributes,"operator","between")}return c(t,e.attributes,"promptTitle"),c(t,e.attributes,"prompt"),c(t,e.attributes,"errorStyle"),c(t,e.attributes,"errorTitle"),c(t,e.attributes,"error"),this._dataValidation=t,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(e){this._formula&&this._formula.push(e)}parseClose(e){switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(e=>{e.includes(":")?new a(e).forEachAddress(e=>{this.model[e]=this._dataValidation}):this.model[e]=this._dataValidation}),!0;case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=i.excelToDate(parseFloat(e))}return this._dataValidation.formulae.push(e),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"dimension"}render(e,t){t&&e.leafNode("dimension",{ref:t})}parseOpen(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"drawing"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,t,n){"use strict";const r=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform");class o extends r{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}t.exports=class extends r{constructor(){super(),this.map={ext:this.ext=new o}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let n=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),n=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),n=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),n=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),n=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),n=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),n=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),n=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),n=!0),n?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"hyperlink"}render(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}},{"../base-xform":32}],99:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../../doc/range"),o=e("../../../utils/col-cache"),s=e("../../../doc/enums");t.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new i(t)}}get mergeCells(){return r.map(this.merges,e=>e.range)}reconcile(e,t){r.each(e,e=>{const n=o.decode(e);for(let r=n.top;r<=n.bottom;r++){const e=t[r-1];for(let t=n.left;t<=n.right;t++){const i=e.cells[t-1];i?i.type===s.ValueType.Merge&&(i.master=n.tl):e.cells[t]={type:s.ValueType.Null,address:o.encodeAddress(r,t)}}}})}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e=>void 0!==e;t.exports=class extends r{get tag(){return"outlinePr"}render(e,t){return!(!t||!i(t.summaryBelow)&&!i(t.summaryRight))&&(e.leafNode(this.tag,{summaryBelow:i(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:i(t.summaryRight)?Number(t.summaryRight):void 0}),!0)}parseOpen(e){return e.name===this.tag&&(this.model={summaryBelow:i(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:i(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"pageMargins"}render(e,t){if(t){const n={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};r.some(n,e=>void 0!==e)&&e.leafNode(this.tag,n)}}parseOpen(e){switch(e.name){case this.tag:return this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"pageSetUpPr"}render(e,t){return!(!t||!t.fitToPage)&&(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),!0)}parseOpen(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");function o(e){return e?"1":void 0}function s(e){switch(e){case"overThenDown":return e;default:return}}function a(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function c(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}t.exports=class extends i{get tag(){return"pageSetup"}render(e,t){if(t){const n={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:s(t.pageOrder),blackAndWhite:o(t.blackAndWhite),draft:o(t.draft),cellComments:a(t.cellComments),errors:c(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:o(t.firstPageNumber),usePrinterDefaults:o(t.usePrinterDefaults),copies:t.copies};r.some(n,e=>void 0!==e)&&e.leafNode(this.tag,n)}}parseOpen(e){switch(e.name){case this.tag:return this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0;default:return!1}var t}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"picture"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");function o(e){return e?"1":void 0}t.exports=class extends i{get tag(){return"printOptions"}render(e,t){if(t){const n={headings:o(t.showRowColHeaders),gridLines:o(t.showGridLines),horizontalCentered:o(t.horizontalCentered),verticalCentered:o(t.verticalCentered)};r.some(n,e=>void 0!==e)&&e.leafNode(this.tag,n)}}parseOpen(e){switch(e.name){case this.tag:return this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,n){"use strict";const r=e("./page-breaks-xform"),i=e("../list-xform");t.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new r})}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));const{childXform:n}=this;t.forEach(t=>{n.render(e,t)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../../../utils/utils"),o=e("./cell-xform");t.exports=class extends r{constructor(e){super(),this.maxItems=e&&e.maxItems,this.map={c:new o}}get tag(){return"row"}prepare(e,t){const n=t.styles.addStyleModel(e.style);n&&(e.styleId=n);const r=this.map.c;e.cells.forEach(e=>{r.prepare(e,t)})}render(e,t,n){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");const r=this.map.c;t.cells.forEach(t=>{r.render(e,t,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map(e=>parseInt(e,10)):[void 0,void 0],n=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(n.styleId=parseInt(e.attributes.s,10)),i.parseBoolean(e.attributes.hidden)&&(n.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(n.bestFit=!0),e.attributes.ht&&(n.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(n.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(n.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);const n=this.map.c;e.cells.forEach(e=>{n.reconcile(e,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"sheetFormatPr"}render(e,t){if(t){const n={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(n.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(n.customHeight="1"),r.some(n,e=>void 0!==e)&&e.leafNode("sheetFormatPr",n)}}parseOpen(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../style/color-xform"),o=e("./page-setup-properties-xform"),s=e("./outline-properties-xform");t.exports=class extends r{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new o,outlinePr:new s}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback(),e.openNode("sheetPr");let n=!1;n=this.map.tabColor.render(e,t.tabColor)||n,n=this.map.pageSetUpPr.render(e,t.pageSetup)||n,n=this.map.outlinePr.render(e,t.outlineProperties)||n,n?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");function o(e,t){return e?t:void 0}function s(e,t){return e===t||void 0}t.exports=class extends i{get tag(){return"sheetProtection"}render(e,t){if(t){const n={sheet:o(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:o(t.formatCells,"0"),formatColumns:o(t.formatColumns,"0"),formatRows:o(t.formatRows,"0"),insertColumns:o(t.insertColumns,"0"),insertRows:o(t.insertRows,"0"),insertHyperlinks:o(t.insertHyperlinks,"0"),deleteColumns:o(t.deleteColumns,"0"),deleteRows:o(t.deleteRows,"0"),sort:o(t.sort,"0"),autoFilter:o(t.autoFilter,"0"),pivotTables:o(t.pivotTables,"0")};t.sheet&&(n.algorithmName=t.algorithmName,n.hashValue=t.hashValue,n.saltValue=t.saltValue,n.spinCount=t.spinCount,n.objects=o(!1===t.objects,"1"),n.scenarios=o(!1===t.scenarios,"1")),r.some(n,e=>void 0!==e)&&e.leafNode(this.tag,n)}}parseOpen(e){switch(e.name){case this.tag:return this.model={sheet:s(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:s(e.attributes.formatCells,"0"),formatColumns:s(e.attributes.formatColumns,"0"),formatRows:s(e.attributes.formatRows,"0"),insertColumns:s(e.attributes.insertColumns,"0"),insertRows:s(e.attributes.insertRows,"0"),insertHyperlinks:s(e.attributes.insertHyperlinks,"0"),deleteColumns:s(e.attributes.deleteColumns,"0"),deleteRows:s(e.attributes.deleteRows,"0"),sort:s(e.attributes.sort,"0"),autoFilter:s(e.attributes.autoFilter,"0"),pivotTables:s(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,n){"use strict";const r=e("../../../utils/col-cache"),i=e("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"};t.exports=class extends i{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const n=function(t,n,r){r&&e.addAttribute(t,n)};let i,o,s,a;switch(n("rightToLeft","1",!0===t.rightToLeft),n("tabSelected","1",t.tabSelected),n("showRuler","0",!1===t.showRuler),n("showRowColHeaders","0",!1===t.showRowColHeaders),n("showGridLines","0",!1===t.showGridLines),n("zoomScale",t.zoomScale,t.zoomScale),n("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),n("view",t.style,t.style),t.state){case"frozen":o=t.xSplit||0,s=t.ySplit||0,i=t.topLeftCell||r.getAddress(s+1,o+1).address,a=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:i,activePane:a,state:"frozen"}),e.leafNode("selection",{pane:a,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":{const t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(e){let t,n;switch(e){case"sheetView":return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:o[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),n=this.selections[this.pane.activePane],n&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},n=this.selections.topLeft,n&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"tablePart"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),s=e("../../rel-type"),a=e("./merges"),c=e("../base-xform"),u=e("../list-xform"),l=e("./row-xform"),h=e("./col-xform"),d=e("./dimension-xform"),f=e("./hyperlink-xform"),p=e("./merge-cell-xform"),A=e("./data-validations-xform"),g=e("./sheet-properties-xform"),m=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),v=e("./sheet-protection-xform"),b=e("./page-margins-xform"),w=e("./page-setup-xform"),C=e("./print-options-xform"),_=e("./auto-filter-xform"),S=e("./picture-xform"),x=e("./drawing-xform"),T=e("./table-part-xform"),P=e("./row-breaks-xform"),E=e("./header-footer-xform"),I=e("./cf/conditional-formattings-xform"),k=e("./ext-lst-xform"),B=(e,t)=>{if(!t||!t.length)return e;if(!e||!e.length)return t;const n={},r={};return e.forEach(e=>{n[e.ref]=e,e.rules.forEach(e=>{const{x14Id:t}=e;t&&(r[t]=e)})}),t.forEach(t=>{t.rules.forEach(i=>{const o=r[i.x14Id];o?((e,t)=>{Object.keys(t).forEach(n=>{const r=e[n],i=t[n];void 0===r&&void 0!==i&&(e[n]=i)})})(o,i):n[t.ref]?n[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})})}),e};class M extends c{constructor(e){super();const{maxRows:t,maxCols:n,ignoreNodes:r}=e||{};this.ignoreNodes=r||[],this.map={sheetPr:new g,dimension:new d,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new m,cols:new u({tag:"cols",count:!1,childXform:new h}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new l({maxItems:n}),maxItems:t}),autoFilter:new _,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new P,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new f}),pageMargins:new b,dataValidations:new A,pageSetup:new w,headerFooter:new E,printOptions:new C,picture:new S,drawing:new x,sheetProtection:new v,tableParts:new u({tag:"tableParts",count:!0,childXform:new T}),conditionalFormatting:new I,extLst:new k}}prepare(e,t){t.merges=new a,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;const n=e.rels=[];function r(e){return"rId"+(e.length+1)}if(e.hyperlinks.forEach(e=>{const t=r(n);e.rId=t,n.push({Id:t,Type:s.Hyperlink,Target:e.target,TargetMode:"External"})}),e.comments.length>0){const o={Id:r(n),Type:s.Comments,Target:`../comments${e.id}.xml`};n.push(o);const a={Id:r(n),Type:s.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};n.push(a),e.comments.forEach(e=>{e.refAddress=i.decodeAddress(e.ref)}),t.commentRefs.push({commentName:"comments"+e.id,vmlDrawing:"vmlDrawing"+e.id})}const o=[];let c;e.media.forEach(i=>{if("background"===i.type){const o=r(n);c=t.media[i.imageId],n.push({Id:o,Type:s.Image,Target:`../media/${c.name}.${c.extension}`}),e.background={rId:o},e.image=t.media[i.imageId]}else if("image"===i.type){let{drawing:a}=e;c=t.media[i.imageId],a||(a=e.drawing={rId:r(n),name:"drawing"+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(a),n.push({Id:a.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${a.name}.xml`}));let u=this.preImageId===i.imageId?o[i.imageId]:o[a.rels.length];u||(u=r(a.rels),o[a.rels.length]=u,a.rels.push({Id:u,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${c.name}.${c.extension}`}));const l={picture:{rId:u},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){const e=r(a.rels);o[a.rels.length]=e,l.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:e},a.rels.push({Id:e,Type:s.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=i.imageId,a.anchors.push(l)}}),e.tables.forEach(e=>{const i=r(n);e.rId=i,n.push({Id:i,Type:s.Table,Target:"../tables/"+e.target}),e.columns.forEach(e=>{const{style:n}=e;n&&(e.dxfId=t.styles.addDxfStyle(n))})}),this.map.extLst.prepare(e,t)}render(e,t){e.openXml(o.StdDocAttributes),e.openNode("worksheet",M.WORKSHEET_ATTRIBUTES);const n=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(n.defaultColWidth=t.properties.defaultColWidth);const r={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},i=t.pageSetup&&t.pageSetup.margins,a={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},c=t.sheetProtection;this.map.sheetPr.render(e,r),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,n),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,c),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,a),this.map.pageMargins.render(e,i),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach(t=>{t.Type===s.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(r.each(this.map,e=>{e.reset()}),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"worksheet":{const e=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(e.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(e.outlineProperties=this.map.sheetPr.model.outlineProperties);const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},n=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model),r=B(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:n,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:r},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(e,t){const n=(e.relationships||[]).reduce((n,r)=>{if(n[r.Id]=r,r.Type===s.Comments&&(e.comments=t.comments[r.Target].comments),r.Type===s.VmlDrawing&&e.comments&&e.comments.length){const n=t.vmlDrawings[r.Target].comments;e.comments.forEach((e,t)=>{e.note=Object.assign({},e.note,n[t])})}return n},{});if(t.commentsMap=(e.comments||[]).reduce((e,t)=>(t.ref&&(e[t.ref]=t),e),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((e,t)=>(t.rId&&(e[t.address]=n[t.rId].Target),e),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach(e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]}),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){const r=n[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(r){const n=r[1];t.drawings[n].anchors.forEach(t=>{if(t.medium){const n={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(n)}})}}const r=e.background&&n[e.background.rId];if(r){const n=r.Target.split("/media/")[1],i=t.mediaIndex&&t.mediaIndex[n];void 0!==i&&e.media.push({type:"background",imageId:i})}e.tables=(e.tables||[]).map(e=>{const r=n[e.rId];return t.tables[r.Target]}),delete e.relationships,delete e.hyperlinks,delete e.comments}}M.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=M},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr}render(e,t){t&&(e.openNode(this.tag),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},this._parse=e.parse||function(e){return new Date(e)}}render(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero}render(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs}render(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,t,n){"use strict";const r=e("./base-xform"),i=e("../../utils/xml-stream");t.exports=class extends r{constructor(e){super(),this._model=e}render(e){if(!this._xml){const e=new i;!function e(t,n){t.openNode(n.tag,n.$),n.c&&n.c.forEach(n=>{e(t,n)}),n.t&&t.writeText(n.t),t.closeNode()}(e,this._model),this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(e){switch(e){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,n){"use strict";const r=e("./text-xform"),i=e("./rich-text-xform"),o=e("../base-xform");t.exports=class extends o{constructor(){super(),this.map={r:new i,t:new r}}get tag(){return"rPh"}render(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:n}=this.map;t.richText.forEach(t=>{n.render(e,t)})}else t&&this.map.t.render(e,t.text);e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,n){"use strict";const r=e("./text-xform"),i=e("../style/font-xform"),o=e("../base-xform");class s extends o{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new r)}get fontXform(){return this._fontXform||(this._fontXform=new i(s.FONT_OPTIONS))}render(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}s.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=s},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,n){"use strict";const r=e("./text-xform"),i=e("./rich-text-xform"),o=e("./phonetic-text-xform"),s=e("../base-xform");t.exports=class extends s{constructor(e){super(),this.model=e,this.map={r:new i,t:new r,rPh:new o}}get tag(){return"si"}render(e,t){e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach(t=>{this.map.r.render(e,t)}):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./shared-string-xform");t.exports=class extends i{constructor(e){super(),this.model=e||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new o)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}addRichText(e){const t=this.sharedStringXform.toXml(e);let n=this.rich[t];return void 0===n&&(n=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,n}render(e,t){t=t||this._values,e.openXml(r.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const n=this.sharedStringXform;t.values.forEach(t=>{n.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(e){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"t"}render(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}parseOpen(e){switch(e.name){case"t":return this._text=[],!0;default:return!1}}parseText(e){this._text.push(e)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,t,n){"use strict";const r=e("../../../doc/enums"),i=e("../../../utils/utils"),o=e("../base-xform"),s={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((e,t)=>(e[t]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((e,t)=>(e[t]=!0,e),{}),vertical(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation(e){switch(e){case"vertical":return e;default:return(e=i.validInt(e))>=-90&&e<=90?e:void 0}},indent:e=>(e=i.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return r.ReadingOrder.LeftToRight;case"rtl":return r.ReadingOrder.RightToLeft;default:return}}},a={toXml(e){if(e=s.textRotation(e)){if("vertical"===e)return 255;const t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel(e){const t=i.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}};t.exports=class extends o{get tag(){return"alignment"}render(e,t){e.addRollback(),e.openNode("alignment");let n=!1;function r(t,r){r&&(e.addAttribute(t,r),n=!0)}r("horizontal",s.horizontal(t.horizontal)),r("vertical",s.vertical(t.vertical)),r("wrapText",!!s.wrapText(t.wrapText)&&"1"),r("shrinkToFit",!!s.shrinkToFit(t.shrinkToFit)&&"1"),r("indent",s.indent(t.indent)),r("textRotation",a.toXml(t.textRotation)),r("readingOrder",s.readingOrder(t.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const t={};let n=!1;function r(e,r,i){e&&(t[r]=i,n=!0)}r(e.attributes.horizontal,"horizontal",e.attributes.horizontal),r(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),r(e.attributes.wrapText,"wrapText",i.parseBoolean(e.attributes.wrapText)),r(e.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(e.attributes.shrinkToFit)),r(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),r(e.attributes.textRotation,"textRotation",a.toModel(e.attributes.textRotation)),r(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=n?t:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../../../utils/utils"),o=e("./color-xform");class s extends r{constructor(e){super(),this.name=e,this.map={color:new o}}get tag(){return this.name}render(e,t,n){const r=t&&t.color||n||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),r&&this.map.color.render(e,r)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:t}=e.attributes;return this.model=t?{style:t}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return s.validStyleValues[e]}}s.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,t)=>(e[t]=!0,e),{}),t.exports=class extends r{constructor(){super(),this.map={top:new s("top"),left:new s("left"),bottom:new s("bottom"),right:new s("right"),diagonal:new s("diagonal")}}render(e,t){const{color:n}=t;function r(r,i){r&&!r.color&&t.color&&(r={...r,color:t.color}),i.render(e,r,n)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),r(t.left,this.map.left),r(t.right,this.map.right),r(t.top,this.map.top),r(t.bottom,this.map.bottom),r(t.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"border":return this.reset(),this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown),!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){const e=this.model={},t=function(t,n,r){n&&(r&&Object.assign(n,r),e[t]=n)};t("left",this.map.left.model),t("right",this.map.right.model),t("top",this.map.top.model),t("bottom",this.map.bottom.model),t("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.name=e||"color"}get tag(){return this.name}render(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}parseOpen(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./alignment-xform"),o=e("./border-xform"),s=e("./fill-xform"),a=e("./font-xform"),c=e("./numfmt-xform"),u=e("./protection-xform");t.exports=class extends r{constructor(){super(),this.map={alignment:new i,border:new o,fill:new s,font:new a,numFmt:new c,protection:new u}}get tag(){return"dxf"}render(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){const n={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,n)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./color-xform");class o extends r{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(){}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class s extends r{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"patternFill":return this.model={type:"pattern",pattern:e.attributes.patternType},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}class a extends r{constructor(){super(),this.map={stop:new o}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}const n=this.map.stop;t.stops.forEach(t=>{n.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":{const t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class c extends r{constructor(){super(),this.map={patternFill:new s,gradientFill:new a}}get tag(){return"fill"}render(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"fill":return this.model={},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(e){return c.validPatternValues[e]}}c.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((e,t)=>(e[t]=!0,e),{}),c.StopXform=o,c.PatternFillXform=s,c.GradientFillXform=a,t.exports=c},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,n){"use strict";const r=e("./color-xform"),i=e("../simple/boolean-xform"),o=e("../simple/integer-xform"),s=e("../simple/string-xform"),a=e("./underline-xform"),c=e("../../../utils/under-dash"),u=e("../base-xform");class l extends u{constructor(e){super(),this.options=e||l.OPTIONS,this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new a},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new r},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new s({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new s({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new s({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:n}=this;e.openNode(this.options.tagName),c.each(this.map,(r,i)=>{n[i].xform.render(e,t[r.prop])}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(this.map[e.name])return this.parser=this.map[e.name].xform,this.parser.parseOpen(e);switch(e.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}switch(e){case this.options.tagName:return!1;default:return!0}}}l.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=l},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),o=e("../base-xform"),s=function(){const e={};return r.each(i,(t,n)=>{t.f&&(e[t.f]=parseInt(n,10))}),e}();class a extends o{constructor(e,t){super(),this.id=e,this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){switch(e.name){case"numFmt":return this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}a.getDefaultFmtId=function(e){return s[e]},a.getDefaultFmtCode=function(e){return i[e]&&i[e].f},t.exports=a},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,n){"use strict";const r=e("../base-xform"),i={boolean:(e,t)=>void 0===e?t:e};t.exports=class extends r{get tag(){return"protection"}render(e,t){e.addRollback(),e.openNode("protection");let n=!1;function r(t,r){void 0!==r&&(e.addAttribute(t,r),n=!0)}r("locked",i.boolean(t.locked,!0)?void 0:"0"),r("hidden",i.boolean(t.hidden,!1)?"1":void 0),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},n=!t.locked||t.hidden;this.model=n?t:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./alignment-xform"),o=e("./protection-xform");t.exports=class extends r{constructor(e){super(),this.xfId=!(!e||!e.xfId),this.map={alignment:new i,protection:new o}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,n){"use strict";const r=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("../static-xform"),a=e("../list-xform"),c=e("./font-xform"),u=e("./fill-xform"),l=e("./border-xform"),h=e("./numfmt-xform"),d=e("./style-xform"),f=e("./dxf-xform");class p extends o{constructor(e){super(),this.map={numFmts:new a({tag:"numFmts",count:!0,childXform:new h}),fonts:new a({tag:"fonts",count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new a({tag:"fills",count:!0,childXform:new u}),borders:new a({tag:"borders",count:!0,childXform:new l}),cellStyleXfs:new a({tag:"cellStyleXfs",count:!0,childXform:new d}),cellXfs:new a({tag:"cellXfs",count:!0,childXform:new d({xfId:!0})}),dxfs:new a({tag:"dxfs",always:!0,count:!0,childXform:new f}),numFmt:new h,font:new c,fill:new u,border:new l,style:new d({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},e&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(e,t){t=t||this.model,e.openXml(i.StdDocAttributes),e.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach(t=>{e.writeXml(t)}),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach(t=>{e.writeXml(t)}),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach(t=>{e.writeXml(t)}),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),p.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),p.STATIC_XFORMS.tableStyles.render(e),p.STATIC_XFORMS.extLst.render(e),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"styleSheet":{this.model={};const e=(e,t)=>{t.model&&t.model.length&&(this.model[e]=t.model)};if(e("numFmts",this.map.numFmts),e("fonts",this.map.fonts),e("fills",this.map.fills),e("borders",this.map.borders),e("styles",this.map.cellXfs),e("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach(t=>{e[t.id]=t.formatCode})}return!1}default:return!0}}addStyleModel(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);const n={};if(t=t||r.ValueType.Number,e.numFmt)n.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case r.ValueType.Number:n.numFmtId=this._addNumFmtStr("General");break;case r.ValueType.Date:n.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(n.fontId=this._addFont(e.font)),e.border&&(n.borderId=this._addBorder(e.border)),e.fill&&(n.fillId=this._addFill(e.fill)),e.alignment&&(n.alignment=e.alignment),e.protection&&(n.protection=e.protection);const i=this._addStyle(n);return this.weakMap&&this.weakMap.set(e,i),i}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let n=this.index.model[e];if(n)return n;if(n=this.index.model[e]={},t.numFmtId){const e=this.index.numFmt[t.numFmtId]||h.getDefaultFmtCode(t.numFmtId);e&&(n.numFmt=e)}function r(e,t,r){if(r||0===r){const i=t[r];i&&(n[e]=i)}}return r("font",this.model.fonts,t.fontId),r("border",this.model.borders,t.borderId),r("fill",this.model.fills,t.fillId),t.alignment&&(n.alignment=t.alignment),t.protection&&(n.protection=t.protection),n}addDxfStyle(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let n=this.index.style[t];return void 0===n&&(n=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),n}_addNumFmtStr(e){let t=h.getDefaultFmtId(e);if(void 0!==t)return t;if(t=this.index.numFmt[e],void 0!==t)return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;const n=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(n),t}_addFont(e){const t=this.map.font.toXml(e);let n=this.index.font[t];return void 0===n&&(n=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),n}_addBorder(e){const t=this.map.border.toXml(e);let n=this.index.border[t];return void 0===n&&(n=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),n}_addFill(e){const t=this.map.fill.toXml(e);let n=this.index.fill[t];return void 0===n&&(n=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),n}}p.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},p.STATIC_XFORMS={cellStyles:new s({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new s({tag:"dxfs",$:{count:0}}),tableStyles:new s({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new s({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},p.Mock=class extends p{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){return e.autodrain(),Promise.resolve()}addStyleModel(e,t){switch(t){case r.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:h.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}},t.exports=p},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,n){"use strict";const r=e("../base-xform");class i extends r{constructor(e){super(),this.model=e}get tag(){return"u"}render(e,t){if(!0===(t=t||this.model))e.leafNode("u");else{const n=i.Attributes[t];n&&e.leafNode("u",n)}}parseOpen(e){"u"===e.name&&(this.model=e.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=i},{"../base-xform":32}],137:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./filter-column-xform");t.exports=class extends r{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach((e,t)=>{this.map.filterColumn.prepare(e,{index:t})})}render(e,t){return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach(t=>{this.map.filterColumn.render(e,t)}),e.closeNode(),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../list-xform"),o=e("./custom-filter-xform"),s=e("./filter-xform");t.exports=class extends r{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new o}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new s})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:t}=e;switch(e.name){case this.tag:return this.model={filterButton:"0"===t.hiddenButton},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"tableStyleInfo"}render(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../list-xform"),s=e("./auto-filter-xform"),a=e("./table-column-xform"),c=e("./table-style-info-xform");class u extends i{constructor(){super(),this.map={autoFilter:new s,tableColumns:new o({tag:"tableColumns",count:!0,empty:!0,childXform:new a}),tableStyleInfo:new c}}prepare(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(this.tag,{...u.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"}),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{name:t,attributes:n}=e;switch(t){case this.tag:this.reset(),this.model={name:n.name,displayName:n.displayName||n.name,tableRef:n.ref,totalsRow:"1"===n.totalsRowCount,headerRow:"1"===n.headerRowCount};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((e,t)=>{this.model.columns[t].filterButton=e.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(e,t){e.columns.forEach(e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))})}}u.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},t.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,n){(function(n,r){(function(){"use strict";const i=e("fs"),o=e("jszip"),{PassThrough:s}=e("readable-stream"),a=e("../utils/zip-stream"),c=e("../utils/stream-buf"),u=e("../utils/utils"),l=e("../utils/xml-stream"),{bufferToString:h}=e("../utils/browser-buffer-decode"),d=e("./xform/style/styles-xform"),f=e("./xform/core/core-xform"),p=e("./xform/strings/shared-strings-xform"),A=e("./xform/core/relationships-xform"),g=e("./xform/core/content-types-xform"),m=e("./xform/core/app-xform"),y=e("./xform/book/workbook-xform"),v=e("./xform/sheet/worksheet-xform"),b=e("./xform/drawing/drawing-xform"),w=e("./xform/table/table-xform"),C=e("./xform/comment/comments-xform"),_=e("./xform/comment/vml-notes-xform"),S=e("./xml/theme1");class x{constructor(e){this.workbook=e}async readFile(e,t){if(!await u.fs.exists(e))throw new Error("File not found: "+e);const n=i.createReadStream(e);try{const e=await this.read(n,t);return n.close(),e}catch(e){throw n.close(),e}}parseRels(e){return(new A).parseStream(e)}parseWorkbook(e){return(new y).parseStream(e)}parseSharedStrings(e){return(new p).parseStream(e)}reconcile(e,t){const n=new y,r=new v(t),i=new b,o=new w;n.reconcile(e);const s={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach(t=>{const n=e.drawings[t],r=e.drawingRels[t];r&&(s.rels=r.reduce((e,t)=>(e[t.Id]=t,e),{}),(n.anchors||[]).forEach(e=>{const t=e.picture&&e.picture.hyperlinks;t&&s.rels[t.rId]&&(t.hyperlink=s.rels[t.rId].Target,delete t.rId)}),i.reconcile(n,s))});const a={styles:e.styles};Object.values(e.tables).forEach(e=>{o.reconcile(e,a)});const c={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach(t=>{t.relationships=e.worksheetRels[t.sheetNo],r.reconcile(t,c)}),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}async _processWorksheetEntry(e,t,n,r,i){const o=new v(r),s=await o.parseStream(e);s.sheetNo=n,t.worksheetHash[i]=s,t.worksheets.push(s)}async _processCommentEntry(e,t,n){const r=new C,i=await r.parseStream(e);t.comments[`../${n}.xml`]=i}async _processTableEntry(e,t,n){const r=new w,i=await r.parseStream(e);t.tables[`../tables/${n}.xml`]=i}async _processWorksheetRelsEntry(e,t,n){const r=new A,i=await r.parseStream(e);t.worksheetRels[n]=i}async _processMediaEntry(e,t,n){const r=n.lastIndexOf(".");if(r>=1){const i=n.substr(r+1),o=n.substr(0,r);await new Promise((r,s)=>{const a=new c;a.on("finish",()=>{t.mediaIndex[n]=t.media.length,t.mediaIndex[o]=t.media.length;const e={type:"image",name:o,extension:i,buffer:a.toBuffer()};t.media.push(e),r()}),e.on("error",e=>{s(e)}),e.pipe(a)})}}async _processDrawingEntry(e,t,n){const r=new b,i=await r.parseStream(e);t.drawings[n]=i}async _processDrawingRelsEntry(e,t,n){const r=new A,i=await r.parseStream(e);t.drawingRels[n]=i}async _processVmlDrawingEntry(e,t,n){const r=new _,i=await r.parseStream(e);t.vmlDrawings[`../drawings/${n}.vml`]=i}async _processThemeEntry(e,t,n){await new Promise((r,i)=>{const o=new c;e.on("error",i),o.on("error",i),o.on("finish",()=>{t.themes[n]=o.read().toString(),r()}),e.pipe(o)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){!e[Symbol.asyncIterator]&&e.pipe&&(e=e.pipe(new s));const n=[];for await(const r of e)n.push(r);return this.load(r.concat(n),t)}async load(e,t){let i;i=t&&t.base64?r.from(e.toString(),"base64"):e;const a={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},c=await o.loadAsync(i);for(const r of Object.values(c.files))if(!r.dir){let e,i=r.name;if("/"===i[0]&&(i=i.substr(1)),i.match(/xl\/media\//)||i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))e=new s,e.write(await r.async("nodebuffer"));else{let t;e=new s({writableObjectMode:!0,readableObjectMode:!0}),t=n.browser?h(await r.async("nodebuffer")):await r.async("string");const i=16384;for(let n=0;n<t.length;n+=i)e.write(t.substring(n,n+i))}switch(e.end(),i){case"_rels/.rels":a.globalRels=await this.parseRels(e);break;case"xl/workbook.xml":{const t=await this.parseWorkbook(e);a.sheets=t.sheets,a.definedNames=t.definedNames,a.views=t.views,a.properties=t.properties,a.calcProperties=t.calcProperties;break}case"xl/_rels/workbook.xml.rels":a.workbookRels=await this.parseRels(e);break;case"xl/sharedStrings.xml":a.sharedStrings=new p,await a.sharedStrings.parseStream(e);break;case"xl/styles.xml":a.styles=new d,await a.styles.parseStream(e);break;case"docProps/app.xml":{const t=new m,n=await t.parseStream(e);a.company=n.company,a.manager=n.manager;break}case"docProps/core.xml":{const t=new f,n=await t.parseStream(e);Object.assign(a,n);break}default:{let n=i.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(n){await this._processWorksheetEntry(e,a,n[1],t,i);break}if(n=i.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),n){await this._processWorksheetRelsEntry(e,a,n[1]);break}if(n=i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),n){await this._processThemeEntry(e,a,n[1]);break}if(n=i.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),n){await this._processMediaEntry(e,a,n[1]);break}if(n=i.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),n){await this._processDrawingEntry(e,a,n[1]);break}if(n=i.match(/xl\/(comments\d+)[.]xml/),n){await this._processCommentEntry(e,a,n[1]);break}if(n=i.match(/xl\/tables\/(table\d+)[.]xml/),n){await this._processTableEntry(e,a,n[1]);break}if(n=i.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),n){await this._processDrawingRelsEntry(e,a,n[1]);break}if(n=i.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),n){await this._processVmlDrawingEntry(e,a,n[1]);break}}}}return this.reconcile(a,t),this.workbook.model=a,this.workbook}async addMedia(e,t){await Promise.all(t.media.map(async t=>{if("image"===t.type){const n=`xl/media/${t.name}.${t.extension}`;if(t.filename){const r=await function(e,t){return new Promise((n,r)=>{i.readFile(e,t,(e,t)=>{e?r(e):n(t)})})}(t.filename);return e.append(r,{name:n})}if(t.buffer)return e.append(t.buffer,{name:n});if(t.base64){const r=t.base64,i=r.substring(r.indexOf(",")+1);return e.append(i,{name:n,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(e,t){const n=new b,r=new A;t.worksheets.forEach(t=>{const{drawing:i}=t;if(i){n.prepare(i,{});let t=n.toXml(i);e.append(t,{name:`xl/drawings/${i.name}.xml`}),t=r.toXml(i.rels),e.append(t,{name:`xl/drawings/_rels/${i.name}.xml.rels`})}})}addTables(e,t){const n=new w;t.worksheets.forEach(t=>{const{tables:r}=t;r.forEach(t=>{n.prepare(t,{});const r=n.toXml(t);e.append(r,{name:"xl/tables/"+t.target})})})}async addContentTypes(e,t){const n=(new g).toXml(t);e.append(n,{name:"[Content_Types].xml"})}async addApp(e,t){const n=(new m).toXml(t);e.append(n,{name:"docProps/app.xml"})}async addCore(e,t){const n=new f;e.append(n.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const n=t.themes||{theme1:S};Object.keys(n).forEach(t=>{const r=n[t],i=`xl/theme/${t}.xml`;e.append(r,{name:i})})}async addOfficeRels(e){const t=(new A).toXml([{Id:"rId1",Type:x.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:x.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:x.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(t,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let n=1;const r=[{Id:"rId"+n++,Type:x.RelType.Styles,Target:"styles.xml"},{Id:"rId"+n++,Type:x.RelType.Theme,Target:"theme/theme1.xml"}];t.sharedStrings.count&&r.push({Id:"rId"+n++,Type:x.RelType.SharedStrings,Target:"sharedStrings.xml"}),t.worksheets.forEach(e=>{e.rId="rId"+n++,r.push({Id:e.rId,Type:x.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})});const i=(new A).toXml(r);e.append(i,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){t.sharedStrings&&t.sharedStrings.count&&e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(e,t){const{xml:n}=t.styles;n&&e.append(n,{name:"xl/styles.xml"})}async addWorkbook(e,t){const n=new y;e.append(n.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const n=new v,r=new A,i=new C,o=new _;t.worksheets.forEach(t=>{let s=new l;n.render(s,t),e.append(s.xml,{name:`xl/worksheets/sheet${t.id}.xml`}),t.rels&&t.rels.length&&(s=new l,r.render(s,t.rels),e.append(s.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})),t.comments.length>0&&(s=new l,i.render(s,t),e.append(s.xml,{name:`xl/comments${t.id}.xml`}),s=new l,o.render(s,t),e.append(s.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`}))})}_finalize(e){return new Promise((t,n)=>{e.on("finish",()=>{t(this)}),e.on("error",n),e.finalize()})}prepareModel(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new p,e.styles=e.useStyles?new d(!0):new d.Mock;const n=new y,r=new v;n.prepare(e);const i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];let o=0;e.tables=[],e.worksheets.forEach(t=>{t.tables.forEach(t=>{o++,t.target=`table${o}.xml`,t.id=o,e.tables.push(t)}),r.prepare(t,i)})}async write(e,t){t=t||{};const{model:n}=this.workbook,r=new a.ZipWriter(t.zip);return r.pipe(e),this.prepareModel(n,t),await this.addContentTypes(r,n),await this.addOfficeRels(r,n),await this.addWorkbookRels(r,n),await this.addWorksheets(r,n),await this.addSharedStrings(r,n),await this.addDrawings(r,n),await this.addTables(r,n),await Promise.all([this.addThemes(r,n),this.addStyles(r,n)]),await this.addMedia(r,n),await Promise.all([this.addApp(r,n),this.addCore(r,n)]),await this.addWorkbook(r,n),this._finalize(r)}writeFile(e,t){const n=i.createWriteStream(e);return new Promise((e,r)=>{n.on("finish",()=>{e()}),n.on("error",e=>{r(e)}),this.write(n,t).then(()=>{n.end()}).catch(e=>{r(e)})})}async writeBuffer(e){const t=new c;return await this.write(t,e),t.read()}}x.RelType=e("./rel-type"),t.exports=x}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/wor
23ksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,n){"use strict";t.exports=
vendor: 7,964 bytes, line 23
23'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'
vendor: 68,104 bytes, line 23
23},{}],146:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CsvFormatterStream=void 0;const r=e("stream"),i=e("./formatter");class o extends r.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new i.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,n,r){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(e,n)=>e?(i=!0,r(e)):(n&&n.forEach(e=>{this.push(t.from(e,"utf8"))}),i=!0,r()))}catch(e){if(i)throw e;r(e)}}_flush(e){this.rowFormatter.finish((n,r)=>n?e(n):(r&&r.forEach(e=>{this.push(t.from(e,"utf8"))}),e()))}}n.CsvFormatterStream=o}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FormatterOptions=void 0,n.FormatterOptions=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,e||{}),void 0===(null==e?void 0:e.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==e?void 0:e.quote)?this.quote='"':!1===(null==e?void 0:e.quote)&&(this.quote=""),"string"!=typeof(null==e?void 0:e.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=e.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=void 0;const i=r(e("lodash.isboolean")),o=r(e("lodash.isnil")),s=r(e("lodash.escaperegexp"));n.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,null!==e.headers&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const t=`[${e.delimiter}${s.default(e.rowDelimiter)}|\r|\n]`;this.ESCAPE_REGEXP=new RegExp(t)}set headers(e){this._headers=e}shouldQuote(e,t){const n=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(n)?n:Array.isArray(n)?n[e]:null!==this._headers&&n[this._headers[e]]}format(e,t,n){const r=(""+(o.default(e)?"":e)).replace(/\0/g,""),{formatterOptions:i}=this;return""!==i.quote&&-1!==r.indexOf(i.quote)?this.quoteField(r.replace(this.REPLACE_REGEXP,i.escapedQuote)):-1!==r.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,n)?this.quoteField(r):r}quoteField(e){const{quote:t}=this.formatterOptions;return`${t}${e}${t}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowFormatter=void 0;const i=r(e("lodash.isfunction")),o=r(e("lodash.isequal")),s=e("./FieldFormatter"),a=e("../types");class c{constructor(e){this.rowCount=0,this.formatterOptions=e,this.fieldFormatter=new s.FieldFormatter(e),this.headers=e.headers,this.shouldWriteHeaders=e.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),e.transform&&(this.rowTransform=e.transform)}static isRowHashArray(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}static isRowArray(e){return Array.isArray(e)&&!this.isRowHashArray(e)}static gatherHeaders(e){return c.isRowHashArray(e)?e.map(e=>e[0]):Array.isArray(e)?e:Object.keys(e)}static createTransform(e){return a.isSyncTransform(e)?(t,n)=>{let r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:(t,n)=>{e(t,n)}}set rowTransform(e){if(!i.default(e))throw new TypeError("The transform should be a function");this._rowTransform=c.createTransform(e)}format(e,t){this.callTransformer(e,(n,r)=>{if(n)return t(n);if(!e)return t(null);const i=[];if(r){const{shouldFormatColumns:e,headers:t}=this.checkHeaders(r);if(this.shouldWriteHeaders&&t&&!this.hasWrittenHeaders&&(i.push(this.formatColumns(t,!0)),this.hasWrittenHeaders=!0),e){const e=this.gatherColumns(r);i.push(this.formatColumns(e,!1))}}return t(null,i)})}finish(e){const t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}checkHeaders(e){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const t=c.gatherHeaders(e);return this.headers=t,this.fieldFormatter.headers=t,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(t,e),headers:t}:{shouldFormatColumns:!0,headers:null}}gatherColumns(e){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(e)?c.isRowHashArray(e)?this.headers.map((t,n)=>{const r=e[n];return r?r[1]:""}):c.isRowArray(e)&&!this.shouldWriteHeaders?e:this.headers.map((t,n)=>e[n]):this.headers.map(t=>e[t])}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}formatColumns(e,t){const n=e.map((e,n)=>this.fieldFormatter.format(e,n,t)).join(this.formatterOptions.delimiter),{rowCount:r}=this;return this.rowCount+=1,r?[this.formatterOptions.rowDelimiter,n].join(""):n}}n.RowFormatter=c},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=n.RowFormatter=void 0;var r=e("./RowFormatter");Object.defineProperty(n,"RowFormatter",{enumerable:!0,get:function(){return r.RowFormatter}});var i=e("./FieldFormatter");Object.defineProperty(n,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,n){(function(t){(function(){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=n.FormatterOptions=n.CsvFormatterStream=void 0;const a=e("util"),c=e("stream"),u=o(e("fs")),l=e("./FormatterOptions"),h=e("./CsvFormatterStream");s(e("./types"),n);var d=e("./CsvFormatterStream");Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return d.CsvFormatterStream}});var f=e("./FormatterOptions");Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return f.FormatterOptions}}),n.format=e=>new h.CsvFormatterStream(new l.FormatterOptions(e)),n.write=(e,t)=>{const r=n.format(t),i=a.promisify((e,t)=>{r.write(e,void 0,t)});return e.reduce((e,t)=>e.then(()=>i(t)),Promise.resolve()).then(()=>r.end()).catch(e=>{r.emit("error",e)}),r},n.writeToStream=(e,t,r)=>n.write(t,r).pipe(e),n.writeToBuffer=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=[],o=new c.Writable({write(e,t,n){i.push(e),n()}});return new Promise((s,a)=>{o.on("error",a).on("finish",()=>s(t.concat(i))),n.write(e,r).pipe(o)})},n.writeToString=(e,t)=>n.writeToBuffer(e,t).then(e=>e.toString()),n.writeToPath=(e,t,r)=>{const i=u.createWriteStream(e,{encoding:"utf8"});return n.write(t,r).pipe(i)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncTransform=void 0,n.isSyncTransform=e=>1===e.length},{}],153:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=void 0;const r=e("string_decoder"),i=e("stream"),o=e("./transforms"),s=e("./parser");class a extends i.Transform{constructor(e){super({objectMode:e.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=e,this.parser=new s.Parser(e),this.headerTransformer=new o.HeaderTransformer(e),this.decoder=new r.StringDecoder(e.encoding),this.rowTransformerValidator=new o.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(e){return this.rowTransformerValidator.rowTransform=e,this}validate(e){return this.rowTransformerValidator.rowValidator=e,this}emit(e){if("end"===e)return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return super.emit(e,...n)}_transform(e,t,n){if(this.hasHitRowLimit)return n();const r=a.wrapDoneCallback(n);try{const{lines:t}=this,n=t+this.decoder.write(e),i=this.parse(n,!0);return this.processRows(i,r)}catch(e){return r(e)}}_flush(e){const t=a.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{const e=this.lines+this.decoder.end(),n=this.parse(e,!1);return this.processRows(n,t)}catch(e){return t(e)}}parse(e,t){if(!e)return[];const{line:n,rows:r}=this.parser.parse(e,t);return this.lines=n,r}processRows(e,n){const r=e.length,i=o=>{const s=e=>e?n(e):o%100!=0?i(o+1):void t(()=>i(o+1));if(this.checkAndEmitHeaders(),o>=r||this.hasHitRowLimit)return n();if(this.parsedLineCount+=1,this.shouldSkipLine)return s();const a=e[o];this.rowCount+=1,this.parsedRowCount+=1;const c=this.rowCount;return this.transformRow(a,(e,t)=>{if(e)return this.rowCount-=1,s(e);if(!t)return s(new Error("expected transform result"));if(t.isValid){if(t.row)return this.pushRow(t.row,s)}else this.emit("data-invalid",t.row,c,t.reason);return s()})};i(0)}transformRow(e,t){try{this.headerTransformer.transform(e,(n,r)=>n?t(n):r?r.isValid?r.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(r.row,t):this.skipRow(t):(this.rowCount-=1,this.parsedRowCount-=1,t(null,{row:null,isValid:!0})):this.shouldEmitRows?t(null,{isValid:!1,row:e}):this.skipRow(t):t(new Error("Expected result from header transform")))}catch(e){t(e)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}pushRow(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}static wrapDoneCallback(e){let t=!1;return function(n){if(n){if(t)throw n;return t=!0,void e(n)}for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e(...i)}}}n.CsvParserStream=a}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ParserOptions=void 0;const i=r(e("lodash.escaperegexp")),o=r(e("lodash.isnil"));n.ParserOptions=class{constructor(e){var t;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,e||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=null!==(t=this.escape)&&void 0!==t?t:this.quote,this.supportsComments=!o.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.parseString=n.parseFile=n.parseStream=n.parse=n.ParserOptions=n.CsvParserStream=void 0;const a=o(e("fs")),c=e("stream"),u=e("./ParserOptions"),l=e("./CsvParserStream");s(e("./types"),n);var h=e("./CsvParserStream");Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return h.CsvParserStream}});var d=e("./ParserOptions");Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return d.ParserOptions}}),n.parse=e=>new l.CsvParserStream(new u.ParserOptions(e)),n.parseStream=(e,t)=>e.pipe(new l.CsvParserStream(new u.ParserOptions(t))),n.parseFile=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.createReadStream(e).pipe(new l.CsvParserStream(new u.ParserOptions(t)))},n.parseString=(e,t)=>{const n=new c.Readable;return n.push(e),n.push(null),n.pipe(new l.CsvParserStream(new u.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0;const r=e("./Scanner"),i=e("./RowParser"),o=e("./Token");class s{constructor(e){this.parserOptions=e,this.rowParser=new i.RowParser(this.parserOptions)}static removeBOM(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}parse(e,t){const n=new r.Scanner({line:s.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:t});return this.parserOptions.supportsComments?this.parseWithComments(n):this.parseWithoutComments(n)}parseWithoutComments(e){const t=[];let n=!0;for(;n;)n=this.parseRow(e,t);return{line:e.line,rows:t}}parseWithComments(e){const{parserOptions:t}=this,n=[];for(let r=e.nextCharacterToken;null!==r;r=e.nextCharacterToken)if(o.Token.isTokenComment(r,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:n};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}parseRow(e,t){if(!e.nextNonSpaceToken)return!1;const n=this.rowParser.parse(e);return null!==n&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(n)||t.push(n),!0)}}n.Parser=s},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RowParser=void 0;const r=e("./column"),i=e("./Token");n.RowParser=class{constructor(e){this.parserOptions=e,this.columnParser=new r.ColumnParser(e)}static isEmptyRow(e){return""===e.join("").replace(/\s+/g,"")}parse(e){const{parserOptions:t}=this,{hasMoreData:n}=e,r=e,o=[];let s=this.getStartToken(r,o);for(;s;){if(i.Token.isTokenRowDelimiter(s))return r.advancePastToken(s),!r.hasMoreCharacters&&i.Token.isTokenCarriageReturn(s,t)&&n?null:(r.truncateToCursor(),o);if(!this.shouldSkipColumnParse(r,s,o)){const e=this.columnParser.parse(r);if(null===e)return null;o.push(e)}s=r.nextNonSpaceToken}return n?null:(r.truncateToCursor(),o)}getStartToken(e,t){const n=e.nextNonSpaceToken;return null!==n&&i.Token.isTokenDelimiter(n,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):n}shouldSkipColumnParse(e,t,n){const{parserOptions:r}=this;if(i.Token.isTokenDelimiter(t,r)){e.advancePastToken(t);const o=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==o&&i.Token.isTokenRowDelimiter(o))return n.push(""),!0;if(null!==o&&i.Token.isTokenDelimiter(o,r))return n.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Scanner=void 0;const r=e("./Token"),i=/((?:\r\n)|\n|\r)/;n.Scanner=class{constructor(e){this.cursor=0,this.line=e.line,this.lineLength=this.line.length,this.parserOptions=e.parserOptions,this.hasMoreData=e.hasMoreData,this.cursor=e.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:e}=this,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;const n=t.exec(e);if(null==n)return null;const i=n[1],o=this.cursor+(n.index||0);return new r.Token({token:i,startCursor:o,endCursor:o+i.length-1})}get nextCharacterToken(){const{cursor:e,lineLength:t}=this;return t<=e?null:new r.Token({token:this.line[e],startCursor:e,endCursor:e})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const e=i.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(e){return this.cursor=e,this}advanceToToken(e){return this.cursor=e.startCursor,this}advancePastToken(e){return this.cursor=e.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Token=void 0,n.Token=class{constructor(e){this.token=e.token,this.startCursor=e.startCursor,this.endCursor=e.endCursor}static isTokenRowDelimiter(e){const t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}static isTokenCarriageReturn(e,t){return e.token===t.carriageReturn}static isTokenComment(e,t){return t.supportsComments&&!!e&&e.token===t.comment}static isTokenEscapeCharacter(e,t){return e.token===t.escapeChar}static isTokenQuote(e,t){return e.token===t.quote}static isTokenDelimiter(e,t){return e.token===t.delimiter}}},{}],160:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=void 0,n.ColumnFormatter=class{constructor(e){e.trim?this.format=e=>e.trim():e.ltrim?this.format=e=>e.trimLeft():e.rtrim?this.format=e=>e.trimRight():this.format=e=>e}}},{}],161:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnParser=void 0;const r=e("./NonQuotedColumnParser"),i=e("./QuotedColumnParser"),o=e("../Token");n.ColumnParser=class{constructor(e){this.parserOptions=e,this.quotedColumnParser=new i.QuotedColumnParser(e),this.nonQuotedColumnParser=new r.NonQuotedColumnParser(e)}parse(e){const{nextNonSpaceToken:t}=e;return null!==t&&o.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NonQuotedColumnParser=void 0;const r=e("./ColumnFormatter"),i=e("../Token");n.NonQuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new r.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const{parserOptions:t}=this,n=[];let r=e.nextCharacterToken;for(;r&&!i.Token.isTokenDelimiter(r,t)&&!i.Token.isTokenRowDelimiter(r);r=e.nextCharacterToken)n.push(r.token),e.advancePastToken(r);return this.columnFormatter.format(n.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=void 0;const r=e("./ColumnFormatter"),i=e("../Token");n.QuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new r.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const t=e.cursor,{foundClosingQuote:n,col:r}=this.gatherDataBetweenQuotes(e);if(!n){if(e.advanceTo(t),!e.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${e.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(e),r}gatherDataBetweenQuotes(e){const{parserOptions:t}=this;let n=!1,r=!1;const o=[];let s=e.nextCharacterToken;for(;!r&&null!==s;s=e.nextCharacterToken){const a=i.Token.isTokenQuote(s,t);if(!n&&a)n=!0;else if(n)if(i.Token.isTokenEscapeCharacter(s,t)){e.advancePastToken(s);const n=e.nextCharacterToken;null!==n&&(i.Token.isTokenQuote(n,t)||i.Token.isTokenEscapeCharacter(n,t))?(o.push(n.token),s=n):a?r=!0:o.push(s.token)}else a?r=!0:o.push(s.token);e.advancePastToken(s)}return{col:this.columnFormatter.format(o.join("")),foundClosingQuote:r}}checkForMalformedColumn(e){const{parserOptions:t}=this,{nextNonSpaceToken:n}=e;if(n){const r=i.Token.isTokenDelimiter(n,t),o=i.Token.isTokenRowDelimiter(n);if(!r&&!o){const r=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${t.escapedDelimiter}' OR new line got: '${n.token}'. at '${r}`)}e.advanceToToken(n)}else e.hasMoreData||e.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=void 0;var r=e("./ColumnParser");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return r.ColumnParser}});var i=e("./NonQuotedColumnParser");Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var o=e("./QuotedColumnParser");Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}});var s=e("./ColumnFormatter");Object.defineProperty(n,"ColumnFormatter",{enumerable:!0,get:function(){return s.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=n.Token=n.Scanner=n.RowParser=n.Parser=void 0;var r=e("./Parser");Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return r.Parser}});var i=e("./RowParser");Object.defineProperty(n,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var o=e("./Scanner");Object.defineProperty(n,"Scanner",{enumerable:!0,get:function(){return o.Scanner}});var s=e("./Token");Object.defineProperty(n,"Token",{enumerable:!0,get:function(){return s.Token}});var a=e("./column");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return a.ColumnParser}}),Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}}),Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=void 0;const i=r(e("lodash.isundefined")),o=r(e("lodash.isfunction")),s=r(e("lodash.uniq")),a=r(e("lodash.groupby"));n.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=e,!0===e.headers?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):o.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}shouldMapRow(e){const{parserOptions:t}=this;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}processRow(e){if(!this.headers)return{row:e,isValid:!0};const{parserOptions:t}=this;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}:{row:this.mapHeaders(e),isValid:!0}}mapHeaders(e){const t={},{headers:n,headersLength:r}=this;for(let o=0;o<r;o+=1){const r=n[o];if(!i.default(r)){const n=e[o];i.default(n)?t[r]="":t[r]=n}}return t}setHeaders(e){var t;const n=e.filter(e=>!!e);if(s.default(n).length!==n.length){const e=a.default(n),t=Object.keys(e).filter(t=>e[t].length>1);throw new Error("Duplicate headers found "+JSON.stringify(t))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowTransformerValidator=void 0;const i=r(e("lodash.isfunction")),o=e("../types");class s{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return o.isSyncTransform(e)?(t,n)=>{let r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:e}static createValidator(e){return o.isSyncValidate(e)?(t,n)=>{n(null,{row:t,isValid:e(t)})}:(t,n)=>{e(t,(e,r,i)=>e?n(e):n(null,r?{row:t,isValid:r,reason:i}:{row:t,isValid:!1,reason:i}))}}set rowTransform(e){if(!i.default(e))throw new TypeError("The transform should be a function");this._rowTransform=s.createTransform(e)}set rowValidator(e){if(!i.default(e))throw new TypeError("The validate should be a function");this._rowValidator=s.createValidator(e)}transformAndValidate(e,t){return this.callTransformer(e,(e,n)=>e?t(e):n?this.callValidator(n,(e,r)=>e?t(e):r&&!r.isValid?t(null,{row:n,isValid:!1,reason:r.reason}):t(null,{row:n,isValid:!0})):t(null,{row:null,isValid:!0}))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}callValidator(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}n.RowTransformerValidator=s},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=n.RowTransformerValidator=void 0;var r=e("./RowTransformerValidator");Object.defineProperty(n,"RowTransformerValidator",{enumerable:!0,get:function(){return r.RowTransformerValidator}});var i=e("./HeaderTransformer");Object.defineProperty(n,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncValidate=n.isSyncTransform=void 0,n.isSyncTransform=e=>1===e.length,n.isSyncValidate=e=>1===e.length},{}],170:[function(e,t,n){"use strict";const r=n;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,t,n){"use strict";const r=e("./encoders"),i=e("./decoders"),o=e("inherits");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}n.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){const t=this.name;function n(e){this._initNamed(e,t)}return o(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},s.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},s.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,n){"use strict";const r=e("inherits"),i=e("../base/reporter").Reporter,o=e("safer-buffer").Buffer;function s(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return a.isEncoderBuffer(e)||(e=new a(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(s,i),n.DecoderBuffer=s,s.isDecoderBuffer=function(e){return e instanceof s||"object"==typeof e&&o.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){const t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new s(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},n.EncoderBuffer=a,a.isEncoderBuffer=function(e){return e instanceof a||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},a.prototype.join=function(e,t){return e||(e=o.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,n){"use strict";const r=n;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,n){"use strict";const r=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,o=e("../base/buffer").DecoderBuffer,s=e("minimalistic-assert"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function u(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,t={};l.forEach(function(n){t[n]=e[n]});const n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){const e=this._baseState;c.forEach(function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},u.prototype._init=function(e){const t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){const t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),a.forEach(function(e){u.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}}),u.prototype.use=function(e){s(e);const t=this._baseState;return s(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){const t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){const t=this._baseState;return s(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(e){const t=this._baseState;return s(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,s=!0,a=null;if(null!==n.key&&(a=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(s=this._peekTag(e,r,n.any),e.isError(s))return s}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(r)}}if(n.obj&&s&&(r=e.enterObject()),s){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&s&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==s?null!==a&&e.exitKey(a):e.leaveKey(a,n.key,i),i},u.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some(function(o){const s=e.save(),a=n.choice[o];try{const n=a._decode(e,t);if(e.isError(n))return!1;r={type:o,value:n},i=!0}catch(t){return e.restore(s),!1}return!0},this),i?r:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},u.prototype._encodeValue=function(e,t,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let s=null,a=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,n)._encode(e,t),a=!0;else if(i.children)s=i.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)},n))}else null!==i.use?o=this._getUse(i.use,n)._encode(e,t):(s=this._encodePrimitive(i.tag,e),a=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,a,n,s))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},u.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,n){"use strict";const r=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}n.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof o;if(t=r?e:new o(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(e,t,n){"use strict";function r(e){const t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n}),t}n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=r(n.tagClass),n.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},n.tagByName=r(n.tag)},{}],177:[function(e,t,n){"use strict";const r=n;r._reverse=function(e){const t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n}),t},r.der=e("./der")},{"./der":176}],178:[function(e,t,n){"use strict";const r=e("inherits"),i=e("bn.js"),o=e("../base/buffer").DecoderBuffer,s=e("../base/node"),a=e("../constants/der");function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){s.call(this,"der",e)}function l(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const r=a.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:a.tag[n]}}function h(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let o=0;o<i;o++){r<<=8;const t=e.readUInt8(n);if(e.isError(t))return t;r|=t}return r}t.exports=c,c.prototype.decode=function(e,t){return o.isDecoderBuffer(e)||(e=new o(e,t)),this.tree._decode(e,t)},r(u,s),u.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;const r=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},u.prototype._decodeTag=function(e,t,n){const r=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;let i=h(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const o=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){const n=l(e,t);if(e.isError(n))return n;const r=h(e,n.primitive,t);if(e.isError(r))return r;let i;if(i=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===n.tagStr)break}},u.prototype._decodeList=function(e,t,n,r){const i=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const o=n.decode(e,"der",r);if(e.isError(o)&&t)break;i.push(o)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let n="";for(let e=0;e<t.length/2;e++)n+=String.fromCharCode(t.readUInt16BE(2*e));return n}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},u.prototype._decodeObjid=function(e,t,n){let r;const i=[];let o=0,s=0;for(;!e.isEmpty();)s=e.readUInt8(),o<<=7,o|=127&s,0==(128&s)&&(i.push(o),o=0);128&s&&i.push(o);const a=i[0]/40|0,c=i[0]%40;if(r=n?i:[a,c].concat(i.slice(1)),t){let e=t[r.join(" ")];void 0===e&&(e=t[r.join(".")]),void 0!==e&&(r=e)}return r},u.prototype._decodeTime=function(e,t){const n=e.raw().toString();let r,i,o,s,a,c;if("gentime"===t)r=0|n.slice(0,4),i=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),a=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),o=0|n.slice(4,6),s=0|n.slice(6,8),a=0|n.slice(8,10),c=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,o,s,a,c,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){const n=e.raw();let r=new i(n);return t&&(r=t[r.toString(10)]||r),r},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,n){"use strict";const r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,n){"use strict";const r=e("inherits"),i=e("safer-buffer").Buffer,o=e("./der");function s(e){o.call(this,e),this.enc="pem"}r(s,o),t.exports=s,s.prototype.decode=function(e,t){const n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,c=-1;for(let i=0;i<n.length;i++){const e=n[i].match(s);if(null!==e&&e[2]===r){if(-1!==a){if("END"!==e[1])break;c=i;break}if("BEGIN"!==e[1])break;a=i}}if(-1===a||-1===c)throw new Error("PEM section not found for: "+r);const u=n.slice(a+1,c).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const l=i.from(u,"base64");return o.prototype.decode.call(this,l,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,n){"use strict";const r=e("inherits"),i=e("safer-buffer").Buffer,o=e("../base/node"),s=e("../constants/der");function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.call(this,"der",e)}function u(e){return e<10?"0"+e:e}t.exports=a,a.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,o),c.prototype._encodeComposite=function(e,t,n,r){const o=function(e,t,n,r){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[n||"universal"]<<6,i)}(e,t,n,this.reporter);if(r.length<128){const e=i.alloc(2);return e[0]=o,e[1]=r.length,this._createEncoderBuffer([e,r])}let a=1;for(let i=r.length;i>=256;i>>=8)a++;const c=i.alloc(2+a);c[0]=o,c[1]=128|a;for(let i=1+a,s=r.length;s>0;i--,s>>=8)c[i]=255&s;return this._createEncoderBuffer([c,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let n=0;n<e.length;n++)t.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let i=0;i<e.length;i++){let t=e[i];for(r++;t>=128;t>>=7)r++}const o=i.alloc(r);let s=o.length-1;for(let i=e.length-1;i>=0;i--){let t=e[i];for(o[s--]=127&t;(t>>=7)>0;)o[s--]=128|127&t}return this._createEncoderBuffer(o)},c.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=i.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;const r=new Array(n);for(let i=r.length-1;i>=0;i--)r[i]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const o=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==r.defaultBuffer[i])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,n){"use strict";const r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,t,n){"use strict";const r=e("inherits"),i=e("./der");function o(e){i.call(this,e),this.enc="pem"}r(o,i),t.exports=o,o.prototype.encode=function(e,t){const n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let i=0;i<n.length;i+=64)r.push(n.slice(i,i+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},{"./der":181,inherits:440}],184:[function(e,t,n){"use strict";!function(t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof t?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function a(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l<a;l+=r)u=c(e,l,l+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=c(e,l,e.length,t),l=0;l<s;l++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u<r;u++){for(var l=c>>>26,h=67108863&c,d=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=d;f++){var p=u-f|0;l+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);r=0!==(o=a>>>24-i&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],f=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var A=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?A+r:u[d-A.length]+A+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,c="le"===t,u=new e(o),l=this.clone();if(c){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),u[a]=s;for(;a<o;a++)u[a]=0}else{for(a=0;a<o-i;a++)u[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),u[o-a-1]=s}return u},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(t=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<n.length;s++)o=(t=(0|n.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,n){var r,i,o,s=e.words,a=t.words,c=n.words,u=0,l=0|s[0],h=8191&l,d=l>>>13,f=0|s[1],p=8191&f,A=f>>>13,g=0|s[2],m=8191&g,y=g>>>13,v=0|s[3],b=8191&v,w=v>>>13,C=0|s[4],_=8191&C,S=C>>>13,x=0|s[5],T=8191&x,P=x>>>13,E=0|s[6],I=8191&E,k=E>>>13,B=0|s[7],M=8191&B,O=B>>>13,D=0|s[8],R=8191&D,L=D>>>13,N=0|s[9],U=8191&N,F=N>>>13,j=0|a[0],H=8191&j,z=j>>>13,Q=0|a[1],V=8191&Q,K=Q>>>13,W=0|a[2],G=8191&W,q=W>>>13,Y=0|a[3],X=8191&Y,Z=Y>>>13,$=0|a[4],J=8191&$,ee=$>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ce=8191&ae,ue=ae>>>13,le=0|a[8],he=8191&le,de=le>>>13,fe=0|a[9],pe=8191&fe,Ae=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(h,H))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,H),i=(i=Math.imul(p,z))+Math.imul(A,H)|0,o=Math.imul(A,z);var me=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,V)|0))<<13)|0;u=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,H),i=(i=Math.imul(m,z))+Math.imul(y,H)|0,o=Math.imul(y,z),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0;var ye=(u+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;u=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,H),i=(i=Math.imul(b,z))+Math.imul(w,H)|0,o=Math.imul(w,z),r=r+Math.imul(m,V)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,q)|0;var ve=(u+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(_,H),i=(i=Math.imul(_,z))+Math.imul(S,H)|0,o=Math.imul(S,z),r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,r=r+Math.imul(m,G)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0;var be=(u+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,J)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(T,H),i=(i=Math.imul(T,z))+Math.imul(P,H)|0,o=Math.imul(P,z),r=r+Math.imul(_,V)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(m,X)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0;var we=(u+(r=r+Math.imul(h,ne)|0)|0)+((8191&(i=(i=i+Math.imul(h,re)|0)+Math.imul(d,ne)|0))<<13)|0;u=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,H),i=(i=Math.imul(I,z))+Math.imul(k,H)|0,o=Math.imul(k,z),r=r+Math.imul(T,V)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,K)|0,r=r+Math.imul(_,G)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0;
vendor: 4,317 bytes, line 23
23var Ce=(u+(r=r+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(M,H),i=(i=Math.imul(M,z))+Math.imul(O,H)|0,o=Math.imul(O,z),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,K)|0,r=r+Math.imul(T,G)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,i=(i=i+Math.imul(m,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,se)|0;var _e=(u+(r=r+Math.imul(h,ce)|0)|0)+((8191&(i=(i=i+Math.imul(h,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,H),i=(i=Math.imul(R,z))+Math.imul(L,H)|0,o=Math.imul(L,z),r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(T,X)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,Z)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,se)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,se)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0;var Se=(u+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,H),i=(i=Math.imul(U,z))+Math.imul(F,H)|0,o=Math.imul(F,z),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(M,G)|0,i=(i=i+Math.imul(M,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,Z)|0,r=r+Math.imul(T,J)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,se)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,se)|0,r=r+Math.imul(m,ce)|0,i=(i=i+Math.imul(m,ue)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,ue)|0,r=r+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(A,he)|0,o=o+Math.imul(A,de)|0;var xe=(u+(r=r+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,Ae)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,Ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,V),i=(i=Math.imul(U,K))+Math.imul(F,V)|0,o=Math.imul(F,K),r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,se)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,se)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,r=r+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(y,he)|0,o=o+Math.imul(y,de)|0;var Te=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,Ae)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,Ae)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,G),i=(i=Math.imul(U,q))+Math.imul(F,G)|0,o=Math.imul(F,q),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,r=r+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,ue)|0,r=r+Math.imul(b,he)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(w,he)|0,o=o+Math.imul(w,de)|0;var Pe=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,Ae)|0)+Math.imul(y,pe)|0))<<13)|0;u=((o=o+Math.imul(y,Ae)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,X),i=(i=Math.imul(U,Z))+Math.imul(F,X
vendor: 41,110 bytes, line 23
23)|0,o=Math.imul(F,Z),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,se)|0,r=r+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,ue)|0,r=r+Math.imul(_,he)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(S,he)|0,o=o+Math.imul(S,de)|0;var Ee=(u+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,Ae)|0)+Math.imul(w,pe)|0))<<13)|0;u=((o=o+Math.imul(w,Ae)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),i=(i=Math.imul(U,ee))+Math.imul(F,J)|0,o=Math.imul(F,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,r=r+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(P,he)|0,o=o+Math.imul(P,de)|0;var Ie=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,Ae)|0)+Math.imul(S,pe)|0))<<13)|0;u=((o=o+Math.imul(S,Ae)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,ne),i=(i=Math.imul(U,re))+Math.imul(F,ne)|0,o=Math.imul(F,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,se)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(O,ce)|0,o=o+Math.imul(O,ue)|0,r=r+Math.imul(I,he)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(k,he)|0,o=o+Math.imul(k,de)|0;var ke=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,Ae)|0)+Math.imul(P,pe)|0))<<13)|0;u=((o=o+Math.imul(P,Ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(F,oe)|0,o=Math.imul(F,se),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(L,ce)|0,o=o+Math.imul(L,ue)|0,r=r+Math.imul(M,he)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(u+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,Ae)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,Ae)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,ce),i=(i=Math.imul(U,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),r=r+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(L,he)|0,o=o+Math.imul(L,de)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,Ae)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,Ae)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(F,he)|0,o=Math.imul(F,de);var Oe=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,Ae)|0)+Math.imul(L,pe)|0))<<13)|0;u=((o=o+Math.imul(L,Ae)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(u+(r=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,Ae))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,Ae))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=ge,c[1]=me,c[2]=ye,c[3]=ve,c[4]=be,c[5]=we,c[6]=Ce,c[7]=_e,c[8]=Se,c[9]=xe,c[10]=Te,c[11]=Pe,c[12]=Ee,c[13]=Ie,c[14]=ke,c[15]=Be,c[16]=Me,c[17]=Oe,c[18]=De,0!==u&&(c[19]=u,n.length++),n};function p(e,t,n){return(new A).mulp(e,t,n)}function A(e,t){this.x=e,this.y=t}Math.imul||(f=d),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var l=o-u,h=(0|e.words[l])*(0|t.words[u]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},A.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},A.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},A.prototype.permute=function(e,t,n,r,i,o){for(var s=0;s<o;s++)r[s]=t[e[s]],i[s]=n[e[s]]},A.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=c,d=u,f=0;f<s;f++){var p=n[l+f],A=r[l+f],g=n[l+f+s],m=r[l+f+s],y=h*g-d*m;m=h*m+d*g,g=y,n[l+f]=p+g,r[l+f]=A+m,n[l+f+s]=p-g,r[l+f+s]=A-m,f!==a&&(y=c*h-u*d,d=c*d+u*h,h=y)}},A.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},A.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},A.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},A.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0==(-8192&o))},A.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},A.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),c=new Array(r),u=new Array(r),l=new Array(r),h=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,s,r),this.convert13b(t.words,t.length,u,r),this.transform(s,o,a,c,r,i),this.transform(u,o,l,h,r,i);for(var f=0;f<r;f++){var p=a[f]*l[f]-c[f]*h[f];c[f]=a[f]*h[f]+c[f]*l[f],a[f]=p}return this.conjugate(a,c,r),this.transform(a,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),p(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,c=(0|this.words[t])-a<<r;this.words[t]=c|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,c=r;if(i-=s,i=Math.max(0,i),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var h=0|this.words[u];this.words[u]=l<<26-o|h>>>o,l=h&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var c=(0|e.words[i])*t;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,s=0|o.words[o.length-1];0!==(n=26-this._countBits(s))&&(o=o.ushln(n),r.iushln(n),s=0|o.words[o.length-1]);var a,c=r.length-o.length;if("mod"!==t){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=r.clone()._ishlnsubmul(o,1,c);0===l.negative&&(r=l,a&&(a.words[c]=1));for(var h=c-1;h>=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var p=0,A=1;0==(r.words[0]&A)&&p<26;++p,A<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(h)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(a),s.isub(c)):(r.isub(t),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new C(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},r(y,m),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(v,m),r(b,m),r(w,m),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new v;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return g[e]=t,t},C.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var h=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),f=this.pow(e,o),p=s;0!==f.cmp(a);){for(var A=f,g=0;0!==A.cmp(a);g++)A=A.redSqr();n(g<p);var m=this.pow(h,new i(1).iushln(p-g-1));d=d.redMul(m),h=m.redSqr(),f=f.redMul(h),p=g}return d},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var h=u>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===l)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}c=26}return o},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new _(e)},r(_,C),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],185:[function(e,t,n){"use strict";n.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=u(e),s=r[0],a=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),l=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(l(e,s,s+16383>a?a:s+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,s=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],186:[function(e,t,n){"use strict";!function(t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof t?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function a(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,r,i){for(var o=0,s=0,a=Math.min(e.length,r),c=t;c<a;c++){var u=e.charCodeAt(c)-48;o*=i,s=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s<i,"Invalid character"),o+=s}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l<a;l+=r)u=c(e,l,l+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=c(e,l,e.length,t),l=0;l<s;l++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){u(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u<r;u++){for(var l=c>>>26,h=67108863&c,d=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=d;f++){var p=u-f|0;l+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?h[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],l=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var A=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?A+r:h[u-A.length]+A+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n++]=255&s,n<e.length&&(e[n++]=s>>8&255),n<e.length&&(e[n++]=s>>16&255),6===o?(n<e.length&&(e[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n--]=255&s,n>=0&&(e[n--]=s>>8&255),n>=0&&(e[n--]=s>>16&255),6===o?(n>=0&&(e[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(t=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<n.length;s++)o=(t=(0|n.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var A=function(e,t,n){var r,i,o,s=e.words,a=t.words,c=n.words,u=0,l=0|s[0],h=8191&l,d=l>>>13,f=0|s[1],p=8191&f,A=f>>>13,g=0|s[2],m=8191&g,y=g>>>13,v=0|s[3],b=8191&v,w=v>>>13,C=0|s[4],_=8191&C,S=C>>>13,x=0|s[5],T=8191&x,P=x>>>13,E=0|s[6],I=8191&E,k=E>>>13,B=0|s[7],M=8191&B,O=B>>>13,D=0|s[8],R=8191&D,L=D>>>13,N=0|s[9],U=8191&N,F=N>>>13,j=0|a[0],H=8191&j,z=j>>>13,Q=0|a[1],V=8191&Q,K=Q>>>13,W=0|a[2],G=8191&W,q=W>>>13,Y=0|a[3],X=8191&Y,Z=Y>>>13,$=0|a[4],J=8191&$,ee=$>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ce=8191&ae,ue=ae>>>13,le=0|a[8],he=8191&le,de=le>>>13,fe=0|a[9],pe=8191&fe,Ae=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(h,H))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,H),i=(i=Math.imul(p,z))+Math.imul(A,H)|0,o=Math.imul(A,z);var me=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,V)|0))<<13)|0;u=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,H),i=(i=Math.imul(m,z))+Math.imul(y,H)|0,o=Math.imul(y,z),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0;var ye=(u+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;u=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,H),i=(i=Math.imul(b,z))+Math.imul(w,H)|0,o=Math.imul(w,z),r=r+Math.imul(m,V)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,q)|0;var ve=(u+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(_,H),i=(i=Math.imul(_,z))+Math.imul(S,H)|0,o=Math.imul(S,z),r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,r=r+Math.imul(m,G)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0;var be=(u+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,J)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(T,H),i=(i=Math.imul(T,z))+Math.imul(P,H)|0,o=Math.imul(P,z),r=r+Math.imul(_,V)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(m,X)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0;var we=(u+(r=r+Math.imul(h,ne)|0)|0)+((8191&(i=(i=i+Math.imul(h,re)|0)+Math.imul(d,ne)|0))<<13)|0;u=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(I,H),i=(i=Math.imul(I,z))+Math.imul(k,H)|0,o=Math.imul(k,z),r=r+Math.imul(T,V)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,K)|0,r=r+Math.imul(_,G)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0;
vendor: 4,317 bytes, line 23
23var Ce=(u+(r=r+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(M,H),i=(i=Math.imul(M,z))+Math.imul(O,H)|0,o=Math.imul(O,z),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,K)|0,r=r+Math.imul(T,G)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,i=(i=i+Math.imul(m,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,se)|0;var _e=(u+(r=r+Math.imul(h,ce)|0)|0)+((8191&(i=(i=i+Math.imul(h,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,H),i=(i=Math.imul(R,z))+Math.imul(L,H)|0,o=Math.imul(L,z),r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(T,X)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,Z)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,se)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,se)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0;var Se=(u+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,H),i=(i=Math.imul(U,z))+Math.imul(F,H)|0,o=Math.imul(F,z),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(M,G)|0,i=(i=i+Math.imul(M,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,Z)|0,r=r+Math.imul(T,J)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,se)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,se)|0,r=r+Math.imul(m,ce)|0,i=(i=i+Math.imul(m,ue)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,ue)|0,r=r+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(A,he)|0,o=o+Math.imul(A,de)|0;var xe=(u+(r=r+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,Ae)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,Ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,V),i=(i=Math.imul(U,K))+Math.imul(F,V)|0,o=Math.imul(F,K),r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,se)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,se)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,r=r+Math.imul(m,he)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(y,he)|0,o=o+Math.imul(y,de)|0;var Te=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,Ae)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,Ae)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,G),i=(i=Math.imul(U,q))+Math.imul(F,G)|0,o=Math.imul(F,q),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,r=r+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,ue)|0,r=r+Math.imul(b,he)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(w,he)|0,o=o+Math.imul(w,de)|0;var Pe=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,Ae)|0)+Math.imul(y,pe)|0))<<13)|0;u=((o=o+Math.imul(y,Ae)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,X),i=(i=Math.imul(U,Z))+Math.imul(F,X
vendor: 45,863 bytes, line 23
23)|0,o=Math.imul(F,Z),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,se)|0,r=r+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,ue)|0,r=r+Math.imul(_,he)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(S,he)|0,o=o+Math.imul(S,de)|0;var Ee=(u+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,Ae)|0)+Math.imul(w,pe)|0))<<13)|0;u=((o=o+Math.imul(w,Ae)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),i=(i=Math.imul(U,ee))+Math.imul(F,J)|0,o=Math.imul(F,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,ue)|0,r=r+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(P,he)|0,o=o+Math.imul(P,de)|0;var Ie=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,Ae)|0)+Math.imul(S,pe)|0))<<13)|0;u=((o=o+Math.imul(S,Ae)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,ne),i=(i=Math.imul(U,re))+Math.imul(F,ne)|0,o=Math.imul(F,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,se)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(O,ce)|0,o=o+Math.imul(O,ue)|0,r=r+Math.imul(I,he)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(k,he)|0,o=o+Math.imul(k,de)|0;var ke=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,Ae)|0)+Math.imul(P,pe)|0))<<13)|0;u=((o=o+Math.imul(P,Ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(F,oe)|0,o=Math.imul(F,se),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(L,ce)|0,o=o+Math.imul(L,ue)|0,r=r+Math.imul(M,he)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Be=(u+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,Ae)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,Ae)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,ce),i=(i=Math.imul(U,ue))+Math.imul(F,ce)|0,o=Math.imul(F,ue),r=r+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(L,he)|0,o=o+Math.imul(L,de)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,Ae)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,Ae)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,he),i=(i=Math.imul(U,de))+Math.imul(F,he)|0,o=Math.imul(F,de);var Oe=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,Ae)|0)+Math.imul(L,pe)|0))<<13)|0;u=((o=o+Math.imul(L,Ae)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var De=(u+(r=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,Ae))+Math.imul(F,pe)|0))<<13)|0;return u=((o=Math.imul(F,Ae))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=ge,c[1]=me,c[2]=ye,c[3]=ve,c[4]=be,c[5]=we,c[6]=Ce,c[7]=_e,c[8]=Se,c[9]=xe,c[10]=Te,c[11]=Pe,c[12]=Ee,c[13]=Ie,c[14]=ke,c[15]=Be,c[16]=Me,c[17]=Oe,c[18]=De,0!==u&&(c[19]=u,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var l=o-u,h=(0|e.words[l])*(0|t.words[u]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function m(e,t,n){return g(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(A=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?A(this,e,t):n<63?p(this,e,t):n<1024?g(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,i,o){for(var s=0;s<o;s++)r[s]=t[e[s]],i[s]=n[e[s]]},y.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=c,d=u,f=0;f<s;f++){var p=n[l+f],A=r[l+f],g=n[l+f+s],m=r[l+f+s],y=h*g-d*m;m=h*m+d*g,g=y,n[l+f]=p+g,r[l+f]=A+m,n[l+f+s]=p-g,r[l+f+s]=A-m,f!==a&&(y=c*h-u*d,d=c*d+u*h,h=y)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),c=new Array(r),u=new Array(r),l=new Array(r),h=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,s,r),this.convert13b(t.words,t.length,u,r),this.transform(s,o,a,c,r,i),this.transform(u,o,l,h,r,i);for(var f=0;f<r;f++){var p=a[f]*l[f]-c[f]*h[f];c[f]=a[f]*h[f]+c[f]*l[f],a[f]=p}return this.conjugate(a,c,r),this.transform(a,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),m(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,c=(0|this.words[t])-a<<r;this.words[t]=c|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,c=r;if(i-=s,i=Math.max(0,i),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var h=0|this.words[u];this.words[u]=l<<26-o|h>>>o,l=h&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var c=(0|e.words[i])*t;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,s=0|o.words[o.length-1];0!==(n=26-this._countBits(s))&&(o=o.ushln(n),r.iushln(n),s=0|o.words[o.length-1]);var a,c=r.length-o.length;if("mod"!==t){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=r.clone()._ishlnsubmul(o,1,c);0===l.negative&&(r=l,a&&(a.words[c]=1));for(var h=c-1;h>=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var p=0,A=1;0==(r.words[0]&A)&&p<26;++p,A<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(h)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(a),s.isub(c)):(r.isub(t),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new x(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(C,b),r(_,b),r(S,b),S.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new C;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return v[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var h=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),f=this.pow(e,o),p=s;0!==f.cmp(a);){for(var A=f,g=0;0!==A.cmp(a);g++)A=A.redSqr();n(g<p);var m=this.pow(h,new i(1).iushln(p-g-1));d=d.redMul(m),h=m.redSqr(),f=f.redMul(h),p=g}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var h=u>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===l)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}c=26}return o},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new T(e)},r(T,x),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],187:[function(e,t,n){"use strict";var r;function i(e){this.rand=e}if(t.exports=function(e){return r||(r=new i(null)),r.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=e("crypto");if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},{crypto:188}],188:[function(e,t,n){},{}],189:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function o(e){for(;0<e.length;e++)e[0]=0}function s(e,t,n,r,i){for(var o,s,a,c,u=n[0],l=n[1],h=n[2],d=n[3],f=e[0]^t[0],p=e[1]^t[1],A=e[2]^t[2],g=e[3]^t[3],m=4,y=1;y<i;y++)o=u[f>>>24]^l[p>>>16&255]^h[A>>>8&255]^d[255&g]^t[m++],s=u[p>>>24]^l[A>>>16&255]^h[g>>>8&255]^d[255&f]^t[m++],a=u[A>>>24]^l[g>>>16&255]^h[f>>>8&255]^d[255&p]^t[m++],c=u[g>>>24]^l[f>>>16&255]^h[p>>>8&255]^d[255&A]^t[m++],f=o,p=s,A=a,g=c;return o=(r[f>>>24]<<24|r[p>>>16&255]<<16|r[A>>>8&255]<<8|r[255&g])^t[m++],s=(r[p>>>24]<<24|r[A>>>16&255]<<16|r[g>>>8&255]<<8|r[255&f])^t[m++],a=(r[A>>>24]<<24|r[g>>>16&255]<<16|r[f>>>8&255]<<8|r[255&p])^t[m++],c=(r[g>>>24]<<24|r[f>>>16&255]<<16|r[p>>>8&255]<<8|r[255&A])^t[m++],[o>>>=0,s>>>=0,a>>>=0,c>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,c=0;c<256;++c){var u=a^a<<1^a<<2^a<<3^a<<4;u=u>>>8^255&u^99,n[s]=u,r[u]=s;var l=e[s],h=e[l],d=e[h],f=257*e[u]^16843008*u;i[0][s]=f<<24|f>>>8,i[1][s]=f<<16|f>>>16,i[2][s]=f<<8|f>>>24,i[3][s]=f,f=16843009*d^65537*h^257*l^16843008*s,o[0][u]=f<<24|f>>>8,o[1][u]=f<<16|f>>>16,o[2][u]=f<<8|f>>>24,o[3][u]=f,0===s?s=a=1:(s=l^e[e[e[d^l]]],a^=e[e[a]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<r;o++){var s=i[o-1];o%t==0?(s=s<<8|s>>>24,s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s],s^=a[o/t|0]<<24):t>6&&o%t==4&&(s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s]),i[o]=i[o-t]^s}for(var u=[],l=0;l<r;l++){var h=r-l,d=i[h-(l%4?0:4)];u[l]=l<4||h<=4?d:c.INV_SUB_MIX[0][c.SBOX[d>>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return s(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=s(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=u},{"safe-buffer":494}],190:[function(e,t,n){"use strict";var r=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base"),s=e("inherits"),a=e("./ghash"),c=e("buffer-xor"),u=e("./incr32");function l(e,t,n,s){o.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new a(l),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new a(n),o=t.length,s=o%16;r.update(t),s&&(s=16-s,r.update(i.alloc(s,0))),r.update(i.alloc(8,0));var c=8*o,l=i.alloc(8);l.writeUIntBE(c,0,8),r.update(l),e._finID=r.state;var h=i.from(e._finID);return u(h),h}(this,n,l),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(l,o),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=l},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,n){"use strict";var r=e("./encrypter"),i=e("./decrypter"),o=e("./modes/list.json");n.createCipher=n.Cipher=r.createCipher,n.createCipheriv=n.Cipheriv=r.createCipheriv,n.createDecipher=n.Decipher=i.createDecipher,n.createDecipheriv=n.Decipheriv=i.createDecipheriv,n.listCiphers=n.getCiphers=function(){return Object.keys(o)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,n){"use strict";var r=e("./authCipher"),i=e("safe-buffer").Buffer,o=e("./modes"),s=e("./streamCipher"),a=e("cipher-base"),c=e("./aes"),u=e("evp_bytestokey");function l(e,t,n){a.call(this),this._cache=new h,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function d(e,t,n){var a=o[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new s(a.module,t,n,!0):"auth"===a.type?new r(a.module,t,n,!0):new l(a.module,t,n)}e("inherits")(l,a),l.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=i.concat([this.cache,e])},h.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},n.createDecipher=function(e,t){var n=o[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=u(t,!1,n.key,n.iv);return d(e,r.key,r.iv)},n.createDecipheriv=d},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,n){"use strict";var r=e("./modes"),i=e("./authCipher"),o=e("safe-buffer").Buffer,s=e("./streamCipher"),a=e("cipher-base"),c=e("./aes"),u=e("evp_bytestokey");function l(e,t,n){a.call(this),this._cache=new d,this._cipher=new c.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}e("inherits")(l,a),l.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return o.concat(r)};var h=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function f(e,t,n){var a=r[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=o.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new s(a.module,t,n):"auth"===a.type?new i(a.module,t,n):new l(a.module,t,n)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return o.concat([this.cache,t])},n.createCipheriv=f,n.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=u(t,!1,n.key,n.iv);return f(e,i.key,i.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.alloc(16,0);function o(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],s=-1;++s<128;){for(0!=(this.state[~~(s/8)]&1<<7-s%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=o(i)},s.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},t.exports=s},{"safe-buffer":494}],195:[function(e,t,n){"use strict";t.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},{}],196:[function(e,t,n){"use strict";var r=e("buffer-xor");n.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},n.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},{"buffer-xor":219}],197:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("buffer-xor");function o(e,t,n){var o=t.length,s=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=r.concat([e._prev,n?t:s]),s}n.encrypt=function(e,t,n){for(var i,s=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){s=r.concat([s,o(e,t,n)]);break}i=e._cache.length,s=r.concat([s,o(e,t.slice(0,i),n)]),t=t.slice(i)}return s}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function i(e,t,n){for(var r,i,s=-1,a=0;++s<8;)r=t&1<<7-s?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>s%8,e._prev=o(e._prev,n?r:i);return a}function o(e,t){var n=e.length,i=-1,o=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)o[i]=e[i]<<1|e[i+1]>>7;return o}n.encrypt=function(e,t,n){for(var o=t.length,s=r.allocUnsafe(o),a=-1;++a<o;)s[a]=i(e,t[a],n);return s}},{"safe-buffer":494}],199:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}n.encrypt=function(e,t,n){for(var o=t.length,s=r.allocUnsafe(o),a=-1;++a<o;)s[a]=i(e,t[a],n);return s}},{"safe-buffer":494}],200:[function(e,t,n){"use strict";var r=e("buffer-xor"),i=e("safe-buffer").Buffer,o=e("../incr32");function s(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}n.encrypt=function(e,t){var n=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var a=0;a<n;a++){var c=s(e),u=o+16*a;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,l)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,n){"use strict";n.encrypt=function(e,t){return e._cipher.encryptBlock(t)},n.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,n){"use strict";var r={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var o in i)i[o].module=r[i[o].mode];t.exports=i},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,n){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,t,n){(function(t){(function(){"use strict";var r=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}n.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,o)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,n){"use strict";var r=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base");function s(e,t,n,s){o.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=e}e("inherits")(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,n){"use strict";var r=e("browserify-des"),i=e("browserify-aes/browser"),o=e("browserify-aes/modes"),s=e("browserify-des/modes"),a=e("evp_bytestokey");function c(e,t,n){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,n);if(s[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function u(e,t,n){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,n);if(s[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}n.createCipher=n.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),o[e])n=o[e].key,r=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");n=8*s[e].key,r=s[e].iv}var i=a(t,!1,n,r);return c(e,i.key,i.iv)},n.createCipheriv=n.Cipheriv=c,n.createDecipher=n.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),o[e])n=o[e].key,r=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");n=8*s[e].key,r=s[e].iv}var i=a(t,!1,n,r);return u(e,i.key,i.iv)},n.createDecipheriv=n.Decipheriv=u,n.listCiphers=n.getCiphers=function(){return Object.keys(s).concat(i.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,n){"use strict";var r=e("cipher-base"),i=e("des.js"),o=e("inherits"),s=e("safe-buffer").Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=a[n];t=e.decrypt?"decrypt":"encrypt";var o=e.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==n&&"des-ede-cbc"!==n||(o=s.concat([o,o.slice(0,8)]));var c=e.iv;s.isBuffer(c)||(c=s.from(c)),this._des=i.create({key:o,iv:c,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=c,o(c,r),c.prototype._update=function(e){return s.from(this._des.update(e))},c.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,n){"use strict";n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0}},{}],209:[function(e,t,n){(function(n){(function(){"use strict";var r=e("bn.js"),i=e("randombytes");function o(e){var t,n=e.modulus.byteLength();do{t=new r(i(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var i=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),s=t.modulus.byteLength(),a=new r(e).mul(i.blinder).umod(t.modulus),c=a.toRed(r.mont(t.prime1)),u=a.toRed(r.mont(t.prime2)),l=t.coefficient,h=t.prime1,d=t.prime2,f=c.redPow(t.exponent1).fromRed(),p=u.redPow(t.exponent2).fromRed(),A=f.isub(p).imul(l).umod(h).imul(d);return p.iadd(A).imul(i.unblinder).umod(t.modulus).toArrayLike(n,"be",s)}s.getr=o,t.exports=s}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,n){"use strict";t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,t,n){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""}
23,DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,t,n){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("create-hash"),o=e("readable-stream"),s=e("inherits"),a=e("./sign"),c=e("./verify"),u=e("./algorithms.json");function l(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");
vendor: 9,549 bytes, line 23
23this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){o.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new l(e)}function f(e){return new h(e)}Object.keys(u).forEach(function(e){u[e].id=r.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]}),s(l,o.Writable),l.prototype._write=function(e,t,n){this._hash.update(e),n()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},l.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=a(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},s(h,o.Writable),h.prototype._write=function(e,t,n){this._hash.update(e),n()},h.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},h.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},t.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("create-hmac"),o=e("browserify-rsa"),s=e("elliptic").ec,a=e("bn.js"),c=e("parse-asn1"),u=e("./curves.json");function l(e,t,n,o){if((e=r.from(e.toArray())).length<t.byteLength()){var s=r.alloc(t.byteLength()-e.length);e=r.concat([s,e])}var a=n.length,c=function(e,t){e=(e=h(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}(n,t),u=r.alloc(a);u.fill(1);var l=r.alloc(a);return l=i(o,l).update(u).update(r.from([0])).update(e).update(c).digest(),u=i(o,l).update(u).digest(),{k:l=i(o,l).update(u).update(r.from([1])).update(e).update(c).digest(),v:u=i(o,l).update(u).digest()}}function h(e,t){var n=new a(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function d(e,t,n){var o,s;do{for(o=r.alloc(0);8*o.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),o=r.concat([o,t.v]);s=h(o,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(-1!==s.cmp(e));return s}function f(e,t,n,r){return e.toRed(a.mont(n)).redPow(t).fromRed().mod(r)}t.exports=function(e,t,n,i,p){var A=c(t);if(A.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var n=u[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new s(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}(e,A)}if("dsa"===A.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,n){for(var i,o=t.params.priv_key,s=t.params.p,c=t.params.q,u=t.params.g,p=new a(0),A=h(e,c).mod(c),g=!1,m=l(o,c,e,n);!1===g;)i=d(c,m,n),p=f(u,i,s,c),0===(g=i.invm(c).imul(A.add(o.mul(p))).mod(c)).cmpn(0)&&(g=!1,p=new a(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(p,g)}(e,A,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=r.concat([p,e]);for(var g=A.modulus.byteLength(),m=[0,1];e.length+m.length+1<g;)m.push(255);m.push(0);for(var y=-1;++y<e.length;)m.push(e[y]);return o(m,A)},t.exports.getKey=l,t.exports.makeKey=d},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("bn.js"),o=e("elliptic").ec,s=e("parse-asn1"),a=e("./curves.json");function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,n,u,l){var h=s(n);if("ec"===h.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=a[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new o(r),s=n.data.subjectPrivateKey.data;return i.verify(t,e,s)}(e,t,h)}if("dsa"===h.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,o=n.data.q,a=n.data.g,u=n.data.pub_key,l=s.signature.decode(e,"der"),h=l.s,d=l.r;c(h,o),c(d,o);var f=i.mont(r),p=h.invm(o);return 0===a.toRed(f).redPow(new i(t).mul(p).mod(o)).fromRed().mul(u.toRed(f).redPow(d.mul(p).mod(o)).fromRed()).mod(r).mod(o).cmp(d)}(e,t,h)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=r.concat([l,t]);for(var d=h.modulus.byteLength(),f=[1],p=0;t.length+f.length+2<d;)f.push(255),p++;f.push(0);for(var A=-1;++A<t.length;)f.push(t[A]);f=r.from(f);var g=i.mont(h.modulus);e=(e=new i(e).toRed(g)).redPow(new i(h.publicExponent)),e=r.from(e.fromRed().toArray());var m=p<8?1:0;for(d=Math.min(e.length,f.length),e.length!==f.length&&(m=1),A=-1;++A<d;)m|=e[A]^f[A];return 0===m}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,n){},{}],217:[function(e,t,n){"use strict";var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.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},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((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){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)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}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=h,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){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,"�"}}(this,e);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 c(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 u(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 l(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 h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}n.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(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)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,n){(function(e){(function(){"use strict";
vendor: 10,816 bytes, lines 23-30
23t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),o=0;o<r;++o)i[o]=t[o]^n[o];return i}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,t,n){(function(t){(function(){
24/*!
25 * The buffer module from node.js, for the browser.
26 *
27 * @author   Feross Aboukhadijeh <https://feross.org>
28 * @license  MIT
29 */
30"use strict";var t=e("base64-js"),r=e("ieee754");function i(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=i(n),s=r.write(e,t);return s!==n&&(r=r.slice(0,s)),r}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),r.__proto__=o.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return o.from(r,t,n);var s=function(e){if(o.isBuffer(e)){var t=0|l(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||F(e.length)?i(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return a(e),i(e<0?0:0|l(e))}function u(e){for(var t=e.length<0?0:0|l(e.length),n=i(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function l(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(i)return r?-1:R(e).length;t=(""+t).toLowerCase(),i=!0}}function d(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))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function f(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function p(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),F(n=+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=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:A(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(u(e,o+d)!==u(t,d)){h=!1;break}if(h)return o}return-1}function g(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(F(a))return s;e[n+s]=a}return s}function m(e,t,n,r){return N(R(t,e.length-n),e,n,r)}function y(e,t,n,r){return N(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function v(e,t,n,r){return y(e,t,n,r)}function b(e,t,n,r){return N(L(t),e,n,r)}function w(e,t,n,r){return N(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,c,u=e[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function S(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=D(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function E(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function k(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 B(e,t,n,i,o){return t=+t,n>>>=0,o||k(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function M(e,t,n,i,o){return t=+t,n>>>=0,o||k(e,0,n,8),r.write(e,t,n,i,52,8),n+8}n.Buffer=o,n.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=2147483647,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=function(e,t,n){return s(e,t,n)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(e,t,n){return function(e,t,n){return a(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}(e,t,n)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(U(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=o.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(U(s,Uint8Array)&&(s=o.from(s)),!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):d.apply(this,arguments)}
vendor: 8,418 bytes, line 30
30,o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o.prototype.compare=function(e,t,n,r,i){if(U(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);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(this===e)return 0;for(var s=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(s,a),u=this.slice(r,i),l=e.slice(t,n),h=0;h<c;++h)if(u[h]!==l[h]){s=u[h],a=l[h];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},o.prototype.indexOf=function(e,t,n){return p(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return p(this,e,t,n,!1)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(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 g(this,e,t,n);case"utf8":case"utf-8":return m(this,e,t,n);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return v(this,e,t,n);case"base64":return b(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=o.prototype,r},o.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},o.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),r.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),r.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),r.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),r.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var s=i-1;s>=0;--s)e[s+t]=this[s+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},o.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var s;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var a=o.isBuffer(e)?e:o.from(e,r),c=a.length;
vendor: 5,063 bytes, line 30
30if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=a[s%c]}return this};var O=/[^+/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function R(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+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 L(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("stream").Transform,o=e("string_decoder").StringDecoder;function s(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(s,i),s.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=s},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,n){"use strict";var r=e("../internals/is-constructor"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=String,o=TypeError;t.exports=function(e){if("object"==typeof e||r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/object-create"),o=e("../internals/object-define-property").f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,n){"use strict";var r=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=String,o=TypeError;t.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=function(e){return function(t,n,s){var a,c=r(t),u=o(c),l=i(s,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-uncurr
30y-this"),o=e("../internals/indexed-object"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),c=e("../internals/array-species-create"),u=i([].push),l=function(e){var t=1===e,n=2===e,i=3===e,l=4===e,h=6===e,d=7===e,f=5===e||h;return function(p,A,g,m){for(var y,v,b=s(p),w=o(b),C=r(A,g),_=a(w),S=0,x=m||c,T=t?x(p,_):n||d?x(p,0):void 0;_>S;S++)if((f||S in w)&&(v=C(y=w[S],S,b),e))if(t)T[S]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:u(T,y)}else switch(e){case 4:return!1;case 7:u(T,y)}return h?-1:i||l?l:T}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,t,n){"use strict";var r=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),o=e("../internals/create-property"),s=Array,a=Math.max;t.exports=function(e,t,n){for(var c=i(e),u=r(t,c),l=r(void 0===n?c:n,c),h=s(a(l-u,0)),d=0;u<l;u++,d++)o(h,d,e[u]);return h.length=d,h}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,n){"use strict";var r=e("../internals/is-array"),i=e("../internals/is-constructor"),o=e("../internals/is-object"),s=e("../internals/well-known-symbol")("species"),a=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===a||r(t.prototype))||o(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,n){"use strict";var r=e("../internals/array-species-constructor");t.exports=function(e,t){return new(r(e))(0===t?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol")("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},{"../internals/well-known-symbol":357}],235:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=r({}.toString),o=r("".slice);t.exports=function(e){return o(i(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,n){"use strict";var r=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),o=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("toStringTag"),a=Object,c="Arguments"===o(function(){return arguments}());t.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:c?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t,n){for(var a=i(t),c=s.f,u=o.f,l=0;l<a.length;l++){var h=a[l];r(e,h)||n&&r(n,h)||c(e,h,u(t,h))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":260}],240:[function(e,t,n){"use strict";
vendor: 11,519 bytes, line 30
30t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,n){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,n){"use strict";var r=e("../internals/to-property-key"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=function(e,t,n){var s=r(t);s in e?i.f(e,s,o(0,n)):e[s]=n}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,n){"use strict";var r=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/object-define-property"),o=e("../internals/make-built-in"),s=e("../internals/define-global-property");t.exports=function(e,t,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:t;if(r(n)&&o(n,u,a),a.global)c?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,n){"use strict";var r=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global":274}],247:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":260}],248:[function(e,t,n){"use strict";var r="object"==typeof document&&document.all,i=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:i}},{}],249:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-object"),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(e){return s?o.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,n){"use strict";var r=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,n){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],252:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":256}],253:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},{"../internals/engine-user-agent":256}],254:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/classof-raw");t.exports="process"===i(r.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(r)},{"../internals/engine-user-agent":256}],256:[function(e,t,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],257:[function(e,t,n){"use strict";var r,i,o=e("../internals/global"),s=e("../internals/engine-user-agent"),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),s=e("../internals/define-built-in"),a=e("../internals/define-global-property"),c=e("../internals/copy-constructor-properties"),u=e("../internals/is-forced");t.exports=function(e,t){var n,l,h,d,f,p=e.target,A=e.global,g=e.stat;if(n=A?r:g?r[p]||a(p,{}):(r[p]||{}).prototype)for(l in t){if(d=t[l],h=e.dontCallGetSet?(f=i(n,l))&&f.value:n[l],!u(A?l:p+(g?".":"#")+l,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),s(n,l,d,e)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,t,n){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],261:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),o=e("../internals/function-bind-native"),s=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/has-own-property"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return i(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-callable"),o=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,n){"use strict";var r=e("../internals/classof"),i=e("../internals/get-method"),o=e("../internals/is-null-or-undefined"),s=e("../internals/iterators"),a=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[r(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/a-callable"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),c=TypeError;t.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return o(r(n,e));throw new c(s(e)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),o=e("../internals/is-callable"),s=e("../internals/classof-raw"),a=e("../internals/to-string"),c=r([].push);t.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?c(n,u):"number"!=typeof u&&"Number"!==s(u)&&"String"!==s(u)||c(n,a(u))}var l=n.length,h=!0;return function(e,t){if(h)return h=!1,t;if(i(this))return t;for(var r=0;r<l;r++)if(n[r]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,t,r){(function(e){(function(){"use strict";var n=function(e){return e&&e.Math===Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],275:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,n){"use strict";t.exports={}},{}],277:[function(e,t,n){"use strict";t.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},{}],278:[function(e,t,n){"use strict";var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/document-create-element");t.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/classof-raw"),s=Object,a=r("".split);t.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):s(e)}:s},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurr
30y-this":268}],281:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),o=e("../internals/shared-store"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),t.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,n){"use strict";var r,i,o,s=e("../internals/weak-map-basic-detection"),a=e("../internals/global"),c=e("../internals/is-object"),u=e("../internals/create-non-enumerable-property"),l=e("../internals/has-own-property"),h=e("../internals/shared-store"),d=e("../internals/shared-key"),f=e("../internals/hidden-keys"),p=a.TypeError,A=a.WeakMap;if(s||h.state){var g=h.state||(h.state=new A);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new p("Object already initialized");return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var m=d("state");f[m]=!0,r=function(e,t){if(l(e,m))throw new p("Object already initialized");return t.facade=e,u(e,m,t),t},i=function(e){return l(e,m)?e[m]:{}},o=function(e){return l(e,m)}}t.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/iterators"),o=r("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,n){"use strict";var r=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===r(e)}},{"../internals/classof-raw":235}],285:[function(e,t,n){"use strict";var r=e("../internals/document-all"),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},{"../internals/document-all":248}],286:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/classof"),a=e("../internals/get-built-in"),c=e("../internals/inspect-source"),u=function(){},l=[],h=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),p=!d.test(u),A=function(e){if(!o(e))return!1;try{return h(u,l,e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,c(e))}catch(e){return!0}};g.sham=!0,t.exports=!h||i(function(){var e;return A(A.call)||!A(Object)||!A(function(){e=!0})||e})?g:A},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/is-callable"),o=/#|\.prototype\./,s=function(e,t){var n=c[a(e)];return n===l||n!==u&&(i(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],289:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/document-all"),o=i.all;t.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)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,n){"use strict";t.exports=!1},{}],291:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),s=e("../internals/use-symbol-as-uid"),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),c=e("../internals/length-of-array-like"),u=e("../internals/object-is-prototype-of"),l=e("../internals/get-iterator"),h=e("../internals/get-iterator-method"),d=e("../internals/iterator-close"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},A=p.prototype;
vendor: 5,008 bytes, line 30
30t.exports=function(e,t,n){var g,m,y,v,b,w,C,_=n&&n.that,S=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),E=r(t,_),I=function(e){return g&&d(g,"normal",e),new p(!0,e)},k=function(e){return S?(o(e),P?E(e[0],e[1],I):E(e[0],e[1])):P?E(e,I):E(e)};if(x)g=e.iterator;else if(T)g=e;else{if(!(m=h(e)))throw new f(s(e)+" is not iterable");if(a(m)){for(y=0,v=c(e);v>y;y++)if((b=k(e[y]))&&u(A,b))return b;return new p(!1)}g=l(e,m)}for(w=x?e.next:g.next;!(C=i(w,g)).done;){try{b=k(C.value)}catch(e){d(g,"throw",e)}if("object"==typeof b&&b&&u(A,b))return b}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/get-method");t.exports=function(e,t,n){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return i(s),n}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,n){"use strict";var r=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),o=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),c=function(){return this};t.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),s(e,l,!1,!0),a[l]=c,e}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/is-pure"),s=e("../internals/function-name"),a=e("../internals/is-callable"),c=e("../internals/iterator-create-constructor"),u=e("../internals/object-get-prototype-of"),l=e("../internals/object-set-prototype-of"),h=e("../internals/set-to-string-tag"),d=e("../internals/create-non-enumerable-property"),f=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),A=e("../internals/iterators"),g=e("../internals/iterators-core"),m=s.PROPER,y=s.CONFIGURABLE,v=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),C=function(){return this};t.exports=function(e,t,n,s,p,g,_){c(n,t,s);var S,x,T,P=function(e){if(e===p&&M)return M;if(!b&&e&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",I=!1,k=e.prototype,B=k[w]||k["@@iterator"]||p&&k[p],M=!b&&B||P(p),O="Array"===t&&k.entries||B;if(O&&(S=u(O.call(new e)))!==Object.prototype&&S.next&&(o||u(S)===v||(l?l(S,v):a(S[w])||f(S,w,C)),h(S,E,!0,!0),o&&(A[E]=C)),m&&"values"===p&&B&&"values"!==B.name&&(!o&&y?d(k,"name","values"):(I=!0,M=function(){return i(B,this)})),p)if(x={values:P("values"),keys:g?M:P("keys"),entries:P("entries")},_)for(T in x)(b||I||!(T in k))&&f(k,T,x[T]);else r({target:t,proto:!0,forced:b||I},x);return o&&!_||k[w]===M||f(k,w,M,{name:p}),A[t]=M,x}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,t,n){"use strict";var r,i,o,s=e("../internals/fails"),a=e("../internals/is-callable"),c=e("../internals/is-object"),u=e("../internals/object-create"),l=e("../internals/object-get-prototype-of"),h=e("../internals/define-built-in"),d=e("../internals/well-known-symbol"),f=e("../internals/is-pure"),p=d("iterator"),A=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):A=!0),!c(r)||s(function(){var e={};return r[p].call(e)!==e})?r={}:f&&(r=u(r)),a(r[p])||h(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:A}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,t,n){arguments[4][276][0].apply(n,arguments)},{dup:276}],299:[function(e,t,n){"use strict";var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":343}],300:[function(e,t,n){"use strict";
vendor: 4,346 bytes, line 30
30var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/has-own-property"),a=e("../internals/descriptors"),c=e("../internals/function-name").CONFIGURABLE,u=e("../internals/inspect-source"),l=e("../internals/internal-state"),h=l.enforce,d=l.get,f=String,p=Object.defineProperty,A=r("".slice),g=r("".replace),m=r([].join),y=a&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),v=String(String).split("String"),b=t.exports=function(e,t,n){"Symbol("===A(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=h(e);return s(r,"source")||(r.source=m(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function(){return o(this)&&d(this).source||u(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],302:[function(e,t,n){"use strict";var r,i,o,s,a,c=e("../internals/global"),u=e("../internals/function-bind-context"),l=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/task").set,d=e("../internals/queue"),f=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),A=e("../internals/engine-is-webos-webkit"),g=e("../internals/engine-is-node"),m=c.MutationObserver||c.WebKitMutationObserver,y=c.document,v=c.process,b=c.Promise,w=l(c,"queueMicrotask"),C=w&&w.value;if(!C){var _=new d,S=function(){var e,t;for(g&&(e=v.domain)&&e.exit();t=_.get();)try{t()}catch(e){throw _.head&&r(),e}e&&e.enter()};f||g||A||!m||!y?!p&&b&&b.resolve?((s=b.resolve(void 0)).constructor=b,a=u(s.then,s),r=function(){a(S)}):g?r=function(){v.nextTick(S)}:(h=u(h,c),r=function(){h(S)}):(i=!0,o=y.createTextNode(""),new m(S).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),C=function(e){_.head||r(),_.add(e)}}t.exports=C},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=TypeError,o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new o(e)}},{"../internals/a-callable":222}],304:[function(e,t,n){"use strict";var r=e("../internals/is-regexp"),i=TypeError;t.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":291}],305:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),o=e("../internals/function-call"),s=e("../internals/fails"),a=e("../internals/object-keys"),c=e("../internals/object-get-own-property-symbols"),u=e("../internals/object-property-is-enumerable"),l=e("../internals/to-object"),h=e("../internals/indexed-object"),d=Object.assign,f=Object.defineProperty,p=i([].concat);t.exports=!d||s(function(){if(r&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!==d({},e)[n]||"abcdefghijklmnopqrst"!==a(d({},t)).join("")})?function(e,t){for(var n=l(e),i=arguments.length,s=1,d=c.f,f=u.f;i>s;)for(var A,g=h(arguments[s++]),m=d?p(a(g),d(g)):a(g),y=m.length,v=0;y>v;)A=m[v++],r&&!o(f,g,A)||(n[A]=g[A]);return n}:d},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurr
30y-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,t,n){"use strict";var r,i=e("../internals/an-object"),o=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),c=e("../internals/html"),u=e("../internals/document-create-element"),l=e("../internals/shared-key"),h=l("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},A=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;A="undefined"!=typeof document?document.domain&&r?p(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):p(r);for(var n=s.length;n--;)delete A.prototype[s[n]];return A()};a[h]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[h]=e):n=A(),void 0===t?n:o.f(n,t)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),o=e("../internals/object-define-property"),s=e("../internals/an-object"),a=e("../internals/to-indexed-object"),c=e("../internals/object-keys");n.f=r&&!i?Object.defineProperties:function(e,t){s(e);for(var n,r=a(t),i=c(t),u=i.length,l=0;u>l;)o.f(e,n=i[l++],r[n]);return e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),s=e("../internals/an-object"),a=e("../internals/to-property-key"),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor;n.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-call"),o=e("../internals/object-property-is-enumerable"),s=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),c=e("../internals/to-property-key"),u=e("../internals/has-own-property"),l=e("../internals/ie8-dom-define"),h=Object.getOwnPropertyDescriptor;n.f=r?h:function(e,t){if(e=a(e),t=c(t),l)try{return h(e,t)}catch(e){}if(u(e,t))return s(!i(o.f,e,t),e[t])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,s=e("../internals/array-slice-simple"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return a&&"Window"===r(e)?function(e){try{return o(e)}catch(e){return s(a)}}(e):o(i(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/is-callable"),o=e("../internals/to-object"),s=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),c=s("IE_PROTO"),u=Object,l=u.prototype;
vendor: 1,639 bytes, line 30
30t.exports=a?u.getPrototypeOf:function(e){var t=o(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),s=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),c=r([].push);t.exports=function(e,t){var n,r=o(e),u=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&c(l,n);for(;t.length>u;)i(r,n=t[u++])&&(~s(l,n)||c(l,n));return l}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);n.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],318:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),o=e("../internals/a-possible-prototype");
vendor: 7,348 bytes, line 30
30t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/object-get-prototype-of"),a=e("../internals/object-keys"),c=e("../internals/to-indexed-object"),u=o(e("../internals/object-property-is-enumerable").f),l=o([].push),h=r&&i(function(){var e=Object.create(null);return e[2]=2,!u(e,2)}),d=function(e){return function(t){for(var n,i=c(t),o=a(i),d=h&&null===s(i),f=o.length,p=0,A=[];f>p;)n=o[p++],r&&!(d?n in i:u(i,n))||l(A,e?[n,i[n]]:i[n]);return A}};t.exports={entries:d(!0),values:d(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),o=e("../internals/is-object"),s=TypeError;t.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!o(a=r(n,e)))return a;if(i(n=e.valueOf)&&!o(a=r(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!o(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),o=e("../internals/object-get-own-property-names"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?c(t,n(e)):t}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,t,n){"use strict";var r=e("../internals/global");t.exports=r},{"../internals/global":274}],323:[function(e,t,n){"use strict";t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],324:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/promise-native-constructor"),o=e("../internals/is-callable"),s=e("../internals/is-forced"),a=e("../internals/inspect-source"),c=e("../internals/well-known-symbol"),u=e("../internals/engine-is-browser"),l=e("../internals/engine-is-deno"),h=e("../internals/is-pure"),d=e("../internals/engine-v8-version"),f=i&&i.prototype,p=c("species"),A=!1,g=o(r.PromiseRejectionEvent),m=s("Promise",function(){var e=a(i),t=e!==String(i);if(!t&&66===d)return!0;if(h&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[p]=r,!(A=n.then(function(){})instanceof r))return!0}return!t&&(u||l)&&!g});t.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:A}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,t,n){"use strict";var r=e("../internals/global");t.exports=r.Promise},{"../internals/global":274}],326:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/is-object"),o=e("../internals/new-promise-capability");t.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,n){"use strict";var r=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=o||!i(function(e){r.all(e).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=r},{}],329:[function(e,t,n){"use strict";var r=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),o=e("../internals/well-known-symbol"),s=e("../internals/descriptors"),a=o("species");t.exports=function(e){var t=r(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,t,n){"use strict";var r=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,n){"use strict";var r=e("../internals/shared"),i=e("../internals/uid"),o=r("keys");t.exports=function(e){return o[e]||(o[e]=i(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/define-global-property"),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,n){"use strict";var r=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/a-constructor"),o=e("../internals/is-null-or-undefined"),s=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,n){"use strict";var r=e("../internals/engine-v8-version"),i=e("../internals/fails"),o=e("../internals/global").Str
vendor: 5,172 bytes, line 30
30ing;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/get-built-in"),o=e("../internals/well-known-symbol"),s=e("../internals/define-built-in");t.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,a=o("toPrimitive");t&&!t[a]&&s(t,a,function(e){return r(n,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,t,n){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,n){"use strict";var r,i,o,s,a=e("../internals/global"),c=e("../internals/function-apply"),u=e("../internals/function-bind-context"),l=e("../internals/is-callable"),h=e("../internals/has-own-property"),d=e("../internals/fails"),f=e("../internals/html"),p=e("../internals/array-slice"),A=e("../internals/document-create-element"),g=e("../internals/validate-arguments-length"),m=e("../internals/engine-is-ios"),y=e("../internals/engine-is-node"),v=a.setImmediate,b=a.clearImmediate,w=a.process,C=a.Dispatch,_=a.Function,S=a.MessageChannel,x=a.String,T=0,P={};d(function(){r=a.location});var E=function(e){if(h(P,e)){var t=P[e];delete P[e],t()}},I=function(e){return function(){E(e)}},k=function(e){E(e.data)},B=function(e){a.postMessage(x(e),r.protocol+"//"+r.host)};v&&b||(v=function(e){g(arguments.length,1);var t=l(e)?e:_(e),n=p(arguments,1);return P[++T]=function(){c(t,void 0,n)},i(T),T},b=function(e){delete P[e]},y?i=function(e){w.nextTick(I(e))}:C&&C.now?i=function(e){C.now(I(e))}:S&&!m?(s=(o=new S).port2,o.port1.onmessage=k,i=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!d(B)?(i=B,a.addEventListener("message",k,!1)):i="onreadystatechange"in A("script")?function(e){f.appendChild(A("script")).onreadystatechange=function(){f.removeChild(this),E(e)}}:function(e){setTimeout(I(e),0)}),t.exports={set:v,clear:b}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.max,o=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,n){"use strict";var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,n){"use strict";var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":301}],343:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,n){"use strict";var r=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-object"),o=e("../internals/is-symbol"),s=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),c=e("../internals/well-known-symbol"),u=TypeError,l=c("toPrimitive");t.exports=function(e,t){if(!i(e)||o(e))return e;var n,c=s(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,t,n){"use strict";var r=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,n){"use strict";var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":357}],348:[function(e,t,n){"use strict";var r=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":236}],349:[function(e,t,n){"use strict";var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}},{}],350:[function(e,t,n){"use strict";
vendor: 8,601 bytes, line 30
30var r=e("../internals/function-uncurry-this"),i=0,o=Math.random(),s=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,n){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails");t.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,n){"use strict";var r=TypeError;t.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},{}],354:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-callable"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,n){"use strict";var r=e("../internals/path"),i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol-wrapped"),s=e("../internals/object-define-property").f;t.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||s(t,e,{value:o.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol");n.f=r},{"../internals/well-known-symbol":357}],357:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/shared"),o=e("../internals/has-own-property"),s=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),c=e("../internals/use-symbol-as-uid"),u=r.Symbol,l=i("wks"),h=c?u.for||u:u&&u.withoutSetter||s;t.exports=function(e){return o(l,e)||(l[e]=a&&o(u,e)?u[e]:h("Symbol."+e)),l[e]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/array-iteration").findIndex,o=e("../internals/add-to-unscopables"),s=!0;"findIndex"in[]&&Array(1).findIndex(function(){s=!1}),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/array-iteration").find,o=e("../internals/add-to-unscopables"),s=!0;"find"in[]&&Array(1).find(function(){s=!1}),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/array-includes").includes,o=e("../internals/fails"),s=e("../internals/add-to-unscopables");r({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),o=e("../internals/iterators"),s=e("../internals/internal-state"),a=e("../internals/object-define-property").f,c=e("../internals/iterator-define"),u=e("../internals/create-iter-result-object"),l=e("../internals/is-pure"),h=e("../internals/descriptors"),d=s.set,f=s.getterFor("Array Iterator");t.exports=c(Array,"Array",function(e,t){d(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(n){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)},"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&h&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/function-apply"),s=e("../internals/function-call"),a=e("../internals/function-uncurry-this"),c=e("../internals/fails"),u=e("../internals/is-callable"),l=e("../internals/is-symbol"),h=e("../internals/array-slice"),d=e("../internals/get-json-replacer-function"),f=e("../internals/symbol-constructor-detection"),p=String,A=i("JSON","stringify"),g=a(/./.exec),m=a("".charAt),y=a("".charCodeAt),v=a("".replace),b=a(1..toString),w=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,S=!f||c(function(){var e=i("Symbol")("stringify detection");return"[null]"!==A([e])||"{}"!==A({a:e})||"{}"!==A(Object(e))}),x=c(function(){return'"\\udf06\\ud834"'!==A("\udf06\ud834")||'"\\udead"'!==A("\udead")}),T=function(e,t){var n=h(arguments),r=d(t);if(u(r)||void 0!==e&&!l(e))return n[1]=function(e,t){if(u(r)&&(t=s(r,this,p(e),t)),!l(t))return t},o(A,null,n)},P=function(e,t,n){var r=m(n,t-1),i=m(n,t+1);return g(C,e)&&!g(_,i)||g(_,e)&&!g(C,r)?"\\u"+b(y(e,0),16):e};A&&r({target:"JSON",stat:!0,arity:3,forced:S||x},{stringify:function(e,t,n){var r=h(arguments),i=o(S?T:A,null,r);return x&&"string"==typeof i?v(i,w,P):i}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,t,n){"use strict";e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/object-assign");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),o=e("../internals/fails"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/to-object");r({target:"Object",stat:!0,forced:!i||o(function(){s.f(1)})},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/object-keys");r({target:"Object",stat:!0,forced:e("../internals/fails")(function(){o(1)})},{keys:function(e){return o(i(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/object-to-array").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),c=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,n=s.f(t),r=n.resolve,u=n.reject,l=a(function(){var n=o(t.resolve),s=[],a=0,l=1;c(e,function(e){var o=a++,c=!1;l++,i(n,t,e).then(function(e){c||(c=!0,s[o]=e,--l||r(s))},u)}),--l||r(s)});return l.error&&u(l.value),n.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}
vendor: 7,154 bytes, line 30
30],369:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,s=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),c=e("../internals/is-callable"),u=e("../internals/define-built-in"),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(s)){var h=a("Promise").prototype.catch;l.catch!==h&&u(l,"catch",h,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,t,n){"use strict";var r,i,o,s=e("../internals/export"),a=e("../internals/is-pure"),c=e("../internals/engine-is-node"),u=e("../internals/global"),l=e("../internals/function-call"),h=e("../internals/define-built-in"),d=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),A=e("../internals/a-callable"),g=e("../internals/is-callable"),m=e("../internals/is-object"),y=e("../internals/an-instance"),v=e("../internals/species-constructor"),b=e("../internals/task").set,w=e("../internals/microtask"),C=e("../internals/host-report-errors"),_=e("../internals/perform"),S=e("../internals/queue"),x=e("../internals/internal-state"),T=e("../internals/promise-native-constructor"),P=e("../internals/promise-constructor-detection"),E=e("../internals/new-promise-capability"),I=P.CONSTRUCTOR,k=P.REJECTION_EVENT,B=P.SUBCLASSING,M=x.getterFor("Promise"),O=x.set,D=T&&T.prototype,R=T,L=D,N=u.TypeError,U=u.document,F=u.process,j=E.f,H=j,z=!!(U&&U.createEvent&&u.dispatchEvent),Q=function(e){var t;return!(!m(e)||!g(t=e.then))&&t},V=function(e,t){var n,r,i,o=t.value,s=1===t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,h=e.domain;try{a?(s||(2===t.rejection&&Y(t),t.rejection=1),!0===a?n=o:(h&&h.enter(),n=a(o),h&&(h.exit(),i=!0)),n===e.promise?u(new N("Promise-chain cycle")):(r=Q(n))?l(r,n,c,u):c(n)):u(o)}catch(e){h&&!i&&h.exit(),u(e)}},K=function(e,t){e.notified||(e.notified=!0,w(function(){for(var n,r=e.reactions;n=r.get();)V(n,e);e.notified=!1,t&&!e.rejection&&G(e)}))},W=function(e,t,n){var r,i;z?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!k&&(i=u["on"+e])?i(r):"unhandledrejection"===e&&C("Unhandled promise rejection",n)},G=function(e){l(b,u,function(){var t,n=e.facade,r=e.value;if(q(e)&&(t=_(function(){c?F.emit("unhandledRejection",r,n):W("unhandledrejection",n,r)}),e.rejection=c||q(e)?2:1,t.error))throw t.value})},q=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){l(b,u,function(){var t=e.facade;c?F.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)})},X=function(e,t,n){return function(r){e(t,r,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,K(e,!0))},$=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var r=Q(t);r?w(function(){var n={done:!1};try{l(r,t,X($,n,e),X(Z,n,e))}catch(t){Z(n,t,e)}}):(e.value=t,e.state=1,K(e,!1))}catch(t){Z({done:!1},t,e)}}};if(I&&(L=(R=function(e){y(this,L),A(e),l(r,this);var t=M(this);try{e(X($,t),X(Z,t))}catch(e){Z(t,e)}}).prototype,(r=function(e){O(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=h(L,"then",function(e,t){var n=M(this),r=j(v(this,R));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=c?F.domain:void 0,0===n.state?n.reactions.add(r):w(function(){V(r,n)}),r.promise}),i=function(){var e=new r,t=M(e);this.promise=e,this.resolve=X($,t),this.reject=X(Z,t)},E.f=j=function(e){return e===R||void 0===e?new i(e):H(e)},!a&&g(T)&&D!==Object.prototype)){o=D.then,B||h(D,"then",function(e,t){var n=this;return new R(function(e,t){l(o,n,e,t)}).then(e,t)},{unsafe:!0});try{delete D.constructor}catch(e){}d&&d(D,L)}s({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:R}),f(R,"Promise",!1,!0),p("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),s=e("../internals/fails"),a=e("../internals/get-built-in"),c=e("../internals/is-callable"),u=e("../internals/species-constructor"),l=e("../internals/promise-resolve"),h=e("../internals/define-built-in"),d=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){d.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=u(this,a("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then(function(){return n})}:e,n?function(n){return l(t,e()).then(function(){throw n})}:e)}}),!i&&c(o)){var f=a("Promise").prototype.finally;d.finally!==f&&h(d,"finally",f,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,t,n){"use strict";e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),c=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,n=s.f(t),r=n.reject,u=a(function(){var s=o(t.resolve);c(e,function(e){i(s,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}
vendor: 4,149 bytes, line 30
30],374:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/new-promise-capability");r({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,c=e("../internals/promise-resolve"),u=i("Promise"),l=o&&!a;r({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return c(l&&this===u?s:this,e)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/to-absolute-index"),s=RangeError,a=String.fromCharCode,c=String.fromCodePoint,u=i([].join);r({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw new s(t+" is not a valid code point");n[i]=t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320)}return u(n,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/not-a-regexp"),s=e("../internals/require-object-coercible"),a=e("../internals/to-string"),c=e("../internals/correct-is-regexp-logic"),u=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,t,n){"use strict";e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),a=e("../internals/is-pure"),c=e("../internals/descriptors"),u=e("../internals/symbol-constructor-detection"),l=e("../internals/fails"),h=e("../internals/has-own-property"),d=e("../internals/object-is-prototype-of"),f=e("../internals/an-object"),p=e("../internals/to-indexed-object"),A=e("../internals/to-property-key"),g=e("../internals/to-string"),m=e("../internals/create-property-descriptor"),y=e("../internals/object-create"),v=e("../internals/object-keys"),b=e("../internals/object-get-own-property-names"),w=e("../internals/object-get-own-property-names-external"),C=e("../internals/object-get-own-property-symbols"),_=e("../internals/object-get-own-property-descriptor"),S=e("../internals/object-define-property"),x=e("../internals/object-define-properties"),T=e("../internals/object-property-is-enumerable"),P=e("../internals/define-built-in"),E=e("../internals/define-built-in-accessor"),I=e("../internals/shared"),k=e("../internals/shared-key"),B=e("../internals/hidden-keys"),M=e("../internals/uid"),O=e("../internals/well-known-symbol"),D=e("../internals/well-known-symbol-wrapped"),R=e("../internals/well-known-symbol-define"),L=e("../internals/symbol-define-to-primitive"),N=e("../internals/set-to-string-tag"),U=e("../internals/internal-state"),F=e("../internals/array-iteration").forEach,j=k("hidden"),H=U.set,z=U.getterFor("Symbol"),Q=Object.prototype,V=i.Symbol,K=V&&V.prototype,W=i.RangeError,G=i.TypeError,q=i.QObject,Y=_.f,X=S.f,Z=w.f,$=T.f,J=s([].push),ee=I("symbols"),te=I("op-symbol
30s"),ne=I("wks"),re=!q||!q.prototype||!q.prototype.findChild,ie=function(e,t,n){var r=Y(Q,t);r&&delete Q[t],X(e,t,n),r&&e!==Q&&X(Q,t,r)},oe=c&&l(function(){return 7!==y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a})?ie:X,se=function(e,t){var n=ee[e]=y(K);return H(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},ae=function(e,t,n){e===Q&&ae(te,t,n),f(e);var r=A(t);return f(n),h(ee,r)?(n.enumerable?(h(e,j)&&e[j][r]&&(e[j][r]=!1),n=y(n,{enumerable:m(0,!1)})):(h(e,j)||X(e,j,m(1,{})),e[j][r]=!0),oe(e,r,n)):X(e,r,n)},ce=function(e,t){f(e);var n=p(t),r=v(n).concat(de(n));return F(r,function(t){c&&!o(ue,n,t)||ae(e,t,n[t])}),e},ue=function(e){var t=A(e),n=o($,this,t);return!(this===Q&&h(ee,t)&&!h(te,t))&&(!(n||!h(this,t)||!h(ee,t)||h(this,j)&&this[j][t])||n)},le=function(e,t){var n=p(e),r=A(t);if(n!==Q||!h(ee,r)||h(te,r)){var i=Y(n,r);return!i||!h(ee,r)||h(n,j)&&n[j][r]||(i.enumerable=!0),i}},he=function(e){var t=Z(p(e)),n=[];return F(t,function(e){h(ee,e)||h(B,e)||J(n,e)}),n},de=function(e){var t=e===Q,n=Z(t?te:p(e)),r=[];return F(n,function(e){!h(ee,e)||t&&!h(Q,e)||J(r,ee[e])}),r};u||(P(K=(V=function(){if(d(K,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=M(e),n=function(e){this===Q&&o(n,te,e),h(this,j)&&h(this[j],t)&&(this[j][t]=!1);var r=m(1,e);try{oe(this,t,r)}catch(e){if(!(e instanceof W))throw e;ie(this,t,r)}};return c&&re&&oe(Q,t,{configurable:!0,set:n}),se(t,e)}).prototype,"toString",function(){return z(this).tag}),P(V,"withoutSetter",function(e){return se(M(e),e)}),T.f=ue,S.f=ae,x.f=ce,_.f=le,b.f=w.f=he,C.f=de,D.f=function(e){return se(O(e),e)},c&&(E(K,"description",{configurable:!0,get:function(){return z(this).description}}),a||P(Q,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),F(v(ne),function(e){R(e)}),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:he}),L(),N(V,"Symbol"),B[j]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/has-own-property"),s=e("../internals/to-string"),a=e("../internals/shared"),c=e("../internals/symbol-registry-detection"),u=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=s(e);if(o(u,t))return u[t];var n=i("Symbol")(t);return u[t]=n,l[n]=t,n}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,t,n){"use strict";e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.ke
30y-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/has-own-property"),o=e("../internals/is-symbol"),s=e("../internals/try-to-string"),a=e("../internals/shared"),c=e("../internals/symbol-registry-detection"),u=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!o(e))throw new TypeError(s(e)+" is not a symbol");if(i(u,e))return u[e]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===r(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===r(e)},n.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,t,n){(function(n){(function(){"use strict";var r=e("elliptic"),i=e("bn.js");t.exports=function(e){return new s(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function a(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new n(e);if(r&&i.length<r){var o=new n(r-i.length);o.fill(0),i=n.concat([o,i])}return t?i.toString(t):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),a(n,e)},s.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",n.isBuffer(e)||(e=new n(e,t));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],386:[function(e,t,n){"use strict";var r=e("inherits"),i=e("md5.js"),o=e("ripemd160"),s=e("sha.js"),a=e("cipher-base");function c(e){a.call(this,"digest"),this._hash=e}r(c,a),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new c(s(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,n){"use strict";var r=e("md5.js");t.exports=function(e){return(new r).update(e).digest()}},{"md5.js":450}],388:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./legacy"),o=e("cipher-base"),s=e("safe-buffer").Buffer,a=e("create-hash/md5"),c=e("ripemd160"),u=e("sha.js"),l=s.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new c:u(e)).update(t).digest():t.length<n&&(t=s.concat([t,l],n));for(var r=this._ipad=s.allocUnsafe(n),i=this._opad=s.allocUnsafe(n),a=0;a<n;a++)r[a]=54^t[a],i[a]=92^t[a];this._hash="rmd160"===e?new c:u(e),this._hash.update(r)}r(h,o),h.prototype._update=function(e){this._hash.update(e)},h.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:u(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new h("rmd160",t):"md5"===e?new i(a,t):new h(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,n){"use strict";var r=e("inherits"),i=e("safe-buffer").Buffer,o=e("cipher-base"),s=i.alloc(128);function a(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,s],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),a=0;a<64;a++)n[a]=54^t[a],r[a]=92^t[a];this._hash=[n]}r(a,o),a.prototype._update=function(e){this._hash.push(e)},a.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=a},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,n){"use strict";n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=e("randombytes"),n.createHash=n.Hash=e("create-hash"),n.createHmac=n.Hmac=e("create-hmac");var r=e("browserify-sign/algos"),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);n.getHashes=function(){return o};var s=e("pbkdf2");n.pbkdf2=s.pbkdf2,n.pbkdf2Sync=s.pbkdf2Sync;var a=e("browserify-cipher");
vendor: 5,792 bytes, line 30
30n.Cipher=a.Cipher,n.createCipher=a.createCipher,n.Cipheriv=a.Cipheriv,n.createCipheriv=a.createCipheriv,n.Decipher=a.Decipher,n.createDecipher=a.createDecipher,n.Decipheriv=a.Decipheriv,n.createDecipheriv=a.createDecipheriv,n.getCiphers=a.getCiphers,n.listCiphers=a.listCiphers;var c=e("diffie-hellman");n.DiffieHellmanGroup=c.DiffieHellmanGroup,n.createDiffieHellmanGroup=c.createDiffieHellmanGroup,n.getDiffieHellman=c.getDiffieHellman,n.createDiffieHellman=c.createDiffieHellman,n.DiffieHellman=c.DiffieHellman;var u=e("browserify-sign");n.createSign=u.createSign,n.Sign=u.Sign,n.createVerify=u.createVerify,n.Verify=u.Verify,n.createECDH=e("create-ecdh");var l=e("public-encrypt");n.publicEncrypt=l.publicEncrypt,n.privateEncrypt=l.privateEncrypt,n.publicDecrypt=l.publicDecrypt,n.privateDecrypt=l.privateDecrypt;var h=e("randomfill");n.randomFill=h.randomFill,n.randomFillSync=h.randomFillSync,n.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},n.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,t,n){"use strict";!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs=r()}(void 0,function(){var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",s="day",a="week",c="month",u="quarter",l="year",h="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},m={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,s=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:l,w:a,d:s,D:h,h:o,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",v={};v[y]=A;var b="$isDayjsObject",w=function(e){return e instanceof x||!(!e||!e[b])},C=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();v[o]&&(i=o),n&&(v[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;v[a]=t,i=a}return!r&&i&&(y=i),i||!r&&y},_=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},S=m;S.l=C,S.i=w,S.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function A(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var g=A.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return _(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<_(e)},g.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,u=!!S.u(t)||t,d=S.p(e),f=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(s)},p=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},A=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case l:return u?f(1,0):f(31,11);case c:return u?f(1,g):f(0,g+1);case a:var v=this.$locale().weekStart||0,b=(A<v?A+7:A)-v;return f(u?m-b:m+(6-b),g);case s:case h:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var a,u=S.p(e),d="set"+(this.$u?"UTC":""),f=(a={},a[s]=d+"Date",a[h]=d+"Date",a[c]=d+"Month",a[l]=d+"FullYear",a[o]=d+"Hours",a[i]=d+"Minutes",a[r]=d+"Seconds",a[n]=d+"Milliseconds",a)[u],p=u===s?this.$D+(t-this.$W):t;if(u===c||u===l){var A=this.clone().set(h,1);
vendor: 4,504 bytes, line 30
30A.$d[f](p),A.init(),this.$d=A.set(h,Math.min(this.$D,A.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(n,u){var h,d=this;n=Number(n);var f=S.p(u),p=function(e){var t=_(d);return S.w(t.date(t.date()+Math.round(e*n)),d)};if(f===c)return this.set(c,this.$M+n);if(f===l)return this.set(l,this.$y+n);if(f===s)return p(1);if(f===a)return p(7);var A=(h={},h[i]=e,h[o]=t,h[r]=1e3,h)[f]||1,g=this.$d.getTime()+n*A;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,s=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=n.meridiem,h=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return S.s(o%12||12,e,"0")},A=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return a+1;case"MM":return S.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,u,3);case"MMMM":return h(u,a);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,c,2);case"ddd":return h(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return A(o,s,!0);case"A":return A(o,s,!1);case"m":return String(s);case"mm":return S.s(s,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,h,d){var f,p=this,A=S.p(h),g=_(n),m=(g.utcOffset()-this.utcOffset())*e,y=this-g,v=function(){return S.m(p,g)};switch(A){case l:f=v()/12;break;case c:f=v();break;case u:f=v()/3;break;case a:f=(y-m)/6048e5;break;case s:f=(y-m)/864e5;break;case o:f=y/t;break;case i:f=y/e;break;case r:f=y/1e3;break;default:f=y}return d?f:S.a(f)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return v[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},A}(),T=x.prototype;return _.prototype=T,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",s],["$M",c],["$y",l],["$D",h]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,x,_),e.$i=!0),_},_.locale=C,_.isDayjs=w,_.unix=function(e){return _(1e3*e)},_.en=v[y],_.Ls=v,_.p={},_})},{}],392:[function(e,t,n){"use strict";!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=r()}(void 0,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[i,function(e){this.afternoon=l(e,!1)}],a:[i,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}
vendor: 36,210 bytes, line 30
30],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,a("year")],Z:c,ZZ:c};function d(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),a=s.length,c=0;c<a;c+=1){var u=s[c],l=h[u],d=l&&l[0],f=l&&l[1];s[c]=f?{regex:d,parser:f}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,c=i.parser,u=e.slice(r),l=o.exec(u)[0];c.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var c=!0===s[2],u=!0===s[3],l=c||u,h=s[2];u&&(h=s[2]),o=this.$locale(),!c&&h&&(o=n.Ls[h]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,c=r.minutes,u=r.seconds,l=r.milliseconds,h=r.zone,f=new Date,p=s||(i||o?1:f.getDate()),A=i||f.getFullYear(),g=0;i&&!o||(g=o>0?o-1:f.getMonth());var m=a||0,y=c||0,v=u||0,b=l||0;return h?new Date(Date.UTC(A,g,p,m,y,v,b+60*h.offset*1e3)):n?new Date(Date.UTC(A,g,p,m,y,v,b)):new Date(A,g,p,m,y,v,b)}catch(e){return new Date("")}}(t,a,r),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),l&&t!=this.format(a)&&(this.$d=new Date("")),o={}}else if(a instanceof Array)for(var f=a.length,p=1;p<=f;p+=1){s[1]=a[p-1];var A=n.apply(this,s);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}p===f&&(this.$d=new Date(""))}else i.call(this,e)}}})},{}],393:[function(e,t,n){"use strict";!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_utc=r()}(void 0,function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var s=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},s.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var c=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var u=s.utcOffset;s.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],s=60*+i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(r)))return this;var s=Math.abs(r)<=16?60*r:r,a=this;if(i)return a.$offset=s,a.$u=0===r,a;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+c,e)).$offset=s,a.$x.$localOffset=c}else a=this.utc();return a};var l=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var h=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),i=o(e).local();return d.call(r,i,t,n)}}})},{}],394:[function(e,t,n){"use strict";n.utils=e("./des/utils"),n.Cipher=e("./des/cipher"),n.DES=e("./des/des"),n.CBC=e("./des/cbc"),n.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits"),o={};function s(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}n.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(o),r=0;r<n.length;r++){var s=n[r];t.prototype[s]=o[s]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new s(this.options.iv);this._cbcState=e},o._update=function(e,t,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,s=i.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=e[t+a];for(o._update.call(this,s,0,n,r),a=0;a<this.blockSize;a++)s[a]=n[r+a]}else{for(o._update.call(this,e,t,n,r),a=0;a<this.blockSize;a++)n[r+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=e[t+a]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,n){"use strict";var r=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits"),o=e("./utils"),s=e("./cipher");function a(){this.tmp=new Array(2),this.keys=null}function c(e){s.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}i(c,s),t.exports=c,c.create=function(e){return new c(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var s=0;s<e.keys.length;s+=2){var a=u[s>>>1];n=o.r28shl(n,a),i=o.r28shl(i,a),o.pc2(n,i,e.keys,s)}},c.prototype._update=function(e,t,n,r){var i=this._desState,s=o.readUInt32BE(e,t),a=o.readUInt32BE(e,t+4);o.ip(s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,a,i.tmp,0):this._decrypt(i,s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],o.writeUInt32BE(n,s,r),o.writeUInt32BE(n,a,r+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},c.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,n,r,i){for(var s=t,a=n,c=0;c<e.keys.length;c+=2){var u=e.keys[c],l=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var h=o.substitute(u,l),d=a;a=(s^o.permute(h))>>>0,s=d}o.rip(a,s,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var s=n,a=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];o.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var h=o.substitute(u,l),d=s;s=(a^o.permute(h))>>>0,a=d}o.rip(s,a,r,i)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits"),o=e("./cipher"),s=e("./des");function a(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:n}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:n})]}function c(e){o.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}i(c,o),t.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=s.prototype._pad,c.prototype._unpad=s.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,n){"use strict";n.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},n.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},n.ip=function(e,t,n,r){for(var i=0,o=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1}n[r+0]=i>>>0,n[r+1]=o>>>0},n.rip=function(e,t,n,r){for(var i=0,o=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)i<<=1,i|=t>>>a+s&1,i<<=1,i|=e>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)o<<=1,o|=t>>>a+s&1,o<<=1,o|=e>>>a+s&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.pc1=function(e,t,n,r){for(var i=0,o=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];n.pc2=function(e,t,n,i){for(var o=0,s=0,a=r.length>>>1,c=0;c<a;c++)o<<=1,o|=e>>>r[c]&1;for(c=a;c<r.length;c++)s<<=1,s|=t>>>r[c]&1;n[i+0]=o>>>0,n[i+1]=s>>>0},n.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];n.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=i[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)];return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];n.permute=function(e){for(var t=0,n=0;n<o.length;n++)t<<=1,t|=e>>>o[n]&1;return t>>>0},n.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],o=0;o<t;o+=n)i.push(r.slice(o,o+n));return i.join(" ")}},{}],400:[function(e,t,n){(function(t){(function(){"use strict";var r=e("./lib/generatePrime"),i=e("./lib/primes.json"),o=e("./lib/dh"),s={binary:!0,hex:!0,base64:!0};n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=function(e){var n=new t(i[e].prime,"hex"),r=new t(i[e].gen,"hex");return new o(n,r)},n.createDiffieHellman=n.DiffieHellman=function e(n,i,a,c){return t.isBuffer(i)||void 0===s[i]?e(n,"binary",i,a):(i=i||"binary",c=c||"binary",a=a||new t([2]),t.isBuffer(a)||(a=new t(a,c)),"number"==typeof n?new o(r(n,a),a,!0):(t.isBuffer(n)||(n=new t(n,i)),new o(n,a,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,n){(function(n){(function(){"use strict";var r=e("bn.js"),i=new(e("miller-rabin")),o=new r(24),s=new r(11),a=new r(10),c=new r(3),u=new r(7),l=e("./generatePrime"),h=e("randombytes");function d(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new r(e),this}function f(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new r(e),this}t.exports=A;var p={};function A(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=f):this._primeCode=8}function g(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(A.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var h,d=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!i.test(e))return d+=1,d+="02"===n||"05"===n?8:4,p[r]=d,d;switch(i.test(e.shrn(1))||(d+=2),n){case"02":e.mod(o).cmp(s)&&(d+=8);break;case"05":(h=e.mod(a)).cmp(c)&&h.cmp(u)&&(d+=8);break;default:d+=4}return p[r]=d,d}(this.__prime,this.__gen)),this._primeCode}}),A.prototype.generateKeys=function(){return this._priv||(this._priv=new r(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},A.prototype.computeSecret=function(e){var t=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new n(t.toArray()),o=this.getPrime();if(i.length<o.length){var s=new n(o.length-i.length);s.fill(0),i=n.concat([s,i])}return i},A.prototype.getPublicKey=function(e){return g(this._pub,e)},A.prototype.getPrivateKey=function(e){return g(this._priv,e)},A.prototype.getPrime=function(e){return g(this.__prime,e)},A.prototype.getGenerator=function(e){return g(this._gen,e)},A.prototype.setGenerator=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new r(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,n){"use strict";var r=e("randombytes");t.exports=y,y.simpleSieve=g,y.fermatTest=m;var i=e("bn.js"),o=new i(24),s=new(e("miller-rabin")),a=new i(1),c=new i(2),u=new i(5),l=(new i(16),new i(8),new i(10)),h=new i(3),d=(new i(7),new i(11)),f=new i(4),p=(new i(12),null);function A(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return p=e,e}function g(e){for(var t=A(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function m(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(a),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;n.mod(l).cmp(h);)n.iadd(f)}else for(;n.mod(o).cmp(d);)n.iadd(f);if(g(p=n.shrn(1))&&g(n)&&m(p)&&m(n)&&s.test(p)&&s.test(n))return n}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,n){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],405:[function(e,t,n){"use strict";var r=n;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils"),o=i.getNAF,s=i.getJSF,a=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){a(e.precomputed);var n=e._getDoubles(),r=o(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var s,c,u=[];for(s=0;s<r.length;s+=n.step){c=0;for(var l=s+n.step-1;l>=s;l--)c=(c<<1)+r[l];u.push(c)}for(var h=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(s=0;s<u.length;s++)(c=u[s])===f?d=d.mixedAdd(n.points[s]):c===-f&&(d=d.mixedAdd(n.points[s].neg()));h=h.add(d)}return h.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,s=o(t,n,this._bitLength),c=this.jpoint(null,null,null),u=s.length-1;u>=0;u--){for(var l=0;u>=0&&0===s[u];u--)l++;if(u>=0&&l++,c=c.dblp(l),u<0)break;var h=s[u];a(0!==h),c="affine"===e.type?h>0?c.mixedAdd(i[h-1>>1]):c.mixedAdd(i[-h-1>>1].neg()):h>0?c.add(i[h-1>>1]):c.add(i[-h-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){var a,c,u,l=this._wnafT1,h=this._wnafT2,d=this._wnafT3,f=0;for(a=0;a<r;a++){var p=(u=t[a])._getNAFPoints(e);l[a]=p.wnd,h[a]=p.points}for(a=r-1;a>=1;a-=2){var A=a-1,g=a;if(1===l[A]&&1===l[g]){var m=[t[A],null,null,t[g]];0===t[A].y.cmp(t[g].y)?(m[1]=t[A].add(t[g]),m[2]=t[A].toJ().mixedAdd(t[g].neg())):0===t[A].y.cmp(t[g].y.redNeg())?(m[1]=t[A].toJ().mixedAdd(t[g]),m[2]=t[A].add(t[g].neg())):(m[1]=t[A].toJ().mixedAdd(t[g]),m[2]=t[A].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(n[A],n[g]);for(f=Math.max(v[0].length,f),d[A]=new Array(f),d[g]=new Array(f),c=0;c<f;c++){var b=0|v[0][c],w=0|v[1][c];d[A][c]=y[3*(b+1)+(w+1)],d[g][c]=0,h[A]=m}}else d[A]=o(n[A],l[A],this._bitLength),d[g]=o(n[g],l[g],this._bitLength),f=Math.max(d[A].length,f),f=Math.max(d[g].length,f)}var C=this.jpoint(null,null,null),_=this._wnafT4;for(a=f;a>=0;a--){for(var S=0;a>=0;){var x=!0;for(c=0;c<r;c++)_[c]=0|d[c][a],0!==_[c]&&(x=!1);if(!x)break;S++,a--}if(a>=0&&S++,C=C.dblp(S),a<0)break;for(c=0;c<r;c++){var T=_[c];0!==T&&(T>0?u=h[c][T-1>>1]:T<0&&(u=h[c][-T-1>>1].neg()),C="affine"===u.type?C.mixedAdd(u):C.add(u))}}for(a=0;a<r;a++)h[a]=null;return i?C:C.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,n){"use strict";var r=e("../utils"),i=e("bn.js"),o=e("inherits"),s=e("./base"),a=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,n,r,o){s.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,s),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=r.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var c=a.fromRed().isOdd();return(t&&!c||!t&&c)&&(a=a.redNeg()),this.point(e,a)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=r.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},o(u,s.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new u(this,e,t,n,r)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),s=o.redSub(n),a=r.redSub(t),c=i.redMul(s),u=o.redMul(a),l=i.redMul(a),h=s.redMul(o);return this.curve.point(c,u,h,l)},u.prototype._projDbl=function(){var e,t,n,r,i,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(a)).redAdd(c);this.zOne?(e=s.redSub(a).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(c)),n=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=s.redSub(a).redISub(c).redMul(o),t=u.redMul(r.redSub(c)),n=u.redMul(o))}else r=a.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),e=this.curve._mulC(s.redISub(r)).redMul(o),t=this.curve._mulC(r).redMul(a.redISub(c)),n=r.redMul(o);return this.curve.point(e,t,n)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),s=i.redSub(r),a=i.redAdd(r),c=n.redAdd(t),u=o.redMul(s),l=a.redMul(c),h=o.redMul(c),d=s.redMul(a);return this.curve.point(u,l,d,h)},u.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),c=i.redSub(a),u=i.redAdd(a),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),h=r.redMul(c).redMul(l);return this.curve.twisted?(t=r.redMul(u).redMul(s.redSub(this.curve._mulA(o))),n=c.redMul(u)):(t=r.redMul(u).redMul(s.redSub(o)),n=this.curve._mulC(c).redMul(u)),this.curve.point(h,t,n)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},u.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,n){"use strict";var r=n;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("inherits"),o=e("./base"),s=e("../utils");function a(e){o.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}
vendor: 4,523 bytes, line 30
30function c(e,t,n){o.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),t.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,o.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},a.prototype.point=function(e,t){return new c(this,e,t)},a.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),s=i.redMul(r),a=t.z.redMul(o.redAdd(s).redSqr()),c=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,n){"use strict";var r=e("../utils"),i=e("bn.js"),o=e("inherits"),s=e("./base"),a=r.assert;function c(e){s.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,n,r){s.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,n,r){s.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,s),t.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],a(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,o,s,a,c,u,l,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,f=this.n.clone(),p=new i(1),A=new i(0),g=new i(0),m=new i(1),y=0;0!==d.cmpn(0);){var v=f.div(d);u=f.sub(v.mul(d)),l=g.sub(v.mul(p));var b=m.sub(v.mul(A));
vendor: 18,280 bytes, line 30
30if(!r&&u.cmp(h)<0)t=c.neg(),n=p,r=u.neg(),o=l;else if(r&&2==++y)break;c=u,f=d,d=u,g=p,p=l,m=A,A=b}s=u.neg(),a=l;var w=r.sqr().add(o.sqr());return s.sqr().add(a.sqr()).cmp(w)>=0&&(s=t,a=n),r.negative&&(r=r.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:r,b:o},{a:s,b:a}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),s=i.mul(n.a),a=o.mul(r.a),c=i.mul(n.b),u=o.mul(r.b);return{k1:e.sub(s).sub(a),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],c=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),c=c.neg(!0)),r[2*o]=a,r[2*o+1]=c,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var u=this._wnafMulAdd(1,r,i,2*o,n),l=0;l<2*o;l++)r[l]=null,i[l]=null;return u},o(u,s.BasePoint),c.prototype.point=function(e,t,n){return new u(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},u.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,s.BasePoint),c.prototype.jpoint=function(e,t,n){return new l(this,e,t,n)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(n.redMul(this.z)),a=r.redSub(i),c=o.redSub(s);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),h=r.redMul(u),d=c.redSqr().redIAdd(l).redISub(h).redISub(h),f=c.redMul(h.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,f,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=n.redSub(r),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),l=n.redMul(c),h=a.redSqr().redIAdd(u).redISub(l).redISub(l),d=a.redMul(l.redISub(h)).redISub(i.redMul(u)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,c=a.redSqr().redSqr(),u=s.redAdd(s);for(t=0;t<e;t++){var l=o.redSqr(),h=u.redSqr(),d=h.redSqr(),f=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(c)),p=o.redMul(h),A=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(A),m=f.redMul(g);m=m.redIAdd(m).redISub(d);var y=u.redMul(a);t+1<e&&(c=c.redMul(d)),o=A,a=y,u=m}return this.curve.jpoint(o,u.redMul(i),a)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(r).redISub(o);s=s.redIAdd(s);var a=r.redAdd(r).redIAdd(r),c=a.redSqr().redISub(s).redISub(s),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=a.redMul(s.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),d=h.redSqr(),f=this.x.redAdd(h).redSqr().redISub(l).redISub(d);f=f.redIAdd(f);var p=l.redAdd(l).redIAdd(l),A=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=A.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},l.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(r).redISub(o);s=s.redIAdd(s);var a=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=a.redSqr().redISub(s).redISub(s);e=c;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=a.redMul(s.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),d=this.x.redMul(h),f=this.x.redSub(l).redMul(this.x.redAdd(l));f=f.redAdd(f).redIAdd(f);var p=d.redIAdd(d),A=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(A),n=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=f.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),s=n.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(s),l=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(l),d=s.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=a.redMul(h).redISub(d),p=n.redAdd(n).redMul(r);return this.curve.jpoint(l,f,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(r),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(c),l=t.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var d=this.y.redMul(u.redMul(c.redISub(u)).redISub(s.redMul(a)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=this.z.redAdd(s).redSqr().redISub(n).redISub(a);return this.curve.jpoint(h,d,f)},l.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},l.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,n){"use strict";var r,i=n,o=e("hash.js"),s=e("./curve"),a=e("./utils").assert;function c(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=e("./precomputed/secp256k1")}catch(e){r=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("hmac-drbg"),o=e("../utils"),s=e("../curves"),a=e("brorand"),c=o.assert,u=e("./key"),l=e("./signature");function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=h,h.prototype.keyPair=function(e){return new u(this,e)},h.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var s=new r(t.generate(n));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},h.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,n,o){"object"==typeof n&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var s=this.n.byteLength(),a=t.getPrivate().toArray("be",s),c=e.toArray("be",s),u=new i({hash:this.hash,entropy:a,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new r(1)),d=0;;d++){var f=o.k?o.k(d):new r(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(h)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var A=p.getX(),g=A.umod(this.n);if(0!==g.cmpn(0)){var m=f.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==A.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),y^=1),new l({r:g,s:m,recoveryParam:y})}}}}}},h.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var o=(t=new l(t,"hex")).r,s=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,c=s.invm(this.n),u=c.mul(e).umod(this.n),h=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,n.getPublic(),h)).isInfinity()&&a.eqXToP(o):!(a=this.g.mulAdd(u,n.getPublic(),h)).isInfinity()&&0===a.getX().umod(this.n).cmp(o)},h.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,s=new r(e),a=t.r,u=t.s,h=1&n,d=n>>1;
vendor: 8,212 bytes, line 30
30if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=d?this.curve.pointFromX(a.add(this.curve.n),h):this.curve.pointFromX(a,h);var f=t.r.invm(o),p=o.sub(s).mul(f).umod(o),A=u.mul(f).umod(o);return this.g.mulAdd(p,a,A)},h.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new l(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils").assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=o,o.fromPublic=function(e,t,n){return t instanceof o?t:new o(e,{pub:t,pubEnc:n})},o.fromPrivate=function(e,t,n){return t instanceof o?t:new o(e,{priv:t,privEnc:n})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils"),o=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,s=t.place;o<r;o++,s++)i<<=8,i|=e[s],i>>>=0;return!(i<=127)&&(t.place=s,i)}function u(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}t.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new a;if(48!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;if(o+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var s=c(e,n);if(!1===s)return!1;var u=e.slice(n.place,s+n.place);if(n.place+=s,2!==e[n.place++])return!1;var l=c(e,n);if(!1===l)return!1;if(e.length!==l+n.place)return!1;var h=e.slice(n.place,l+n.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new r(u),this.s=new r(h),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=u(t),n=u(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];l(r,t.length),(r=r.concat(t)).push(2),l(r,n.length);var o=r.concat(n),s=[48];return l(s,o.length),s=s.concat(o),i.encode(s,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,n){"use strict";var r=e("hash.js"),i=e("../curves"),o=e("../utils"),s=o.assert,a=o.parseBytes,c=e("./key"),u=e("./signature");function l(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}t.exports=l,l.prototype.sign=function(e,t){e=a(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),s=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),c=r.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},l.prototype.verify=function(e,t,n){e=a(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return o.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,n){"use strict";var r=e("../utils"),i=r.assert,o=r.parseBytes,s=r.cachedProperty;function a(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(a,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),s(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},a.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},t.exports=a},{"../utils":419}],417:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils"),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../utils":419,"bn.js":420}],418:[function(e,t,n
vendor: 4,893 bytes, line 30
30){"use strict";t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1d
vendor: 13,526 bytes, line 30
30adf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0
vendor: 7,738 bytes, line 30
30a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],
vendor: 2,473 bytes, line 30
30419:[function(e,t,n){"use strict";var r=n,i=e("bn.js"),o=e("minimalistic-assert"),s=e("minimalistic-crypto-utils");r.assert=o,r.toArray=s.toArray,r.zero2=s.zero2,r.toHex=s.toHex,r.encode=s.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),s=0;s<r.length;s++){var a,c=o.andln(i-1);o.isOdd()?(a=c>(i>>1)-1?(i>>1)-c:c,o.isubn(a)):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var s,a,c=e.andln(3)+i&3,u=t.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),s=0==(1&c)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==u?c:-c,n[0].push(s),a=0==(1&u)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==c?u:-u,n[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],421:[function(e,t,n){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"[email protected]:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <[email protected]>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,t,n){"use strict";var r=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];
vendor: 4,771 bytes, line 30
30for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},o=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var a,c=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),a=0===u.x}catch(e){a=!1}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function h(e,t,n){if(t)e.call(n);else for(var r=e.length,i=w(e,r),o=0;o<r;++o)i[o].call(n)}function d(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=w(e,i),s=0;s<i;++s)o[s].call(n,r)}function f(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,s=w(e,o),a=0;a<o;++a)s[a].call(n,r,i)}function p(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var s=e.length,a=w(e,s),c=0;c<s;++c)a[c].call(n,r,i,o)}function A(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=w(e,i),s=0;s<i;++s)o[s].apply(n,r)}function g(e,t,n,i){var o,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]):(s=e._events=r(null),e._eventsCount=0),a){if("function"==typeof a?a=s[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),!a.warned&&(o=l(e))&&o>0&&a.length>o){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else a=s[t]=n,++e._eventsCount;return e}function m(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=o.call(m,r);return i.listener=n,r.wrapFn=i,i}function v(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):w(i,i.length):[]}function b(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function w(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}a?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');c=e}}):s.defaultMaxListeners=c,s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){var t,n,r,i,o,s,a="error"===e;if(s=this._events)a=a&&null==s.error;else if(!a)return!1;if(a){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var c=new Error('Unhandled "error" event. ('+t+")");throw c.context=t,c}if(!(n=s[e]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:h(n,u,this);break;case 2:d(n,u,this,arguments[1]);break;case 3:f(n,u,this,arguments[1],arguments[2]);break;case 4:p(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];A(n,u,this,i)}return!0},s.prototype.addListener=function(e,t){return g(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return g(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,i,o,s,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=r(null):(delete i[e],i.removeListener&&this.emit
vendor: 25,346 bytes, lines 30-36
30("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){a=n[s].listener,o=s;break}if(o<0)return this;0===o?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o),1===n.length&&(i[e]=n[0]),i.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.removeAllListeners=function(e){var t,n,o;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=r(null):delete n[e]),this;if(0===arguments.length){var s,a=i(n);for(o=0;o<a.length;++o)"removeListener"!==(s=a[o])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},s.prototype.listeners=function(e){return v(this,e,!0)},s.prototype.rawListeners=function(e){return v(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},s.prototype.listenerCount=b,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("md5.js");t.exports=function(e,t,n,o){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=n/8,a=r.alloc(s),c=r.alloc(o||0),u=r.alloc(0);s>0||o>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var h=0;if(s>0){var d=a.length-s;h=Math.min(s,u.length),u.copy(a,d,0,h),s-=h}if(h<u.length&&o>0){var f=c.length-o,p=Math.min(o,u.length-h);u.copy(c,f,h,h+p),o-=p}}return u.fill(0),{key:a,iv:c}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=n.ParserOptions=n.parseFile=n.parseStream=n.parseString=n.parse=n.FormatterOptions=n.CsvFormatterStream=n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=void 0;var r=e("@fast-csv/format");Object.defineProperty(n,"format",{enumerable:!0,get:function(){return r.format}}),Object.defineProperty(n,"write",{enumerable:!0,get:function(){return r.write}}),Object.defineProperty(n,"writeToStream",{enumerable:!0,get:function(){return r.writeToStream}}),Object.defineProperty(n,"writeToBuffer",{enumerable:!0,get:function(){return r.writeToBuffer}}),Object.defineProperty(n,"writeToString",{enumerable:!0,get:function(){return r.writeToString}}),Object.defineProperty(n,"writeToPath",{enumerable:!0,get:function(){return r.writeToPath}}),Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return r.CsvFormatterStream}}),Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return r.FormatterOptions}});var i=e("@fast-csv/parse");Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(n,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(n,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(n,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var s=0,a=8*e.length;a>0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,n){"use strict";var r=n;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,n){"use strict";var r=e("./utils"),i=e("minimalistic-assert");function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}n.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,n){"use strict";var r=e("./utils"),i=e("minimalistic-assert");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}t.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./common"),o=r.rotl32,s=r.sum32,a=r.sum32_3,c=r.sum32_4,u=i.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(l,u),n.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],u=this.h[3],l=this.h[4],y=n,v=r,b=i,w=u,C=l,_=0;_<80;_++){var S=s(o(c(n,h(_,r,i,u),e[p[_]+t],d(_)),g[_]),l);n=l,l=u,u=o(i,10),i=r,r=S,S=s(o(c(y,h(79-_,v,b,w),e[A[_]+t],f(_)),m[_]),C),y=C,C=w,w=o(b,10),b=v,v=S}S=a(this.h[1],i,w),this.h[1]=a(this.h[2],u,C),this.h[2]=a(this.h[3],l,y),this.h[3]=a(this.h[4],n,v),this.h[4]=a(this.h[0],r,b),this.h[0]=S},l.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,t,n){"use strict";n.sha1=e("./sha/1"),n.sha224=e("./sha/224"),n.sha256=e("./sha/256"),n.sha384=e("./sha/384"),n.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../common"),o=e("./common"),s=r.rotl32,a=r.sum32,c=r.sum32_5,u=o.ft_1,l=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,l),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),A=c(s(i,5),u(p,o,l,d),f,n[r],h[p]);f=d,d=l,l=s(o,30),o=i,i=A}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],d),this.h[4]=a(this.h[4],f)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./256");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../common"),o=e("./common"),s=e("minimalistic-assert"),a=r.sum32,c=r.sum32_4,u=r.sum32_5,l=o.ch32,h=o.maj32,d=o.s0_256,f=o.s1_256,p=o.g0_256,A=o.g1_256,g=i.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(A(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],v=this.h[5],b=this.h[6],w=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(w,f(y),l(y,v,b),this.k[r],n[r]),_=a(d(i),h(i,o,g));w=b,b=v,v=y,y=a(m,C),m=g,g=o,o=i,i=a(C,_)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./512");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../common"),o=e("minimalistic-assert"),s=r.rotr64_hi,a=r.rotr64_lo,c=r.shr64_hi,u=r.shr64_lo,l=r.sum64,h=r.sum64_hi,d=r.sum64_lo,f=r.sum64_4_hi,p=r.sum64_4_lo,A=r.sum64_5_hi,g=r.sum64_5_lo,m=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function b(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,n,r,i,o){var s=t&r^~t&o;return s<0&&(s+=4294967296),s}function C(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function _(e,t,n,r,i,o){var s=t&r^t&o^r&o;return s<0&&(s+=4294967296),s}function S(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function x(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function P(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function E(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function I(e,t){var n=a(e,t,1)^a(e,t,8)^u(e,t,7);return n<0&&(n+=4294967296),n}function k(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function B(e,t){var n=a(e,t,19)^a(t,e,29)^u(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(v,m),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=k(n[r-4],n[r-3]),o=B(n[r-4],n[r-3]),s=n[r-14],a=n[r-13],c=E(n[r-30],n[r-29]),u=I(n[r-30],n[r-29]),l=n[r-32],h=n[r-31];n[r]=f(i,o,s,a,c,u,l,h),n[r+1]=p(i,o,s,a,c,u,l,h)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4],u=this.h[5],f=this.h[6],p=this.h[7],m=this.h[8],y=this.h[9],v=this.h[10],E=this.h[11],I=this.h[12],k=this.h[13],B=this.h[14],M=this.h[15];o(this.k.length===n.length);for(var O=0;O<n.length;O+=2){var D=B,R=M,L=T(m,y),N=P(m,y),U=b(m,y,v,E,I),F=w(m,y,v,E,I,k),j=this.k[O],H=this.k[O+1],z=n[O],Q=n[O+1],V=A(D,R,L,N,U,F,j,H,z,Q),K=g(D,R,L,N,U,F,j,H,z,Q);D=S(r,i),R=x(r,i),L=C(r,i,s,a,c),N=_(r,i,s,a,c,u);var W=h(D,R,L,N),G=d(D,R,L,N);B=I,M=k,I=v,k=E,v=m,E=y,m=h(f,p,V,K),y=d(p,p,V,K),f=c,p=u,c=s,u=a,s=r,a=i,r=h(V,K,W,G),i=d(V,K,W,G)}l(this.h,0,r,i),l(this.h,2,s,a),l(this.h,4,c,u),l(this.h,6,f,p),l(this.h,8,m,y),l(this.h,10,v,E),l(this.h,12,I,k),l(this.h,14,B,M)},v.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,n){"use strict";var r=e("../utils").rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}n.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},n.ch32=i,n.maj32=o,n.p32=s,n.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},n.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},n.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},n.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},{"../utils":437}],437:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits");function o(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}n.inherits=i,n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},n.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},n.htonl=s,n.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},n.zero2=a,n.zero8=c,n.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},n.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},n.rotr32=function(e,t){return e>>>t|e<<32-t},n.rotl32=function(e,t){return e<<t|e>>>32-t},n.sum32=function(e,t){return e+t>>>0},n.sum32_3=function(e,t,n){return e+t+n>>>0},n.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},n.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},n.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},n.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},n.sum64_lo=function(e,t,n,r){return t+r>>>0},n.sum64_4_hi=function(e,t,n,r,i,o,s,a){var c=0,u=t;return c+=(u=u+r>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},n.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},n.sum64_5_hi=function(e,t,n,r,i,o,s,a,c,u){var l=0,h=t;return l+=(h=h+r>>>0)<t?1:0,l+=(h=h+o>>>0)<o?1:0,l+=(h=h+a>>>0)<a?1:0,e+n+i+s+c+(l+=(h=h+u>>>0)<u?1:0)>>>0},n.sum64_5_lo=function(e,t,n,r,i,o,s,a,c,u){return t+r+o+a+u>>>0},n.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},n.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},n.shr64_hi=function(e,t,n){return e>>>n},n.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,n){"use strict";var r=e("hash.js"),i=e("minimalistic-crypto-utils"),o=e("minimalistic-assert");function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}t.exports=s,s.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},s.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(n),this._reseed++,i.encode(s,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,n){"use strict";
31/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+h],h+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=u}return(f?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,h=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,A=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*c-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+f]=255&s,f+=p,s/=256,u-=8);e[n+f-p]|=128*A}},{}],440:[function(e,t,n){"use strict";"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],441:[function(e,t,r){(function(n,i,o,s,a,c,u,l){(function(){"use strict";
32/*!
33
34JSZip v3.10.1 - A JavaScript class for generating and reading zip files
35<http://stuartk.com/jszip>
36
vendor: 4,788 bytes, lines 37-42
37(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
38Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
39
40JSZip uses the library pako released under the MIT license :
41https://github.com/nodeca/pako/blob/main/LICENSE
42*/!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(n,r,i){function o(a,c){if(!r[a]){if(!n[a]){var u="function"==typeof e&&e;if(!c&&u)return u(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var h=r[a]={exports:{}};n[a][0].call(h.exports,function(e){return o(n[a][1][e]||e)},h,h.exports,t,n,r,i)}return r[a].exports}for(var s="function"==typeof e&&e,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(e,t,n){var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,s,a,c,u,l=[],h=0,d=e.length,f=d,p="string"!==r.getTypeOf(e);h<e.length;)f=d-h,i=p?(t=e[h++],n=h<d?e[h++]:0,h<d?e[h++]:0):(t=e.charCodeAt(h++),n=h<d?e.charCodeAt(h++):0,h<d?e.charCodeAt(h++):0),s=t>>2,a=(3&t)<<4|n>>4,c=1<f?(15&n)<<2|i>>6:64,u=2<f?63&i:64,l.push(o.charAt(s)+o.charAt(a)+o.charAt(c)+o.charAt(u));return l.join("")},n.decode=function(e){var t,n,r,s,a,c,u=0,l=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(s=o.indexOf(e.charAt(u++)))>>4,n=(15&s)<<4|(a=o.indexOf(e.charAt(u++)))>>2,r=(3&a)<<6|(c=o.indexOf(e.charAt(u++))),d[l++]=t,64!==a&&(d[l++]=n),64!==c&&(d[l++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function a(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n){var r=i,o=0+n;e^=-1;for(var s=0;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n){var r=i,o=0+n;e^=-1;for(var s=0;s<o;s++)e=e>>>8^r[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),s=e("./stream/GenericWorker"),a=r?"uint8array":"array";function c(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(c,s),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,e.data),!1)},c.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)}
vendor: 6,775 bytes, line 42
42,c.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,s,l){var h,d,f=e.file,p=e.compression,A=l!==a.utf8encode,g=o.transformTo("string",l(f.name)),m=o.transformTo("string",a.utf8encode(f.name)),y=f.comment,v=o.transformTo("string",l(y)),b=o.transformTo("string",a.utf8encode(y)),w=m.length!==f.name.length,C=b.length!==y.length,_="",S="",x="",T=f.dir,P=f.date,E={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize);var I=0;t&&(I|=8),A||!w&&!C||(I|=2048);var k=0,B=0;T&&(k|=16),"UNIX"===s?(B=798,k|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,T)):(B=20,k|=function(e){return 63&(e||0)}(f.dosPermissions)),h=P.getUTCHours(),h<<=6,h|=P.getUTCMinutes(),h<<=5,h|=P.getUTCSeconds()/2,d=P.getUTCFullYear()-1980,d<<=4,d|=P.getUTCMonth()+1,d<<=5,d|=P.getUTCDate(),w&&(S=r(1,1)+r(c(g),4)+m,_+="up"+r(S.length,2)+S),C&&(x=r(1,1)+r(c(v),4)+b,_+="uc"+r(x.length,2)+x);var M="";return M+="\n\0",M+=r(I,2),M+=p.magic,M+=r(h,2),M+=r(d,2),M+=r(E.crc32,4),M+=r(E.compressedSize,4),M+=r(E.uncompressedSize,4),M+=r(g.length,2),M+=r(_.length,2),{fileRecord:u.LOCAL_FILE_HEADER+M+g+_,dirRecord:u.CENTRAL_FILE_HEADER+r(B,2)+M+r(v.length,2)+"\0\0\0\0"+r(k,4)+r(i,4)+g+_+v}}var o=e("../utils"),s=e("../stream/GenericWorker"),a=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,n,r){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,s),l.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,s){var a=o.transformTo("string",s(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(a.length,2)+a}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},l.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},l.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),s=0;try{e.forEach(function(e,n){s++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),a=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,u=n.date;n._compressWorker(i,a).withStreamInfo("file",{name:e,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)}),o.entriesCount=s}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),i=e("./external"),o=e("./utf8"),s=e("./zipEntries"),a=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new a);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip f
42ile",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new s(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(u(r[o]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),o=i.files,s=0;s<o.length;s++){var a=o[s],c=a.fileNameStr,u=r.resolve(a.fileNameStr);n.file(u,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders}),a.dir||(n.file(u).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:void 0!==o,newBufferFrom:function(e,t){if(o.from&&o.from!==Uint8Array.from)return o.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new o(e,t)},allocBuffer:function(e){if(o.alloc)return o.alloc(e);var t=new o(e);return t.fill(0),t},isBuffer:function(e){return o.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=o.getTypeOf(t),a=o.extend(n||{},c);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=A(e)),a.createFolders&&(r=p(e))&&g.call(this,r,!0);var h,m="string"===i&&!1===a.binary&&!1===a.base64;n&&void 0!==n.binary||(a.binary=!m),(t instanceof u&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string"),h=t instanceof u||t instanceof s?t:d.isNode&&d.isStream(t)?new f(e,t):o.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var y=new l(e,h,a);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),s=e("./stream/GenericWorker"),a=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),h=e("./generate"),d=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},A=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:c.createFolders,e=A(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(m(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(m(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 5,661 bytes, line 42
42,generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=h.generateWorker(this,n,r)}catch(e){(t=new s("error")).error(e)}return new a(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),s=e("./StringReader"),a=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new a(e):i.uint8array?new c(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK��",n.CENTRAL_FILE_HEADER="PK��",n.CENTRAL_DIRECTORY_END="PK��",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK��",n.ZIP64_CENTRAL_DIRECTORY_END="PK��",n.DATA_DESCRIPTOR="PK�\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}
vendor: 7,565 bytes, line 42
42r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e("../utils"),i=e("./ConvertWorker"),s=e("./GenericWorker"),a=e("../base64"),c=e("../support"),u=e("../external"),l=null;if(c.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function h(e,t,n){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new s("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return function(e,t){return new u.Promise(function(n,i){var s=[],c=e._internalType,u=e._outputType,l=e._mimeType;e.on("data",function(e,n){s.push(e),t&&t(n)}).on("error",function(e){s=[],i(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(u,function(e,t){var n,r=0,i=null,s=0;for(n=0;n<t.length;n++)s+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(s),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return o.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,s),l);n(e)}catch(e){i(e)}s=[]}).resume()})}(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==o,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),s=e("./stream/GenericWorker"),a=new Array(256),c=0;c<256;c++)a[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){s.call(this,"utf-8 decode"),this.leftOver=null}function l(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,s,a=e.length,c=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),o=s=0;s<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[s++]=n:(n<2048?t[s++]=192|n>>>6:(n<65536?t[s++]=224|n>>>12:(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63),t[s++]=128|n>>>6&63),t[s++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,s=e.length,c=new Array(2*s);for(t=n=0;t<s;)if((i=e[t++])<128)c[n++]=i;else if(4<(o=a[i]))c[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<s;)i=i<<6|63&e[t++],o--;
vendor: 4,651 bytes, line 42
421<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,s),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}(t),c=t;s!==t.length&&(i.uint8array?(c=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(c=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(l,s),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),s=e("./external");function a(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function h(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=h;var f={};f.string={string:a,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},f.array={string:h,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},f.arraybuffer={string:function(e){return h(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:h,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return o.newBufferFrom(e)}},f.nodebuffer={string:h,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:a},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;
vendor: 4,172 bytes, line 42
42n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){l(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,a,u){return s.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var l=n.getTypeOf(t);return l?("arraybuffer"===l?t=n.transformTo("uint8array",t):"string"===l&&(u?t=i.decode(t):o&&!0!==a&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),s=e("./zipEntry"),a=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=a.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
42ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),s=e("./crc32"),a=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&
vendor: 2,321 bytes, line 42
42(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),s=e("./utf8"),a=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new s.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)}
vendor: 6,308 bytes, line 42
42,nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof c?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)r.prototype[u[h]]=l;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(l),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r(function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var s=p(function(){t(i,r)});"error"===s.status&&r(s.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===a?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,c=-1,u=new this(i);++c<n;)l(e[c],c);return u;function l(e,i){t.resolve(e).then(function(e){s[i]=e,++a!==n||r||(r=!0,o.resolve(u,s))},function(e){r||(r=!0,o.reject(u,e))})}},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,s=-1,a=new this(i);++s<t;)r=e[s],this.resolve(r).then(function(e){n||(n=!0,o.resolve(a,e))},function(e){n||(n=!0,o.reject(a,e))});return a}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/messages"),a=e("./zlib/zstream"),c=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(s[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var l;if(l="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,l)))throw new Error(s[n]);this._dict_set=!0}}function l(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}u.prototype.push=function(e,t){var n,s,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?a.input=new 
vendor: 6,194 bytes, line 42
42Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(u),a.next_out=0,a.avail_out=u),1!==(n=r.deflate(a,s))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==n);return 4===s?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==s||(this.onEnd(0),!(a.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=u,n.deflate=l,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,l(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,l(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/constants"),a=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==s.Z_OK)throw new Error(a[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(e,t){var n,a,c,u,h,d,f=this.strm,p=this.options.chunkSize,A=this.options.dictionary,g=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&A&&(d="string"==typeof A?o.string2buf(A):"[object ArrayBuffer]"===l.call(A)?new Uint8Array(A):A,n=r.inflateSetDictionary(this.strm,d)),n===s.Z_BUF_ERROR&&!0===g&&(n=s.Z_OK,g=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==s.Z_STREAM_END&&(0!==f.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),u=f.next_out-c,h=o.buf2string(f.output,c),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,c,u,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,s;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(s=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new r.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",s=0;s<t;s++)n+=String.fromCharCode(e[s]);return n}s[254]=s[254]=1,n.string2buf=function(e){var t,n,i,o,s,a=e.length,c=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),o=s=0;s<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[s++]=n:(n<2048?t[s++]=192|n>>>6:(n<65536?t[s++]=224|n>>>12:(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63),t[s++]=128|n>>>6&63),t[s++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,a=t||e.length,u=new Array(2*a);for(n=r=0;n<a;)if((i=e[n++])<128)u[r++]=i;else if(4<(o=s[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<a;)i=i<<6|63&e[n++],o--;
vendor: 4,341 bytes, line 42
421<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,s=0;0!==n;){for(n-=s=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--s;);i%=65521,o%=65521}return i|o<<16}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,s=i+n;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,n){var r,i=e("../utils/common"),o=e("./trees"),s=e("./adler32"),a=e("./crc32"),c=e("./messages"),u=-2,l=258,h=262,d=113;function f(e,t){return e.msg=c[t],t}function p(e){return(e<<1)-(4<e?9:0)}function A(e){for(var t=e.length;0<=--t;)e[t]=0}function g(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function m(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function v(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function b(e,t){var n,r,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,c=e.strstart>e.w_size-h?e.strstart-(e.w_size-h):0,u=e.window,d=e.w_mask,f=e.prev,p=e.strstart+l,A=u[o+s-1],g=u[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(u[(n=t)+s]===g&&u[n+s-1]===A&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<p);if(r=l-(p-o),o=p-l,s<r){if(e.match_start=t,a<=(s=r))break;A=u[o+s-1],g=u[o+s]}}}while((t=f[t&d])>c&&0!=--i);return s<=e.lookahead?s:e.lookahead}function w(e){var t,n,r,o,c,u,l,d,f,p,A=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=A+(A-h)){for(i.arraySet(e.window,e.window,A,A,0),e.match_start-=A,e.strstart-=A,e.block_start-=A,t=n=e.hash_size;r=e.head[--t],e.head[t]=A<=r?r-A:0,--n;);for(t=n=A;r=e.prev[--t],e.prev[t]=A<=r?r-A:0,--n;);o+=A}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,d=e.strstart+e.lookahead,p=void 0,(f=o)<(p=u.avail_in)&&(p=f),n=0===p?0:(u.avail_in-=p,i.arraySet(l,u.input,u.next_in,p,d),1===u.state.wrap?u.adler=s(u.adler,l,p,d):2===u.state.wrap&&(u.adler=a(u.adler,l,p,d)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<h&&0!==e.strm.avail_in)}function C(e,t){for(var n,r;;){if(e.lookahead<h){if(w(e),e.lookahead<h&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-h&&(e.match_length=b(e,n)),e.match_length>=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;
vendor: 5,873 bytes, line 42
42else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}function _(e,t){for(var n,r,i;;){if(e.lookahead<h){if(w(e),e.lookahead<h&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-h&&(e.match_length=b(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(m(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&m(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}function S(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function x(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),A(this.dyn_ltree),A(this.dyn_dtree),A(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),A(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),A(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:d,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):f(e,u)}function P(e){var t=T(e);return 0===t&&function(e){e.window_size=2*e.w_size,A(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function E(e,t,n,r,o,s){if(!e)return u;var a=1;if(-1===t&&(t=6),r<0?(a=0,r=-r):15<r&&(a=2,r-=16),o<1||9<o||8!==n||r<8||15<r||t<0||9<t||s<0||4<s)return f(e,u);8===r&&(r=9);var c=new x;return(e.state=c).strm=e,c.wrap=a,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=s,c.method=n,P(e)}r=[new S(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(w(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,m(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-h&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(m(e,!1),e.strm.avail_out),1)}),new S(4,4,8,4,C),new S(4,5,16,8,C),new S(4,6,32,32,C),new S(4,4,16,16,_),new S(8,16,32,32,_),new S(8,16,128,128,_),new S(8,32,128,256,_),new S(32,128,258,1024,_),new S(32,258,258,4096,_)],n.deflateInit=function(e,t){return E(e,t,8,15,8,0)},n.deflateInit2=E,n.deflateReset=P,n.deflateResetKeep=T,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},n.deflate=function(e,t){var n,i,s,c;if(!e||!e.state||5<t||t<0)return e?f(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return f(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gz
vendor: 4,443 bytes, line 42
42index=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=d);else{var h=8+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=d,v(i,h),0!==i.strstart&&(v(i,e.adler>>>16),v(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),g(e),s=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),g(e),s=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),g(e),s=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=d)):i.status=d),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(n)&&4!==t)return f(e,-5);if(666===i.status&&0!==e.avail_in)return f(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var b=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(w(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,s,a=e.window;;){if(e.lookahead<=l){if(w(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){s=e.strstart+l;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<s);e.match_length=l-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==b&&4!==b||(i.status=666),1===b||3===b)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===b&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(A(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(v(i,e.adler>>>16),v(i,65535&e.adler)),g(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==d&&666!==t?f(e,u):(e.state=null,t===d?f(e,-3):0):u},n.deflateSetDictionary=function(e,t){var n,r,o,a,c,l,h,d,f=t.length;if(!e||!e.state)return u;if(2===(a=(n=e.state).wrap)||1===a&&42!==n.status||n.lookahead)return u;for(1===a&&(e.adler=s(e.adler,t,f,0)),n.wrap=0,f>=n.w_size&&(0===a&&(A(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,f-n.w_size,n.w_size,0),t=d,f=n.w_size),c=e.avail_in,l=e.next_in,h=e.input,e.avail_in=f,e.
vendor: 7,038 bytes, line 42
42next_in=0,e.input=t,w(n);n.lookahead>=3;){for(r=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=2,w(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=l,e.input=h,e.avail_in=c,n.wrap=a,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,r,i,o,s,a,c,u,l,h,d,f,p,A,g,m,y,v,b,w,C,_,S,x,T;n=e.state,r=e.next_in,x=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,A=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(f+=x[r++]<<p,p+=8,f+=x[r++]<<p,p+=8),v=A[f&m];t:for(;;){if(f>>>=b=v>>>24,p-=b,0==(b=v>>>16&255))T[o++]=65535&v;else{if(!(16&b)){if(0==(64&b)){v=A[(65535&v)+(f&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&v,(b&=15)&&(p<b&&(f+=x[r++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=x[r++]<<p,p+=8,f+=x[r++]<<p,p+=8),v=g[f&y];n:for(;;){if(f>>>=b=v>>>24,p-=b,!(16&(b=v>>>16&255))){if(0==(64&b)){v=g[(65535&v)+(f&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(C=65535&v,p<(b&=15)&&(f+=x[r++]<<p,(p+=8)<b&&(f+=x[r++]<<p,p+=8)),c<(C+=f&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,(b=o-s)<C){if(l<(b=C-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=d,(_=0)===h){if(_+=u-b,b<w){for(w-=b;T[o++]=d[_++],--b;);_=o-C,S=T}}else if(h<b){if(_+=u+h-b,(b-=h)<w){for(w-=b;T[o++]=d[_++],--b;);if(_=0,h<w){for(w-=b=h;T[o++]=d[_++],--b;);_=o-C,S=T}}}else if(_+=h-b,b<w){for(w-=b;T[o++]=d[_++],--b;);_=o-C,S=T}for(;2<w;)T[o++]=S[_++],T[o++]=S[_++],T[o++]=S[_++],w-=3;w&&(T[o++]=S[_++],1<w&&(T[o++]=S[_++]))}else{for(_=o-C;T[o++]=T[_++],T[o++]=T[_++],T[o++]=T[_++],2<(w-=3););w&&(T[o++]=T[_++],1<w&&(T[o++]=T[_++]))}break}}break}}while(r<i&&o<a);r-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<a?a-o+257:257-(o-a),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),s=e("./inffast"),a=e("./inftrees"),c=-2;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):c}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,h(e)):c}function f(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,d(e))):c}function p(e,t){var n,r;return e?(r=new l,(e.state=r).window=null,0!==(n=f(e,t))&&(e.state=null),n):c}var A,g,m=!0;function y(e){if(m){var t;for(A=new r.Buf32(512),g=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,A,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,g,0,e.work,{bits:5}),m=!1}e.lencode=A,e.lenbits=9,e.distcode=g,e.distbits=5}function v(e,t,n,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new r.Buf8(s.wsize)),i>=s.wsize?(r.arraySet(s.window,t,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),r.arraySet(s.window,t,n-i,o,s.wnext),(i-=o)?(r.arraySet(s.window,t,n-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}n.inflateReset=d,n.inflateReset2=f,n.inflateResetKeep=h,n.inflateInit=function(e){return p(e,15)},n.inflateInit2=p,n.inflate=function(e,t){var n,l,h,d,f,p,A,g,m,b,w,C,_,S,x,T,P,E,I,k,B,M,O,D,R=0,L=new r.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(n=e.state).mode&&(n.mode=13),f=e.next_out,h=e.output,A=e.avail_out,d=e.next_in,l=e.input,p=e.avail_in,g=n.hold,m=n.bits,b=p,w=A,M=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;m<16;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(2&n.wrap&&35615===g){L[n.check=0]=255&g,L[1]=g>>>8&255,n.check=o(n.check,L,2,0),m=g=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",n.mode=30;break}if(m-=4,B=8+(15&(g>>>=4)),0===n.wbits)n.wbits=B;else if(B>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<B,e.adler=n.check=1,n.mode=512&g?10:12,m=g=0;break;case 2:for(;m<16;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(n.flags=g,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(L[0]=255&g,L[1]=g>>>8&255,n.check=o(n.check,L,2,0)),m=g=0,n.mode=3;case 3:for(;m<32;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}n.head&&(n.head.time=g),512&n.flags&&(L[0]=255&g,L[1]=g>>>8&255,L[2]=g>>>16&255,L[3]=g>>>24&255,n.check=o(n.check,L,4,0)),m=g=0,n.mode=4;case 4:for(;m<16;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(L[0]=255&g,L[1]=g>>>8&255,n.check=o(n.check,L,2,0)),m=g=0,n.mode=5;case 5:if(1024&n.flags){for(;m<16;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(L[0]=255&g,L[1]=g>>>8&255,n.check=o(n.check,L,2,0)),m=g=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(C=n.length)&&(C=p),C&&(n.head&&(B=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,l,d,C,B)),512&n.flags&&(n.check=o(n.check,l,C,d)),p-=C,d+=C,n.length-=C),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break e;for(C=0;B=l[d+C++],n.head&&B&&n.length<65536&&(n.head.name+=String.fromCharCode(B)),B&&C<p;);
vendor: 4,719 bytes, line 42
42if(512&n.flags&&(n.check=o(n.check,l,C,d)),p-=C,d+=C,B)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break e;for(C=0;B=l[d+C++],n.head&&B&&n.length<65536&&(n.head.comment+=String.fromCharCode(B)),B&&C<p;);if(512&n.flags&&(n.check=o(n.check,l,C,d)),p-=C,d+=C,B)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;m<16;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(g!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}m=g=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;m<32;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}e.adler=n.check=u(g),m=g=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=f,e.avail_out=A,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=m,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){g>>>=7&m,m-=7&m,n.mode=27;break}for(;m<3;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}switch(n.last=1&g,m-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==t)break;g>>>=2,m-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}g>>>=2,m-=2;break;case 14:for(g>>>=7&m,m-=7&m;m<32;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&g,m=g=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(C=n.length){if(p<C&&(C=p),A<C&&(C=A),0===C)break e;r.arraySet(h,l,d,C,f),p-=C,d+=C,A-=C,f+=C,n.length-=C;break}n.mode=12;break;case 17:for(;m<14;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(n.nlen=257+(31&g),g>>>=5,m-=5,n.ndist=1+(31&g),g>>>=5,m-=5,n.ncode=4+(15&g),g>>>=4,m-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;m<3;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}n.lens[N[n.have++]]=7&g,g>>>=3,m-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},M=a(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,M){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(R=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,P=65535&R,!((x=R>>>24)<=m);){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(P<16)g>>>=x,m-=x,n.lens[n.have++]=P;else{if(16===P){for(D=x+2;m<D;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(g>>>=x,m-=x,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}B=n.lens[n.have-1],C=3+(3&g),g>>>=2,m-=2}else if(17===P){for(D=x+3;m<D;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}m-=x,B=0,C=3+(7&(g>>>=x)),g>>>=3,m-=3}else{for(D=x+7;m<D;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}m-=x,B=0,C=11+(127&(g>>>=x)),g>>>=7,m-=7}if(n.have+C>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;C--;)n.lens[n.have++]=B}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,O={bits:n.lenbits},M=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,M){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},M=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,M){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=p&&258<=A){e.next_out=f,e.avail_out=A,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=m,s(e,w),f=e.next_out,h=e.output,A=e.avail_out,d=e.next_in,l=e.input,p=e.avail_in,g=n.hold,m=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(R=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,P=65535&R,!((x=R>>>24)<=m);){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(T&&0==(240&T)){for(E=x,I=T,k=P;T=(R=n.lencode[k+((g&(1<<E+I)-1)>>E)])>>>16&255,P=65535&R,!(E+(x=R>>>24)<=m);){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}g>>>=E,m-=E,n.back+=E}if(g>>>=x,m-=x,n.back+=x,n.length=P,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(D=n.extra;m<D;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,m-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(R=n.distcode[g&(1<<n.distbits)-1])>>>16&255,P=65535&R,!((x=R>>>24)<=m);){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(0==(240&T)){for(E=x,I=T,k=P;T=(R=n.distcode[k+((g&(1<<E+I)-1)>>E)])>>>16&255,P=65535&R,!(E+(x=R>>>24)<=m);){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}g>>>=E,m-=E,n.back+=E}if(g>>>=x,m-=x,n.back+=x,64&T){e.msg="invalid distance code",n.mode=30;break}n.offset=P,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(D=n.extra;m<D;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,m-=n.extra,n.back+=n.extra}if(n.offset>
vendor: 46,223 bytes, line 42
42n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===A)break e;if(C=w-A,n.offset>C){if((C=n.offset-C)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}_=C>n.wnext?(C-=n.wnext,n.wsize-C):n.wnext-C,C>n.length&&(C=n.length),S=n.window}else S=h,_=f-n.offset,C=n.length;for(A<C&&(C=A),A-=C,n.length-=C;h[f++]=S[_++],--C;);0===n.length&&(n.mode=21);break;case 26:if(0===A)break e;h[f++]=n.length,A--,n.mode=21;break;case 27:if(n.wrap){for(;m<32;){if(0===p)break e;p--,g|=l[d++]<<m,m+=8}if(w-=A,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?o(n.check,h,w,f-w):i(n.check,h,w,f-w)),w=A,(n.flags?g:u(g))!==n.check){e.msg="incorrect data check",n.mode=30;break}m=g=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;m<32;){if(0===p)break e;p--,g+=l[d++]<<m,m+=8}if(g!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}m=g=0}n.mode=29;case 29:M=1;break e;case 30:M=-3;break e;case 31:return-4;case 32:default:return c}return e.next_out=f,e.avail_out=A,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=m,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&v(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(b-=e.avail_in,w-=e.avail_out,e.total_in+=b,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?o(n.check,h,w,e.next_out-w):i(n.check,h,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==b&&0===w||4===t)&&0===M&&(M=-5),M)},n.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?c:((n.head=t).done=!1,0):c},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?c:11===n.mode&&i(1,t,r,0)!==n.check?-3:v(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):c},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,u,l,h,d){var f,p,A,g,m,y,v,b,w,C=d.bits,_=0,S=0,x=0,T=0,P=0,E=0,I=0,k=0,B=0,M=0,O=null,D=0,R=new r.Buf16(16),L=new r.Buf16(16),N=null,U=0;for(_=0;_<=15;_++)R[_]=0;for(S=0;S<c;S++)R[t[n+S]]++;for(P=C,T=15;1<=T&&0===R[T];T--);if(T<P&&(P=T),0===T)return u[l++]=20971520,u[l++]=20971520,d.bits=1,0;for(x=1;x<T&&0===R[x];x++);for(P<x&&(P=x),_=k=1;_<=15;_++)if(k<<=1,(k-=R[_])<0)return-1;if(0<k&&(0===e||1!==T))return-1;for(L[1]=0,_=1;_<15;_++)L[_+1]=L[_]+R[_];for(S=0;S<c;S++)0!==t[n+S]&&(h[L[t[n+S]]++]=S);if(y=0===e?(O=N=h,19):1===e?(O=i,D-=257,N=o,U-=257,256):(O=s,N=a,-1),_=x,m=l,I=S=M=0,A=-1,g=(B=1<<(E=P))-1,1===e&&852<B||2===e&&592<B)return 1;for(;;){for(v=_-I,w=h[S]<y?(b=0,h[S]):h[S]>y?(b=N[U+h[S]],O[D+h[S]]):(b=96,0),f=1<<_-I,x=p=1<<E;u[m+(M>>I)+(p-=f)]=v<<24|b<<16|w,0!==p;);for(f=1<<_-1;M&f;)f>>=1;if(0!==f?(M&=f-1,M+=f):M=0,S++,0==--R[_]){if(_===T)break;_=t[n+h[S]]}if(P<_&&(M&g)!==A){for(0===I&&(I=P),m+=x,k=1<<(E=_-I);E+I<T&&!((k-=R[E+I])<=0);)E++,k<<=1;if(B+=1<<E,1===e&&852<B||2===e&&592<B)return 1;u[A=M&g]=P<<24|E<<16|m-l}}return 0!==M&&(u[m+M]=_-I<<24|64<<16),d.bits=P,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,s=286,a=30,c=15,u=[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],l=[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],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);i(f);var p=new Array(60);i(p);var A=new Array(512);i(A);var g=new Array(256);i(g);var m=new Array(29);i(m);var y,v,b,w=new Array(a);function C(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function _(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?A[e]:A[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function T(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function P(e,t,n){T(e,n[2*t],n[2*t+1])}function E(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function I(e,t,n){var r,i,o=new Array(16),s=0;for(r=1;r<=c;r++)o[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=E(o[a]++,a))}}function k(e){var t;for(t=0;t<s;t++)e.dyn_ltree[2*t]=0;for(t=0;t<a;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function B(e){8<e.bi_valid?x(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function M(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function O(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&M(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!M(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function D(e,t,n){var r,i,s,a,c=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===r?P(e,i,t):(P(e,(s=g[i])+o+1,t),0!==(a=u[s])&&T(e,i-=m[s],a),P(e,s=S(--r),n),0!==(a=l[s])&&T(e,r-=w[s],a)),c<e.last_lit;);P(e,256,t)}function R(e,t){var n,r,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)O(e,o,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],O(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,O(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,s,a,u=t.dyn_tree,l=t.max_code,h=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,A=t.stat_desc.max_length,g=0;for(o=0;o<=c;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)A<(o=u[2*u[2*(r=e.heap[n])+1]+1]+1)&&(o=A,g++),u[2*r+1]=o,l<r||(e.bl_count[o]++,s=0,p<=r&&(s=f[r-p]),a=u[2*r],e.opt_len+=a*(o+s),d&&(e.static_len+=a*(h[2*r+1]+s)));if(0!==g){do{for(o=A-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[A]--,g-=2}while(0<g);for(o=A;0!==o;o--)for(r=e.bl_count[o];0!==r;)l<(i=e.heap[--n])||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(e,t),I(o,l,e.bl_count)}function L(e,t,n){var r,i,o=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=t[2*(r+1)+1],++a<c&&i===s||(a<u?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,u=(a=0)===s?(c=138,3):i===s?(c=6,3):(c=7,4))}function N(e,t,n){var r,i,o=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),r=0;r<=n;r++)if(i=s,s=t[2*(r+1)+1],!(++a<c&&i===s)){if(a<u)for(;P(e,i,e.bl_tree),0!=--a;);else 0!==i?(i!==o&&(P(e,i,e.bl_tree),a--),P(e,16,e.bl_tree),T(e,a-3,2)):a<=10?(P(e,17,e.bl_tree),T(e,a-3,3)):(P(e,18,e.bl_tree),T(e,a-11,7));o=i,u=(a=0)===s?(c=138,3):i===s?(c=6,3):(c=7,4)}}i(w);var U=!1;function F(e,t,n,i){T(e,0+(i?1:0),3),function(e,t,n){B(e),x(e,n),x(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){U||(function(){var e,t,n,r,i,o=new Array(16);for(r=n=0;r<28;r++)for(m[r]=n,e=0;e<1<<u[r];e++)g[n++]=r;for(g[n-1]=r,r=i=0;r<16;r++)for(w[r]=i,e=0;e<1<<l[r];e++)A[i++]=r;for(i>>=7;r<a;r++)for(w[r]=i<<7,e=0;e<1<<l[r]-7;e++)A[256+i++]=r;for(t=0;t<=c;t++)o[t]=0;for(e=0;e<=143;)f[2*e+1]=8,e++,o[8]++;for(;e<=255;)f[2*e+1]=9,e++,o[9]++;for(;e<=279;)f[2*e+1]=7,e++,o[7]++;for(;e<=287;)f[2*e+1]=8,e++,o[8]++;for(I(f,287,o),e=0;e<a;e++)p[2*e+1]=5,p[2*e]=E(e,5);y=new C(f,u,257,s,c),v=new C(p,l,0,a,c),b=new C(new Array(0),h,0,19,7)}(),U=!0),e.l_desc=new _(e.dyn_ltree,y),e.d_desc=new _(e.dyn_dtree,v),e.bl_desc=new _(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,k(e)},n._tr_stored_block=F,n._tr_flush_block=function(e,t,n,r){var i,s,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),R(e,e.l_desc),R(e,e.d_desc),a=function(e){var t;for(L(e,e.dyn_ltree,e.l_desc.max_code),L(e,e.dyn_dtree,e.d_desc.max_code),R(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==t?F(e,t,n,r):4===e.strategy||s===i?(T(e,2+(r?1:0),3),D(e,f,p)):(T(e,4+(r?1:0),3),function(e,t,n,r){var i;for(T(e,t-257,5),T(e,n-1,5),T(e,r-4,4),i=0;i<r;i++)T(e,e.bl_tree[2*d[i]+1],3);N(e,e.dyn_ltree,t-1),N(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),D(e,e.dyn_ltree,e.dyn_dtree)),k(e),r&&B(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(g[n]+o+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){T(e,2,3),P(e,256,f),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e){if(!e.setImmediate){var t,r,i,o,s=1,a={},c=!1,u=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,t="[object process]"==={}.toString.call(e.process)?function(e){n.nextTick(function(){d(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var i={callback:e,args:n};return a[s]=i,t(s),s++},l.clearImmediate=h}function h(e){delete a[e]}function d(e){if(c)setTimeout(d,0,e);else{var t=a[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),c=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,t,r){(function(e){(function(){"use strict";var n=/[\\^$.*+?()[\]{}|]/g,r=RegExp(n.source),i="object"==typeof e&&e&&e.Object===Object&&e,o="object"==typeof self&&self&&self.Object===Object&&self,s=i||o||Function("return this")(),a=Object.prototype.toString,c=s.Symbol,u=c?c.prototype:void 0,l=u?u.toString:void 0;function h(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==a.call(e)}(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}t.exports=function(e){var t;return(e=null==(t=e)?"":h(t))&&r.test(e)?e.replace(n,"\\$&"):e}}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],443:[function(e,t,r){(function(e){(function(){"use strict";var n="[object Arguments]",i="[object Map]",o="[object Object]",s="[object Set]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[n]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[o]=p["[object RegExp]"]=p[s]=p["[object String]"]=p["[object WeakMap]"]=!1;var A="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,m=A||g||Function("return this")(),y="object"==typeof r&&r&&!r.nodeType&&r,v=y&&"object"==typeof t&&t&&!t.nodeType&&t,b=v&&v.exports===y&&A.process,w=function(){try{return b&&b.binding("util")}catch(e){}}(),C=w&&w.isTypedArray;function _(e,t,n,r){for(var i=-1,o=e?e.length:0;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function S(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function x(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function T(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function P(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var E,I,k,B=Array.prototype,M=Function.prototype,O=Object.prototype,D=m["__core-js_shared__"],R=(E=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"",L=M.toString,N=O.hasOwnProperty,U=O.toString,F=RegExp("^"+L.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=m.Symbol,H=m.Uint8Array,z=O.propertyIsEnumerable,Q=B.splice,V=(I=Object.keys,k=Object,function(e){return I(k(e))}),K=Te(m,"DataView"),W=Te(m,"Map"),G=Te(m,"Promise"),q=Te(m,"Set"),Y=Te(m,"WeakMap"),X=Te(Object,"create"),Z=De(K),$=De(W),J=De(G),ee=De(q),te=De(Y),ne=j?j.prototype:void 0,re=ne?ne.valueOf:void 0,ie=ne?ne.toString:void 0;function oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new ae;++t<n;)this.add(e[t])}function ue(e){this.__data__=new se(e)}function le(e,t){var n=He(e)||je(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!N.call(e,o)||i&&("length"==o||Ee(o,r))||n.push(o);return n}function he(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function de(e,t,n,r){return Ae(e,function(e,i,o){t(r,e,n(e),o)}),r}oe.prototype.clear=function(){this.__data__=X?X(null):{}},oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},oe.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return N.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:N.call(t,e)},oe.prototype.set=function(e,t){return this.__data__[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(e){var t=this.__data__,n=he(t,e);return!(n<0)&&(n==t.length-1?t.pop():Q.call(t,n,1),!0)},se.prototype.get=function(e){var t=this.__data__,n=he(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return he(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,r=he(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ae.prototype.clear=function(){this.__data__={hash:new oe,map:new(W||se),string:new oe}},ae.prototype.delete=function(e){return xe(this,e).delete(e)},ae.prototype.get=function(e){return xe(this,e).get(e)},ae.prototype.has=function(e){return xe(this,e).has(e)},ae.prototype.set=function(e,t){return xe(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.clear=function(){this.__data__=new se},ue.prototype.delete=function(e){return this.__data__.delete(e)},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this;n=this.__data__=new ae(r)}return n.set(e,t),this};var fe,pe,Ae=(fe=function(e,t){return e&&ge(e,t,Ye)},function(e,t){if(null==e)return e;if(!ze(e))return fe(e,t);for(var n=e.length,r=pe?n:-1,i=Object(e);(pe?r--:++r<n)&&!1!==t(i[r],r,i););return e}),ge=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}();function me(e,t){for(var n=0,r=(t=Ie(t,e)?[t]:_e(t)).length;null!=e&&n<r;)e=e[Oe(t[n++])];return n&&n==r?e:void 0}function ye(e,t){return null!=e&&t in Object(e)}function ve(e,t,r,a,c){return e===t||(null==e||null==t||!Ke(e)&&!We(t)?e!=e&&t!=t:function(e,t,r,a,c,u){var l=He(e),h=He(t),d="[object Array]",f="[object Array]";l||(d=(d=Pe(e))==n?o:d),h||(f=(f=Pe(t))==n?o:f);var p=d==o&&!x(e),A=f==o&&!x(t),g=d==f;if(g&&!p)return u||(u=new ue),l||qe(e)?Se(e,t,r,a,c,u):function(e,t,n,r,o,a,c){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new H(e),new H(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Fe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var u=T;case s:var l=2&a;if(u||(u=P),e.size!=t.size&&!l)return!1;var h=c.get(e);if(h)return h==t;a|=1,c.set(e,t);var d=Se(u(e),u(t),r,o,a,c);return c.delete(e),d;case"[object Symbol]":if(re)return re.call(e)==re.call(t)}return!1}(e,t,d,r,a,c,u);if(!(2&c)){var m=p&&N.call(e,"__wrapped__"),y=A&&N.call(t,"__wrapped__");if(m||y){var v=m?e.value():e,b=y?t.value():t;return u||(u=new ue),r(v,b,a,c,u)}}return!!g&&(u||(u=new ue),function(e,t,n,r,i,o){var s=2&i,a=Ye(e),c=a.length,u=Ye(t).length;if(c!=u&&!s)return!1;for(var l=c;l--;){var h=a[l];if(!(s?h in t:N.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=s;++l<c;){h=a[l];var A=e[h],g=t[h];if(r)var m=s?r(g,A,h,t,e,o):r(A,g,h,e,t,o);if(!(void 0===m?A===g||n(A,g,r,i,o):m)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,a,c,u))}(e,t,ve,r,a,c))}function be(e){return!(!Ke(e)||function(e){return!!R&&R in e}(e))&&(Qe(e)||x(e)?F:d).test(De(e))}function we(e){return"function"==typeof e?e:null==e?Xe:"object"==typeof e?He(e)?function(e,t){return Ie(e)&&ke(t)?Be(Oe(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:me(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Ie(t,e)?[t]:_e(t);for(var r,i=-1,o=t.length;++i<o;){var s=Oe(t[i]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}return r||!!(o=e?e.length:0)&&Ve(o)&&Ee(s,o)&&(He(e)||je(e))}(e,t,ye)}(n,e):ve(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ye(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ke(i)]}return t}(e);return 1==t.length&&t[0][2]?Be(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=Object(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var c=(a=n[i])[0],u=e[c],l=a[1];if(s&&a[2]){if(void 0===u&&!(c in e))return!1}else{var h=new ue;if(r)var d=r(u,l,c,e,t,h);if(!(void 0===d?ve(l,u,r,3,h):d))return!1}}return!0}(n,e,t)}}(e):Ie(t=e)?(n=Oe(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return me(t,e)}}(t);var t,n}function Ce(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||O,t!==r)return V(e);var t,n,r,i=[];for(var o in Object(e))N.call(e,o)&&"constructor"!=o&&i.push(o);return i}function _e(e){return He(e)?e:Me(e)}function Se(e,t,n,r,i,o){var s=2&i,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,h=!0,d=1&i?new ce:void 0;for(o.set(e,t),o.set(t,e);++l<a;){var f=e[l],p=t[l];if(r)var A=s?r(p,f,l,t,e,o):r(f,p,l,e,t,o);if(void 0!==A){if(A)continue;h=!1;break}if(d){if(!S(t,function(e,t){if(!d.has(t)&&(f===e||n(f,e,r,i,o)))return d.add(t)})){h=!1;break}}else if(f!==p&&!n(f,p,r,i,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function xe(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Te(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return be(n)?n:void 0}var Pe=function(e){return U.call(e)};function Ee(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}function Ie(e,t){if(He(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ge(e))||c.test(e)||!a.test(e)||null!=t&&e in Object(t)}function ke(e){return e==e&&!Ke(e)}function Be(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(K&&"[object DataView]"!=Pe(new K(new ArrayBuffer(1)))||W&&Pe(new W)!=i||G&&"[object Promise]"!=Pe(G.resolve())||q&&Pe(new q)!=s||Y&&"[object WeakMap]"!=Pe(new Y))&&(Pe=function(e){var t=U.call(e),n=t==o?e.constructor:void 0,r=n?De(n):void 0;if(r)switch(r){case Z:return"[object DataView]";case $:return i;case J:return"[object Promise]";case ee:return s;case te:return"[object WeakMap]"}return t});var Me=Ue(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Ge(e))return ie?ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return u.test(e)&&n.push(""),e.replace(l,function(e,t,r,i){n.push(r?i.replace(h,"$1"):t||e)}),n});function Oe(e){if("string"==typeof e||Ge(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function De(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Re,Le,Ne=(Re=function(e,t,n){N.call(e,n)?e[n].push(t):e[n]=[t]},function(e,t){var n=He(e)?_:de,r=Le?Le():{};return n(e,Re,we(t),r)});function Ue(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(Ue.Cache||ae),n}function Fe(e,t){return e===t||e!=e&&t!=t}function je(e){return function(e){return We(e)&&ze(e)}(e)&&N.call(e,"callee")&&(!z.call(e,"callee")||U.call(e)==n)}Ue.Cache=ae;var He=Array.isArray;function ze(e){return null!=e&&Ve(e.length)&&!Qe(e)}function Qe(e){var t=Ke(e)?U.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function We(e){return!!e&&"object"==typeof e}function Ge(e){return"symbol"==typeof e||We(e)&&"[object Symbol]"==U.call(e)}var qe=C?function(e){return function(t){return e(t)}}(C):function(e){return We(e)&&Ve(e.length)&&!!p[U.call(e)]};function Ye(e){return ze(e)?le(e):Ce(e)}function Xe(e){return e}t.exports=Ne}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,n){"use strict";var r=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Boolean]"==r.call(e)}},{}],445:[function(e,t,r){(function(e){(function(){"use strict";var n="[object Arguments]",i="[object Map]",o="[object Object]",s="[object Set]",a=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[n]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u[i]=u["[object Number]"]=u[o]=u["[object RegExp]"]=u[s]=u["[object String]"]=u["[object WeakMap]"]=!1;var l="object"==typeof e&&e&&e.Object===Object&&e,h="object"==typeof self&&self&&self.Object===Object&&self,d=l||h||Function("return this")(),f="object"==typeof r&&r&&!r.nodeType&&r,p=f&&"object"==typeof t&&t&&!t.nodeType&&t,A=p&&p.exports===f,g=A&&l.process,m=function(){try{return g&&g.binding&&g.binding("util")}catch(e){}}(),y=m&&m.isTypedArray;function v(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function b(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function w(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var C,_,S,x=Array.prototype,T=Function.prototype,P=Object.prototype,E=d["__core-js_shared__"],I=T.toString,k=P.hasOwnProperty,B=(C=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",M=P.toString,O=RegExp("^"+I.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=A?d.Buffer:void 0,R=d.Symbol,L=d.Uint8Array,N=P.propertyIsEnumerable,U=x.splice,F=R?R.toStringTag:void 0,j=Object.getOwnPropertySymbols,H=D?D.isBuffer:void 0,z=(_=Object.keys,S=Object,function(e){return _(S(e))}),Q=me(d,"DataView"),V=me(d,"Map"),K=me(d,"Promise"),W=me(d,"Set"),G=me(d,"WeakMap"),q=me(Object,"create"),Y=we(Q),X=we(V),Z=we(K),$=we(W),J=we(G),ee=R?R.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ie;++t<n;)this.add(e[t])}function se(e){var t=this.__data__=new re(e);this.size=t.size}function ae(e,t){var n=Se(e),r=!n&&_e(e),i=!n&&!r&&xe(e),o=!n&&!r&&!i&&ke(e),s=n||r||i||o,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=a.length;for(var u in e)!t&&!k.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||be(u,c))||a.push(u);return a}function ce(e,t){for(var n=e.length;n--;)if(Ce(e[n][0],t))return n;return-1}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=k.call(e,F),n=e[F];try{e[F]=void 0;var r=!0}catch(e){}var i=M.call(e);return r&&(t?e[F]=n:delete e[F]),i}(e):function(e){return M.call(e)}(e)}function le(e){return Ie(e)&&ue(e)==n}function he(e,t,r,a,c){return e===t||(null==e||null==t||!Ie(e)&&!Ie(t)?e!=e&&t!=t:function(e,t,r,a,c,u){var l=Se(e),h=Se(t),d=l?"[object Array]":ve(e),f=h?"[object Array]":ve(t),p=(d=d==n?o:d)==o,A=(f=f==n?o:f)==o,g=d==f;if(g&&xe(e)){if(!xe(t))return!1;l=!0,p=!1}if(g&&!p)return u||(u=new se),l||ke(e)?pe(e,t,r,a,c,u):function(e,t,n,r,o,a,c){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new L(e),new L(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ce(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var u=b;case s:var l=1&r;if(u||(u=w),e.size!=t.size&&!l)return!1;var h=c.get(e);if(h)return h==t;r|=2,c.set(e,t);var d=pe(u(e),u(t),r,o,a,c);return c.delete(e),d;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,d,r,a,c,u);if(!(1&r)){var m=p&&k.call(e,"__wrapped__"),y=A&&k.call(t,"__wrapped__");if(m||y){var v=m?e.value():e,C=y?t.value():t;return u||(u=new se),c(v,C,r,a,u)}}return!!g&&(u||(u=new se),function(e,t,n,r,i,o){var s=1&n,a=Ae(e),c=a.length,u=Ae(t).length;if(c!=u&&!s)return!1;for(var l=c;l--;){var h=a[l];if(!(s?h in t:k.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=s;++l<c;){h=a[l];var A=e[h],g=t[h];if(r)var m=s?r(g,A,h,t,e,o):r(A,g,h,e,t,o);if(!(void 0===m?A===g||i(A,g,n,r,o):m)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,a,c,u))}(e,t,r,a,he,c))}function de(e){return!(!Ee(e)||function(e){return!!B&&B in e}(e))&&(Te(e)?O:a).test(we(e))}function fe(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||P,t!==r)return z(e);var t,n,r,i=[];for(var o in Object(e))k.call(e,o)&&"constructor"!=o&&i.push(o);return i}function pe(e,t,n,r,i,o){var s=1&n,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,h=!0,d=2&n?new oe:void 0;for(o.set(e,t),o.set(t,e);++l<a;){var f=e[l],p=t[l];if(r)var A=s?r(p,f,l,t,e,o):r(f,p,l,e,t,o);if(void 0!==A){if(A)continue;h=!1;break}if(d){if(!v(t,function(e,t){if(s=t,!d.has(s)&&(f===e||i(f,e,n,r,o)))return d.push(t);var s})){h=!1;break}}else if(f!==p&&!i(f,p,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Ae(e){return function(e,t,n){var r=t(e);return Se(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Be,ye)}function ge(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function me(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return de(n)?n:void 0}ne.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(q){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return k.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return q?void 0!==t[e]:k.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=q&&void 0===t?"__lodash_hash_undefined__":t,this},re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():U.call(t,n,1),--this.size,!0)},re.prototype.get=function(e){var t=this.__data__,n=ce(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return ce(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(V||re),string:new ne}},ie.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ge(this,e).get(e)},ie.prototype.has=function(e){return ge(this,e).has(e)},ie.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},se.prototype.clear=function(){this.__data__=new re,this.size=0},se.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var ye=j?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}(j(e),function(t){return N.call(e,t)}))}:function(){return[]},ve=ue;function be(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function we(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(Q&&"[object DataView]"!=ve(new Q(new ArrayBuffer(1)))||V&&ve(new V)!=i||K&&"[object Promise]"!=ve(K.resolve())||W&&ve(new W)!=s||G&&"[object WeakMap]"!=ve(new G))&&(ve=function(e){var t=ue(e),n=t==o?e.constructor:void 0,r=n?we(n):"";if(r)switch(r){case Y:return"[object DataView]";case X:return i;case Z:return"[object Promise]";case $:return s;case J:return"[object WeakMap]"}return t});var _e=le(function(){return arguments}())?le:function(e){return Ie(e)&&k.call(e,"callee")&&!N.call(e,"callee")},Se=Array.isArray,xe=H||function(){return!1};function Te(e){if(!Ee(e))return!1;var t=ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var ke=y?function(e){return function(t){return e(t)}}(y):function(e){return Ie(e)&&Pe(e.length)&&!!u[ue(e)]};function Be(e){return null!=(t=e)&&Pe(t.length)&&!Te(t)?ae(e):fe(e);var t}t.exports=function(e,t){return he(e,t)}}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],446:[function(e,t,r){(function(e){(function(){"use strict";var n="object"==typeof e&&e&&e.Object===Object&&e,r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")(),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,c=i.Symbol,u=c?c.toStringTag:void 0;function l(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?function(e){var t=s.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[u]=n:delete e[u]),i}(e):function(e){return a.call(e)}(e)}t.exports=function(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=l(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],447:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],448:[function(e,t,n){"use strict";t.exports=function(e){return void 0===e}},{}],449:[function(e,t,r){(function(e){(function(){"use strict";var n=/^\[object .+?Constructor\]$/,r="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();function s(e,t){return!(!e||!e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,c,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function a(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function c(e){return e!=e}function u(e,t){return e.has(t)}function l(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var h,d=Array.prototype,f=Function.prototype,p=Object.prototype,A=o["__core-js_shared__"],g=(h=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",m=f.toString,y=p.hasOwnProperty,v=p.toString,b=RegExp("^"+m.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=d.splice,C=O(o,"Map"),_=O(o,"Set"),S=O(Object,"create");function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function E(e){var t=-1,n=e?e.length:0;for(this.__data__=new P;++t<n;)this.add(e[t])}function I(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function k(e){return!(!D(e)||(t=e,g&&g in t))&&(function(e){var t=D(e)?v.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?b:n).test(function(e){if(null!=e){try{return m.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}x.prototype.clear=function(){this.__data__=S?S(null):{}},x.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},x.prototype.get=function(e){var t=this.__data__;if(S){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},x.prototype.has=function(e){var t=this.__data__;return S?void 0!==t[e]:y.call(t,e)},x.prototype.set=function(e,t){return this.__data__[e]=S&&void 0===t?"__lodash_hash_undefined__":t,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():w.call(t,n,1),!0)},T.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},T.prototype.has=function(e){return I(this.__data__,e)>-1},T.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},P.prototype.clear=function(){this.__data__={hash:new x,map:new(C||T),string:new x}},P.prototype.delete=function(e){return M(this,e).delete(e)},P.prototype.get=function(e){return M(this,e).get(e)},P.prototype.has=function(e){return M(this,e).has(e)},P.prototype.set=function(e,t){return M(this,e).set(e,t),this},E.prototype.add=E.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},E.prototype.has=function(e){return this.__data__.has(e)};var B=_&&1/l(new _([,-0]))[1]==1/0?function(e){return new _(e)}:function(){};function M(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function O(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return k(n)?n:void 0}function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=function(e){return e&&e.length?function(e,t,n){var r=-1,i=s,o=e.length,c=!0,h=[],d=h;if(n)c=!1,i=a;else if(o>=200){var f=t?null:B(e);if(f)return l(f);c=!1,i=u,d=new E}else d=t?[]:h;e:for(;++r<o;){var p=e[r],A=t?t(p):p;if(p=n||0!==p?p:0,c&&A==A){for(var g=d.length;g--;)if(d[g]===A)continue e;t&&d.push(A),h.push(p)}else i(d,A,n)||(d!==h&&d.push(A),h.push(p))}return h}(e):[]}}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],450:[function(e,t,n){"use strict";var r=e("inherits"),i=e("hash-base"),o=e("safe-buffer").Buffer,s=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function u(e,t,n,r,i,o,s){return c(e+(t&n|~t&r)+i+o|0,s)+t|0}function l(e,t,n,r,i,o,s){return c(e+(t&r|n&~r)+i+o|0,s)+t|0}function h(e,t,n,r,i,o,s){return c(e+(t^n^r)+i+o|0,s)+t|0}function d(e,t,n,r,i,o,s){return c(e+(n^(t|~r))+i+o|0,s)+t|0}r(a,i),a.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=u(n,r,i,o,e[0],3614090360,7),o=u(o,n,r,i,e[1],3905402710,12),i=u(i,o,n,r,e[2],606105819,17),r=u(r,i,o,n,e[3],3250441966,22),n=u(n,r,i,o,e[4],4118548399,7),o=u(o,n,r,i,e[5],1200080426,12),i=u(i,o,n,r,e[6],2821735955,17),r=u(r,i,o,n,e[7],4249261313,22),n=u(n,r,i,o,e[8],1770035416,7),o=u(o,n,r,i,e[9],2336552879,12),i=u(i,o,n,r,e[10],4294925233,17),r=u(r,i,o,n,e[11],2304563134,22),n=u(n,r,i,o,e[12],1804603682,7),o=u(o,n,r,i,e[13],4254626195,12),i=u(i,o,n,r,e[14],2792965006,17),n=l(n,r=u(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,n,r,i,e[6],3225465664,9),i=l(i,o,n,r,e[11],643717713,14),r=l(r,i,o,n,e[0],3921069994,20),n=l(n,r,i,o,e[5],3593408605,5),o=l(o,n,r,i,e[10],38016083,9),i=l(i,o,n,r,e[15],3634488961,14),r=l(r,i,o,n,e[4],3889429448,20),n=l(n,r,i,o,e[9],568446438,5),o=l(o,n,r,i,e[14],3275163606,9),i=l(i,o,n,r,e[3],4107603335,14),r=l(r,i,o,n,e[8],1163531501,20),n=l(n,r,i,o,e[13],2850285829,5),o=l(o,n,r,i,e[2],4243563512,9),i=l(i,o,n,r,e[7],1735328473,14),n=h(n,r=l(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=h(o,n,r,i,e[8],2272392833,11),i=h(i,o,n,r,e[11],1839030562,16),r=h(r,i,o,n,e[14],4259657740,23),n=h(n,r,i,o,e[1],2763975236,4),o=h(o,n,r,i,e[4],1272893353,11),i=h(i,o,n,r,e[7],4139469664,16),r=h(r,i,o,n,e[10],3200236656,23),n=h(n,r,i,o,e[13],681279174,4),o=h(o,n,r,i,e[0],3936430074,11),i=h(i,o,n,r,e[3],3572445317,16),r=h(r,i,o,n,e[6],76029189,23),n=h(n,r,i,o,e[9],3654602809,4),o=h(o,n,r,i,e[12],3873151461,11),i=h(i,o,n,r,e[15],530742520,16),n=d(n,r=h(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,n,r,i,e[7],1126891415,10),i=d(i,o,n,r,e[14],2878612391,15),r=d(r,i,o,n,e[5],4237533241,21),n=d(n,r,i,o,e[12],1700485571,6),o=d(o,n,r,i,e[3],2399980690,10),i=d(i,o,n,r,e[10],4293915773,15),r=d(r,i,o,n,e[1],2240044497,21),n=d(n,r,i,o,e[8],1873313359,6),o=d(o,n,r,i,e[15],4264355552,10),i=d(i,o,n,r,e[6],2734768916,15),r=d(r,i,o,n,e[13],1309151649,21),n=d(n,r,i,o,e[4],4149444226,6),o=d(o,n,r,i,e[11],3174756917,10),i=d(i,o,n,r,e[2],718787259,15),r=d(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=a},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("brorand");function o(e){this.rand=e||new i.Rand}t.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},o.prototype.test=function(e,t,n){var i=e.bitLength(),o=r.mont(e),s=new r(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var a=e.subn(1),c=0;!a.testn(c);c++);for(var u=e.shrn(c),l=a.toRed(o);t>0;t--){var h=this._randrange(new r(2),a);n&&n(h);var d=h.toRed(o).redPow(u);if(0!==d.cmp(s)&&0!==d.cmp(l)){for(var f=1;f<c;f++){if(0===(d=d.redSqr()).cmp(s))return!1;if(0===d.cmp(l))break}if(f===c)return!1}}return!0},o.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),o=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),a=0;!s.testn(a);a++);for(var c=e.shrn(a),u=s.toRed(i);t>0;t--){var l=this._randrange(new r(2),s),h=e.gcd(l);if(0!==h.cmpn(1))return h;var d=l.toRed(i).redPow(c);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var f=1;f<a;f++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(u))break}if(f===a)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],453:[function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},{}],454:[function(e,t,n){"use strict";var r=n;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>
vendor: 4,389 bytes, line 42
42>8,s=255&i;o?n.push(o,s):n.push(s)}return n},r.zero2=i,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},{}],455:[function(e,t,n){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,n){"use strict";var r=e("asn1.js");n.certificate=e("./certificate");var i=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});n.RSAPrivateKey=i;var o=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});n.RSAPublicKey=o;var s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});n.PublicKey=s;var a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});n.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});n.EncryptedPrivateKey=u;var l=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});n.DSAPrivateKey=l,n.DSAparam=r.define("DSAparam",function(){this.int()});var h=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});n.ECPrivateKey=h;var d=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});n.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,t,n){"use strict";var r=e("asn1.js"),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(o)}),u=r.define("RDNSequence",function(){this.seqof(c)}),l=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),h=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(l),this.key("validity").use(h),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}
vendor: 5,710 bytes, line 42
42),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":170}],458:[function(e,t,n){"use strict";var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=e("evp_bytestokey"),a=e("browserify-aes"),c=e("safe-buffer").Buffer;t.exports=function(e,t){var n,u=e.toString(),l=u.match(r);if(l){var h="aes"+l[1],d=c.from(l[2],"hex"),f=c.from(l[3].replace(/[\r\n]/g,""),"base64"),p=s(t,d.slice(0,8),parseInt(l[1],10)).key,A=[],g=a.createDecipheriv(h,p,d);A.push(g.update(f)),A.push(g.final()),n=c.concat(A)}else{var m=u.match(o);n=c.from(m[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(i)[1],data:n}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,n){"use strict";var r=e("./asn1"),i=e("./aesid.json"),o=e("./fixProc"),s=e("browserify-aes"),a=e("pbkdf2"),c=e("safe-buffer").Buffer;function u(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,u,l=o(e,t),h=l.tag,d=l.data;switch(h){case"CERTIFICATE":u=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=r.PublicKey.decode(d,"der")),n=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=a.pbkdf2Sync(t,n,r,h,"sha1"),f=s.createDecipheriv(o,d,u),p=[];return p.push(f.update(l)),p.push(f.final()),c.concat(p)}(d=r.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(n=(u=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}t.exports=u,u.signature=r.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,n){"use strict";n.pbkdf2=e("./lib/async"),n.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,t,r){(function(n){(function(){"use strict";var r,i,o=e("safe-buffer").Buffer,s=e("./precondition"),a=e("./default-encoding"),c=e("./sync"),u=e("./to-buffer"),l=n.crypto&&n.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(){return i||(i=n.process&&n.process.nextTick?n.process.nextTick:n.queueMicrotask?n.queueMicrotask:n.setImmediate?n.setImmediate:n.setTimeout)}function p(e,t,n,r,i){return l.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return l.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)}).then(function(e){return o.from(e)})}t.exports=function(e,t,i,A,g,m){"function"==typeof g&&(m=g,g=void 0);var y=h[(g=g||"sha1").toLowerCase()];if(y&&"function"==typeof n.Promise){if(s(i,A),e=u(e,a,"Password"),t=u(t,a,"Salt"),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){f()(function(){t(null,e)})},function(e){f()(function(){t(e)})})}(function(e){if(n.process&&!n.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=p(r=r||o.alloc(8),r,10,128,e).then(function(){return!0}).catch(function(){return!1});return d[e]=t,t}(y).then(function(n){return n?p(e,t,i,A,y):c(e,t,i,A,g)}),m)}else f()(function(){var n;try{n=c(e,t,i,A,g)}catch(e){return m(e)}m(null,n)})}}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,t,r){(function(e,n){(function(){"use strict";var r;r=n.process&&n.process.browser?"utf-8":n.process&&n.process.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=r}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467}],463:[function(e,t,n){"use strict";var r=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");
vendor: 6,689 bytes, line 42
42if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,n){"use strict";var r=e("create-hash/md5"),i=e("ripemd160"),o=e("sha.js"),s=e("safe-buffer").Buffer,a=e("./precondition"),c=e("./default-encoding"),u=e("./to-buffer"),l=s.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,n){var a=function(e){function t(t){return o(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=a(t):t.length<c&&(t=s.concat([t,l],c));for(var u=s.allocUnsafe(c+h[e]),d=s.allocUnsafe(c+h[e]),f=0;f<c;f++)u[f]=54^t[f],d[f]=92^t[f];var p=s.allocUnsafe(c+n+4);u.copy(p,0,0,c),this.ipad1=p,this.ipad2=u,this.opad=d,this.alg=e,this.blocksize=c,this.hash=a,this.size=h[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,n,r,i){a(n,r);var o=new d(i=i||"sha1",e=u(e,c,"Password"),(t=u(t,c,"Salt")).length),l=s.allocUnsafe(r),f=s.allocUnsafe(t.length+4);t.copy(f,0,0,t.length);for(var p=0,A=h[i],g=Math.ceil(r/A),m=1;m<=g;m++){f.writeUInt32BE(m,t.length);for(var y=o.run(f,o.ipad1),v=y,b=1;b<n;b++){v=o.run(v,o.ipad2);for(var w=0;w<A;w++)y[w]^=v[w]}y.copy(l,p),p+=A}return l}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;t.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,n){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick(function(){t.apply(null,o)})}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,t,n){"use strict";var r,i,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var u,l=[],h=!1,d=-1;function f(){h&&u&&(h=!1,u.length?l=u.concat(l):d=-1,l.length&&p())}function p(){if(!h){var e=c(f);h=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,h=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function A(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new A(e,t)),1!==l.length||h||c(p)},A.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(e,t,n){"use strict";n.publicEncrypt=e("./publicEncrypt"),n.privateDecrypt=e("./privateDecrypt"),n.privateEncrypt=function(e,t){return n.publicEncrypt(e,t,!0)},n.publicDecrypt=function(e,t){return n.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,n){"use strict";var r=e("create-hash"),i=e("safe-buffer").Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var n,s=i.alloc(0),a=0;s.length<t;)n=o(a++),s=i.concat([s,r("sha1").update(e).update(n).digest()]);return s.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],471:[function(e,t,n){"use strict";var r=e("parse-asn1"),i=e("./mgf"),o=e("./xor"),s=e("bn.js"),a=e("browserify-rsa"),c=e("create-hash"),u=e("./withPublic"),l=e("safe-buffer").Buffer;t.exports=function(e,t,n){var h;h=e.padding?e.padding:n?1:4;var d,f=r(e),p=f.modulus.byteLength();if(t.length>p||new s(t).cmp(f.modulus)>=0)throw new Error("decryption error");d=n?u(new s(t),f):a(t,f);var A=l.alloc(p-d.length);if(d=l.concat([A,d],p),4===h)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(l.alloc(0)).digest(),s=r.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,s+1),u=t.slice(s+1),h=o(a,i(u,s)),d=o(u,i(h,n-s-1));if(function(e,t){e=l.from(e),t=l.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i<r;)n+=e[i]^t[i];return n}(r,d.slice(0,s)))throw new Error("decryption error");for(var f=s;0===d[f];)f++;if(1!==d[f++])throw new Error("decryption error");return d.slice(f)}(f,d);if(1===h)return function(e,t,n){for(var r=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var s=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,s.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}(0,d,n);if(3===h)return d;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,n){"use strict";var r=e("parse-asn1"),i=e("randombytes"),o=e("create-hash"),s=e("./mgf"),a=e("./xor"),c=e("bn.js"),u=e("./withPublic"),l=e("browserify-rsa"),h=e("safe-buffer").Buffer;t.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var f,p=r(e);
vendor: 4,615 bytes, line 42
42if(4===d)f=function(e,t){var n=e.modulus.byteLength(),r=t.length,u=o("sha1").update(h.alloc(0)).digest(),l=u.length,d=2*l;if(r>n-d-2)throw new Error("message too long");var f=h.alloc(n-r-d-2),p=n-l-1,A=i(l),g=a(h.concat([u,f,h.alloc(1,1),t],p),s(A,p)),m=a(A,s(g,l));return new c(h.concat([h.alloc(1),m,g],n))}(p,t);else if(1===d)f=function(e,t,n){var r,o=t.length,s=e.modulus.byteLength();if(o>s-11)throw new Error("message too long");return r=n?h.alloc(s-o-3,255):function(e){for(var t,n=h.allocUnsafe(e),r=0,o=i(2*e),s=0;r<e;)s===o.length&&(o=i(2*e),s=0),(t=o[s++])&&(n[r++]=t);return n}(s-o-3),new c(h.concat([h.from([0,n?1:2]),r,h.alloc(1),t],s))}(p,t,n);else{if(3!==d)throw new Error("unknown padding");if((f=new c(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?l(f,p):u(f,p)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("safe-buffer").Buffer;t.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},{}],475:[function(e,t,r){(function(n,r){(function(){"use strict";var i=e("safe-buffer").Buffer,o=r.crypto||r.msCrypto;o&&o.getRandomValues?t.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var s=0;s<e;s+=65536)o.getRandomValues(r.slice(s,s+65536));else o.getRandomValues(r);return"function"==typeof t?n.nextTick(function(){t(null,r)}):r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,t,r){(function(t,n){(function(){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=e("safe-buffer"),s=e("randombytes"),a=o.Buffer,c=o.kMaxLength,u=n.crypto||n.msCrypto,l=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function d(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function f(e,n,r,i){if(t.browser){var o=e.buffer,a=new Uint8Array(o,n,r);return u.getRandomValues(a),i?void t.nextTick(function(){i(null,e)}):e}if(!i)return s(r).copy(e,n),e;s(r,function(t,r){if(t)return i(t);r.copy(e,n),i(null,e)})}u&&u.getRandomValues||!t.browser?(r.randomFill=function(e,t,r,i){if(!(a.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(t,e.length),d(r,t,e.length),f(e,t,r,i)},r.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!(a.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(t,e.length),void 0===r&&(r=e.length-t),d(r,t,e.length),f(e,t,r)}):(r.randomFill=i,r.randomFillSync=i)}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
42d for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,n){var r,i,s,a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(o(t,"type"))}return a+". Received type ".concat(typeof n)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},{}],478:[function(e,t,n){(function(n){(function(){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=u;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(u,i);for(var s=r(o.prototype),a=0;a<s.length;a++){var c=s[a];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,n){"use strict";t.exports=i;var r=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}e("inherits")(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,t,r){(function(n,r){(function(){"use strict";var i;t.exports=x,x.ReadableState=S,e("events").EventEmitter;var o,s=function(e,t){return e.listeners(t).length},a=e("./internal/streams/stream"),c=e("buffer").Buffer,u=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=e("util");o=l&&l.debuglog?l.debuglog("stream"):function(){};var h,d,f,p=e("./internal/streams/buffer_list"),A=e("./internal/streams/destroy"),g=e("./internal/streams/state").getHighWaterMark,m=e("../errors").codes,y=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,b=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(x,a);var C=A.errorOrDestroy,_=["error","close","destroy","pause","resume"];function S(t,n,r){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",r),this.buffer=new p,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.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function x(t){if(i=i||e("./_stream_duplex"),!(this instanceof x))return new x(t);var n=this instanceof i;this._readableState=new S(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function T(e,t,n,r,i){o("readableAddChunk",t);var s,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(o("onEofChunk"),!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,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,k(e)))}}(e,a);else if(i||(s=function(e,t){var n,r;return r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t)),n}(a,t)),s)C(e,s);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r)a.endEmitted?C(e,new w):P(e,a,t,!0);else if(a.ended)C(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?P(e,a,t,!1):B(e,a)):P(e,a,t,!1)}else r||(a.reading=!1,B(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function P(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&I(e)),B(e,t)}function E(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=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function I(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(k,e))}function k(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function B(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(o("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function O(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){o("readable nexttick read 0"),e.read(0)}function R(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function j(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=A.destroy,x.prototype._undestroy=A.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),T(this,e,t,!1,n)},x.prototype.unshift=function(e){return T(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(t){h||(h=e("string_decoder/").StringDecoder);var n=new h(t);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 2,636 bytes, line 42
42for(var r=this._readableState.buffer.head,i="";null!==r;)i+=n.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},x.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):I(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(n,t))),null===(r=e>0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(e){C(this,new b("_read()"))},x.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===n.stdout||e===n.stderr?g:u;function c(t,n){o("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",A),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",c),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",d),h=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",l);var h=!1;function d(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==j(i.pipes,e))&&!h&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function f(t){o("onerror",t),g(),e.removeListener("error",f),0===s(e,"error")&&C(e,t)}function p(){e.removeListener("finish",A),g()}function A(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 9,105 bytes, line 42
42ndListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",p),e.once("finish",A),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.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;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=j(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},x.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?I(this):i.reading||n.nextTick(D,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(O,this),r},x.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(O,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(R,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<_.length;s++)e.on(_[s],this.emit.bind(this,_[s]));return this._read=function(t){o("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=e("./internal/streams/async_iterator")),d(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=N,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(t,n){return void 0===f&&(f=e("./internal/streams/from")),f(x,t,n)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,t,n){"use strict";t.exports=l;var r=e("../errors").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,s=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,c=e("./_stream_duplex");function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,n){d(e,t,n)})}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new i("_transform()"))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,t,r){(function(n,r){(function(){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var o;t.exports=x,x.WritableState=S;var s,a={deprecate:e("util-deprecate")},c=e("./internal/streams/stream"),u=e("buffer").Buffer,l=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=e("./internal/streams/destroy"),d=e("./internal/streams/state").getHighWaterMark,f=e("../errors").codes,p=f.ERR_INVALID_ARG_TYPE,A=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,m=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,b=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,C=h.errorOrDestroy;function _(){}function S(t,r,s){o=o||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=r instanceof o),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(B,e,t),e._writableState.errorEmitted=!0,C(e,i)):(o(i),e._writableState.errorEmitted=!0,C(e,i),B(e,t))}(e,r,i,t,o);else{var s=I(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),i?n.nextTick(P,e,r,s,o):P(e,r,s,o)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(t){var n=this instanceof(o=o||e("./_stream_duplex"));if(!n&&!s.call(x,this))return new x(t);this._writableState=new S(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function T(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function P(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),B(e,t)}function E(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var a=0,c=!0;n;)o[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;o.allBuffers=c,T(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,
vendor: 4,397 bytes, line 42
42s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,h=n.callback;if(T(e,t,!1,t.objectMode?1:u.length,u,l,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(n){t.pendingcb--,n&&C(e,n),t.prefinished=!0,e.emit("prefinish"),B(e,t)})}function B(e,t){var r=I(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(k,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}e("inherits")(x,c),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===x&&e&&e._writableState instanceof S}})):s=function(e){return e instanceof this},x.prototype.pipe=function(){C(this,new m)},x.prototype.write=function(e,t,r){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof l);return a&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=_),o.ending?function(e,t){var r=new b;C(e,r),n.nextTick(t,r)}(this,r):(a||function(e,t,r,i){var o;return null===r?o=new v:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(C(e,o),n.nextTick(i,o),!1)}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,a,r,i,o);return c}(this,o,a,e,t,r)),s},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,n){n(new A("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,B(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=h.destroy,x.prototype._undestroy=h.undestroy,x.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}
vendor: 8,996 bytes, line 42
42,{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,t,n){(function(n){(function(){"use strict";var r;function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=e("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var n=e[d].read();null!==n&&(e[l]=null,e[s]=null,e[a]=null,t(f(n,!1)))}}function A(e){n.nextTick(p,e)}var g=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((i(r={get stream(){return this[d]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise(function(t,r){n.nextTick(function(){e[c]?r(e[c]):t(f(void 0,!0))})});var r,i=this[l];if(i)r=new Promise(function(e,t){return function(n,r){e.then(function(){t[u]?n(f(void 0,!0)):t[h](n,r)},r)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[h])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),i(r,"return",function(){var e=this;return new Promise(function(t,n){e[d].destroy(null,function(e){e?n(e):t(f(void 0,!0))})})}),r),g);t.exports=function(e){var t,n=Object.create(m,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var r=n[d].read();r?(n[l]=null,n[s]=null,n[a]=null,e(f(r,!1))):(n[s]=e,n[a]=t)},writable:!0}),t));return n[l]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[a];return null!==t&&(n[l]=null,n[s]=null,n[a]=null,t(e)),void(n[c]=e)}var r=n[s];null!==r&&(n[l]=null,n[s]=null,n[a]=null,r(f(void 0,!0))),n[u]=!0}),e.on("readable",A.bind(null,n)),n}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var c=e("buffer").Buffer,u=e("util").inspect,l=u&&u.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n,r;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,n,r,i=c.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,c.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:220,util:188}],485:[function(e,t,n){(function(e){(function(){"use strict";function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(r,s):(s._writableState.errorEmitted=!0,e.nextTick(n,s,t)):e.nextTick(n,s,t):o?(e.nextTick(r,s),o(t)):e.nextTick(r,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,t,n){"use strict";var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var s=n.readable||!1!==n.readable&&t.readable,a=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){a=!1,u=!0,s||o.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,h=!0,a||o.call(t)},f=function(e){o.call(t,e)},p=function(){var e;return s&&!h?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},A=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),t.req?A():t.on("request",A)):a&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",d),t.on("finish",l),!1!==n.error&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",A),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",f),t.removeListener("close",p)}}},{"../../../errors":477}],487:[function(e,t,n){"use strict";
vendor: 4,537 bytes, line 42
42t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,n){"use strict";var r,i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(t,n,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),void 0===r&&(r=e("./end-of-stream")),r(t,{readable:n,writable:i},function(e){if(e)return o(e);a=!0,o()});var c=!1;return function(e){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}function u(e){e()}function l(e,t){return e.pipe(t)}function h(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}t.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=h(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var s=t.map(function(e,n){var o=n<t.length-1;return c(e,o,n>0,function(e){r||(r=e),e&&s.forEach(u),o||(s.forEach(u),i(r))})});return t.reduce(l)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,n){"use strict";var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,n){"use strict";t.exports=e("events").EventEmitter},{events:422}],491:[function(e,t,n){"use strict";(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),n.finished=e("./lib/internal/streams/end-of-stream.js"),n.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,n){"use strict";var r=function(e){var t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof d?t:d,s=Object.create(o.prototype),a=new x(i||[]);return r(s,"_invoke",{value:w(e,n,a)}),s}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h={};function d(){}function f(){}function p(){}var A={};c(A,o,function(){return this});var g=Object.getPrototypeOf,m=g&&g(g(T([])));m&&m!==t&&n.call(m,o)&&(A=m);var y=p.prototype=d.prototype=Object.create(A);function v(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function b(e,t){var i;r(this,"_invoke",{value:function(r,o){function s(){return new t(function(i,s){!function r(i,o,s,a){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?t.resolve(h.__await).then(function(e){r("next",e,s,a)},function(e){r("throw",e,s,a)}):t.resolve(h).then(function(e){u.value=e,s(u)},function(e){return r("throw",e,s,a)})}a(c.arg)}(r,o,i,s)})}return i=i?i.then(s,s):s()}})}function w(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=C(s,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,301 bytes, line 42
42(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=l(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=c(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},v(b.prototype),c(b.prototype,s,function(){return this}),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new b(u(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},v(y),c(y,a,"Generator"),c(y,o,function(){return this}),c(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}
vendor: 4,703 bytes, lines 42-43
42("object"==typeof t?t.exports:{});try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},{}],493:[function(e,t,n){"use strict";var r=e("buffer").Buffer,i=e("inherits"),o=e("hash-base"),s=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function A(e,t,n,r,i,o,s,a){return p(e+(t^n^r)+o+s|0,a)+i|0}function g(e,t,n,r,i,o,s,a){return p(e+(t&n|~t&r)+o+s|0,a)+i|0}function m(e,t,n,r,i,o,s,a){return p(e+((t|~n)^r)+o+s|0,a)+i|0}function y(e,t,n,r,i,o,s,a){return p(e+(t&r|n&~r)+o+s|0,a)+i|0}function v(e,t,n,r,i,o,s,a){return p(e+(t^(n|~r))+o+s|0,a)+i|0}i(f,o),f.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,f=0|this._e,b=0|this._a,w=0|this._b,C=0|this._c,_=0|this._d,S=0|this._e,x=0;x<80;x+=1){var T,P;x<16?(T=A(n,r,i,o,f,e[a[x]],h[0],u[x]),P=v(b,w,C,_,S,e[c[x]],d[0],l[x])):x<32?(T=g(n,r,i,o,f,e[a[x]],h[1],u[x]),P=y(b,w,C,_,S,e[c[x]],d[1],l[x])):x<48?(T=m(n,r,i,o,f,e[a[x]],h[2],u[x]),P=m(b,w,C,_,S,e[c[x]],d[2],l[x])):x<64?(T=y(n,r,i,o,f,e[a[x]],h[3],u[x]),P=g(b,w,C,_,S,e[c[x]],d[3],l[x])):(T=v(n,r,i,o,f,e[a[x]],h[4],u[x]),P=A(b,w,C,_,S,e[c[x]],d[4],l[x])),n=f,f=o,o=p(i,10),i=r,r=T,b=S,S=_,_=p(C,10),C=w,w=P}var E=this._b+i+_|0;this._b=this._c+o+S|0,this._c=this._d+f+b|0,this._d=this._e+n+w|0,this._e=this._a+r+C|0,this._a=E},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=f},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,n){"use strict";
43/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.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},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,n){(function(n){(function(){"use strict";var r,i=e("buffer"),o=i.Buffer,s={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(s[r]=i[r]);var a=s.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(a[r]=o[r]);if(s.Buffer.prototype=o.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,n)}),a.alloc||(a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>
vendor: 37,333 bytes, line 43
43=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=o(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!s.kStringMaxLength)try{s.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});const r=e("xmlchars/xml/1.0/ed5"),i=e("xmlchars/xml/1.1/ed2"),o=e("xmlchars/xmlns/1.0/ed3");var s=r.isS,a=r.isChar,c=r.isNameStartChar,u=r.isNameChar,l=r.S_LIST,h=r.NAME_RE,d=i.isChar,f=o.isNCNameStartChar,p=o.isNCNameChar,A=o.NC_NAME_RE;const g="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",y={__proto__:null,xml:g,xmlns:m},v={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},b=e=>34===e||39===e,w=[34,39],C=[...w,91,62],_=[...w,60,93],S=[61,63,...l],x=[...l,62,38,60];function T(e,t,n){switch(t){case"xml":n!==g&&e.fail(`xml prefix must be bound to ${g}.`);break;case"xmlns":n!==m&&e.fail(`xmlns prefix must be bound to ${m}.`)}switch(n){case m:e.fail(""===t?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${m}.`);break;case g:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}}}const P=e=>A.test(e),E=e=>h.test(e);n.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const I={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};n.SaxesParser=class{constructor(e){this.opt=null!=e?e:{},this.fragmentOpt=!!this.opt.fragment;const t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=f,this.nameCheck=p,this.isName=P,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},y);const e=this.opt.additionalNamespaces;null!=e&&(function(e,t){for(const n of Object.keys(t))T(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=c,this.nameCheck=u,this.isName=E,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:n}=this.opt;if(void 0===n){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(v),null===(e=this.readyHandler)||void 0===e||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[I[e]]=t}off(e){this[I[e]]=void 0}makeError(e){var t;let n=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+=`${this.line}:${this.column}`),n.length>0&&(n+=": "),new Error(n+e)}fail(e){const t=this.makeError(e),n=this.errorHandler;if(void 0===n)throw t;return n(t),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let t=!1;null===e?(t=!0,e=""):"object"==typeof e&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length;const r=e.charCodeAt(n-1);!t&&(13===r||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));const{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||9===n)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===e.charCodeAt(t+1)&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail("disallowed character."),r}getCode11(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&8232!==n||9===n)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const n=e.charCodeAt(t+1);10!==n&&133!==n||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail("disallowed character."),r}getCodeNorm(){const e=this.getCode();return-2===e?10:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this;const{chunk:n}=this;for(;;){const r=this.getCode(),i=-2===r,o=i?10:r;if(-1===o||e.includes(o))return this.text+=n.slice(t,this.prevI),o;i&&(this.text+=n.slice(t,this.prevI)+"\n",t=this.i)}}captureToChar(e){let{i:t}=this;const{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case-2:this.text+=n.slice(t,this.prevI)+"\n",t=this.i,r=10;break;case-1:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){const{chunk:e,i:t}=this;for(;;){const n=this.getCode();if(-1===n)return this.name+=e.slice(t),-1;if(!u(n))return this.name+=e.slice(t,this.prevI),-2===n?10:n}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(-1===e||!s(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=a,this.getCode=this.getCode10):(this.isChar=d,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var e;const t=this.captureTo(C);switch(t){case 62:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:b(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){const e=this.captureTo(_);-1!==e&&(this.text+=String.fromCodePoint(e),93===e?this.state=2:60===e?this.state=6:b(e)&&(this.state=5,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:t}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=t.slice(e,this.prevI)+"\n",e=this.i;break;case 59:{const{entityReturnState:n}=this,r=this.entity+t.slice(e,this.prevI);let i;this.state=n,""===r?(this.fail("empty entity name."),i="&;"):(i=this.parseEntity(r),this.entity=""),13===n&&void 0===this.textHandler||(this.text+=i);break e}case-1:this.entity+=t.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(c(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var e;const t=this.getCodeNorm();45===t?(this.state=19,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(t),this.state=17)}sCommentEnded(){const e=this.getCodeNorm();62!==e?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(e),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const e=this.getCodeNorm();93===e?this.state=22:(this.text+="]"+String.fromCodePoint(e),this.state=20)}sCDataEnding2(){var e;const t=this.getCodeNorm();switch(t){case 62:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(t),this.state=20}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):63===e||s(e)?(this.fail("processing instruction without a target."),this.state=63===e?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){const{chunk:e,i:t}=this;for(;;){const n=this.getCodeNorm();if(-1===n)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);const r=63===n;r||s(n)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=r?33:27):this.state=r?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(0===this.text.length){const e=this.getCodeNorm();63===e?this.state=26:s(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var e;const t=this.getCodeNorm();if(62===t){const{piTarget:t}=this;"xml"===t.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:t,body:this.text}),this.piTarget=this.text="",this.state=13}else 63===t?this.text+="?":(this.text+="?"+String.fromCodePoint(t),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();63!==e?-1!==e&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=33}sXMLDeclName(){const e=this.captureTo(S);if(63===e)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(s(e)||61===e){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=61===e?30:29}}sXMLDeclEq(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");s(e)||(61!==e&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");s(e)||(b(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const e=this.captureTo([this.q,63]);if(63===e)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(-1===e)return;const t=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}sXMLDeclSeparator(){const e=this.getCodeNorm();63!==e?(s(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var e;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e;const t=this.captureNameChars();if(-1===t)return;const n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case 62:this.openTag();break;case 47:this.state=35;break;default:s(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const e=this.skipSpaces();-1!==e&&(c(e)?(this.unget(),this.state=37):62===e?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();61===e?this.state=39:s(e)?this.state=38:62===e?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==e&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===e?this.openTag():c(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const e=this.getCodeNorm();b(e)?(this.q=e,this.state=40):s(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:e,chunk:t}=this;let{i:n}=this;for(;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(n,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=t.slice(n,this.prevI)+" ",n=this.i;break;case 60:return this.text+=t.slice(n,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=t.slice(n))}}sAttribValueClosed(){const e=this.getCodeNorm();s(e)?this.state=36:62===e?this.openTag():47===e?this.state=35:c(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo(x);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",62===e?this.openTag():this.state=36}}sCloseTag(){const e=this.captureNameChars();62===e?this.closeTag():s(e)?this.state=44:-1!==e&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:t}=this;const{chunk:n,textHandler:r}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==r){const{text:t}=this,i=n.slice(e,this.prevI);0!==t.length?(r(t+i),this.text=""):0!==i.length&&r(i)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==r&&(this.text+=n.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case-2:void 0!==r&&(this.text+=n.slice(e,this.prevI)+"\n"),e=this.i,t=0;break;case-1:void 0!==r&&(this.text+=n.slice(e));break e;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this;const{chunk:t,textHandler:n}=this;let r=!1;e:for(;;){const i=this.getCode();switch(i){case 60:if(this.state=15,void 0!==n){const{text:r}=this,i=t.slice(e,this.prevI);0!==r.length?(n(r+i),this.text=""):0!==i.length&&n(i)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==n&&(this.text+=t.slice(e,this.prevI)),r=!0;break e;case-2:void 0!==n&&(this.text+=t.slice(e,this.prevI)+"\n"),e=this.i;break;case-1:void 0!==n&&(this.text+=t.slice(e));break e;default:s(i)||(r=!0)}}r&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(e,t){var n;const{prefix:r,local:i}=this.qname(e),o={name:e,prefix:r,local:i,value:t};if(this.attribList.push(o),null===(n=this.attributeHandler)||void 0===n||n.call(this,o),"xmlns"===r){const e=t.trim();"1.0"===this.currentXMLVersion&&""===e&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[i]=e,T(this,i,e)}else if("xmlns"===e){const e=t.trim();this.topNS[""]=e,T(this,"",e)}}pushAttribPlain(e,t){var n;const r={name:e,value:t};this.attribList.push(r),null===(n=this.attributeHandler)||void 0===n||n.call(this,r)}end(){var e,t;this.sawRoot||this.fail("document must contain a root element.");const{tags:n}=this;for(;n.length>0;){const e=n.pop();this.fail("unclosed tag: "+e.name)}0!==this.state&&13!==this.state&&this.fail("unexpected end.");const{text:r}=this;return 0!==r.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,r),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}resolve(e){var t,n;let r=this.topNS[e];if(void 0!==r)return r;const{tags:i}=this;for(let o=i.length-1;o>=0;o--)if(r=i[o].ns[e],void 0!==r)return r;return r=this.ns[e],void 0!==r?r:null===(n=(t=this.opt).resolvePrefix)||void 0===n?void 0:n.call(t,e)}qname(e){const t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};const n=e.slice(t+1),r=e.slice(0,t);return(""===r||""===n||n.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){var e;const{attribList:t}=this,n=this.tag;{const{prefix:t,local:r}=this.qname(n.name);n.prefix=t,n.local=r;const i=n.uri=null!==(e=this.resolve(t))&&void 0!==e?e:"";""!==t&&("xmlns"===t&&this.fail('tags may not have "xmlns" as prefix.'),""===i&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),n.uri=t))}if(0===t.length)return;const{attributes:r}=n,i=new Set;for(const o of t){const{name:e,prefix:t,local:n}=o;let s,a;""===t?(s="xmlns"===e?m:"",a=e):(s=this.resolve(t),void 0===s&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),s=t),a=`{${s}}${n}`),i.has(a)&&this.fail(`duplicate attribute: ${a}.`),i.add(a),o.uri=s,r[e]=o}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,t=this.tag.attributes;for(const{name:n,value:r}of e)void 0!==t[n]&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:t}=this,n=this.tag;n.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,n),t.push(n),this.state=13,this.name=""}openSelfClosingTag(){var e,t,n;this.processAttribs();const{tags:r}=this,i=this.tag;i.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,i),null===(t=this.closeTagHandler)||void 0===t||t.call(this,i),null===(this.tag=null!==(n=r[r.length-1])&&void 0!==n?n:null)&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:e,name:t}=this;if(this.state=13,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");const n=this.closeTagHandler;let r=e.length;for(;r-- >0;){const r=this.tag=e.pop();if(this.topNS=r.ns,null==n||n(r),r.name===t)break;this.fail("unexpected close tag.")}0===r?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if("#"!==e[0]){const t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let t=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail("malformed character entity."),`&${e};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,o=e.length,s=this._len,a=0;a<o;){for(var c=s%i,u=Math.min(o-a,i-c),l=0;l<u;l++)n[c+l]=e[a+l];a+=u,(s+=u)%i==0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":494}],498:[function(e,t,n){"use strict";var r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=n[h-3]^n[h-8]^n[h-14]^n[h-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((t=r)<<5|t>>>27)+l(f,i,o,a)+c+n[d]+s[f];c=a,a=o,o=u(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function h(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),A=u(r)+h(p,i,o,a)+c+n[f]+s[p]|0;c=a,a=o,o=l(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./sha256"),o=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(64);function c(){this.init(),this._w=a,o.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=c},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function h(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,p=0|this._f,A=0|this._g,g=0|this._h,m=0;m<16;++m)n[m]=e.readInt32BE(4*m);for(;m<64;++m)n[m]=0|(((t=n[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[m-7]+f(n[m-15])+n[m-16];for(var y=0;y<64;++y){var v=g+d(c)+u(c,p,A)+s[y]+n[y]|0,b=h(r)+l(r,i,o)|0;g=A,A=p,p=c,c=a+v|0,a=o,o=i,i=r,r=v+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=A+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./sha512"),o=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(160);function c(){this.init(),this._w=a,o.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=c},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function A(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,c=0|this._fh,y=0|this._gh,v=0|this._hh,b=0|this._al,w=0|this._bl,C=0|this._cl,_=0|this._dl,S=0|this._el,x=0|this._fl,T=0|this._gl,P=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var I=t[E-30],k=t[E-30+1],B=f(I,k),M=p(k,I),O=A(I=t[E-4],k=t[E-4+1]),D=g(k,I),R=t[E-14],L=t[E-14+1],N=t[E-32],U=t[E-32+1],F=M+L|0,j=B+R+m(F,M)|0;j=(j=j+O+m(F=F+D|0,D)|0)+N+m(F=F+U|0,U)|0,t[E]=j,t[E+1]=F}for(var H=0;H<160;H+=2){j=t[H],F=t[H+1];var z=l(n,r,i),Q=l(b,w,C),V=h(n,b),K=h(b,n),W=d(a,S),G=d(S,a),q=s[H],Y=s[H+1],X=u(a,c,y),Z=u(S,x,T),$=P+G|0,J=v+W+m($,P)|0;J=(J=(J=J+X+m($=$+Z|0,Z)|0)+q+m($=$+Y|0,Y)|0)+j+m($=$+F|0,F)|0;var ee=K+Q|0,te=V+z+m(ee,K)|0;v=y,P=T,y=c,T=x,c=a,x=S,a=o+J+m(S=_+$|0,_)|0,o=i,_=C,i=r,C=w,r=n,w=b,n=J+te+m(b=$+ee|0,$)|0}this._al=this._al+b|0,this._bl=this._bl+w|0,this._cl=this._cl+C|0,this._dl=this._dl+_|0,this._el=this._el+S|0,this._fl=this._fl+x|0,this._gl=this._gl+T|0,this._hl=this._hl+P|0,this._ah=this._ah+n+m(this._al,b)|0,this._bh=this._bh+r+m(this._bl,w)|0,this._ch=this._ch+i+m(this._cl,C)|0,this._dh=this._dh+o+m(this._dl,_)|0,this._eh=this._eh+a+m(this._el,S)|0,this._fh=this._fh+c+m(this._fl,x)|0,this._gh=this._gh+y+m(this._gl,T)|0,this._hh=this._hh+v+m(this._hl,P)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,n){"use strict";t.exports=i;var r=e("events").EventEmitter;function i(){r.call(this)}e("inherits")(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.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",a),n.on("close",c));var s=!1;function a(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,t,n){"use strict";var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],507:[function(e,t,n){"use strict";
vendor: 8,201 bytes, line 43
43t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,n){"use strict";var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=h;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var s=e("./_stream_readable"),a=e("./_stream_writable");o.inherits(h,s);for(var c=i(a.prototype),u=0;u<c.length;u++){var l=c[u];h.prototype[l]||(h.prototype[l]=a.prototype[l])}function h(e){if(!(this instanceof h))return new h(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,t,r){(function(n,r){(function(){"use strict";var i=e("process-nextick-args");t.exports=v;var o,s=e("isarray");v.ReadableState=y,e("events").EventEmitter;var a=function(e,t){return e.listeners(t).length},c=e("./internal/streams/stream"),u=e("safe-buffer").Buffer,l=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=Object.create(e("core-util-is"));h.inherits=e("inherits");var d=e("util"),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,A=e("./internal/streams/BufferList"),g=e("./internal/streams/destroy");h.inherits(v,c);var m=["error","close","destroy","pause","resume"];function y(t,n){t=t||{};var r=n instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new A,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||e("./_stream_duplex"),!(this instanceof v))return new v(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function b(e,t,n,r,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(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,_(e)}}(e,s)):(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):x(e,s)):w(e,s,t,!1))):r||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function w(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&&_(e)),x(e,t)}function C(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=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){f("emit readable"),e.emit("readable"),I(e)}function x(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function P(e){f("readable nexttick read 0"),e.read(0)}function E(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function k(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=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=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function B(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(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function O(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},v.prototype.unshift=function(e){return b(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},v.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):_(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,i=t.needReadable;
vendor: 2,032 bytes, line 43
43return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=C(n,t))),null===(r=e>0?k(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=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)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var c=t&&!1===t.end||e===n.stdout||e===n.stderr?v:l;function u(t,n){f("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",u),r.removeListener("end",l),r.removeListener("end",v),r.removeListener("data",A),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function l(){f("onend"),e.end()}o.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",u);var h=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,I(e))}}(r);e.on("drain",h);var d=!1,p=!1;function A(t){f("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==O(o.pipes,e))&&!d&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),r.pause())}function g(t){f("onerror",t),v(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",y),v()}function y(){f("onfinish"),e.removeListener("close",m),v()}function v(){f("unpipe"),r.unpipe(e)}return r.on("data",A),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 5,315 bytes, line 43
43ndListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",m),e.once("finish",y),e.emit("pipe",r),o.flowing||(f("pipe resume"),r.resume()),e},v.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;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=O(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&_(this):i.nextTick(P,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(E,e,t))}(this,e)),this},v.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<m.length;o++)e.on(m[o],this.emit.bind(this,m[o]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=k}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,t,n){"use strict";t.exports=s;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){c(e,t,n)}):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,t,r){(function(n,r,i){(function(){"use strict";var o=e("process-nextick-args");function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=y;var a,c=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:o.nextTick;y.WritableState=m;var u=Object.create(e("core-util-is"));u.inherits=e("inherits");var l,h={deprecate:e("util-deprecate")}
vendor: 6,781 bytes, line 43
43,d=e("./internal/streams/stream"),f=e("safe-buffer").Buffer,p=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},A=e("./internal/streams/destroy");function g(){}function m(t,n){a=a||e("./_stream_duplex"),t=t||{};var r=n instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,u=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u: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 h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,i);else{var s=C(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(b,e,n,s,i):b(e,n,s,i)}}(n,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 s(this)}function y(t){if(a=a||e("./_stream_duplex"),!(l.call(y,this)||this instanceof a))return new y(t);this._writableState=new m(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),d.call(this)}function v(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)i[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,h=n.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,l,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var n=C(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,d),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===y&&e&&e._writableState instanceof m}})):l=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,a=!i.objectMode&&(r=e,f.isBuffer(r)||r instanceof p);return a&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(r,s),i=!1),i}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,a,r,i,o);return c}(this,i,a,e,t,n)),s},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.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&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=A.destroy,y.prototype._undestroy=A.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)}
vendor: 4,665 bytes, line 43
43,{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i,o=r.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,n=o,i=a,t.copy(n,i),a+=s.data.length,s=s.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":520,util:188}],514:[function(e,t,n){"use strict";var r=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,t,n){arguments[4][490][0].apply(n,arguments)},{dup:490,events:422}],516:[function(e,t,n){"use strict";t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,n){"use strict";(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,n){"use strict";t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,n){"use strict";t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,n){arguments[4][217][0].apply(n,arguments)},{buffer:220,dup:217}],521:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,n){(function(t,r){(function(){"use strict";var i=e("process/browser.js").nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},c=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&s.call(arguments,1
vendor: 4,097 bytes, line 43
43);return a[t]=!0,i(function(){a[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof r?r:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,t,r){(function(e){(function(){"use strict";function n(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],525:[function(e,t,n){"use strict";"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],526:[function(e,t,n){"use strict";t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],527:[function(e,t,r){(function(t,n){(function(){"use strict";var i=/%[sdj%]/g;r.format=function(e){if(!m(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),c=r[n];n<o;c=r[++n])A(c)||!b(c)?s+=" "+c:s+=" "+a(c);return s},r.deprecate=function(e,i){if(y(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,s={};function a(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(t)?n.showHidden=t:t&&r._extend(n,t),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var n=a.styles[t];return n?"�["+a.colors[n][0]+"m"+e+"�["+a.colors[n][1]+"m":e}function u(e,t){return e}function l(e,t,n){if(e.customInspect&&t&&_(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return m(i)||(i=l(e,i,n)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):A(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var s=Object.keys(t),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),C(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(t);if(0===s.length){if(_(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(v(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(w(t))return e.stylize(Date.prototype.toString.call(t),"date");if(C(t))return h(t)}var u,b="",S=!1,x=["{","}"];return f(t)&&(S=!0,x=["[","]"]),_(t)&&(b=" [Function"+(t.name?": "+t.name:"")+"]"),v(t)&&(b=" "+RegExp.prototype.toString.call(t)),w(t)&&(b=" "+Date.prototype.toUTCString.call(t)),C(t)&&(b=" "+h(t)),0!==s.length||S&&0!=t.length?n<0?v(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=S?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)E(t,String(s))?o.push(d(e,t,n,r,String(s),!0)):o.push("");
vendor: 4,485 bytes, line 43
43return i.forEach(function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))}),o}(e,t,n,a,s):s.map(function(r){return d(e,t,n,a,r,S)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,b,x)):x[0]+b+x[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),E(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(c.value)<0?(a=A(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return"   "+e}).join("\n")):a=e.stylize("[Circular]","special")),y(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function f(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function A(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function y(e){return void 0===e}function v(e){return b(e)&&"[object RegExp]"===S(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===S(e)}function C(e){return b(e)&&("[object Error]"===S(e)||e instanceof Error)}function _(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(y(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;s[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else s[e]=function(){};return s[e]},r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=f,r.isBoolean=p,r.isNull=A,r.isNullOrUndefined=function(e){return null==e},r.isNumber=g,r.isString=m,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=y,r.isRegExp=v,r.isObject=b,r.isDate=w,r.isError=C,r.isFunction=_,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",P(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this)}).call(this,e("_process"),"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}});var r=d(e("./v1.js")),i=d(e("./v3.js")),o=d(e("./v4.js")),s=d(e("./v5.js")),a=d(e("./nil.js")),c=d(e("./version.js")),u=d(e("./validate.js")),l=d(e("./stringify.js")),h=d(e("./parse.js"));
vendor: 6,608 bytes, line 43
43function d(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,t,n){"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function i(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,r,o,s){return i((a=i(i(t,e),i(r,s)))<<(c=o)|a>>>32-c,n);var a,c}function s(e,t,n,r,i,s,a){return o(t&n|~t&r,e,t,i,s,a)}function a(e,t,n,r,i,s,a){return o(t&r|n&~r,e,t,i,s,a)}function c(e,t,n,r,i,s,a){return o(t^n^r,e,t,i,s,a)}function u(e,t,n,r,i,s,a){return o(n^(t|~r),e,t,i,s,a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length;for(let r=0;r<n;r+=8){const n=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let n=1732584193,o=-271733879,l=-1732584194,h=271733878;for(let r=0;r<e.length;r+=16){const t=n,d=o,f=l,p=h;n=s(n,o,l,h,e[r],7,-680876936),h=s(h,n,o,l,e[r+1],12,-389564586),l=s(l,h,n,o,e[r+2],17,606105819),o=s(o,l,h,n,e[r+3],22,-1044525330),n=s(n,o,l,h,e[r+4],7,-176418897),h=s(h,n,o,l,e[r+5],12,1200080426),l=s(l,h,n,o,e[r+6],17,-1473231341),o=s(o,l,h,n,e[r+7],22,-45705983),n=s(n,o,l,h,e[r+8],7,1770035416),h=s(h,n,o,l,e[r+9],12,-1958414417),l=s(l,h,n,o,e[r+10],17,-42063),o=s(o,l,h,n,e[r+11],22,-1990404162),n=s(n,o,l,h,e[r+12],7,1804603682),h=s(h,n,o,l,e[r+13],12,-40341101),l=s(l,h,n,o,e[r+14],17,-1502002290),o=s(o,l,h,n,e[r+15],22,1236535329),n=a(n,o,l,h,e[r+1],5,-165796510),h=a(h,n,o,l,e[r+6],9,-1069501632),l=a(l,h,n,o,e[r+11],14,643717713),o=a(o,l,h,n,e[r],20,-373897302),n=a(n,o,l,h,e[r+5],5,-701558691),h=a(h,n,o,l,e[r+10],9,38016083),l=a(l,h,n,o,e[r+15],14,-660478335),o=a(o,l,h,n,e[r+4],20,-405537848),n=a(n,o,l,h,e[r+9],5,568446438),h=a(h,n,o,l,e[r+14],9,-1019803690),l=a(l,h,n,o,e[r+3],14,-187363961),o=a(o,l,h,n,e[r+8],20,1163531501),n=a(n,o,l,h,e[r+13],5,-1444681467),h=a(h,n,o,l,e[r+2],9,-51403784),l=a(l,h,n,o,e[r+7],14,1735328473),o=a(o,l,h,n,e[r+12],20,-1926607734),n=c(n,o,l,h,e[r+5],4,-378558),h=c(h,n,o,l,e[r+8],11,-2022574463),l=c(l,h,n,o,e[r+11],16,1839030562),o=c(o,l,h,n,e[r+14],23,-35309556),n=c(n,o,l,h,e[r+1],4,-1530992060),h=c(h,n,o,l,e[r+4],11,1272893353),l=c(l,h,n,o,e[r+7],16,-155497632),o=c(o,l,h,n,e[r+10],23,-1094730640),n=c(n,o,l,h,e[r+13],4,681279174),h=c(h,n,o,l,e[r],11,-358537222),l=c(l,h,n,o,e[r+3],16,-722521979),o=c(o,l,h,n,e[r+6],23,76029189),n=c(n,o,l,h,e[r+9],4,-640364487),h=c(h,n,o,l,e[r+12],11,-421815835),l=c(l,h,n,o,e[r+15],16,530742520),o=c(o,l,h,n,e[r+2],23,-995338651),n=u(n,o,l,h,e[r],6,-198630844),h=u(h,n,o,l,e[r+7],10,1126891415),l=u(l,h,n,o,e[r+14],15,-1416354905),o=u(o,l,h,n,e[r+5],21,-57434055),n=u(n,o,l,h,e[r+12],6,1700485571),h=u(h,n,o,l,e[r+3],10,-1894986606),l=u(l,h,n,o,e[r+10],15,-1051523),o=u(o,l,h,n,e[r+1],21,-2054922799),n=u(n,o,l,h,e[r+8],6,1873313359),h=u(h,n,o,l,e[r+15],10,-30611744),l=u(l,h,n,o,e[r+6],15,-1560198380),o=u(o,l,h,n,e[r+13],21,1309151649),n=u(n,o,l,h,e[r+4],6,-145523070),h=u(h,n,o,l,e[r+11],10,-1120210379),l=u(l,h,n,o,e[r+2],15,718787259),o=u(o,l,h,n,e[r+9],21,-343485551),n=i(n,t),o=i(o,d),l=i(l,f),h=i(h,p)}return[n,o,l,h]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};n.default=l},{}],530:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r},o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};n.default=o},{"./validate.js":541}],532:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,t,n){"use strict";let r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)};const i=new Uint8Array(16)},{}],534:[function(e,t,n){"use strict";function r(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s);for(let r=0;r<s;++r){const t=new Uint32Array(16);for(let n=0;n<16;++n)t[n]=e[64*r+4*n]<<24|e[64*r+4*n+1]<<16|e[64*r+4*n+2]<<8|e[64*r+4*n+3];a[r]=t}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(let c=0;c<s;++c){const e=new Uint32Array(80);for(let t=0;t<16;++t)e[t]=a[c][t];for(let t=16;t<80;++t)e[t]=i(e[t-3]^e[t-8]^e[t-14]^e[t-16],1);let o=n[0],s=n[1],u=n[2],l=n[3],h=n[4];for(let n=0;n<80;++n){const a=Math.floor(n/20),c=i(o,5)+r(a,s,u,l)+h+t[a]+e[n]>>>0;h=l,l=u,u=i(s,30)>>>0,s=o,o=c}n[0]=n[0]+o>>>0,n[1]=n[1]+s>>>0,n[2]=n[2]+u>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+h>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
vendor: 5,037 bytes, lines 43-50
43>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};n.default=o},{}],535:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r};const o=[];for(let a=0;a<256;++a)o.push((a+256).toString(16).substr(1));var s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};n.default=s},{"./validate.js":541}],536:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("./rng.js")),i=o(e("./stringify.js"));function o(e){return e&&e.__esModule?e:{default:e}}let s,a,c=0,u=0;var l=function(e,t,n){let o=t&&n||0;const l=t||new Array(16);let h=(e=e||{}).node||s,d=void 0!==e.clockseq?e.clockseq:a;if(null==h||null==d){const t=e.random||(e.rng||r.default)();null==h&&(h=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=a=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:u+1;const A=f-c+(p-u)/1e4;if(A<0&&void 0===e.clockseq&&(d=d+1&16383),(A<0||f>c)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=f,u=p,a=d,f+=122192928e5;const g=(1e4*(268435455&f)+p)%4294967296;l[o++]=g>>>24&255,l[o++]=g>>>16&255,l[o++]=g>>>8&255,l[o++]=255&g;const m=f/4294967296*1e4&268435455;l[o++]=m>>>8&255,l[o++]=255&m,l[o++]=m>>>24&15|16,l[o++]=m>>>16&255,l[o++]=d>>>8|128,l[o++]=255&d;for(let r=0;r<6;++r)l[o+r]=h[r];return t||(0,i.default)(l)};n.default=l},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("./v35.js")),i=o(e("./md5.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.default)("v3",48,i.default);n.default=s},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){function o(e,o,s,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof o&&(o=(0,i.default)(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(o),c.set(e,o.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){a=a||0;for(let e=0;e<16;++e)s[a+e]=c[e];return s}return(0,r.default)(c)}try{o.name=e}catch(e){}return o.DNS=s,o.URL=a,o},n.URL=n.DNS=void 0;var r=o(e("./stringify.js")),i=o(e("./parse.js"));function o(e){return e&&e.__esModule?e:{default:e}}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";n.URL=a},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("./rng.js")),i=o(e("./stringify.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,n){const o=(e=e||{}).random||(e.rng||r.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return(0,i.default)(o)};n.default=s},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("./v35.js")),i=o(e("./sha1.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.default)("v5",80,i.default);n.default=s},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./regex.js"))&&r.__esModule?r:{default:r},o=function(e){return"string"==typeof e&&i.default.test(e)};n.default=o},{"./regex.js":532}],542:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r},o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};n.default=o},{"./validate.js":541}],543:[function(e,t,n){"use strict";
44/**
45 * Character classes and associated utilities for the 5th edition of XML 1.0.
46 *
47 * @author Louis-Dominique Dubeau
48 * @license MIT
49 * @copyright Louis-Dominique Dubeau
50 */function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="\t\n\r -퟿-�𐀀-􏿿",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9
50·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u"),n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return 32===e||10===e||13===e||9===e},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],544:[function(e,t,n){"use strict";
51/**
52 * Character classes and associated utilities for the 2nd edition of XML 1.1.
53 *
54 * @author Louis-Dominique Dubeau
55 * @license MIT
56 * @copyright Louis-Dominique Dubeau
57 */function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="�-퟿-�𐀀-ô¿¿",n.RESTRICTED_CHAR="�-\b\v\f�-��-„†-Ÿ",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u"),n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isRestrictedChar=function(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},n.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return 32===e||10===e||13===e||9===e},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],545:[function(e,t,n){"use strict";
58/**
59 * Character class utilities for XML NS 1.0 edition 3.
60 *
61 * @author Louis-Dominique Dubeau
62 * @license MIT
63 * @copyright Louis-Dominique Dubeau
64 */function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u"),n.isNCNameStartChar=r,n.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)})},57968:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var r="object"===typeof window&&window.window===window?window:"object"===typeof self&&self.self===self?self:"object"===typeof n.g&&n.g.global===n.g?n.g:void 0;function i(e,t){return"undefined"===typeof t?t={autoBom:!1}:"object"!==typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function o(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){u(r.response,t,n
vendor: 9,021 bytes, lines 64-84
64)},r.onerror=function(){console.error("could not download file")},r.send()}function s(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var c=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=r.saveAs||("object"!==typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(e,t,n){var i=r.URL||r.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"===typeof e?(c.href=e,c.origin!==location.origin?s(c.href)?o(e,t,n):a(c,c.target="_blank"):a(c)):(c.href=i.createObjectURL(e),setTimeout(function(){i.revokeObjectURL(c.href)},4e4),setTimeout(function(){a(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"===typeof e)if(s(e))o(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){a(r)})}else navigator.msSaveOrOpenBlob(i(e,n),t)}:function(e,t,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"===typeof e)return o(e,t,n);var s="application/octet-stream"===e.type,a=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&a||c)&&"undefined"!==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=u.saveAs=u},20354:function(e){
65/*!
66 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
67 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
68 * Released under MIT License
69 */
70(function(t,n){e.exports=n()})(0,function(){"use strict";
71/*! *****************************************************************************
72    Copyright (c) Microsoft Corporation.
73
74    Permission to use, copy, modify, and/or distribute this software for any
75    purpose with or without fee is hereby granted.
76
77    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
78    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
79    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
80    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
81    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
82    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
83    PERFORMANCE OF THIS SOFTWARE.
84    ***************************************************************************** */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;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function s(e){try{c(r.next(e))}catch(Kt){o(Kt)}}function a(e){try{c(r["throw"](e))}catch(Kt){o(Kt)}}function c(e){e.done?n(e.value):i(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())})}function i(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(Kt){o=[6,Kt],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function o(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}for(var s=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return 0!==e.width});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),a=function(e,t){return s.fromClientRect(e,t.getBoundingClientRect())},c=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new s(0,0,r,i)},u=function(e){var t=[],n=0,r=e.length;while(n<r){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320===(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";var r=[],i=-1,o="";while(++i<n){var s=e[i];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"===typeof Uint8Array?[]:new Uint8Array(256),f=0;f<h.length;f++)d[h.charCodeAt(f)]=f;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="undefined"===typeof Uint8Array?[]:new Uint8Array(256),g=0;g<p.length;g++)A[p.charCodeAt(g)]=g;for(var m=function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),l=Array.isArray(u)?u:new Uint8Array(u);for(t=0;t<a;t+=4)n=A[e.charCodeAt(t)],r=A[e.charCodeAt(t+1)],i=A[e.charCodeAt(t+2)],o=A[e.charCodeAt(t+3)],l[c++]=n<<2|r>>4,l[c++]=(15&r)<<4|i>>2,l[c++]=(3&i)<<6|63&o;return u},y=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},v=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},b=5,w=11,C=2,_=w-b,S=65536>>b,x=1<<b,T=x-1,P=1024>>b,E=S+P,I=E,k=32,B=I+k,M=65536>>w,O=1<<_,D=O-1,R=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},L=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},N=function(e,t){var n=m(e),r=Array.isArray(n)?v(n):new Uint32Array(n),i=Array.isArray(n)?y(n):new Uint16Array(n),o=24,s=R(i,o/2,r[4]/2),a=2===r[5]?R(i,(o+r[4])/2):L(r,Math.ceil((o+r[4])/4));return new U(r[0],r[1],r[2],r[3],s,a)},U=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>b],t=(t<<C)+(e&T),this.data[t];if(e<=65535)return t=this.index[S+(e-55296>>b)],t=(t<<C)+(e&T),this.data[t];if(e<this.highStart)return t=B-M+(e>>w),t=this.index[t],t+=e>>b&D,t=this.index[t],t=(t<<C)+(e&T),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j="undefined"===typeof Uint8Array?[]:new Uint8Array(256),H=0;H<F.length;H++)j[F.charCodeAt(H)]=H;var z=
vendor: 52,891 bytes, line 84
84"KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",
vendor: 10,058 bytes, line 84
84Q=50,V=1,K=2,W=3,G=4,q=5,Y=7,X=8,Z=9,$=10,J=11,ee=12,te=13,ne=14,re=15,ie=16,oe=17,se=18,ae=19,ce=20,ue=21,le=22,he=23,de=24,fe=25,pe=26,Ae=27,ge=28,me=29,ye=30,ve=31,be=32,we=33,Ce=34,_e=35,Se=36,xe=37,Te=38,Pe=39,Ee=40,Ie=41,ke=42,Be=43,Me=[9001,65288],Oe="!",De="×",Re="÷",Le=N(z),Ne=[ye,Se],Ue=[V,K,W,q],Fe=[$,X],je=[Ae,pe],He=Ue.concat(Fe),ze=[Te,Pe,Ee,Ce,_e],Qe=[re,te],Ve=function(e,t){void 0===t&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(e,o){var s=Le.get(e);if(s>Q?(i.push(!0),s-=Q):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(ie);if(s===G||s===J){if(0===o)return r.push(o),n.push(ye);var a=n[o-1];return-1===He.indexOf(a)?(r.push(r[o-1]),n.push(a)):(r.push(o),n.push(ye))}return r.push(o),s===ve?n.push("strict"===t?ue:xe):s===ke||s===me?n.push(ye):s===Be?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(xe):n.push(ye):void n.push(s)}),[r,n,i]},Ke=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 s=r[o];if(s===t)return!0;if(s!==$)break}}if(i===$){o=n;while(o>0){o--;var a=r[o];if(Array.isArray(e)?-1!==e.indexOf(a):e===a){var c=n;while(c<=r.length){c++;s=r[c];if(s===t)return!0;if(s!==$)break}}if(a!==$)break}}return!1},We=function(e,t){var n=e;while(n>=0){var r=t[n];if(r!==$)return r;n--}return 0},Ge=function(e,t,n,r,i){if(0===n[r])return De;var o=r-1;if(Array.isArray(i)&&!0===i[o])return De;var s=o-1,a=o+1,c=t[o],u=s>=0?t[s]:0,l=t[a];if(c===K&&l===W)return De;if(-1!==Ue.indexOf(c))return Oe;if(-1!==Ue.indexOf(l))return De;if(-1!==Fe.indexOf(l))return De;if(We(o,t)===X)return Re;if(Le.get(e[o])===J)return De;if((c===be||c===we)&&Le.get(e[a])===J)return De;if(c===Y||l===Y)return De;if(c===Z)return De;if(-1===[$,te,re].indexOf(c)&&l===Z)return De;if(-1!==[oe,se,ae,de,ge].indexOf(l))return De;if(We(o,t)===le)return De;if(Ke(he,le,o,t))return De;if(Ke([oe,se],ue,o,t))return De;if(Ke(ee,ee,o,t))return De;if(c===$)return Re;if(c===he||l===he)return De;if(l===ie||c===ie)return Re;if(-1!==[te,re,ue].indexOf(l)||c===ne)return De;if(u===Se&&-1!==Qe.indexOf(c))return De;if(c===ge&&l===Se)return De;if(l===ce)return De;if(-1!==Ne.indexOf(l)&&c===fe||-1!==Ne.indexOf(c)&&l===fe)return De;if(c===Ae&&-1!==[xe,be,we].indexOf(l)||-1!==[xe,be,we].indexOf(c)&&l===pe)return De;if(-1!==Ne.indexOf(c)&&-1!==je.indexOf(l)||-1!==je.indexOf(c)&&-1!==Ne.indexOf(l))return De;if(-1!==[Ae,pe].indexOf(c)&&(l===fe||-1!==[le,re].indexOf(l)&&t[a+1]===fe)||-1!==[le,re].indexOf(c)&&l===fe||c===fe&&-1!==[fe,ge,de].indexOf(l))return De;if(-1!==[fe,ge,de,oe,se].indexOf(l)){var h=o;while(h>=0){var d=t[h];if(d===fe)return De;if(-1===[ge,de].indexOf(d))break;h--}}if(-1!==[Ae,pe].indexOf(l)){h=-1!==[oe,se].indexOf(c)?s:o;while(h>=0){d=t[h];if(d===fe)return De;if(-1===[ge,de].indexOf(d))break;h--}}if(Te===c&&-1!==[Te,Pe,Ce,_e].indexOf(l)||-1!==[Pe,Ce].indexOf(c)&&-1!==[Pe,Ee].indexOf(l)||-1!==[Ee,_e].indexOf(c)&&l===Ee)return De;if(-1!==ze.indexOf(c)&&-1!==[ce,pe].indexOf(l)||-1!==ze.indexOf(l)&&c===Ae)return De;if(-1!==Ne.indexOf(c)&&-1!==Ne.indexOf(l))return De;if(c===de&&-1!==Ne.indexOf(l))return De;if(-1!==Ne.concat(fe).indexOf(c)&&l===le&&-1===Me.indexOf(e[a])||-1!==Ne.concat(fe).indexOf(l)&&c===se)return De;if(c===Ie&&l===Ie){var f=n[o],p=1;while(f>0){if(f--,t[f]!==Ie)break;p++}if(p%2!==0)return De}return c===be&&l===we?De:Re},qe=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=Ve(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!==[fe,ye,ke].indexOf(e)?xe:e}));var s="keep-all"===t.wordBreak?o.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0;return[r,i,s]},Ye=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===Oe,this.start=n,this.end=r}return e.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Xe=function(e,t){var n=u(e),r=qe(n,t),i=r[0],o=r[1],s=r[2],a=n.length,c=0,l=0;return{next:function(){if(l>=a)return{done:!0,value:null};var e=De;while(l<a&&(e=Ge(n,o,i,++l,s))===De);if(e!==De||l===a){var t=new Ye(n,e,c,l);return c=l,{value:t,done:!1}}return{done:!0,value:null}}}},Ze=1,$e=2,Je=4,et=8,tt=10,nt=47,rt=92,it=9,ot=32,st=34,at=61,ct=35,ut=36,lt=37,ht=39,dt=40,ft=41,pt=95,At=45,gt=33,mt=60,yt=62,vt=64,bt=91,wt=93,Ct=61,_t=123,St=63,xt=125,Tt=124,Pt=126,Et=128,It=65533,kt=42,Bt=43,Mt=44,Ot=58,Dt=59,Rt=46,Lt=0,Nt=8,Ut=11,Ft=14,jt=31,Ht=127,zt=-1,Qt=48,Vt=97,Kt=101,Wt=102,Gt=117,qt=122,Yt=65,Xt=69,Zt=70,$t=85,Jt=90,en=function(e){return e>=Qt&&e<=57},tn=function(e){return e>=55296&&e<=57343},nn=function(e){return en(e)||e>=Yt&&e<=Zt||e>=Vt&&e<=Wt},rn=function(e){return e>=Vt&&e<=qt},on=function(e){return e>=Yt&&e<=Jt},sn=function(e){return rn(e)||on(e)},an=function(e){return e>=Et},cn=function(e){return e===tt||e===it||e===ot},un=function(e){return sn(e)||an(e)||e===pt},ln=function(e){return un(e)||en(e)||e===At},hn=function(e){return e>=Lt&&e<=Nt||e===Ut||e>=Ft&&e<=jt||e===Ht},dn=function(e,t){return e===rt&&t!==tt},fn=function(e,t,n){return e===At?un(t)||dn(t,n):!!un(e)||!(e!==rt||!dn(e,t))},pn=function(e,t,n){return e===Bt||e===At?!!en(t)||t===Rt&&en(n):en(e===Rt?t:e)},An=function(e){var t=0,n=1;e[t]!==Bt&&e[t]!==At||(e[t]===At&&(n=-1),t++);var r=[];while(en(e[t]))r.push(e[t++]);var i=r.length?parseInt(l.apply(void 0,r),10):0;e[t]===Rt&&t++;var o=[];while(en(e[t]))o.push(e[t++]);var s=o.length,a=s?parseInt(l.apply(void 0,o),10):0;e[t]!==Xt&&e[t]!==Kt||t++;var c=1;e[t]!==Bt&&e[t]!==At||(e[t]===At&&(c=-1),t++);var u=[];while(en(e[t]))u.push(e[t++]);var h=u.length?parseInt(l.apply(void 0,u),10):0;return n*(i+a*Math.pow(10,-s))*Math.pow(10,c*h)},gn={type:2},mn={type:3},yn={type:4},vn={type:13},bn={type:8},wn={type:21},Cn={type:9},_n={type:10},Sn={type:11},xn={type:12},Tn={type:14},Pn={type:23},En={type:1},In={type:25},kn={type:24},Bn={type:26},Mn={type:27},On={type:28},Dn={type:29},Rn={type:31},Ln={type:32},Nn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(u(e))},e.prototype.read=function(){var e=[],t=this.consumeToken();while(t!==Ln)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case st:return this.consumeStringToken(st);case ct:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ln(t)||dn(n,r)){var i=fn(t,n,r)?$e:Ze,o=this.consumeName();return{type:5,value:o,flags:i}}break;case ut:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),vn;break;case ht:return this.consumeStringToken(ht);case dt:return gn;case ft:return mn;case kt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),Tn;break;case Bt:if(pn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Mt:return yn;case At:var s=e,a=this.peekCodePoint(0),c=this.peekCodePoint(1);if(pn(s,a,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fn(s,a,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===At&&c===yt)return this.consumeCodePoint(),this.consumeCodePoint(),kn;break;case Rt:if(pn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case nt:if(this.peekCodePoint(0)===kt){this.consumeCodePoint();while(1){var u=this.consumeCodePoint();if(u===kt&&(u=this.consumeCodePoint(),u===nt))return this.consumeToken();if(u===zt)return this.consumeToken()}}break;case Ot:return Bn;case Dt:return Mn;case mt:if(this.peekCodePoint(0)===gt&&this.peekCodePoint(1)===At&&this.peekCodePoint(2)===At)return this.consumeCodePoint(),this.consumeCodePoint(),In;break;case vt:var h=this.peekCodePoint(0),d=this.peekCodePoint(1),f=this.peekCodePoint(2);if(fn(h,d,f)){o=this.consumeName();return{type:7,value:o}}break;case bt:return On;case rt:if(dn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case wt:return Dn;case Ct:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),bn;break;case _t:return Sn;case xt:return xn;case Gt:case $t:var p=this.peekCodePoint(0),A=this.peekCodePoint(1);return p!==Bt||!nn(A)&&A!==St||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Tt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),Cn;if(this.peekCodePoint(0)===Tt)return this.consumeCodePoint(),wn;break;case Pt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),_n;break;case zt:return Ln}return cn(e)?(this.consumeWhiteSpace(),Rn):en(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):un(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:l(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===St&&e.length<6)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(l.apply(void 0,e.map(function(e){return e===St?Qt:e})),16),i=parseInt(l.apply(void 0,e.map(function(e){return e===St?Zt:e})),16);return{type:30,start:r,end:i}}var o=parseInt(l.apply(void 0,e),16);if(this.peekCodePoint(0)===At&&nn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var s=[];while(nn(t)&&s.length<6)s.push(t),t=this.consumeCodePoint();i=parseInt(l.apply(void 0,s),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)===dt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===dt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];
84if(this.consumeWhiteSpace(),this.peekCodePoint(0)===zt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===ht||t===st){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===zt||this.peekCodePoint(0)===ft)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Pn)}while(1){var r=this.consumeCodePoint();if(r===zt||r===ft)return{type:22,value:l.apply(void 0,e)};if(cn(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===zt||this.peekCodePoint(0)===ft?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Pn);if(r===st||r===ht||r===dt||hn(r))return this.consumeBadUrlRemnants(),Pn;if(r===rt){if(!dn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Pn;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){while(cn(this.peekCodePoint(0)))this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){while(1){var e=this.consumeCodePoint();if(e===ft||e===zt)return;dn(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+=l.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===zt||void 0===r||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===tt)return this._value.splice(0,n),En;if(r===rt){var i=this._value[n+1];i!==zt&&void 0!==i&&(i===tt?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):dn(r,i)&&(t+=this.consumeStringSlice(n),t+=l(this.consumeEscapedCodePoint()),n=-1))}n++}while(1)},e.prototype.consumeNumber=function(){var e=[],t=Je,n=this.peekCodePoint(0);n!==Bt&&n!==At||e.push(this.consumeCodePoint());while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Rt&&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===Xt||n===Kt)&&((r===Bt||r===At)&&en(i)||en(r))){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}return[An(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(fn(r,i,o)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return r===lt?(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=l(e);while(nn(this.peekCodePoint(0))&&t.length<6)t+=l(this.consumeCodePoint());cn(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||tn(n)||n>1114111?It:n}return e===zt?It:e},e.prototype.consumeName=function(){var e="";while(1){var t=this.consumeCodePoint();if(ln(t))e+=l(t);else{if(!dn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=l(this.consumeEscapedCodePoint())}}},e}(),Un=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Nn;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||Gn(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?Ln:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Fn=function(e){return 15===e.type},jn=function(e){return 17===e.type},Hn=function(e){return 20===e.type},zn=function(e){return 0===e.type},Qn=function(e,t){return Hn(e)&&e.value===t}
vendor: 4,125 bytes, line 84
84,Vn=function(e){return 31!==e.type},Kn=function(e){return 31!==e.type&&4!==e.type},Wn=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},Gn=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},qn=function(e){return 17===e.type||15===e.type},Yn=function(e){return 16===e.type||qn(e)},Xn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Zn={type:17,number:0,flags:Je},$n={type:16,number:50,flags:Je},Jn={type:16,number:100,flags:Je},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(Fn(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",sr={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")}},ar=function(e){return 15===e.type&&(e.unit===nr||e.unit===rr||e.unit===ir||e.unit===or)},cr=function(e){var t=e.filter(Hn).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Zn,Zn];case"to top":case"bottom":return ur(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Zn,Jn];case"to right":case"left":return ur(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Jn,Jn];case"to bottom":case"top":return ur(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Jn,Zn];case"to left":case"right":return ur(270)}return 0},ur=function(e){return Math.PI*e/180},lr={name:"color",parse:function(e,t){if(18===t.type){var n=yr[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 fr(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 s=t.value.substring(3,4);return fr(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(s+s,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 fr(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),s=t.value.substring(6,8);return fr(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(s,16)/255)}}if(20===t.type){var a=br[t.value.toUpperCase()];if("undefined"!==typeof a)return a}return br.TRANSPARENT}},hr=function(e){return 0===(255&e)},dr=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+")"},fr=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},pr=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},Ar=function(e,t){var n=t.filter(Kn);if(3===n.length){var r=n.map(pr),i=r[0],o=r[1],s=r[2];return fr(i,o,s,1)}if(4===n.length){var a=n.map(pr),c=(i=a[0],o=a[1],s=a[2],a[3]);return fr(i,o,s,c)}return 0};function gr(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 mr=function(e,t){var n=t.filter(Kn),r=n[0],i=n[1],o=n[2],s=n[3],a=(17===r.type?ur(r.number):sr.parse(e,r))/(2*Math.PI),c=Yn(i)?i.number/100:0,u=Yn(o)?o.number/100:0,l="undefined"!==typeof s&&Yn(s)?tr(s,1):1;if(0===c)return fr(255*u,255*u,255*u,1);var h=u<=.5?u*(c+1):u+c-u*c,d=2*u-h,f=gr(d,h,a+1/3),p=gr(d,h,a),A=gr(d,h,a-1/3);return fr(255*f,255*p,255*A,l)},yr={hsl:mr,hsla:mr,rgb:Ar,rgba:Ar},vr=function(e,t){return lr.parse(e,Un.create(t).parseComponentValue())},br
vendor: 3,054 bytes, line 84
84={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},
vendor: 24,241 bytes, line 84
84wr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Hn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Cr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_r=function(e,t){var n=lr.parse(e,t[0]),r=t[1];return r&&Yn(r)?{color:n,stop:r}:{color:n,stop:null}},Sr=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Zn),null===r.stop&&(r.stop=Jn);for(var i=[],o=0,s=0;s<e.length;s++){var a=e[s].stop;if(null!==a){var c=tr(a,t);c>o?i.push(c):i.push(o),o=c}else i.push(null)}var u=null;for(s=0;s<i.length;s++){var l=i[s];if(null===l)null===u&&(u=s);else if(null!==u){for(var h=s-u,d=i[u-1],f=(l-d)/(h+1),p=1;p<=h;p++)i[u+p-1]=f*p;u=null}}return e.map(function(e,n){var r=e.color;return{color:r,stop:Math.max(Math.min(1,i[n]/t),0)}})},xr=function(e,t,n){var r=t/2,i=n/2,o=tr(e[0],t)-r,s=i-tr(e[1],n);return(Math.atan2(s,o)+2*Math.PI)%(2*Math.PI)},Tr=function(e,t,n){var r="number"===typeof e?e:xr(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),o=t/2,s=n/2,a=i/2,c=Math.sin(r-Math.PI/2)*a,u=Math.cos(r-Math.PI/2)*a;return[i,o-u,o+u,s-c,s+c]},Pr=function(e,t){return Math.sqrt(e*e+t*t)},Er=function(e,t,n,r,i){var o=[[0,0],[0,t],[e,0],[e,t]];return o.reduce(function(e,t){var o=t[0],s=t[1],a=Pr(n-o,r-s);return(i?a<e.optimumDistance:a>e.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Ir=function(e,t,n,r,i){var o=0,s=0;switch(e.size){case 0:0===e.shape?o=s=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)),s=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===e.shape)o=s=Math.min(Pr(t,n),Pr(t,n-i),Pr(t-r,n),Pr(t-r,n-i));else if(1===e.shape){var a=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),c=Er(r,i,t,n,!0),u=c[0],l=c[1];o=Pr(u-t,(l-n)/a),s=a*o}break;case 1:0===e.shape?o=s=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)),s=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===e.shape)o=s=Math.max(Pr(t,n),Pr(t,n-i),Pr(t-r,n),Pr(t-r,n-i));else if(1===e.shape){a=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var h=Er(r,i,t,n,!1);u=h[0],l=h[1];o=Pr(u-t,(l-n)/a),s=a*o}break}return Array.isArray(e.size)&&(o=tr(e.size[0],r),s=2===e.size.length?tr(e.size[1],i):o),[o,s]},kr=function(e,t){var n=ur(180),r=[];return Wn(t).forEach(function(t,i){if(0===i){var o=t[0];if(20===o.type&&"to"===o.value)return void(n=cr(t));if(ar(o))return void(n=sr.parse(e,o))}var s=_r(e,t);r.push(s)}),{angle:n,stops:r,type:1}},Br=function(e,t){var n=ur(180),r=[];return Wn(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=cr(t));if(ar(o))return void(n=(sr.parse(e,o)+ur(270))%ur(360))}var s=_r(e,t);r.push(s)}),{angle:n,stops:r,type:1}},Mr=function(e,t){var n=ur(180),r=[],i=1,o=0,s=3,a=[];return Wn(t).forEach(function(t,n){var o=t[0];if(0===n){if(Hn(o)&&"linear"===o.value)return void(i=1);if(Hn(o)&&"radial"===o.value)return void(i=2)}if(18===o.type)if("from"===o.name){var s=lr.parse(e,o.values[0]);r.push({stop:Zn,color:s})}else if("to"===o.name){s=lr.parse(e,o.values[0]);r.push({stop:Jn,color:s})}else if("color-stop"===o.name){var a=o.values.filter(Kn);if(2===a.length){s=lr.parse(e,a[1]);var c=a[0];jn(c)&&r.push({stop:{type:16,number:100*c.number,flags:c.flags},color:s})}}}),1===i?{angle:(n+ur(180))%ur(360),stops:r,type:i}:{size:s,shape:o,stops:r,position:a,type:i}},Or="closest-side",Dr="farthest-side",Rr="closest-corner",Lr="farthest-corner",Nr="circle",Ur="ellipse",Fr="cover",jr="contain",Hr=function(e,t){var n=0,r=3,i=[],o=[];return Wn(t).forEach(function(t,s){var a=!0;if(0===s){var c=!1;a=t.reduce(function(e,t){if(c)if(Hn(t))switch(t.value){case"center":return o.push($n),e;case"top":case"left":return o.push(Zn),e;case"right":case"bottom":return o.push(Jn),e}else(Yn(t)||qn(t))&&o.push(t);else if(Hn(t))switch(t.value){case Nr:return n=0,!1;case Ur:return n=1,!1;case"at":return c=!0,!1;case Or:return r=0,!1;case Fr:case Dr:return r=1,!1;case jr:case Rr:return r=2,!1;case Lr:return r=3,!1}else if(qn(t)||Yn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)}if(a){var u=_r(e,t);i.push(u)}}),{size:r,shape:n,stops:i,position:o,type:2}},zr=function(e,t){var n=0,r=3,i=[],o=[];return Wn(t).forEach(function(t,s){var a=!0;if(0===s?a=t.reduce(function(e,t){if(Hn(t))switch(t.value){case"center":return o.push($n),!1;case"top":case"left":return o.push(Zn),!1;case"right":case"bottom":return o.push(Jn),!1}else if(Yn(t)||qn(t))return o.push(t),!1;return e},a):1===s&&(a=t.reduce(function(e,t){if(Hn(t))switch(t.value){case Nr:return n=0,!1;case Ur:return n=1,!1;case jr:case Or:return r=0,!1;case Dr:return r=1,!1;case Rr:return r=2,!1;case Fr:case Lr:return r=3,!1}else if(qn(t)||Yn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)),a){var c=_r(e,t);i.push(c)}}),{size:r,shape:n,stops:i,position:o,type:2}},Qr=function(e){return 1===e.type},Vr=function(e){return 2===e.type},Kr={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=qr[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 Wr(e){return!(20===e.type&&"none"===e.value)&&(18!==e.type||!!qr[e.name])}var Gr,qr={"linear-gradient":kr,"-moz-linear-gradient":Br,"-ms-linear-gradient":Br,"-o-linear-gradient":Br,"-webkit-linear-gradient":Br,"radial-gradient":Hr,"-moz-radial-gradient":zr,"-ms-radial-gradient":zr,"-o-radial-gradient":zr,"-webkit-radial-gradient":zr,"-webkit-gradient":Mr},Yr={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 Kn(e)&&Wr(e)}).map(function(t){return Kr.parse(e,t)})}},Xr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Hn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Zr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Wn(t).map(function(e){return e.filter(Yn)}).map(Xn)}},$r={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Wn(t).map(function(e){return e.filter(Hn).map(function(e){return e.value}).join(" ")}).map(Jr)}},Jr=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"})(Gr||(Gr={}));var ei,ti={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Wn(t).map(function(e){return e.filter(ni)})}},ni=function(e){return Hn(e)||Yn(e)},ri=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ii=ri("top"),oi=ri("right"),si=ri("bottom"),ai=ri("left"),ci=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Xn(t.filter(Yn))}}},ui=ci("top-left"),li=ci("top-right"),hi=ci("bottom-right"),di=ci("bottom-left"),fi=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}}},pi=fi("top"),Ai=fi("right"),gi=fi("bottom"),mi=fi("left"),yi=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Fn(t)?t.number:0}}},vi=yi("top"),bi=yi("right"),wi=yi("bottom"),Ci=yi("left"),_i={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Si={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},xi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Hn).reduce(function(e,t){return e|Ti(t.value)},0)}},Ti=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},Pi={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}},Ei={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 Ii,ki={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}}},Bi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Mi=function(e,t){return Hn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Yn(e)?tr(e,t):t},Oi={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Kr.parse(e,t)}},Di={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}}},Ri={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}}},Li=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Ni=Li("top"),Ui=Li("right"),Fi=Li("bottom"),ji=Li("left"),Hi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Hn).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}})}},zi={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"}}},Qi=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Vi=Qi("top"),Ki=Qi("right"),Wi=Qi("bottom"),Gi=Qi("left"),qi={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}}},Yi={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}},Xi={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Qn(t[0],"none")?[]:Wn(t).map(function(t){for(var n={color:br.TRANSPARENT,offsetX:Zn,offsetY:Zn,blur:Zn},r=0,i=0;i<t.length;i++){var o=t[i];qn(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:n.blur=o,r++):n.color=lr.parse(e,o)}return n})}},Zi={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},$i={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=to[t.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Ji=function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},eo=function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],o=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],a=t[13];return t[14],t[15],16===t.length?[n,r,i,o,s,a]:null},to={matrix:Ji,matrix3d:eo},no={type:16,number:50,flags:Je},ro=[no,no],io={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Yn);return 2!==n.length?ro:[n[0],n[1]]}},oo={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(e){e["NORMAL"]="normal",e["BREAK_ALL"]="break-all",e["KEEP_ALL"]="keep-all"})(Ii||(Ii={}));for(var so={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Ii.BREAK_ALL;case"keep-all":return Ii.KEEP_ALL;case"normal":default:return Ii.NORMAL}}},ao={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(jn(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},co={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},uo={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return jn(t)?t.number:1}},lo={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ho={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Hn).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},fo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0;break}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},po={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ao={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(jn(t))return t.number;if(Hn(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},go={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Hn).map(function(e){return e.value})}},mo={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},yo=function(e,t){return 0!==(e&t)},vo={name:"content",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}},bo={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=t.filter(Vn),o=0;o<i.length;o++){var s=i[o],a=i[o+1];if(20===s.type){var c=a&&jn(a)?a.number:1;r.push({counter:s.value,increment:c})}}return r}},wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(Vn),i=0;i<r.length;i++){var o=r[i],s=r[i+1];if(Hn(o)&&"none"!==o.value){var a=s&&jn(s)?s.number:0;n.push({counter:o.value,reset:a})}}return n}},Co={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Fn).map(function(t){return co.parse(e,t)})}},_o={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=t.filter(zn);if(i.length%2!==0)return null;for(var o=0;o<i.length;o+=2){var s=i[o].value,a=i[o+1].value;r.push({open:s,close:a})}return r}},So=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},xo={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Qn(t[0],"none")?[]:Wn(t).map(function(t){for(var n={color:255,offsetX:Zn,offsetY:Zn,blur:Zn,spread:Zn,inset:!1},r=0,i=0;i<t.length;i++){var o=t[i];Qn(o,"inset")?n.inset=!0:qn(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:2===r?n.blur=o:n.spread=o,r++):n.color=lr.parse(e,o)}return n})}},To={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[0,1,2],r=[];return t.filter(Hn).forEach(function(e){switch(e.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),n.forEach(function(e){-1===r.indexOf(e)&&r.push(e)}),r}},Po={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Eo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Fn(t)?t.number:0}},Io=function(){function e(e,t){var n,r;this.animationDuration=Mo(e,Co,t.animationDuration),this.backgroundClip=Mo(e,wr,t.backgroundClip),this.backgroundColor=Mo(e,Cr,t.backgroundColor),this.backgroundImage=Mo(e,Yr,t.backgroundImage),this.backgroundOrigin=Mo(e,Xr,t.backgroundOrigin),this.backgroundPosition=Mo(e,Zr,t.backgroundPosition),this.backgroundRepeat=Mo(e,$r,t.backgroundRepeat),this.backgroundSize=Mo(e,ti,t.backgroundSize),this.borderTopColor=Mo(e,ii,t.borderTopColor),this.borderRightColor=Mo(e,oi,t.borderRightColor),this.borderBottomColor=Mo(e,si,t.borderBottomColor),this.borderLeftColor=Mo(e,ai,t.borderLeftColor),this.borderTopLeftRadius=Mo(e,ui,t.borderTopLeftRadius),this.borderTopRightRadius=Mo(e,li,t.borderTopRightRadius),this.borderBottomRightRadius=Mo(e,hi,t.borderBottomRightRadius),this.borderBottomLeftRadius=Mo(e,di,t.borderBottomLeftRadius),this.borderTopStyle=Mo(e,pi,t.borderTopStyle),this.borderRightStyle=Mo(e,Ai,t.borderRightStyle),this.borderBottomStyle=Mo(e,gi,t.borderBottomStyle),this.borderLeftStyle=Mo(e,mi,t.borderLeftStyle),this.borderTopWidth=Mo(e,vi,t.borderTopWidth),this.borderRightWidth=Mo(e,bi,t.borderRightWidth),this.borderBottomWidth=Mo(e,wi,t.borderBottomWidth),this.borderLeftWidth=Mo(e,Ci,t.borderLeftWidth),this.boxShadow=Mo(e,xo,t.boxShadow),this.color=Mo(e,_i,t.color),this.direction=Mo(e,Si,t.direction),this.display=Mo(e,xi,t.display),this.float=Mo(e,Pi,t.cssFloat),this.fontFamily=Mo(e,fo,t.fontFamily),this.fontSize=Mo(e,po,t.fontSize),this.fontStyle=Mo(e,mo,t.fontStyle),this.fontVariant=Mo(e,go,t.fontVariant),this.fontWeight=Mo(e,Ao,t.fontWeight),this.letterSpacing=Mo(e,Ei,t.letterSpacing),this.lineBreak=Mo(e,ki,t.lineBreak),this.lineHeight=Mo(e,Bi,t.lineHeight),this.listStyleImage=Mo(e,Oi,t.listStyleImage),this.listStylePosition=Mo(e,Di,t.listStylePosition),this.listStyleType=Mo(e,Ri,t.listStyleType),this.marginTop=Mo(e,Ni,t.marginTop),this.marginRight=Mo(e,Ui,t.marginRight),this.marginBottom=Mo(e,Fi,t.marginBottom),this.marginLeft=Mo(e,ji,t.marginLeft),this.opacity=Mo(e,uo,t.opacity);var i=Mo(e,Hi,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Mo(e,zi,t.overflowWrap),this.paddingTop=Mo(e,Vi,t.paddingTop),this.paddingRight=Mo(e,Ki,t.paddingRight),this.paddingBottom=Mo(e,Wi,t.paddingBottom),this.paddingLeft=Mo(e,Gi,t.paddingLeft),this.paintOrder=Mo(e,To,t.paintOrder),this.position=Mo(e,Yi,t.position),this.textAlign=Mo(e,qi,t.textAlign),this.textDecorationColor=Mo(e,lo,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=Mo(e,ho,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Mo(e,Xi,t.textShadow),this.textTransform=Mo(e,Zi,t.textTransform),this.transform=Mo(e,$i,t.transform),this.transformOrigin=Mo(e,io,t.transformOrigin),this.visibility=Mo(e,oo,t.visibility),this.webkitTextStrokeColor=Mo(e,Po,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Mo(e,Eo,t.webkitTextStrokeWidth),this.wordBreak=Mo(e,so,t.wordBreak),this.zIndex=Mo(e,ao,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 yo(this.display,4)||yo(this.display,33554432)||yo(this.display,268435456)||yo(this.display,536870912)||yo(this.display,67108864)||yo(this.display,134217728)},e}(),ko=function(){function e(e,t){this.content=Mo(e,vo,t.content),this.quotes=Mo(e,_o,t.quotes)}return e}(),Bo=function(){function e(e,t){this.counterIncrement=Mo(e,bo,t.counterIncrement),this.counterReset=Mo(e,wo,t.counterReset)}return e}(),Mo=function(e,t,n){var r=new Nn,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 s=o.parseComponentValue();return t.parse(e,Hn(s)?s.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 sr.parse(e,o.parseComponentValue());case"color":return lr.parse(e,o.parseComponentValue());case"image":return Kr.parse(e,o.parseComponentValue());case"length":var a=o.parseComponentValue();return qn(a)?a:Zn;case"length-percentage":var c=o.parseComponentValue();return Yn(c)?c:Zn;case"time":return co.parse(e,o.parseComponentValue())}break}},Oo="data-html2canvas-debug",Do=function(e){var t=e.getAttribute(Oo);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ro=function(e,t){var n=Do(e);return 1===n||t===n},Lo=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Ro(t,3),this.styles=new Io(e,window.getComputedStyle(t,null)),ka(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),Ro(t,4)&&(this.flags|=16)}return e}(),No=
vendor: 26,159 bytes, line 84
84"AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",
84Uo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 20,973 bytes, line 84
84+/",Fo="undefined"===typeof Uint8Array?[]:new Uint8Array(256),jo=0;jo<Uo.length;jo++)Fo[Uo.charCodeAt(jo)]=jo;for(var Ho=function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),l=Array.isArray(u)?u:new Uint8Array(u);for(t=0;t<a;t+=4)n=Fo[e.charCodeAt(t)],r=Fo[e.charCodeAt(t+1)],i=Fo[e.charCodeAt(t+2)],o=Fo[e.charCodeAt(t+3)],l[c++]=n<<2|r>>4,l[c++]=(15&r)<<4|i>>2,l[c++]=(3&i)<<6|63&o;return u},zo=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},Qo=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},Vo=5,Ko=11,Wo=2,Go=Ko-Vo,qo=65536>>Vo,Yo=1<<Vo,Xo=Yo-1,Zo=1024>>Vo,$o=qo+Zo,Jo=$o,es=32,ts=Jo+es,ns=65536>>Ko,rs=1<<Go,is=rs-1,os=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},ss=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},as=function(e,t){var n=Ho(e),r=Array.isArray(n)?Qo(n):new Uint32Array(n),i=Array.isArray(n)?zo(n):new Uint16Array(n),o=24,s=os(i,o/2,r[4]/2),a=2===r[5]?os(i,(o+r[4])/2):ss(r,Math.ceil((o+r[4])/4));return new cs(r[0],r[1],r[2],r[3],s,a)},cs=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Vo],t=(t<<Wo)+(e&Xo),this.data[t];if(e<=65535)return t=this.index[qo+(e-55296>>Vo)],t=(t<<Wo)+(e&Xo),this.data[t];if(e<this.highStart)return t=ts-ns+(e>>Ko),t=this.index[t],t+=e>>Vo&is,t=this.index[t],t=(t<<Wo)+(e&Xo),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),us="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ls="undefined"===typeof Uint8Array?[]:new Uint8Array(256),hs=0;hs<us.length;hs++)ls[us.charCodeAt(hs)]=hs;var ds,fs=1,ps=2,As=3,gs=4,ms=5,ys=7,vs=8,bs=9,ws=10,Cs=11,_s=12,Ss=13,xs=14,Ts=15,Ps=function(e){var t=[],n=0,r=e.length;while(n<r){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320===(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},Es=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";var r=[],i=-1,o="";while(++i<n){var s=e[i];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},Is=as(No),ks="×",Bs="÷",Ms=function(e){return Is.get(e)},Os=function(e,t,n){var r=n-2,i=t[r],o=t[n-1],s=t[n];if(o===ps&&s===As)return ks;if(o===ps||o===As||o===gs)return Bs;if(s===ps||s===As||s===gs)return Bs;if(o===vs&&-1!==[vs,bs,Cs,_s].indexOf(s))return ks;if((o===Cs||o===bs)&&(s===bs||s===ws))return ks;if((o===_s||o===ws)&&s===ws)return ks;if(s===Ss||s===ms)return ks;if(s===ys)return ks;if(o===fs)return ks;if(o===Ss&&s===xs){while(i===ms)i=t[--r];if(i===xs)return ks}if(o===Ts&&s===Ts){var a=0;while(i===Ts)a++,i=t[--r];if(a%2===0)return ks}return Bs},Ds=function(e){var t=Ps(e),n=t.length,r=0,i=0,o=t.map(Ms);return{next:function(){if(r>=n)return{done:!0,value:null};var e=ks;while(r<n&&(e=Os(t,o,++r))===ks);if(e!==ks||r===n){var s=Es.apply(null,t.slice(i,r));return i=r,{value:s,done:!1}}return{done:!0,value:null}}}},Rs=function(e){var t,n=Ds(e),r=[];while(!(t=n.next()).done)t.value&&r.push(t.value.slice());return r},Ls=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=t+"px",r.style.display="block",e.body.appendChild(r),n.selectNode(r);var i=n.getBoundingClientRect(),o=Math.round(i.height);if(e.body.removeChild(r),o===t)return!0}}return!1},Ns=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"===typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,i=u(r.data).map(function(e){return l(e)}),o=0,s={},a=i.every(function(e,t){n.setStart(r,o),n.setEnd(r,o+e.length);var i=n.getBoundingClientRect();o+=e.length;var a=i.x>s.x||i.y>s.y;return s=i,0===t||a});return e.body.removeChild(t),a},Us=function(){return"undefined"!==typeof(new Image).crossOrigin},Fs=function(){return"string"===typeof(new XMLHttpRequest).responseType},js=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(Kt){return!1}return!0},Hs=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},zs=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 s=Qs(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Vs(s).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 s=e.createElement("div");return s.style.backgroundImage="url("+o+")",s.style.height=n+"px",Hs(i)?Vs(Qs(n,n,0,0,s)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),Hs(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})},Qs=function(e,t,n,r,i){var o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(i),s},Vs=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))})},Ks={get SUPPORT_RANGE_BOUNDS(){var e=Ls(document);return Object.defineProperty(Ks,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Ks.SUPPORT_RANGE_BOUNDS&&Ns(document);return Object.defineProperty(Ks,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=js(document);return Object.defineProperty(Ks,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?zs(document):Promise.resolve(!1);return Object.defineProperty(Ks,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Us();return Object.defineProperty(Ks,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Fs();return Object.defineProperty(Ks,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ks,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Ks,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Ws=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Gs=function(e,t,n,r){var i=$s(t,n),o=[],a=0;return i.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Ks.SUPPORT_RANGE_BOUNDS){var i=Ys(r,a,t.length).getClientRects();if(i.length>1){var c=Xs(t),u=0;c.forEach(function(t){o.push(new Ws(t,s.fromDOMRectList(e,Ys(r,u+a,t.length).getClientRects()))),u+=t.length})}else o.push(new Ws(t,s.fromDOMRectList(e,i)))}else{var l=r.splitText(t.length);o.push(new Ws(t,qs(e,r))),r=l}else Ks.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length}),o},qs=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=a(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}return s.EMPTY},Ys=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},Xs=function(e){if(Ks.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 Rs(e)},Zs=function(e,t){if(Ks.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 ea(e,t)},$s=function(e,t){return 0!==t.letterSpacing?Xs(e):Zs(e,t)},Js=[32,160,4961,65792,65793,4153,4241],ea=function(e,t){var n,r=Xe(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=u(e),r="";t.forEach(function(e){-1===Js.indexOf(e)?r+=l(e):(r.length&&i.push(r),i.push(l(e)),r="")}),r.length&&i.push(r)}};while(!(n=r.next()).done)o();return i},ta=function(){function e(e,t,n){this.text=na(t.data,n.textTransform),this.textBounds=Gs(e,this.text,n,t)}return e}(),na=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(ra,ia);case 2:return e.toUpperCase();default:return e}},ra=/(^|\s|:|-|\(|\))([a-z])/g,ia=function(e,t,n){return e.length>0?t+n.toUpperCase():e},oa=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}(Lo),sa=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}(Lo),aa=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,o=a(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}(Lo),ca=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}(Lo),ua=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}(Lo),la=[{type:15,flags:0,unit:"px",number:3}],ha=[{type:16,flags:0,number:50}],da=function(e){return e.width>e.height?new s(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new s(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},fa=function(e){var t=e.type===ga?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},pa="checkbox",Aa="radio",ga="password",ma=707406591,ya=function(e){function n(t,n){var r=e.call(this,t,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=fa(n),r.type!==pa&&r.type!==Aa||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=da(r.bounds)),r.type){case pa:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=la;break;case Aa:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ha;break}return r}return t(n,e),n}(Lo),va=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return t(n,e),n}(Lo),ba=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}(Lo),wa=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=xa(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?vr(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):br.TRANSPARENT,o=n.contentWindow.document.body?vr(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):br.TRANSPARENT;r.backgroundColor=hr(i)?hr(o)?r.styles.backgroundColor:o:i}}catch(Kt){}return r}return t(n,e),n}(Lo),Ca=["OL","UL","MENU"],_a=function(e,t,n,r){for(var i=t.firstChild,o=void 0;i;i=o)if(o=i.nextSibling,Ea(i)&&i.data.trim().length>0)n.textNodes.push(new ta(e,i,n.styles));else if(Ia(i))if(Wa(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return _a(e,t,n,r)});else{var s=Sa(e,i);s.styles.isVisible()&&(Ta(i,s,r)?s.flags|=4:Pa(s.styles)&&(s.flags|=2),-1!==Ca.indexOf(i.tagName)&&(s.flags|=8),n.elements.push(s),i.slot,i.shadowRoot?_a(e,i.shadowRoot,s,r):Va(i)||La(i)||Ka(i)||_a(e,i,s,r))}},Sa=function(e,t){return ja(t)?new oa(e,t):Ua(t)?new sa(e,t):La(t)?new aa(e,t):Ma(t)?new ca(e,t):Oa(t)?new ua(e,t):Da(t)?new ya(e,t):Ka(t)?new va(e,t):Va(t)?new ba(e,t):Ha(t)?new wa(e,t):new Lo(e,t)},xa=function(e,t){var n=Sa(e,t);return n.flags|=4,_a(e,t,n,n),n},Ta=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Na(e)&&n.styles.isTransparent()},Pa=function(e){return e.isPositioned()||e.isFloating()},Ea=function(e){return e.nodeType===Node.TEXT_NODE},Ia=function(e){return e.nodeType===Node.ELEMENT_NODE},ka=function(e){return Ia(e)&&"undefined"!==typeof e.style&&!Ba(e)},Ba=function(e){return"object"===typeof e.className},Ma=function(e){return"LI"===e.tagName},Oa=function(e){return"OL"===e.tagName},Da=function(e){return"INPUT"===e.tagName},Ra=function(e){return"HTML"===e.tagName},La=function(e){return"svg"===e.tagName},Na=function(e){return"BODY"===e.tagName},Ua=function(e){return"CANVAS"===e.tagName},Fa=function(e){return"VIDEO"===e.tagName},ja=function(e){return"IMG"===e.tagName},Ha=function(e){return"IFRAME"===e.tagName},za=function(e){return"STYLE"===e.tagName},Qa=function(e){return"SCRIPT"===e.tagName},Va=function(e){return"TEXTAREA"===e.tagName},Ka=function(e){return"SELECT"===e.tagName},Wa=function(e){return"SLOT"===e.tagName},Ga=function(e){return e.tagName.indexOf("-")>0},qa=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}(),Ya={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"]},Xa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Za={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},$a={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ja=function(e,t,n,r,i,o){return e<t||e>n?dc(e,i,o.length>0):r.integers.reduce(function(t,n,i){while(e>=n)e-=n,t+=r.values[i];return t},"")+o},ec=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},tc=function(e,t,n,r,i){var o=n-t+1;return(e<0?"-":"")+(ec(Math.abs(e),o,r,function(e){return l(Math.floor(e%o)+t)})+i)},nc=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return ec(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},rc=1,ic=2,oc=4,sc=8,ac=function(e,t,n,r,i,o){if(e<-9999||e>9999)return dc(e,4,i.length>0);var s=Math.abs(e),a=i;if(0===s)return t[0]+a;for(var c=0;s>0&&c<=4;c++){var u=s%10;0===u&&yo(o,rc)&&""!==a?a=t[u]+a:u>1||1===u&&0===c||1===u&&1===c&&yo(o,ic)||1===u&&1===c&&yo(o,oc)&&e>100||1===u&&c>1&&yo(o,sc)?a=t[u]+(c>0?n[c-1]:"")+a:1===u&&c>0&&(a=n[c-1]+a),s=Math.floor(s/10)}return(e<0?r:"")+a},cc="十百千萬",uc="拾佰仟萬",lc="マイナス",hc="마이너스",dc=function(e,t,n){var r=n?". ":"",i=n?"、":"",o=n?", ":"",s=n?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=tc(e,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return nc(e,"〇一二三四五六七八九",i);case 6:return Ja(e,1,3999,Ya,3,r).toLowerCase();case 7:return Ja(e,1,3999,Ya,3,r);case 8:return tc(e,945,969,!1,r);case 9:return tc(e,97,122,!1,r);case 10:return tc(e,65,90,!1,r);case 11:return tc(e,1632,1641,!0,r);case 12:case 49:return Ja(e,1,9999,Xa,3,r);case 35:return Ja(e,1,9999,Xa,3,r).toLowerCase();case 13:return tc(e,2534,2543,!0,r);case 14:case 30:return tc(e,6112,6121,!0,r);case 15:return nc(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return nc(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return ac(e,"零一二三四五六七八九",cc,"負",i,ic|oc|sc);case 47:return ac(e,"零壹貳參肆伍陸柒捌玖",uc,"負",i,rc|ic|oc|sc);case 42:return ac(e,"零一二三四五六七八九",cc,"负",i,ic|oc|sc);case 41:return ac(e,"零壹贰叁肆伍陆柒捌玖",uc,"负",i,rc|ic|oc|sc);case 26:return ac(e,"〇一二三四五六七八九","十百千万",lc,i,0);case 25:return ac(e,"零壱弐参四伍六七八九","拾百千万",lc,i,rc|ic|oc);case 31:return ac(e,"영일이삼사오육칠팔구","십백천만",hc,o,rc|ic|oc);case 33:return ac(e,"零一二三四五六七八九","十百千萬",hc,o,0);case 32:return ac(e,"零壹貳參四五六七八九","拾百千",hc,o,rc|ic|oc);case 18:return tc(e,2406,2415,!0,r);case 20:return Ja(e,1,19999,$a,3,r);case 21:return tc(e,2790,2799,!0,r);case 22:return tc(e,2662,2671,!0,r);case 22:return Ja(e,1,10999,Za,3,r);case 23:return nc(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return nc(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return tc(e,3302,3311,!0,r);case 28:return nc(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return nc(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return tc(e,3792,3801,!0,r);case 37:return tc(e,6160,6169,!0,r);case 38:return tc(e,4160,4169,!0,r);case 39:return tc(e,2918,2927,!0,r);case 40:return tc(e,1776,1785,!0,r);case 43:return tc(e,3046,3055,!0,r);case 44:return tc(e,3174,3183,!0,r);case 45:return tc(e,3664,3673,!0,r);case 46:return tc(e,3872,3881,!0,r);case 3:default:return tc(e,48,57,!0,r)}},fc="data-html2canvas-ignore",pc=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new qa,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=gc(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,c=o.contentWindow,u=c.document,l=vc(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.forEac
vendor: 1,836 bytes, line 84
84h(Sc),c&&(c.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.scrollY===t.top&&c.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-t.left,c.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")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,yc(u)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"===typeof e?[2,Promise.resolve().then(function(){return e(u,n)}).then(function(){return o})]:[2,o]}})})});return u.open(),u.write(Cc(document.doctype)+"<html></html>"),_c(this.referenceElement.ownerDocument,s,a),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),l},e.prototype.createElementClone=function(e){if(Ro(e,2),Ua(e))return this.createCanvasClone(e);if(Fa(e))return this.createVideoClone(e);if(za(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return ja(t)&&(ja(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ga(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return wc(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(Kt){if(this.context.logger.error("Unable to access cssRules property",Kt),"SecurityError"!==Kt.name)throw Kt}return e.cloneNode(!1)}
vendor: 21,113 bytes, line 84
84,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(Kt){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 s=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(s){var a=s.getContextAttributes();!1===(null===a||void 0===a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return r}catch(Kt){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(Kt){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){Ia(t)&&(Qa(t)||t.hasAttribute(fc)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Ia(t)&&za(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(Ia(i)&&Wa(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(Ea(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Ia(e)&&(ka(e)||Ba(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&ka(r)&&(this.clonedReferenceElement=r),Na(r)&&kc(r);var a=this.counters.parse(new Bo(this.context,i)),c=this.resolvePseudoContent(e,r,o,ds.BEFORE);Ga(e)&&(t=!0),Fa(e)||this.cloneChildNodes(e,r,t),c&&r.insertBefore(c,r.firstChild);var u=this.resolvePseudoContent(e,r,s,ds.AFTER);return u&&r.appendChild(u),this.counters.pop(a),(i&&(this.options.copyStyles||Ba(e))&&!Ha(e)||t)&&wc(i,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Va(e)||Ka(e))&&(Va(r)||Ka(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,s=t.ownerDocument;if(s&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new Bo(this.context,n));var a=new ko(this.context,n),c=s.createElement("html2canvaspseudoelement");wc(n,c),a.content.forEach(function(t){if(0===t.type)c.appendChild(s.createTextNode(t.value));else if(22===t.type){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",c.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Hn);r.length&&c.appendChild(s.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Kn),u=o[0],l=o[1];if(u&&Hn(u)){var h=i.counters.getCounterValue(u.value),d=l&&Hn(l)?Ri.parse(i.context,l.value):3;c.appendChild(s.createTextNode(dc(h,d,!1)))}}else if("counters"===t.name){var f=t.values.filter(Kn),p=(u=f[0],f[1]);l=f[2];if(u&&Hn(u)){var A=i.counters.getCounterValues(u.value),g=l&&Hn(l)?Ri.parse(i.context,l.value):3,m=p&&0===p.type?p.value:"",y=A.map(function(e){return dc(e,g,!1)}).join(m);c.appendChild(s.createTextNode(y))}}}else if(20===t.type)switch(t.value){case"open-quote":c.appendChild(s.createTextNode(So(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(s.createTextNode(So(a.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(s.createTextNode(t.value))}}),c.className=Pc+" "+Ec;var u=r===ds.BEFORE?" "+Pc:" "+Ec;return Ba(t)?t.className.baseValue+=u:t.className+=u,c}}},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"})(ds||(ds={}));var Ac,gc=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(fc,"true"),e.body.appendChild(n),n},mc=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},yc=function(e){return Promise.all([].slice.call(e.images,0).map(mc))},vc=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)}})},bc=["all","d","content"],wc=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===bc.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},Cc=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},_c=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Sc=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},xc=":before",Tc=":after",Pc="___html2canvas___pseudoelement_before",Ec="___html2canvas___pseudoelement_after",Ic='{\n    content: "" !important;\n    display: none !important;\n}',kc=function(e){Bc(e,"."+Pc+xc+Ic+"\n         ."+Ec+Tc+Ic)},Bc=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},Mc=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}(),Oc=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:jc(e)||Nc(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,s=this;return i(this,function(i){switch(i.label){case 0:return t=Mc.isSameOrigin(e),n=!Uc(e)&&!0===this._options.useCORS&&Ks.SUPPORT_CORS_IMAGES&&!t,r=!Uc(e)&&!t&&!jc(e)&&"string"===typeof this._options.proxy&&Ks.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Uc(e)||jc(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,(Fc(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout(function(){return e(r)},500),s._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._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 s=Ks.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===s)i(a.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(a.response)}else o("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=o;var c=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+c+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var u=t._options.imageTimeout;a.timeout=u,a.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+r)}}a.send()})},e}(),Dc=/^data:image\/svg\+xml/i,Rc=/^data:image\/.*;base64,/i,Lc=/^data:image\/.*/i,Nc=function(e){return Ks.SUPPORT_SVG_DRAWING||!Hc(e)},Uc=function(e){return Lc.test(e)},Fc=function(e){return Rc.test(e)},jc=function(e){return"blob"===e.substr(0,4)},Hc=function(e){return"svg"===e.substr(-3).toLowerCase()||Dc.test(e)},zc=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}(),Qc=function(e,t,n){return new zc(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Vc=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=Qc(this.start,this.startControl,t),i=Qc(this.startControl,this.endControl,t),o=Qc(this.endControl,this.end,t),s=Qc(r,i,t),a=Qc(i,o,t),c=Qc(s,a,t);return n?new e(this.start,r,s,c):new e(c,a,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}(),Kc=function(e){return 1===e.type},Wc=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],s=er(t.borderTopRightRadius,n.width,n.height),a=s[0],c=s[1],u=er(t.borderBottomRightRadius,n.width,n.height),l=u[0],h=u[1],d=er(t.borderBottomLeftRadius,n.width,n.height),f=d[0],p=d[1],A=[];A.push((i+a)/n.width),A.push((f+l)/n.width),A.push((o+p)/n.height),A.push((c+h)/n.height);var g=Math.max.apply(Math,A);g>1&&(i/=g,o/=g,a/=g,c/=g,l/=g,h/=g,f/=g,p/=g);var m=n.width-a,y=n.height-h,v=n.width-l,b=n.height-p,w=t.borderTopWidth,C=t.borderRightWidth,_=t.borderBottomWidth,S=t.borderLeftWidth,x=tr(t.paddingTop,e.bounds.width),T=tr(t.paddingRight,e.bounds.width),P=tr(t.paddingBottom,e.bounds.width),E=tr(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Gc(n.left+S/3,n.top+w/3,i-S/3,o-w/3,Ac.TOP_LEFT):new zc(n.left+S/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Gc(n.left+m,n.top+w/3,a-C/3,c-w/3,Ac.TOP_RIGHT):new zc(n.left+n.width-C/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=l>0||h>0?Gc(n.left+v,n.top+y,l-C/3,h-_/3,Ac.BOTTOM_RIGHT):new zc(n.left+n.width-C/3,n.top+n.height-_/3),this.bottomLeftBorderDoubleOuterBox=f>0||p>0?Gc(n.left+S/3,n.top+b,f-S/3,p-_/3,Ac.BOTTOM_LEFT):new zc(n.left+S/3,n.top+n.height-_/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Gc(n.left+2*S/3,n.top+2*w/3,i-2*S/3,o-2*w/3,Ac.TOP_LEFT):new zc(n.left+2*S/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Gc(n.left+m,n.top+2*w/3,a-2*C/3,c-2*w/3,Ac.TOP_RIGHT):new zc(n.left+n.width-2*C/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=l>0||h>0?Gc(n.left+v,n.top+y,l-2*C/3,h-2*_/3,Ac.BOTTOM_RIGHT):new zc(n.left+n.width-2*C/3,n.top+n.height-2*_/3),this.bottomLeftBorderDoubleInnerBox=f>0||p>0?Gc(n.left+2*S/3,n.top+b,f-2*S/3,p-2*_/3,Ac.BOTTOM_LEFT):new zc(n.left+2*S/3,n.top+n.height-2*_/3),this.topLeftBorderStroke=i>0||o>0?Gc(n.left+S/2,n.top+w/2,i-S/2,o-w/2,Ac.TOP_LEFT):new zc(n.left+S/2,n.top+w/2),this.topRightBorderStroke=i>0||o>0?Gc(n.left+m,n.top+w/2,a-C/2,c-w/2,Ac.TOP_RIGHT):new zc(n.left+n.width-C/2,n.top+w/2),this.bottomRightBorderStroke=l>0||h>0?Gc(n.left+v,n.top+y,l-C/2,h-_/2,Ac.BOTTOM_RIGHT):new zc(n.left+n.width-C/2,n.top+n.height-_/2),this.bottomLeftBorderStroke=f>0||p>0?Gc(n.left+S/2,n.top+b,f-S/2,p-_/2,Ac.BOTTOM_LEFT):new zc(n.left+S/2,n.top+n.height-_/2),this.topLeftBorderBox=i>0||o>0?Gc(n.left,n.top,i,o,Ac.TOP_LEFT):new zc(n.left,n.top),this.topRightBorderBox=a>0||c>0?Gc(n.left+m,n.top,a,c,Ac.TOP_RIGHT):new zc(n.left+n.width,n.top),this.bottomRightBorderBox=l>0||h>0?Gc(n.left+v,n.top+y,l,h,Ac.BOTTOM_RIGHT):new zc(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||p>0?Gc(n.left,n.top+b,f,p,Ac.BOTTOM_LEFT):new zc(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Gc(n.left+S,n.top+w,Math.max(0,i-S),Math.max(0,o-w),Ac.TOP_LEFT):new zc(n.left+S,n.top+w),this.topRightPaddingBox=a>0||c>0?Gc(n.left+Math.min(m,n.width-C),n.top+w,m>n.width+C?0:Math.max(0,a-C),Math.max(0,c-w),Ac.TOP_RIGHT):new zc(n.left+n.width-C,n.top+w),this.bottomRightPaddingBox=l>0||h>0?Gc(n.left+Math.min(v,n.width-S),n.top+Math.min(y,n.height-_),Math.max(0,l-C),Math.max(0,h-_),Ac.BOTTOM_RIGHT):new zc(n.left+n.width-C,n.top+n.height-_),this.bottomLeftPaddingBox=f>0||p>0?Gc(n.left+S,n.top+Math.min(b,n.height-_),Math.max(0,f-S),Math.max(0,p-_),Ac.BOTTOM_LEFT):new zc(n.left+S,n.top+n.height-_),this.topLeftContentBox=i>0||o>0?Gc(n.left+S+E,n.top+w+x,Math.max(0,i-(S+E)),Math.max(0,o-(w+x)),Ac.TOP_LEFT):new zc(n.left+S+E,n.top+w+x),this.topRightContentBox=a>0||c>0?Gc(n.left+Math.min(m,n.width+S+E),n.top+w+x,m>n.width+S+E?0:a-S+E,c-(w+x),Ac.TOP_RIGHT):new zc(n.left+n.width-(C+T),n.top+w+x),this.bottomRightContentBox=l>0||h>0?Gc(n.left+Math.min(v,n.width-(S+E)),n.top+Math.min(y,n.height+w+x),Math.max(0,l-(C+T)),h-(_+P),Ac.BOTTOM_RIGHT):new zc(n.left+n.width-(C+T),n.top+n.height-(_+P)),this.bottomLeftContentBox=f>0||p>0?Gc(n.left+S+E,n.top+b,Math.max(0,f-(S+E)),p-(_+P),Ac.BOTTOM_LEFT):new zc(n.left+S+E,n.top+n.height-(_+P))}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"})(Ac||(Ac={}));var Gc=function(e,t,n,r,i){var o=(Math.sqrt(2)-1)/3*4,s=n*o,a=r*o,c=e+n,u=t+r;switch(i){case Ac.TOP_LEFT:return new Vc(new zc(e,u),new zc(e,u-a),new zc(c-s,t),new zc(c,t));case Ac.TOP_RIGHT:return new Vc(new zc(e,t),new zc(e+s,t),new zc(c,u-a),new zc(c,u));case Ac.BOTTOM_RIGHT:return new Vc(new zc(c,t),new zc(c,t+a),new zc(e+s,u),new zc(e,u));case Ac.BOTTOM_LEFT:default:return new Vc(new zc(c,u),new zc(c-s,u),new zc(e,t+a),new zc(e,t))}},qc=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Yc=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Xc=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Zc=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),$c=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Jc=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),eu=function(e){return 0===e.type},tu=function(e){return 1===e.type},nu=function(e){return 2===e.type},ru=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},iu=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})},ou=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),su=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Wc(this.container),this.container.styles.opacity<1&&this.effects.push(new Jc(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 Zc(n,r,i))}if(0!==this.container.styles.overflowX){var o=qc(this.curves),s=Xc(this.curves);ru(o,s)?this.effects.push(new $c(o,6)):(this.effects.push(new $c(o,2)),this.effects.push(new $c(s,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!tu(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=qc(n.curves),s=Xc(n.curves);ru(o,s)||r.unshift(new $c(s,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return yo(t.target,e)})},e}(),au=function(e,t,n,r){e.container.elements.forEach(function(i){var o=yo(i.flags,4),s=yo(i.flags,2),a=new su(i,e);yo(i.styles.display,2048)&&r.push(a);var c=yo(i.flags,8)?[]:r;if(o||s){var u=o||i.styles.isPositioned()?n:t,l=new ou(a);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var d=0;u.negativeZIndex.some(function(e,t){return h>e.element.container.styles.zIndex.order?(d=t,!1):d>0}),u.negativeZIndex.splice(d,0,l)}else if(h>0){var f=0;u.positiveZIndex.some(function(e,t){return h>=e.element.container.styles.zIndex.order?(f=t+1,!1):f>0}),u.positiveZIndex.splice(f,0,l)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else i.styles.isFloating()?u.nonPositionedFloats.push(l):u.nonPositionedInlineLevel.push(l);au(a,l,o?l:n,c)}else i.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),au(a,t,n,c);yo(i.flags,8)&&cu(i,c)})},cu=function(e,t){for(var n=e instanceof ua?e.start:1,r=e instanceof ua&&e.reversed,i=0;i<t.length;i++){var o=t[i];o.container instanceof ca&&"number"===typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=dc(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},uu=function(e){var t=new su(e,null),n=new ou(t),r=[];return au(t,n,n,r),cu(t.container,r),n},lu=function(e,t){switch(t){case 0:return Au(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Au(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Au(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Au(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},hu=function(e,t){switch(t){case 0:return Au(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Au(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Au(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Au(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},du=function(e,t){switch(t){case 0:return Au(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Au(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Au(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Au(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},fu=function(e,t){switch(t){case 0:return pu(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return pu(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return pu(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return pu(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},pu=function(e,t){var n=[];return Kc(e)?n.push(e.subdivide(.5,!1)):n.push(e),Kc(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Au=function(e,t,n,r){var i=[];return Kc(e)?i.push(e.subdivide(.5,!1)):i.push(e),Kc(n)?i.push(n.subdivide(.5,!0)):i.push(n),Kc(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Kc(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},gu=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},mu=function(e){var t=e.styles,n=e.bounds,r=tr(t.paddingLeft,n.width),i=tr(t.paddingRight,n.width),o=tr(t.paddingTop,n.width),s=tr(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+o+s))},yu=function(e,t){return 0===e?t.bounds:2===e?mu(t):gu(t)},vu=function(e,t){return 0===e?t.bounds:2===e?mu(t):gu(t)},bu=function(e,t,n){var r=yu(Su(e.styles.backgroundOrigin,t),e),i=vu(Su(e.styles.backgroundClip,t),e),o=_u(Su(e.styles.backgroundSize,t),n,r),s=o[0],a=o[1],c=er(Su(e.styles.backgroundPosition,t),r.width-s,r.he
vendor: 4,552 bytes, line 84
84ight-a),u=xu(Su(e.styles.backgroundRepeat,t),c,o,r,i),l=Math.round(r.left+c[0]),h=Math.round(r.top+c[1]);return[u,l,h,s,a]},wu=function(e){return Hn(e)&&e.value===Gr.AUTO},Cu=function(e){return"number"===typeof e},_u=function(e,t,n){var r=t[0],i=t[1],o=t[2],s=e[0],a=e[1];if(!s)return[0,0];if(Yn(s)&&a&&Yn(a))return[tr(s,n.width),tr(a,n.height)];var c=Cu(o);if(Hn(s)&&(s.value===Gr.CONTAIN||s.value===Gr.COVER)){if(Cu(o)){var u=n.width/n.height;return u<o!==(s.value===Gr.COVER)?[n.width,n.width/o]:[n.height*o,n.height]}return[n.width,n.height]}var l=Cu(r),h=Cu(i),d=l||h;if(wu(s)&&(!a||wu(a))){if(l&&h)return[r,i];if(!c&&!d)return[n.width,n.height];if(d&&c){var f=l?r:i*o,p=h?i:r/o;return[f,p]}var A=l?r:n.width,g=h?i:n.height;return[A,g]}if(c){var m=0,y=0;return Yn(s)?m=tr(s,n.width):Yn(a)&&(y=tr(a,n.height)),wu(s)?m=y*o:a&&!wu(a)||(y=m/o),[m,y]}var v=null,b=null;if(Yn(s)?v=tr(s,n.width):a&&Yn(a)&&(b=tr(a,n.height)),null===v||a&&!wu(a)||(b=l&&h?v/r*i:n.height),null!==b&&wu(s)&&(v=l&&h?b/i*r:n.width),null!==v&&null!==b)return[v,b];throw new Error("Unable to calculate background-size for element")},Su=function(e,t){var n=e[t];return"undefined"===typeof n?e[0]:n},xu=function(e,t,n,r,i){var o=t[0],s=t[1],a=n[0],c=n[1];switch(e){case 2:return[new zc(Math.round(r.left),Math.round(r.top+s)),new zc(Math.round(r.left+r.width),Math.round(r.top+s)),new zc(Math.round(r.left+r.width),Math.round(c+r.top+s)),new zc(Math.round(r.left),Math.round(c+r.top+s))];case 3:return[new zc(Math.round(r.left+o),Math.round(r.top)),new zc(Math.round(r.left+o+a),Math.round(r.top)),new zc(Math.round(r.left+o+a),Math.round(r.height+r.top)),new zc(Math.round(r.left+o),Math.round(r.height+r.top))];case 1:return[new zc(Math.round(r.left+o),Math.round(r.top+s)),new zc(Math.round(r.left+o+a),Math.round(r.top+s)),new zc(Math.round(r.left+o+a),Math.round(r.top+s+c)),new zc(Math.round(r.left+o),Math.round(r.top+s+c))];default:return[new zc(Math.round(i.left),Math.round(i.top)),new zc(Math.round(i.left+i.width),Math.round(i.top)),new zc(Math.round(i.left+i.width),Math.round(i.height+i.top)),new zc(Math.round(i.left),Math.round(i.height+i.top))]}},Tu="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Pu="Hidden Text",Eu=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),r.src=Tu,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Pu)),n.appendChild(i),n.appendChild(r);var s=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(Pu)),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:a}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return"undefined"===typeof this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),Iu=function(){function e(e,t){this.context=e,this.options=t}return e}(),ku=1e4,Bu=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new Eu(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e){var t=this;while(this._activeEffects.length)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),nu(e)&&(this.ctx.globalAlpha=e.opacity),eu(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),tu(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore(
vendor: 4,986 bytes, line 84
84)},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return yo(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;if(0===t)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var i=Xs(e.text);i.reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)}},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=Lu(e.fontFamily).join(", "),r=Fn(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,o,s,a,c,u,l,h=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[0],o=n[1],s=n[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(o,s),c=a.baseline,u=a.middle,l=t.paintOrder,e.textBounds.forEach(function(e){l.forEach(function(n){switch(n){case 0:h.ctx.fillStyle=dr(t.color),h.renderTextWithLetterSpacing(e,t.letterSpacing,c);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){h.ctx.shadowColor=dr(n.color),h.ctx.shadowOffsetX=n.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=n.offsetY.number*h.options.scale,h.ctx.shadowBlur=n.blur.number,h.renderTextWithLetterSpacing(e,t.letterSpacing,c)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),t.textDecorationLine.length&&(h.ctx.fillStyle=dr(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:h.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+c),e.bounds.width,1);break;case 2:h.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:h.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+u),e.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(h.ctx.strokeStyle=dr(t.webkitTextStrokeColor),h.ctx.lineWidth=t.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+c)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=mu(e),i=Xc(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,a,c,u,l,h,d,f,p,A,g,m,y,v,b,w,C;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,o=t.styles,a=0,c=t.textNodes,i.label=1;case 1:return a<c.length?(u=c[a],[4,this.renderTextNode(u,o)]):[3,4];case 2:i.sent(),i.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof oa))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return v=i.sent(),this.renderReplacedElement(t,r,v),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof sa&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof aa))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return v=i.sent(),this.renderReplacedElement(t,r,v),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof wa&&t.tree?(l=new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,l.render(t.tree)]):[3,14];case 13:h=i.sent(),t.width&&t.height&&this.ctx.drawImage(h,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof ya&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===pa?t.checked&&(this.ctx.save(),this.path([new zc(t.bounds.left+.39363*d,t.bounds.top+.79*d),new zc(t.bounds.left+.16*d,t.bounds.top+.5549*d),new zc(t.bounds.left+.27347*d,t.bounds.top+.44071*d),new zc(t.bounds.left+.39694*d,t.bounds.top+.5649*d),new zc(t.bounds.left+.72983*d,t.bounds.top+.23*d),new zc(t.bounds.left+.84*d,t.bounds.top+.34085*d),new zc(t.bounds.left+.39363*d,t.bounds.top+.79*d)]),this.ctx.fillStyle=dr(ma),this.ctx.fill(),this.ctx.restore(
vendor: 4,401 bytes, line 84
84)):t.type===Aa&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,2*Math.PI,!0),this.ctx.fillStyle=dr(ma),this.ctx.fill(),this.ctx.restore())),Mu(t)&&t.value.length){switch(f=this.createFontStyle(o),w=f[0],p=f[1],A=this.fontMetrics.getMetrics(w,p).baseline,this.ctx.font=w,this.ctx.fillStyle=dr(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Du(t.styles.textAlign),C=mu(t),g=0,t.styles.textAlign){case 1:g+=C.width/2;break;case 2:g+=C.width;break}m=C.add(g,0,0,-C.height/2+1),this.ctx.save(),this.path([new zc(C.left,C.top),new zc(C.left+C.width,C.top),new zc(C.left+C.width,C.top+C.height),new zc(C.left,C.top+C.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ws(t.value,m),o.letterSpacing,A),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!yo(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(y=t.styles.listStyleImage,0!==y.type)return[3,18];v=void 0,b=y.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(b)];case 16:return v=i.sent(),this.ctx.drawImage(v,t.bounds.left-(v.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+b),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(w=this.createFontStyle(o)[0],this.ctx.font=w,this.ctx.fillStyle=dr(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",C=new s(t.bounds.left,t.bounds.top+tr(t.styles.paddingTop,t.bounds.width),t.bounds.width,Mi(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ws(e.listValue,C),o.letterSpacing,Mi(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a,c,u,l,h,d,f,p,A,g;return i(this,function(i){switch(i.label){case 0:return yo(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?(g=n[t],[4,this.renderStack(g)]):[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),r=0,o=e.nonInlineLevel,i.label=7;case 7:return r<o.length?(g=o[r],[4,this.renderNode(g)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:s=0,a=e.nonPositionedFloats,i.label=11;case 11:return s<a.length?(g=a[s],[4,this.renderStack(g)]):[3,14];case 12:i.sent(),i.label=13;case 13:return s++,[3,11];case 14:c=0,u=e.nonPositionedInlineLevel,i.label=15;case 15:return c<u.length?(g=u[c],[4,this.renderStack(g)]):[3,18];case 16:i.sent(),i.label=17;case 17:return c++,[3,15];case 18:l=0,h=e.inlineLevel,i.label=19;case 19:return l<h.length?(g=h[l],[4,this.renderNode(g)]):[3,22];case 20:i.sent(),i.label=21;case 21:return l++,[3,19];case 22:d=0,f=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return d<f.length?(g=f[d],[4,this.renderStack(g)]):[3,26];case 24:i.sent(),i.label=25;case 25:return d++,[3,23];case 26:p=0,A=e.positiveZIndex,i.label=27;case 27:return p<A.length?(g=A[p],[4,this.renderStack(g)]):[3,30];case 28:i.sent(),i.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Kc(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Kc(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var i=null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document,o=i.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var s=o.getContext("2d");return s.drawImage(e,0,0,e.width,e.height,0,0,t,n),o}
vendor: 9,925 bytes, line 84
84,n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a;return i(this,function(c){switch(c.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,s,a,c,u,l,h,d,f,p,A,g,m,y,v,b,w,C,_,S,x,T,P,E,I,k,B,M,O,D,R;return i(this,function(i){switch(i.label){case 0:if(0!==n.type)return[3,5];o=void 0,s=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return o=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return o&&(a=bu(e,t,[o.width,o.height,o.width/o.height]),b=a[0],T=a[1],P=a[2],_=a[3],S=a[4],y=r.ctx.createPattern(r.resizeImage(o,_,S),"repeat"),r.renderRepeat(b,y,T,P)),[3,6];case 5:Qr(n)?(c=bu(e,t,[null,null,null]),b=c[0],T=c[1],P=c[2],_=c[3],S=c[4],u=Tr(n.angle,_,S),l=u[0],h=u[1],d=u[2],f=u[3],p=u[4],A=document.createElement("canvas"),A.width=_,A.height=S,g=A.getContext("2d"),m=g.createLinearGradient(h,f,d,p),Sr(n.stops,l).forEach(function(e){return m.addColorStop(e.stop,dr(e.color))}),g.fillStyle=m,g.fillRect(0,0,_,S),_>0&&S>0&&(y=r.ctx.createPattern(A,"repeat"),r.renderRepeat(b,y,T,P))):Vr(n)&&(v=bu(e,t,[null,null,null]),b=v[0],w=v[1],C=v[2],_=v[3],S=v[4],x=0===n.position.length?[$n]:n.position,T=tr(x[0],_),P=tr(x[x.length-1],S),E=Ir(n,T,P,_,S),I=E[0],k=E[1],I>0&&k>0&&(B=r.ctx.createRadialGradient(w+T,C+P,0,w+T,C+P,I),Sr(n.stops,2*I).forEach(function(e){return B.addColorStop(e.stop,dr(e.color))}),r.path(b),r.ctx.fillStyle=B,I!==k?(M=e.bounds.left+.5*e.bounds.width,O=e.bounds.top+.5*e.bounds.height,D=k/I,R=1/D,r.ctx.save(),r.ctx.translate(M,O),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-M,-O),r.ctx.fillRect(w,R*(C-O)+O,_,S*R),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}})},r=this,o=0,s=e.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return o<s.length?(a=s[o],[5,n(a)]):[3,4];case 2:c.sent(),c.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path(lu(n,t)),this.ctx.fillStyle=dr(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,o){return r(this,void 0,void 0,function(){var r,s;return i(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,o)]:[3,2];case 1:return i.sent(),[2];case 2:return r=hu(o,n),this.path(r),this.ctx.fillStyle=dr(e),this.ctx.fill(),s=du(o,n),this.path(s),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a,c,u,l=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!hr(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=Ou(Su(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),hr(t.backgroundColor)||(this.ctx.fillStyle=dr(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){l.ctx.save();var n=qc(e.curves),r=t.inset?0:ku,i=iu(n,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(l.path(n),l.ctx.clip(),l.mask(i)):(l.mask(n),l.ctx.clip(),l.path(i)),l.ctx.shadowOffsetX=t.offsetX.number+r,l.ctx.shadowOffsetY=t.offsetY.number,l.ctx.shadowColor=dr(t.color),l.ctx.shadowBlur=t.blur.number,l.ctx.fillStyle=t.inset?dr(t.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),i.label=2;case 2:s=0,a=0,c=r,i.label=3;case 3:return a<c.length?(u=c[a],0!==u.style&&!hr(u.color)&&u.width>0?2!==u.style?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,e.curves,2)]:[3,11]):[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==u.style?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,e.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==u.style?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,e.curves)];case 10:i.sent(),i.label=11;case 11:s++,i.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,o,s){return r(this,void 0,void 0,function(){var r,a,c,u,l,h,d,f,p,A,g,m,y,v,b,w;return i(this,function(i){return this.ctx.save(),r=fu(o,n),a=lu(o,n),2===s&&(this.path(a),this.ctx.clip()),Kc(a[0])?(c=a[0].start.x,u=a[0].start.y):(c=a[0].x,u=a[0].y),Kc(a[1])?(l=a[1].end.x,h=a[1].end.y):(l=a[1].x,h=a[1].y),d=0===n||2===n?Math.abs(c-l):Math.abs(u-h),this.ctx.beginPath(),3===s?this.formatPath(r):this.formatPath(a.slice(0,2)),f=t<3?3*t:2*t,p=t<3?2*t:t,3===s&&(f=t,p=t),A=!0,d<=2*f?A=!1:d<=2*f+p?(g=d/(2*f+p),f*=g,p*=g):(m=Math.floor((d+p)/(f+p)),y=(d-m*f)/(m-1),v=(d-(m+1)*f)/m,p=v<=0||Math.abs(p-y)<Math.abs(p-v)?y:v),A&&(3===s?this.ctx.setLineDash([0,f+p]):this.ctx.setLineDash([f,p])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=dr(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(Kc(a[0])&&(b=a[3],w=a[0],this.ctx.beginPath(),this.formatPath([new zc(b.end.x,b.end.y),new zc(w.start.x,w.start.y)]),this.ctx.stroke()),Kc(a[1])&&(b=a[1],w=a[2],this.ctx.beginPath(),this.formatPath([new zc(b.end.x,b.end.y),new zc(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=dr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=uu(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},n}(Iu),Mu=function(e){return e instanceof ba||(e instanceof va||e instanceof ya&&e.type!==Aa&&e.type!==pa)},Ou=function(e,t){switch(e){case 0:return qc(t);case 2:return Yc(t);case 1:default:return Xc(t)}},Du=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ru=["-apple-system","system-ui"],Lu=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===Ru.indexOf(e)}):e},Nu=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=Qs(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Uu(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=dr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(Iu),Uu=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Fu=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,o([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),ju=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Fu({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new Oc(this,t)}return e.instanceCount=1,e}(),Hu=function(e,t){return void 0===t&&(t={}),zu(e,t)};"undefined"!==typeof window&&Mc.setContext(window);var zu=function(e,t){return r(void 0,void 0,void 0,function(){var r,o,u,l,h,d,f,p,A,g,m,y,v,b,w,C,_,S,x,T,P,E,I,k,B,M,O,D,R,L,N,U,F,j,H,z,Q,V,K;return i(this,function(i){switch(i.label){case 0:if(!e||"object"!==typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");
84if(o=r.defaultView,!o)throw new Error("Document is not attached to a Window");return u={allowTaint:null!==(I=t.allowTaint)&&void 0!==I&&I,imageTimeout:null!==(k=t.imageTimeout)&&void 0!==k?k:15e3,proxy:t.proxy,useCORS:null!==(B=t.useCORS)&&void 0!==B&&B},l=n({logging:null===(M=t.logging)||void 0===M||M,cache:t.cache},u),h={windowWidth:null!==(O=t.windowWidth)&&void 0!==O?O:o.innerWidth,windowHeight:null!==(D=t.windowHeight)&&void 0!==D?D:o.innerHeight,scrollX:null!==(R=t.scrollX)&&void 0!==R?R:o.pageXOffset,scrollY:null!==(L=t.scrollY)&&void 0!==L?L:o.pageYOffset},d=new s(h.scrollX,h.scrollY,h.windowWidth,h.windowHeight),f=new ju(l,d),p=null!==(N=t.foreignObjectRendering)&&void 0!==N&&N,A={allowTaint:null!==(U=t.allowTaint)&&void 0!==U&&U,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:p,copyStyles:p},f.logger.debug("Starting document clone with size "+d.width+"x"+d.height+" scrolled to "+-d.left+","+-d.top),g=new pc(f,e,A),m=g.clonedReferenceElement,m?[4,g.toIFrame(r,d)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return y=i.sent(),v=Na(m)||Ra(m)?c(m.ownerDocument):a(f,m),b=v.width,w=v.height,C=v.left,_=v.top,S=Qu(f,m,t.backgroundColor),x={canvas:t.canvas,backgroundColor:S,scale:null!==(j=null!==(F=t.scale)&&void 0!==F?F:o.devicePixelRatio)&&void 0!==j?j:1,x:(null!==(H=t.x)&&void 0!==H?H:0)+C,y:(null!==(z=t.y)&&void 0!==z?z:0)+_,width:null!==(Q=t.width)&&void 0!==Q?Q:Math.ceil(b),height:null!==(V=t.height)&&void 0!==V?V:Math.ceil(w)},p?(f.logger.debug("Document cloned, using foreign object rendering"),E=new Nu(f,x),[4,E.render(m)]):[3,3];case 2:return T=i.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+C+","+_+" with size "+b+"x"+w+" using computed rendering"),f.logger.debug("Starting DOM parsing"),P=xa(f,m),S===P.styles.backgroundColor&&(P.styles.backgroundColor=br.TRANSPARENT),f.logger.debug("Starting renderer for element at "+x.x+","+x.y+" with size "+x.width+"x"+x.height),E=new Bu(f,x),[4,E.render(P)];case 4:T=i.sent(),i.label=5;case 5:return(null===(K=t.removeContainer)||void 0===K||K)&&(pc.destroy(y)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,T]}})})},Qu=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?vr(e,getComputedStyle(r.documentElement).backgroundColor):br.TRANSPARENT,o=r.body?vr(e,getComputedStyle(r.body).backgroundColor):br.TRANSPARENT,s="string"===typeof n?vr(e,n):null===n?br.TRANSPARENT:4294967295;return t===r.documentElement?hr(i)?hr(o)?s:o:i:s};return Hu})},81274:function(e,t,n){"use strict";n.d(t,{n:function(){return c}});var r=n(32556);function i(e){return void 0===e||null===e}function o(e){return"string"===typeof e}function s(e){return void 0===e}var a={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function c(e,t,n){var c,u,l=arguments,h=null,d=null,f=null,p=0,A=arguments.length-2;if(1===A)c=n;else if(A>1){c=[];while(A-- >0)c[A]=l[A+2]}if(!o(e)){if(p=2,s(c)||(t||(t={}),t.children=c),!i(t))for(var g in u={},t)"key"===g?d=t.key:"ref"===g?h=t.ref:1===a[g]?(h||(h={}),h[g]=t[g]):u[g]=t[g];return(0,r.sO)(p,e,u,d,h)}if(p=(0,r.$_)(e),!i(t))for(var m in u={},t)"className"===m||"class"===m?f=t[m]:"key"===m?d=t.key:"children"===m&&s(c)?c=t.children:"ref"===m?h=t.ref:("contenteditable"===m&&(p|=4096),u[m]=t[m]);return 8192&p?(0,r.nl)(1===A?[c]:c,0,d):(0,r.bF)(p,e,f,c,0,u,d,h)}},32556:function(e,t,n){"use strict";n.d(t,{uA:function(){return Vt},MZ:function(){return p},EW:function(){return tt},zF:function(){return X},_M:function(){return rt},Gg:function(){return dt},C4:function(){return at},Hq:function(){return pt},vI:function(){return Je},J4:function(){return ze},F1:function(){return nt},sO:function(){return j},nl:function(){return z},_3:function(){return je},bF:function(){return L},UV:function(){return S},$_:function(){return q},_B:function(){return Q},XX:function(){return Lt},mM:function(){return zt}});var r=Array.isArray;function i(e){var t=typeof e;return"string"===t||"number"===t}function o(e){return void 0===e||null===e}function s(e){return null===e||!1===e||!0===e||void 0===e}function a(e){return"function"===typeof e}function c(e){return"string"===typeof e}function u(e){return"number"===typeof e}function l(e){return null===e}function h(e){return void 0===e}function d(e,t){var n={};if(e)for(var r in e)n[r]=e[r];if(t)for(var i in t)n[i]=t[i];return n}function f(e){return!l(e)&&"object"===typeof e}var p={},A="$F";function g(e){return e.substr(2).toLowerCase()}function m(e,t){e.appendChild(t)}function y(e,t,n){l(n)?m(e,t):e.insertBefore(t,n)}function v(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function b(e,t,n){e.replaceChild(t,n)}function w(e,t){e.removeChild(t)}function C(e){for(var t=0;t<e.length;t++)e[t]()}function _(e,t,n){var r=e.children;return 4&n?r.$LI:8192&n?2===e.childFlags?r:r[t?0:r.length-1]:r}function S(e,t){var n;while(e){if(n=e.flags,2033&n)return e.dom;e=_(e,t,n)}return null}function x(e,t){do{var n=e.flags;if(2033&n)return void w(t,e.dom);var r=e.children;
84if(4&n&&(e=r.$LI),8&n&&(e=r),8192&n){if(2!==e.childFlags){for(var i=0,o=r.length;i<o;++i)x(r[i],t);return}e=r}}while(e)}function T(e,t,n){do{var r=e.flags;if(2033&r)return void y(t,e.dom,n);var i=e.children;if(4&r&&(e=i.$LI),8&r&&(e=i),8192&r){if(2!==e.childFlags){for(var o=0,s=i.length;o<s;++o)T(i[o],t,n);return}e=i}}while(e)}function P(e,t,n){return e.constructor.getDerivedStateFromProps?d(n,e.constructor.getDerivedStateFromProps(t,n)):n}var E={v:!1},I={componentComparator:null,createVNode:null,renderComplete:null};function k(e,t){e.textContent=t}function B(e,t){return f(e)&&e.event===t.event&&e.data===t.data}function M(e,t){for(var n in t)h(e[n])&&(e[n]=t[n]);return e}function O(e,t){return!!a(e)&&(e(t),!0)}var D="$";function R(e,t,n,r,i,o,s,a){this.childFlags=e,this.children=t,this.className=n,this.dom=null,this.flags=r,this.key=void 0===i?null:i,this.props=void 0===o?null:o,this.ref=void 0===s?null:s,this.type=a}function L(e,t,n,r,i,o,s,a){var c=void 0===i?1:i,u=new R(c,r,n,e,s,o,a,t);return I.createVNode&&I.createVNode(u),0===c&&Y(u,u.children),u}function N(e,t,n){if(4&e)return n;var r=(32768&e?t.render:t).defaultHooks;return o(r)?n:o(n)?r:M(n,r)}function U(e,t,n){var r=(32768&e?t.render:t).defaultProps;return o(r)?n:o(n)?d(r,null):M(n,r)}function F(e,t){return 12&e?e:t.prototype&&t.prototype.render?4:t.render?32776:8}function j(e,t,n,r,i){e=F(e,t);var o=new R(1,null,null,e,r,U(e,t,n),N(e,t,i),t);return I.createVNode&&I.createVNode(o),o}function H(e,t){return new R(1,o(e)||!0===e||!1===e?"":e,null,16,t,null,null,null)}function z(e,t,n){var r=L(8192,8192,null,e,t,null,n,null);switch(r.childFlags){case 1:r.children=W(),r.childFlags=2;break;case 16:r.children=[H(e)],r.childFlags=4;break}return r}function Q(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&o(e.children)&&Y(e,t.children),void 0!==t.className&&(o(e.className)&&(e.className=t.className||null),t.className=void 0)),void 0!==t.key&&(e.key=t.key,t.key=void 0),void 0!==t.ref&&(e.ref=8&n?d(e.ref,t.ref):t.ref,t.ref=void 0)}return e}function V(e){var t=e.children,n=e.childFlags;return z(2===n?K(t):t.map(K),n,e.key)}function K(e){var t=-16385&e.flags,n=e.props;if(14&t&&!l(n)){var r=n;for(var i in n={},r)n[i]=r[i]}return 0===(8192&t)?new R(e.childFlags,e.children,e.className,t,e.key,n,e.ref,e.type):V(e)}function W(){return H("",null)}function G(e,t,n,o){for(var a=e.length;n<a;n++){var u=e[n];if(!s(u)){var h=o+D+n;if(r(u))G(u,t,0,h);else{if(i(u))u=H(u,h);else{var d=u.key,f=c(d)&&d[0]===D;(81920&u.flags||f)&&(u=K(u)),u.flags|=65536,f?d.substring(0,o.length)!==o&&(u.key=o+d):l(d)?u.key=h:u.key=o+d}t.push(u)}}}}function q(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case A:return 8192;default:return 1}}function Y(e,t){var n,o=1;if(s(t))n=t;else if(i(t))o=16,n=t;else if(r(t)){for(var a=t.length,u=0;u<a;++u){var h=t[u];if(s(h)||r(h)){n=n||t.slice(0,u),G(t,n,u,"");break}if(i(h))n=n||t.slice(0,u),n.push(H(h,D+u));else{var d=h.key,f=(81920&h.flags)>0,p=l(d),A=c(d)&&d[0]===D;f||p||A?(n=n||t.slice(0,u),(f||A)&&(h=K(h)),(p||A)&&(h.key=D+u),n.push(h)):n&&n.push(h),h.flags|=65536}}n=n||t,o=0===n.length?1:8}else n=t,n.flags|=65536,81920&t.flags&&(n=K(t)),o=2;return e.children=n,e.childFlags=o,e}function X(e){return s(e)||i(e)?H(e,null):r(e)?z(e,0,null):16384&e.flags?K(e):e}var Z="http://www.w3.org/1999/xlink",$="http://www.w3.org/XML/1998/namespace",J={"xlink:actuate":Z,"xlink:arcrole":Z,"xlink:href":Z,"xlink:role":Z,"xlink:show":Z,"xlink:title":Z,"xlink:type":Z,"xml:base":$,"xml:lang":$,"xml:space":$};function ee(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var te=ee(0),ne=ee(null),re=ee(!0);function ie(e,t){var n=t.$EV;return n||(n=t.$EV=ee(null)),n[e]||1===++te[e]&&(ne[e]=Ae(e)),n}function oe(e,t){var n=t.$EV;n&&n[e]&&(0===--te[e]&&(document.removeEventListener(g(e),ne[e]),ne[e]=null),n[e]=null)}function se(e,t,n,r){if(a(n))ie(e,r)[e]=n;else if(f(n)){if(B(t,n))return;ie(e,r)[e]=n}else oe(e,r)}function ae(e){return a(e.composedPath)?e.composedPath()[0]:e.target}function ce(e,t,n,r){var i=ae(e);do{if(t&&i.disabled)return;var o=i.$EV;if(o){var s=o[n];if(s&&(r.dom=i,s.event?s.event(s.data,e):s(e),e.cancelBubble))return}i=i.parentNode}while(!l(i))}function ue(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function le(){return this.defaultPrevented}function he(){return this.cancelBubble}function de(e){var t={dom:document};return e.isDefaultPrevented=le,e.isPropagationStopped=he,e.stopPropagation=ue,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function fe(e){return function(t){0===t.button?ce(t,!0,e,de(t)):t.stopPropagation()}}function pe(e){return function(t){ce(t,!1,e,de(t))}}function Ae(e){var t="onClick"===e||"onDblClick"===e?fe(e):pe(e);return document.addEventListener(g(e),t),t}function ge(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}function me(e,t,n){if(e[t]){var r=e[t];
84r.event?r.event(r.data,n):r(n)}else{var i=t.toLowerCase();e[i]&&e[i](n)}}function ye(e,t){var n=function(n){var r=this.$V;if(r){var i=r.props||p,o=r.dom;if(c(e))me(i,e,n);else for(var s=0;s<e.length;++s)me(i,e[s],n);if(a(t)){var u=this.$V,l=u.props||p;t(l,o,!1,u)}}};return Object.defineProperty(n,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),n}function ve(e,t,n){var r="$"+t,i=e[r];if(i){if(i[1].wrapped)return;e.removeEventListener(i[0],i[1]),e[r]=null}a(n)&&(e.addEventListener(t,n),e[r]=[t,n])}function be(e){return"checkbox"===e||"radio"===e}var we=ye("onInput",xe),Ce=ye(["onClick","onChange"],xe);function _e(e){e.stopPropagation()}function Se(e,t){be(t.type)?(ve(e,"change",Ce),ve(e,"click",_e)):ve(e,"input",we)}function xe(e,t){var n=e.type,r=e.value,i=e.checked,s=e.multiple,a=e.defaultValue,c=!o(r);n&&n!==t.type&&t.setAttribute("type",n),o(s)||s===t.multiple||(t.multiple=s),o(a)||c||(t.defaultValue=a+""),be(n)?(c&&(t.value=r),o(i)||(t.checked=i)):c&&t.value!==r?(t.defaultValue=r,t.value=r):o(i)||(t.checked=i)}function Te(e,t){if("option"===e.type)Pe(e,t);else{var n=e.children,r=e.flags;if(4&r)Te(n.$LI,t);else if(8&r)Te(n,t);else if(2===e.childFlags)Te(n,t);else if(12&e.childFlags)for(var i=0,o=n.length;i<o;++i)Te(n[i],t)}}function Pe(e,t){var n=e.props||p,i=e.dom;i.value=n.value,n.value===t||r(t)&&-1!==t.indexOf(n.value)?i.selected=!0:o(t)&&o(n.selected)||(i.selected=n.selected||!1)}_e.wrapped=!0;var Ee=ye("onChange",ke);function Ie(e){ve(e,"change",Ee)}function ke(e,t,n,r){var i=Boolean(e.multiple);o(e.multiple)||i===t.multiple||(t.multiple=i);var s=e.selectedIndex;-1===s&&(t.selectedIndex=-1);var a=r.childFlags;if(1!==a){var c=e.value;u(s)&&s>-1&&t.options[s]&&(c=t.options[s].value),n&&o(c)&&(c=e.defaultValue),Te(r,c)}}var Be,Me,Oe=ye("onInput",Le),De=ye("onChange");function Re(e,t){ve(e,"input",Oe),t.onChange&&ve(e,"change",De)}function Le(e,t,n){var r=e.value,i=t.value;if(o(r)){if(n){var s=e.defaultValue;o(s)||s===i||(t.defaultValue=s,t.value=s)}}else i!==r&&(t.defaultValue=r,t.value=r)}function Ne(e,t,n,r,i,o){64&e?xe(r,n):256&e?ke(r,n,i,t):128&e&&Le(r,n,i),o&&(n.$V=t)}function Ue(e,t,n){64&e?Se(t,n):256&e?Ie(t):128&e&&Re(t,n)}function Fe(e){return e.type&&be(e.type)?!o(e.checked):!o(e.value)}function je(){return{current:null}}function He(e){e&&!O(e,null)&&e.current&&(e.current=null)}function ze(e,t,n){e&&(a(e)||void 0!==e.current)&&n.push(function(){O(e,t)||void 0===e.current||(e.current=t)})}function Qe(e,t){Ve(e),x(e,t)}function Ve(e){var t,n=e.flags,r=e.children;if(481&n){t=e.ref;var i=e.props;He(t);var s=e.childFlags;if(!l(i))for(var c=Object.keys(i),u=0,h=c.length;u<h;u++){var d=c[u];re[d]&&oe(d,e.dom)}12&s?Ke(r):2===s&&Ve(r)}else r&&(4&n?(a(r.componentWillUnmount)&&r.componentWillUnmount(),He(e.ref),r.$UN=!0,Ve(r.$LI)):8&n?(t=e.ref,!o(t)&&a(t.onComponentWillUnmount)&&t.onComponentWillUnmount(S(e,!0),e.props||p),Ve(r)):1024&n?Qe(r,e.ref):8192&n&&12&e.childFlags&&Ke(r))}function Ke(e){for(var t=0,n=e.length;t<n;++t)Ve(e[t])}function We(e){e.textContent=""}function Ge(e,t,n){Ke(n),8192&t.flags?x(t,e):We(e)}function qe(e){var t=e.event;return function(n){t(e.data,n)}}function Ye(e,t,n,r){if(f(n)){if(B(t,n))return;n=qe(n)}ve(r,g(e),n)}function Xe(e,t,n){if(o(t))n.removeAttribute("style");else{var r,i,s=n.style;if(c(t))s.cssText=t;else if(o(e)||c(e))for(r in t)i=t[r],s.setProperty(r,i);else{for(r in t)i=t[r],i!==e[r]&&s.setProperty(r,i);for(r in e)o(t[r])&&s.removeProperty(r)}}}function Ze(e,t,n,r){var i=e&&e.__html||"",s=t&&t.__html||"";i!==s&&(o(s)||ge(r,s)||(l(n)||(12&n.childFlags?Ke(n.children):2===n.childFlags&&Ve(n.children),n.children=null,n.childFlags=1),r.innerHTML=s))}function $e(e,t,n,r,i,s,a){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!n;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[e]=!!n;break;case"defaultChecked":case"value":case"volume":if(s&&"value"===e)break;var c=o(n)?"":n;r[e]!==c&&(r[e]=c);break;case"style":Xe(t,n,r);break;case"dangerouslySetInnerHTML":Ze(t,n,a,r);break;default:re[e]?se(e,t,n,r):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ye(e,t,n,r):o(n)?r.removeAttribute(e):i&&J[e]?r.setAttributeNS(J[e],e,n):r.setAttribute(e,n);break}}function Je(e,t,n,r,i){var o=!1,s=(448&t)>0;for(var a in s&&(o=Fe(n),o&&Ue(t,r,n)),n)$e(a,null,n[a],r,i,o,null);s&&Ne(t,e,r,n,!0,o)}
vendor: 5,732 bytes, line 84
84function et(e,t,n){var r=X(e.render(t,e.state,n)),i=n;return a(e.getChildContext)&&(i=d(n,e.getChildContext())),e.$CX=i,r}function tt(e,t,n,r,i,o){var s=new t(n,r),c=s.$N=Boolean(t.getDerivedStateFromProps||s.getSnapshotBeforeUpdate);if(s.$SVG=i,s.$L=o,e.children=s,s.$BS=!1,s.context=r,s.props===p&&(s.props=n),c)s.state=P(s,n,s.state);else if(a(s.componentWillMount)){s.$BR=!0,s.componentWillMount();var u=s.$PS;if(!l(u)){var h=s.state;if(l(h))s.state=u;else for(var d in u)h[d]=u[d];s.$PS=null}s.$BR=!1}return s.$LI=et(s,n,r),s}function nt(e,t){var n=e.props||p;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function rt(e,t,n,r,i,o){var s=e.flags|=16384;481&s?at(e,t,n,r,i,o):4&s?ut(e,t,n,r,i,o):8&s?(lt(e,t,n,r,i,o),pt(e,o)):512&s||16&s?st(e,t,i):8192&s?ot(e,n,t,r,i,o):1024&s&&it(e,n,t,i,o)}function it(e,t,n,r,i){rt(e.children,e.ref,t,!1,null,i);var o=W();st(o,n,r),e.dom=o.dom}function ot(e,t,n,r,i,o){var s=e.children,a=e.childFlags;12&a&&0===s.length&&(a=e.childFlags=2,s=e.children=W()),2===a?rt(s,n,t,r,i,o):ct(s,n,t,r,i,o)}function st(e,t,n){var r=e.dom=document.createTextNode(e.children);l(t)||y(t,r,n)}function at(e,t,n,r,i,s){var a=e.flags,c=e.props,u=e.className,h=e.childFlags,d=e.dom=v(e.type,r=r||(32&a)>0),f=e.children;if(o(u)||""===u||(r?d.setAttribute("class",u):d.className=u),16===h)k(d,f);else if(1!==h){var p=r&&"foreignObject"!==e.type;2===h?(16384&f.flags&&(e.children=f=K(f)),rt(f,d,n,p,null,s)):8!==h&&4!==h||ct(f,d,n,p,null,s)}l(t)||y(t,d,i),l(c)||Je(e,a,c,d,r),ze(e.ref,d,s)}function ct(e,t,n,r,i,o){for(var s=0;s<e.length;++s){var a=e[s];16384&a.flags&&(e[s]=a=K(a)),rt(a,t,n,r,i,o)}}function ut(e,t,n,r,i,o){var s=tt(e,e.type,e.props||p,n,r,o);rt(s.$LI,t,s.$CX,r,i,o),dt(e.ref,s,o)}function lt(e,t,n,r,i,o){rt(e.children=X(nt(e,n)),t,n,r,i,o)}function ht(e){return function(){e.componentDidMount()}}function dt(e,t,n){ze(e,t,n),a(t.componentDidMount)&&n.push(ht(t))}function ft(e,t){return function(){e.onComponentDidMount(S(t,!0),t.props||p)}}function pt(e,t){var n=e.ref;o(n)||(O(n.onComponentWillMount,e.props||p),a(n.onComponentDidMount)&&t.push(ft(n,e)))}function At(e,t,n,r,i,o){Ve(e),0!==(t.flags&e.flags&2033)?(rt(t,null,r,i,null,o),b(n,t.dom,e.dom)):(rt(t,n,r,i,S(e,!0),o),x(e,n))}function gt(e,t,n,r,i,o,s){var a=t.flags|=16384;e.flags!==a||e.type!==t.type||e.key!==t.key||2048&a?16384&e.flags?At(e,t,n,r,i,s):rt(t,n,r,i,o,s):481&a?wt(e,t,r,i,a,s):4&a?Tt(e,t,n,r,i,o,s):8&a?Pt(e,t,n,r,i,o,s):16&a?Et(e,t):512&a?t.dom=e.dom:8192&a?vt(e,t,n,r,i,s):bt(e,t,r,s)}function mt(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:k(n,t))}function yt(e,t){e.textContent!==t&&(e.textContent=t)}function vt(e,t,n,r,i,o){var s=e.children,a=t.children,c=e.childFlags,u=t.childFlags,l=null;12&u&&0===a.length&&(u=t.childFlags=2,a=t.children=W());var h=0!==(2&u);if(12&c){var d=s.length;(8&c&&8&u||h||!h&&a.length>d)&&(l=S(s[d-1],!1).nextSibling)}_t(c,u,s,a,n,r,i,l,e,o)}function bt(e,t,n,r){var i=e.ref,o=t.ref,a=t.children;if(_t(e.childFlags,t.childFlags,e.children,a,i,n,!1,null,e,r),t.dom=e.dom,i!==o&&!s(a)){var c=a.dom;w(i,c),m(o,c)}}function wt(e,t,n,r,i,s){var a,c=t.dom=e.dom,u=e.props,l=t.props,h=!1,d=!1;if(r=r||(32&i)>0,u!==l){var f=u||p;if(a=l||p,a!==p)for(var A in h=(448&i)>0,h&&(d=Fe(a)),a){var g=f[A],m=a[A];g!==m&&$e(A,g,m,c,r,d,e)}if(f!==p)for(var y in f)o(a[y])&&!o(f[y])&&$e(y,f[y],null,c,r,d,e)}var v=t.children,b=t.className;e.className!==b&&(o(b)?c.removeAttribute("class"):r?c.setAttribute("class",b):c.className=b),4096&i?yt(c,v):_t(e.childFlags,t.childFlags,e.children,v,c,n,r&&"foreignObject"!==t.type,null,e,s),h&&Ne(i,t,c,a,!1,d);var w=t.ref,C=e.ref;C!==w&&(He(C),ze(w,c,s))}function Ct(e,t,n,r,i,o){Ve(e),ct(t,n,r,i,S(e,!0),o),x(e,n)}function _t(e,t,n,r,i,o,s,a,c,u){switch(e){case 2:switch(t){case 2:gt(n,r,i,o,s,a,u);break;case 1:Qe(n,i);break;case 16:Ve(n),k(i,r);break;default:Ct(n,r,i,o,s,u);break}break;case 1:switch(t){case 2:rt(r,i,o,s,a,u);break;case 1:break;case 16:k(i,r);break;default:ct(r,i,o,s,a,u);break}break;case 16:switch(t){case 16:mt(n,r,i);break;case 2:We(i),rt(r,i,o,s,a,u);break;case 1:We(i);break;default:We(i),ct(r,i,o,s,a,u);break}break;default:switch(t){case 16:Ke(n),k(i,r);break;case 2:Ge(i,c,n),rt(r,i,o,s,a,u);break;case 1:Ge(i,c,n);break;default:var l=0|n.length,h=0|r.length;0===l?h>0&&ct(r,i,o,s,a,u):0===h?Ge(i,c,n):8===t&&8===e?kt(n,r,i,o,s,l,h,a,c,u):It(n,r,i,o,s,l,h,a,u);break}break}}function St(e,t,n,r,i){i.push(function(){e.componentDidUpdate(t,n,r)})}function xt(e,t,n,r,i,o,s,c,u){var l=e.state,h=e.props,f=Boolean(e.$N),p=a(e.shouldComponentUpdate);if(f&&(t=P(e,n,t!==l?d(l,t):t)),s||!p||p&&e.shouldComponentUpdate(n,t,i)){!f&&a(e.componentWillUpdate)&&e.componentWillUpdate(n,t,i),e.props=n,e.state=t,e.context=i;var A=null,g=et(e,n,i);f&&a(e.getSnapshotBeforeUpdate)&&(A=e.getSnapshotBeforeUpdate(h,l)),gt(e.$LI,g,r,e.$CX,o,c,u),e.$LI=g,a(e.componentDidUpdate)&&St(e,h,l,A,u)}else e.props=n,e.state=t,e.context=i}function Tt(e,t,n,r,i,o,s){var c=t.children=e.children;if(!l(c)){c.$L=s;var u=t.props||p,h=t.ref,f=e.ref,A=c.state;if(!c.$N){if(a(c.componentWillReceiveProps)){if(c.$BR=!0,c.componentWillReceiveProps(u,r),c.$UN)return;c.$BR=!1}l(c.$PS)||(A=d(A,c.$PS),c.$PS=null)}xt(c,A,u,n,r,i,!1,o,s),f!==h&&(He(f),ze(h,c,s))}}function Pt(e,t,n,r,i,s,c){var u=!0,l=t.props||p,h=t.ref,d=e.props,f=!o(h),A=e.children;if(f&&a(h.onComponentShouldUpdate)&&(u=h.onComponentShouldUpdate(d,l)),!1!==u){f&&a(h.onComponentWillUpdate)&&h.onComponentWillUpdate(d,l);var g=X(nt(t,r));gt(A,g,n,r,i,s,c),t.children=g,f&&a(h.onComponentDidUpdate)&&h.onComponentDidUpdate(d,l)}else t.children=A}function Et(e,t){var n=t.children,r=t.dom=e.dom;n!==e.children&&(r.nodeValue=n)}function It(e,t,n,r,i,o,s,a,c){for(var u,l,h=o>s?s:o,d=0;d<h;
84++d)u=t[d],l=e[d],16384&u.flags&&(u=t[d]=K(u)),gt(l,u,n,r,i,a,c),e[d]=u;if(o<s)for(d=h;d<s;++d)u=t[d],16384&u.flags&&(u=t[d]=K(u)),rt(u,n,r,i,a,c);else if(o>s)for(d=h;d<o;++d)Qe(e[d],n)}function kt(e,t,n,r,i,o,s,a,c,u){var l,h,d=o-1,f=s-1,p=0,A=e[p],g=t[p];e:{while(A.key===g.key){if(16384&g.flags&&(t[p]=g=K(g)),gt(A,g,n,r,i,a,u),e[p]=g,++p,p>d||p>f)break e;A=e[p],g=t[p]}A=e[d],g=t[f];while(A.key===g.key){if(16384&g.flags&&(t[f]=g=K(g)),gt(A,g,n,r,i,a,u),e[d]=g,d--,f--,p>d||p>f)break e;A=e[d],g=t[f]}}if(p>d){if(p<=f){l=f+1,h=l<s?S(t[l],!0):a;while(p<=f)g=t[p],16384&g.flags&&(t[p]=g=K(g)),++p,rt(g,n,r,i,h,u)}}else if(p>f)while(p<=d)Qe(e[p++],n);else Bt(e,t,r,o,s,d,f,p,n,i,a,c,u)}function Bt(e,t,n,r,i,o,s,a,c,u,l,h,d){var f,p,A,g=0,m=a,y=a,v=o-a+1,b=s-a+1,w=new Int32Array(b+1),C=v===r,_=!1,x=0,P=0;if(i<4||(v|b)<32)for(g=m;g<=o;++g)if(f=e[g],P<b){for(a=y;a<=s;a++)if(p=t[a],f.key===p.key){if(w[a-y]=g+1,C){C=!1;while(m<g)Qe(e[m++],c)}x>a?_=!0:x=a,16384&p.flags&&(t[a]=p=K(p)),gt(f,p,c,n,u,l,d),++P;break}!C&&a>s&&Qe(f,c)}else C||Qe(f,c);else{var E={};for(g=y;g<=s;++g)E[t[g].key]=g;for(g=m;g<=o;++g)if(f=e[g],P<b)if(a=E[f.key],void 0!==a){if(C){C=!1;while(g>m)Qe(e[m++],c)}w[a-y]=g+1,x>a?_=!0:x=a,p=t[a],16384&p.flags&&(t[a]=p=K(p)),gt(f,p,c,n,u,l,d),++P}else C||Qe(f,c);else C||Qe(f,c)}if(C)Ge(c,h,e),ct(t,c,n,u,l,d);else if(_){var I=Ot(w);for(a=I.length-1,g=b-1;g>=0;g--)0===w[g]?(x=g+y,p=t[x],16384&p.flags&&(t[x]=p=K(p)),A=x+1,rt(p,c,n,u,A<i?S(t[A],!0):l,d)):a<0||g!==I[a]?(x=g+y,p=t[x],A=x+1,T(p,c,A<i?S(t[A],!0):l)):a--}else if(P!==b)for(g=b-1;g>=0;g--)0===w[g]&&(x=g+y,p=t[x],16384&p.flags&&(t[x]=p=K(p)),A=x+1,rt(p,c,n,u,A<i?S(t[A],!0):l,d))}var Mt=0;function Ot(e){var t=0,n=0,r=0,i=0,o=0,s=0,a=0,c=e.length;for(c>Mt&&(Mt=c,Be=new Int32Array(c),Me=new Int32Array(c));n<c;++n)if(t=e[n],0!==t){if(r=Be[i],e[r]<t){Me[n]=r,Be[++i]=n;continue}o=0,s=i;while(o<s)a=o+s>>1,e[Be[a]]<t?o=a+1:s=a;t<e[Be[o]]&&(o>0&&(Me[n]=Be[o-1]),Be[o]=n)}o=i+1;var u=new Int32Array(o);s=Be[o-1];while(o-- >0)u[o]=s,s=Me[s],Be[o]=0;return u}var Dt="undefined"!==typeof document;function Rt(e,t,n,r){var i=[],s=t.$V;E.v=!0,o(s)?o(e)||(16384&e.flags&&(e=K(e)),rt(e,t,r,!1,null,i),t.$V=e,s=e):o(e)?(Qe(s,t),t.$V=null):(16384&e.flags&&(e=K(e)),gt(s,e,t,r,!1,null,i),s=t.$V=e),C(i),E.v=!1,a(n)&&n(),a(I.renderComplete)&&I.renderComplete(s,t)}function Lt(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=p),Rt(e,t,n,r)}Dt&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Nt=[],Ut="undefined"!==typeof Promise?Promise.resolve().then.bind(Prom
84ise.resolve()):function(e){window.setTimeout(e,0)},Ft=!1;function jt(e,t,n,r){var i=e.$PS;if(a(t)&&(t=t(i?d(e.state,i):e.state,e.props,e.context)),o(i))e.$PS=t;else for(var s in t)i[s]=t[s];if(e.$BR)a(n)&&e.$L.push(n.bind(e));else{if(!E.v&&0===Nt.length)return Qt(e,r),void(a(n)&&n.call(e));if(-1===Nt.indexOf(e)&&Nt.push(e),r&&(e.$F=!0),Ft||(Ft=!0,Ut(zt)),a(n)){var c=e.$QU;c||(c=e.$QU=[]),c.push(n)}}}function Ht(e){for(var t=e.$QU,n=0;n<t.length;++n)t[n].call(e);e.$QU=null}function zt(){var e;Ft=!1;while(e=Nt.shift())if(!e.$UN){var t=e.$F;e.$F=!1,Qt(e,t),e.$QU&&Ht(e)}}function Qt(e,t){if(t||!e.$BR){var n=e.$PS;e.$PS=null;var r=[];E.v=!0,xt(e,d(e.state,n),e.props,S(e.$LI,!0).parentNode,e.context,e.$SVG,t,null,r),C(r),E.v=!1}else e.state=e.$PS,e.$PS=null}var Vt=function(e,t){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||p,this.context=t||p};Vt.prototype.forceUpdate=function(e){this.$UN||jt(this,{},e,!0)},Vt.prototype.setState=function(e,t){this.$UN||this.$BS||jt(this,e,t,!1)},Vt.prototype.render=function(e,t,n){return null}},43809:function(e,t,n){const r=n(48379),i=n(82038),o=n(74539);e.exports=function(e,t){if("string"!==typeof e)return!1;if(t instanceof Object||(t={}),e=e.toLowerCase(),e.endsWith(".")&&(e=e.slice(0,e.length-1)),t.allowUnicode&&(e=r.toASCII(e)),e.length>253)return!1;const n=/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g;if(!n.test(e))return!1;if(t.topLevel&&o[e.replace(/\.$/,"")])return!0;const s=/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/,a=e.match(s);let c=null,u=null;if(a&&a.length>2&&i[a[2]]&&(c=a[2],u=a[1].split(".")),!u){if(u=e.split("."),u.length<=1)return!1;c=u.pop();const t=/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi;if(!t.test(c))return!1}if(!1===t.subdomain&&u.length>1)return!1;const l=u.every(function(e,n){if(t.wildcard&&0===n&&"*"===e&&u.length>1)return!0;let r=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;n===u.length-1&&(r=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const i=(e.match(/--(--)?/g)||[]).length,o=(e.match(/xn--/g)||[]).length;if(n===u.length-1&&i!==o)return!1;const s=r.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-");return s});return l}},63334:function(e,t,n){"use strict";n.d(t,{uE:function(){return ka}});var r=n(54119),i=Uint8Array,o=Uint16Array,s=Int32Array,a=new i([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]),c=new i([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]),u=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new s(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},h=l(a,2),d=h.b,f=h.r;d[28]=258,f[258]=28;for(var p=l(c,0),A=(p.b,p.r),g=new o(32768),m=0;m<32768;++m){var y=(43690&m)>>1|(21845&m)<<1;y=(52428&y)>>2|(13107&y)<<2,y=(61680&y)>>4|(3855&y)<<4,g[m]=((65280&y)>>8|(255&y)<<8)>>1}var v=function(e,t,n){for(var r=e.length,i=0,s=new o(t);i<r;++i)e[i]&&++s[e[i]-1];var a,c=new o(t);for(i=1;i<t;++i)c[i]=c[i-1]+s[i-1]<<1;if(n){a=new o(1<<t);var u=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],h=t-e[i],d=c[e[i]-1]++<<h,f=d|(1<<h)-1;d<=f;++d)a[g[d]>>u]=l}else for(a=new o(r),i=0;i<r;++i)e[i]&&(a[i]=g[c[e[i]-1]++]>>15-e[i]);return a},b=new i(288);for(m=0;m<144;++m)b[m]=8;for(m=144;m<256;++m)b[m]=9;for(m=256;m<280;++m)b[m]=7;for(m=280;m<288;++m)b[m]=8;var w=new i(32);for(m=0;m<32;++m)w[m]=5;var C=v(b,9,0),_=v(w,5,0),S=function(e){return(e+7)/8|0},x=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new i(e.subarray(t,n))},T=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},P=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},E=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var s=n.length,a=n.slice();if(!s)return{t:R,l:0};if(1==s){var c=new i(n[0].s+1);return c[n[0].s]=1,{t:c,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var u=n[0],l=n[1],h=0,d=1,f=2;n[0]={s:-1,f:u.f+l.f,l:u,r:l};while(d!=s-1)u=n[n[h].f<n[f].f?h++:f++],l=n[h!=d&&n[h].f<n[f].f?h++:f++],n[d++]={s:-1,f:u.f+l.f,l:u,r:l};var p=a[0].s;for(r=1;r<s;++r)a[r].s>p&&(p=a[r].s);var A=new o(p+1),g=I(n[d-1],A,0);if(g>t){r=0;var m=0,y=g-t,v=1<<y;for(a.sort(function(e,t){return A[t.s]-A[e.s]||e.f-t.f});r<s;++r){var b=a[r].s;if(!(A[b]>t))break;m+=v-(1<<g-A[b]),A[b]=t}m>>=y;while(m>0){var w=a[r].s;A[w]<t?m-=1<<t-A[w]++-1:++r}for(;r>=0&&m;--r){var C=a[r].s;A[C]==t&&(--A[C],++m)}g=t}return{t:new i(A),l:g}},I=function(e,t,n){return-1==e.s?Math.max(I(e.l,t,n+1),I(e.r,t,n+1)):t[e.s]=n},k=function(e){var t=e.length;while(t&&!e[--t]);for(var n=new o(++t),r=0,i=e[0],s=1,a=function(e){n[r++]=e},c=1;c<=t;++c)if(e[c]==i&&c!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(i),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}while(s--)a(i);s=1,i=e[c]}return{c:n.subarray(0,r),n:t}},B=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},M=function(e,t,n){var r=n.length,i=S(t+2);e[i]=255&r,e[i+1]=r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},O=function(e,t,n,r,i,s,l,h,d,f,p){T(t,p++,n),++i[256];for(var A=E(i,15),g=A.t,m=A.l,y=E(s,15),S=y.t,x=y.l,I=k(g),O=I.c,D=I.n,R=k(S),L=R.c,N=R.n,U=new o(19),F=0;F<O.length;++F)++U[31&O[F]];for(F=0;F<L.length;++F)++U[31&L[F]];for(var j=E(U,7),H=j.t,z=j.l,Q=19;Q>4&&!H[u[Q-1]];--Q);var V,K,W,G,q=f+5<<3,Y=B(i,b)+B(s,w)+l,X=B(i,g)+B(s,S)+l+14+3*Q+B(U,H)+2*U[16]+3*U[17]+7*U[18];if(d>=0&&q<=Y&&q<=X)return M(t,p,e.subarray(d,d+f));if(T(t,p,1+(X<Y)),p+=2,X<Y){V=v(g,m,0),K=g,W=v(S,x,0),G=S;var Z=v(H,z,0);T(t,p,D-257),T(t,p+5,N-1),T(t,p+10,Q-4),p+=14;for(F=0;F<Q;++F)T(t,p+3*F,H[u[F]]);p+=3*Q;for(var $=[O,L],J=0;J<2;++J){var ee=$[J];for(F=0;F<ee.length;++F){var te=31&ee[F];T(t,p,Z[te]),p+=H[te],te>15&&(T(t,p,ee[F]>>5&127),p+=ee[F]>>12)}}}else V=C,K=b,W=_,G=w;for(F=0;F<h;++F){var ne=r[F];if(ne>255){te=ne>>18&31;P(t,p,V[te+257]),p+=K[te+257],te>
vendor: 9,631 bytes, lines 84-86
847&&(T(t,p,ne>>23&31),p+=a[te]);var re=31&ne;P(t,p,W[re]),p+=G[re],re>3&&(P(t,p,ne>>5&8191),p+=c[re])}else P(t,p,V[ne]),p+=K[ne]}return P(t,p,V[256]),p+K[256]},D=new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),R=new i(0),L=function(e,t,n,r,u,l){var h=l.z||e.length,d=new i(r+h+5*(1+Math.ceil(h/7e3))+u),p=d.subarray(r,d.length-u),g=l.l,m=7&(l.r||0);if(t){m&&(p[0]=l.r>>3);for(var y=D[t-1],v=y>>13,b=8191&y,w=(1<<n)-1,C=l.p||new o(32768),_=l.h||new o(w+1),T=Math.ceil(n/3),P=2*T,E=function(t){return(e[t]^e[t+1]<<T^e[t+2]<<P)&w},I=new s(25e3),k=new o(288),B=new o(32),R=0,L=0,N=l.i||0,U=0,F=l.w||0,j=0;N+2<h;++N){var H=E(N),z=32767&N,Q=_[H];if(C[z]=Q,_[H]=z,F<=N){var V=h-N;if((R>7e3||U>24576)&&(V>423||!g)){m=O(e,p,0,I,k,B,L,U,j,N-j,m),U=R=L=0,j=N;for(var K=0;K<286;++K)k[K]=0;for(K=0;K<30;++K)B[K]=0}var W=2,G=0,q=b,Y=z-Q&32767;if(V>2&&H==E(N-Y)){var X=Math.min(v,V)-1,Z=Math.min(32767,N),$=Math.min(258,V);while(Y<=Z&&--q&&z!=Q){if(e[N+W]==e[N+W-Y]){for(var J=0;J<$&&e[N+J]==e[N+J-Y];++J);if(J>W){if(W=J,G=Y,J>X)break;var ee=Math.min(Y,J-2),te=0;for(K=0;K<ee;++K){var ne=N-Y+K&32767,re=C[ne],ie=ne-re&32767;ie>te&&(te=ie,Q=ne)}}}z=Q,Q=C[z],Y+=z-Q&32767}}if(G){I[U++]=268435456|f[W]<<18|A[G];var oe=31&f[W],se=31&A[G];L+=a[oe]+c[se],++k[257+oe],++B[se],F=N+W,++R}else I[U++]=e[N],++k[e[N]]}}for(N=Math.max(N,F);N<h;++N)I[U++]=e[N],++k[e[N]];m=O(e,p,g,I,k,B,L,U,j,N-j,m),g||(l.r=7&m|p[m/8|0]<<3,m-=7,l.h=_,l.p=C,l.i=N,l.w=F)}else{for(N=l.w||0;N<h+g;N+=65535){var ae=N+65535;ae>=h&&(p[m/8|0]=g,ae=h),m=M(p,m+1,e.subarray(N,ae))}l.i=h}return x(d,0,r+S(m)+u)},N=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=0|n.length,s=0;s!=o;){for(var a=Math.min(s+2655,o);s<a;++s)i+=r+=n[s];r=(65535&r)+15*(r>>16),i=(65535&i)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(255&e)<<24|(65280&e)<<8|(255&t)<<8|t>>8}}},U=function(e,t,n,r,o){if(!o&&(o={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),a=new i(s.length+e.length);a.set(s),a.set(e,s.length),e=a,o.w=s.length}return L(e,null==t.level?6:t.level,null==t.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,o)},F=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},j=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=N();i.p(t.dictionary),F(e,2,i.d())}};function H(e,t){t||(t={});var n=N();n.p(e);var r=U(e,t,t.dictionary?6:2,4);return j(r,t),F(r,r.length-4,n.d()),r}var z="undefined"!=typeof TextDecoder&&new TextDecoder;try{z.decode(R,{stream:!0})}catch(Su){}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;function Q(e){if(Array.isArray(e))return e}n(44114);function V(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n["return"]&&(s=n["return"](),Object(s)!==s))return}finally{if(u)throw i}}return a}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(e,t){return Q(e)||V(e,t)||W(e,t)||G()}function Y(e,t="utf8"){const n=new TextDecoder(t);return n.decode(e)}const X=new TextEncoder;function Z(e){return X.encode(e)}const $=8192,J=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),ee={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class te{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=$,t={}){let n=!1;"number"===typeof e?e=new ArrayBuffer(e):(n=!0,this.lastWrittenByte=e.byteLength);const r=t.offset?t.offset>>>0:0,i=e.byteLength-r;let o=r;(ArrayBuffer.isView(e)||e instanceof te)&&(e.byteLength!==e.buffer.byteLength&&(o=e.byteOffset+r),e=e.buffer),this.lastWrittenByte=n?i:0,this.buffer=e,this.length=i,this.byteLength=i,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,i),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(void 0===e)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const t=this.offset+e,n=2*t,r=new Uint8Array(n);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const n=ee[t].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+n);if(this.littleEndian===J&&"uint8"!==t&&"int8"!==t){const e=new Uint8Array(this.buffer.slice(r,r+n));e.reverse();const i=new ee[t](e.buffer);return this.offset+=n,i.reverse(),i}const o=new ee[t](i);return this.offset+=n,o}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let n=0;n<e;n++)t+=this.readChar();return t}readUtf8(e=1){return Y(this.readBytes(e))}decodeText(e=1,t="utf8"){return Y(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes(Z(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}
85/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
86const ne=4,re=0,ie=1,oe=2;function se(e){let t=e.length;while(--t>=0)e[t]=0}const ae=0,ce=1,ue=2,le=3,he=258,de=29,fe=256,pe=fe+1+de,Ae=30,ge=19,me=2*pe+1,ye=15,ve=16,be=7,we=256,Ce=16,_e=17,Se=18,xe=new 
vendor: 3,322 bytes, line 86
86Uint8Array([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]),Te=new Uint8Array([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]),Pe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ee=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ie=512,ke=new Array(2*(pe+2));se(ke);const Be=new Array(2*Ae);se(Be);const Me=new Array(Ie);se(Me);const Oe=new Array(he-le+1);se(Oe);const De=new Array(de);se(De);const Re=new Array(Ae);function Le(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let Ne,Ue,Fe;function je(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}se(Re);const He=e=>e<256?Me[e]:Me[256+(e>>>7)],ze=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Qe=(e,t,n)=>{e.bi_valid>ve-n?(e.bi_buf|=t<<e.bi_valid&65535,ze(e,e.bi_buf),e.bi_buf=t>>ve-e.bi_valid,e.bi_valid+=n-ve):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Ve=(e,t,n)=>{Qe(e,n[2*t],n[2*t+1])},Ke=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},We=e=>{16===e.bi_valid?(ze(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},Ge=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,l,h,d,f,p,A=0;for(d=0;d<=ye;d++)e.bl_count[d]=0;for(n[2*e.heap[e.heap_max]+1]=0,u=e.heap_max+1;u<me;u++)l=e.heap[u],d=n[2*n[2*l+1]+1]+1,d>c&&(d=c,A++),n[2*l+1]=d,l>r||(e.bl_count[d]++,f=0,l>=a&&(f=s[l-a]),p=n[2*l],e.opt_len+=p*(d+f),o&&(e.static_len+=p*(i[2*l+1]+f)));if(0!==A){do{d=c-1;while(0===e.bl_count[d])d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[c]--,A-=2}while(A>0);for(d=c;0!==d;d--){l=e.bl_count[d];while(0!==l)h=e.heap[--u],h>r||(n[2*h+1]!==d&&(e.opt_len+=(d-n[2*h+1])*n[2*h],n[2*h+1]=d),l--)}}},qe=(e,t,n)=>{const r=new Array(ye+1);let i,o,s=0;for(i=1;i<=ye;i++)s=s+n[i-1]<<1,r[i]=s;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=Ke(r[t]++,t))}},Ye=()=>{let e,t,n,r,i;const o=new Array(ye+1);for(n=0,r=0;r<de-1;r++)for(De[r]=n,e=0;e<1<<xe[r];e++)Oe[n++]=r;for(Oe[n-1]=r,i=0,r=0;r<16;r++)for(Re[r]=i,e=0;e<1<<Te[r];e++)Me[i++]=r;for(i>>=7;r<Ae;r++)for(Re[r]=i<<7,e=0;e<1<<Te[r]-7;e++)Me[256+i++]=r;for(t=0;t<=ye;t++)o[t]=0;e=0;while(e<=143)ke[2*e+1]=8,e++,o[8]++;while(e<=255)ke[2*e+1]=9,e++,o[9]++;while(e<=279)ke[2*e+1]=7,e++,o[7]++;while(e<=287)ke[2*e+1]=8,e++,o[8]++;for(qe(ke,pe+1,o),e=0;e<Ae;e++)Be[2*e+1]=5,Be[2*e]=Ke(e,5);Ne=new Le(ke,xe,fe+1,pe,ye),Ue=new Le(Be,Te,0,Ae,ye),Fe=new Le(new Array(0),Pe,0,ge,be)},Xe=e=>{let t;for(t=0;t<pe;t++)e.dyn_ltree[2*t]=0;for(t=0;t<Ae;t++)e.dyn_dtree[2*t]=0;for(t=0;t<ge;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*we]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Ze=e=>{e.bi_valid>8?ze(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},$e=(e,t,n,r)=>{const i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},Je=(e,t,n)=>{const r=e.heap[n];let i=n<<1;while(i<=e.heap_len){if(i<e.heap_len&&$e(t,e.heap[i+1],e.heap[i],e.depth)&&i++,$e(t,r,e.heap[i],e.depth))break;e.heap[n]=e.heap[i],n=i,i<<=1}e.heap[n]=r},et=(e,t,n)=>{let r,i,o,s,a=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+a++],r+=(255&e.pen
vendor: 4,494 bytes, line 86
86ding_buf[e.sym_buf+a++])<<8,i=e.pending_buf[e.sym_buf+a++],0===r?Ve(e,i,t):(o=Oe[i],Ve(e,o+fe+1,t),s=xe[o],0!==s&&(i-=De[o],Qe(e,i,s)),r--,o=He(r),Ve(e,o,n),s=Te[o],0!==s&&(r-=Re[o],Qe(e,r,s)))}while(a<e.sym_next);Ve(e,we,t)},tt=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let s,a,c,u=-1;for(e.heap_len=0,e.heap_max=me,s=0;s<o;s++)0!==n[2*s]?(e.heap[++e.heap_len]=u=s,e.depth[s]=0):n[2*s+1]=0;while(e.heap_len<2)c=e.heap[++e.heap_len]=u<2?++u:0,n[2*c]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[2*c+1]);for(t.max_code=u,s=e.heap_len>>1;s>=1;s--)Je(e,n,s);c=o;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Je(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,n[2*c]=n[2*s]+n[2*a],e.depth[c]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,n[2*s+1]=n[2*a+1]=c,e.heap[1]=c++,Je(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Ge(e,t),qe(n,u,e.bl_count)},nt=(e,t,n)=>{let r,i,o=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=t[2*(r+1)+1],++a<c&&i===s||(a<u?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*Ce]++):a<=10?e.bl_tree[2*_e]++:e.bl_tree[2*Se]++,a=0,o=i,0===s?(c=138,u=3):i===s?(c=6,u=3):(c=7,u=4))},rt=(e,t,n)=>{let r,i,o=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),r=0;r<=n;r++)if(i=s,s=t[2*(r+1)+1],!(++a<c&&i===s)){if(a<u)do{Ve(e,i,e.bl_tree)}while(0!==--a);else 0!==i?(i!==o&&(Ve(e,i,e.bl_tree),a--),Ve(e,Ce,e.bl_tree),Qe(e,a-3,2)):a<=10?(Ve(e,_e,e.bl_tree),Qe(e,a-3,3)):(Ve(e,Se,e.bl_tree),Qe(e,a-11,7));a=0,o=i,0===s?(c=138,u=3):i===s?(c=6,u=3):(c=7,u=4)}},it=e=>{let t;for(nt(e,e.dyn_ltree,e.l_desc.max_code),nt(e,e.dyn_dtree,e.d_desc.max_code),tt(e,e.bl_desc),t=ge-1;t>=3;t--)if(0!==e.bl_tree[2*Ee[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t},ot=(e,t,n,r)=>{let i;for(Qe(e,t-257,5),Qe(e,n-1,5),Qe(e,r-4,4),i=0;i<r;i++)Qe(e,e.bl_tree[2*Ee[i]+1],3);rt(e,e.dyn_ltree,t-1),rt(e,e.dyn_dtree,n-1)},st=e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return re;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return ie;for(t=32;t<fe;t++)if(0!==e.dyn_ltree[2*t])return ie;return re};let at=!1;const ct=e=>{at||(Ye(),at=!0),e.l_desc=new je(e.dyn_ltree,Ne),e.d_desc=new je(e.dyn_dtree,Ue),e.bl_desc=new je(e.bl_tree,Fe),e.bi_buf=0,e.bi_valid=0,Xe(e)},ut=(e,t,n,r)=>{Qe(e,(ae<<1)+(r?1:0),3),Ze(e),ze(e,n),ze(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},lt=e=>{Qe(e,ce<<1,3),Ve(e,we,ke),We(e)},ht=(e,t,n,r)=>{let i,o,s=0;e.level>0?(e.strm.data_type===oe&&(e.strm.data_type=st(e)),tt(e,e.l_desc),tt(e,e.d_desc),s=it(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?ut(e,t,n,r):e.strategy===ne||o===i?(Qe(e,(ce<<1)+(r?1:0),3),et(e,ke,Be)):(Qe(e,(ue<<1)+(r?1:0),3),ot(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),et(e,e.dyn_ltree,e.dyn_dtree)),Xe(e),r&&Ze(e)},dt=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Oe[n]+fe+1)]++,e.dyn_dtree[2*He(t)]++),e.sym_next===e.sym_end);var ft=ct,pt=ut,At=ht,gt=dt,mt=lt,yt={_tr_init:ft,_tr_stored_block:pt,_tr_flush_block:At,_tr_tally:gt,_tr_align:mt};const vt=(e,t,n,r)=>{let i=65535&e,o=e>>>16&65535,s=0;while(0!==n){s=n>2e3?2e3:n,n-=s;do{i=i+t[r++]|0,o=o+i|0}while(--s);i%=65521,o%=65521}return i|o<<16};var bt=vt;const wt=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t},Ct=new Uint32Array(wt()),_t=(e,t,n,r)=>{const i=Ct,o=r+n;e^=-1;for(let s=r;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e};var St=_t,xt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Tt={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Pt,_tr_stored_block:Et,_tr_flush_block:It,_tr_tally:kt,_tr_align:Bt}=yt,{Z_NO_FLUSH:Mt,Z_PARTIAL_FLUSH:Ot,Z_FULL_FLUSH:Dt,Z_FINISH:Rt,Z_BLOCK:Lt,Z_OK:Nt,Z_STREAM_END:Ut,Z_STREAM_ERROR:Ft,Z_DATA_ERROR:jt,Z_BUF_ER
vendor: 4,653 bytes, line 86
86ROR:Ht,Z_DEFAULT_COMPRESSION:zt,Z_FILTERED:Qt,Z_HUFFMAN_ONLY:Vt,Z_RLE:Kt,Z_FIXED:Wt,Z_DEFAULT_STRATEGY:Gt,Z_UNKNOWN:qt,Z_DEFLATED:Yt}=Tt,Xt=9,Zt=15,$t=8,Jt=29,en=256,tn=en+1+Jt,nn=30,rn=19,on=2*tn+1,sn=15,an=3,cn=258,un=cn+an+1,ln=32,hn=42,dn=57,fn=69,pn=73,An=91,gn=103,mn=113,yn=666,vn=1,bn=2,wn=3,Cn=4,_n=3,Sn=(e,t)=>(e.msg=xt[t],t),xn=e=>2*e-(e>4?9:0),Tn=e=>{let t=e.length;while(--t>=0)e[t]=0},Pn=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=i?n-i:0}while(--t);t=i,r=t;do{n=e.prev[--r],e.prev[r]=n>=i?n-i:0}while(--t)};let En=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,In=En;const kn=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Bn=(e,t)=>{It(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,kn(e.strm)},Mn=(e,t)=>{e.pending_buf[e.pending++]=t},On=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Dn=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=bt(e.adler,t,i,n):2===e.state.wrap&&(e.adler=St(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Rn=(e,t)=>{let n,r,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match;const c=e.strstart>e.w_size-un?e.strstart-(e.w_size-un):0,u=e.window,l=e.w_mask,h=e.prev,d=e.strstart+cn;let f=u[o+s-1],p=u[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(n=t,u[n+s]===p&&u[n+s-1]===f&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(r=cn-(d-o),o=d-cn,r>s){if(e.match_start=t,s=r,r>=a)break;f=u[o+s-1],p=u[o+s]}}}while((t=h[t&l])>c&&0!==--i);return s<=e.lookahead?s:e.lookahead},Ln=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-un)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Pn(e),r+=t),0===e.strm.avail_in)break;if(n=Dn(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=an){i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=In(e,e.ins_h,e.window[i+1]);while(e.insert)if(e.ins_h=In(e,e.ins_h,e.window[i+an-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,e.lookahead+e.insert<an)break}}while(e.lookahead<un&&0!==e.strm.avail_in)},Nn=(e,t)=>{let n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,s=0,a=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i)break;if(i=e.strm.avail_out-i,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n<o&&(0===n&&t!==Rt||t===Mt||n!==r+e.strm.avail_in))break;s=t===Rt&&n===r+e.strm.avail_in?1:0,Et(e,0,0,s),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,kn(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Dn(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===s);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s?Cn:t!==Mt&&t!==Rt&&0===e.strm.avail_in&&e.strstart===e.block_start?bn:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(Dn(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>
vendor: 5,687 bytes, line 86
86e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===Rt)&&t!==Mt&&0===e.strm.avail_in&&r<=i)&&(n=r>i?i:r,s=t===Rt&&0===e.strm.avail_in&&n===r?1:0,Et(e,e.block_start,n,s),e.block_start+=n,kn(e.strm)),s?wn:vn)},Un=(e,t)=>{let n,r;for(;;){if(e.lookahead<un){if(Ln(e),e.lookahead<un&&t===Mt)return vn;if(0===e.lookahead)break}if(n=0,e.lookahead>=an&&(e.ins_h=In(e,e.ins_h,e.window[e.strstart+an-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-un&&(e.match_length=Rn(e,n)),e.match_length>=an)if(r=kt(e,e.strstart-e.match_start,e.match_length-an),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=an){e.match_length--;do{e.strstart++,e.ins_h=In(e,e.ins_h,e.window[e.strstart+an-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=In(e,e.ins_h,e.window[e.strstart+1]);else r=kt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Bn(e,!1),0===e.strm.avail_out))return vn}return e.insert=e.strstart<an-1?e.strstart:an-1,t===Rt?(Bn(e,!0),0===e.strm.avail_out?wn:Cn):e.sym_next&&(Bn(e,!1),0===e.strm.avail_out)?vn:bn},Fn=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<un){if(Ln(e),e.lookahead<un&&t===Mt)return vn;if(0===e.lookahead)break}if(n=0,e.lookahead>=an&&(e.ins_h=In(e,e.ins_h,e.window[e.strstart+an-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=an-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-un&&(e.match_length=Rn(e,n),e.match_length<=5&&(e.strategy===Qt||e.match_length===an&&e.strstart-e.match_start>4096)&&(e.match_length=an-1)),e.prev_length>=an&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-an,r=kt(e,e.strstart-1-e.prev_match,e.prev_length-an),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=In(e,e.ins_h,e.window[e.strstart+an-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=an-1,e.strstart++,r&&(Bn(e,!1),0===e.strm.avail_out))return vn}else if(e.match_available){if(r=kt(e,0,e.window[e.strstart-1]),r&&Bn(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return vn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=kt(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<an-1?e.strstart:an-1,t===Rt?(Bn(e,!0),0===e.strm.avail_out?wn:Cn):e.sym_next&&(Bn(e,!1),0===e.strm.avail_out)?vn:bn},jn=(e,t)=>{let n,r,i,o;const s=e.window;for(;;){if(e.lookahead<=cn){if(Ln(e),e.lookahead<=cn&&t===Mt)return vn;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=an&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){o=e.strstart+cn;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=cn-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=an?(n=kt(e,1,e.match_length-an),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=kt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Bn(e,!1),0===e.strm.avail_out))return vn}return e.insert=0,t===Rt?(Bn(e,!0),0===e.strm.avail_out?wn:Cn):e.sym_next&&(Bn(e,!1),0===e.strm.avail_out)?vn:bn},Hn=(e,t)=>{let n;for(;;){if(0===e.lookahead&&(Ln(e),0===e.lookahead)){if(t===Mt)return vn;break}if(e.match_length=0,n=kt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Bn(e,!1),0===e.strm.avail_out))return vn}return e.insert=0,t===Rt?(Bn(e,!0),0===e.strm.avail_out?wn:Cn):e.sym_next&&(Bn(e,!1),0===e.strm.avail_out)?vn:bn};function zn(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const Qn=[new zn(0,0,0,0,Nn),new zn(4,4,8,4,Un),new zn(4,5,16,8,Un),new zn(4,6,32,32,Un),new zn(4,4,16,16,Fn),new zn(8,16,32,32,Fn),new zn(8,16,128,128,Fn),new zn(8,32,128,256,Fn),new zn(32,128,258,1024,Fn),new zn(32,258,258,4096,Fn)],Vn=e=>{e.window_size=2*e.w_size,Tn(e.head),e.max_lazy_match=Qn[e.level].max_lazy,e.good_match=Qn[e.level].good_length,e.nice_match=Qn[e.level].nice_length,e.max_chain_length=Qn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=an-1,e.match_available=0,e.ins_h=0};function Kn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Yt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*on),this.dyn_dtree=new Uint16Array(2*(2*nn+1)),this.bl_tree=new Uint16Array(2*(2*rn+1)),Tn(this.dyn_ltree),Tn(this.dyn_dtree),Tn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(sn+1),this.heap=new Uint16Array(2*tn+1),Tn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*tn+1),Tn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Wn=e=>{if(!e)return 1;const t=e.state;
vendor: 5,284 bytes, line 86
86return!t||t.strm!==e||t.status!==hn&&t.status!==dn&&t.status!==fn&&t.status!==pn&&t.status!==An&&t.status!==gn&&t.status!==mn&&t.status!==yn?1:0},Gn=e=>{if(Wn(e))return Sn(e,Ft);e.total_in=e.total_out=0,e.data_type=qt;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?dn:t.wrap?hn:mn,e.adler=2===t.wrap?0:1,t.last_flush=-2,Pt(t),Nt},qn=e=>{const t=Gn(e);return t===Nt&&Vn(e.state),t},Yn=(e,t)=>Wn(e)||2!==e.state.wrap?Ft:(e.state.gzhead=t,Nt),Xn=(e,t,n,r,i,o)=>{if(!e)return Ft;let s=1;if(t===zt&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>Xt||n!==Yt||r<8||r>15||t<0||t>9||o<0||o>Wt||8===r&&1!==s)return Sn(e,Ft);8===r&&(r=9);const a=new Kn;return e.state=a,a.strm=e,a.status=hn,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+an-1)/an),a.window=new Uint8Array(2*a.w_size),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=3*(a.lit_bufsize-1),a.level=t,a.strategy=o,a.method=n,qn(e)},Zn=(e,t)=>Xn(e,t,Yt,Zt,$t,Gt),$n=(e,t)=>{if(Wn(e)||t>Lt||t<0)return e?Sn(e,Ft):Ft;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===yn&&t!==Rt)return Sn(e,0===e.avail_out?Ht:Ft);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(kn(e),0===e.avail_out)return n.last_flush=-1,Nt}else if(0===e.avail_in&&xn(t)<=xn(r)&&t!==Rt)return Sn(e,Ht);if(n.status===yn&&0!==e.avail_in)return Sn(e,Ht);if(n.status===hn&&0===n.wrap&&(n.status=mn),n.status===hn){let t=Yt+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=Vt||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=ln),t+=31-t%31,On(n,t),0!==n.strstart&&(On(n,e.adler>>>16),On(n,65535&e.adler)),e.adler=1,n.status=mn,kn(e),0!==n.pending)return n.last_flush=-1,Nt}if(n.status===dn)if(e.adler=0,Mn(n,31),Mn(n,139),Mn(n,8),n.gzhead)Mn(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Mn(n,255&n.gzhead.time),Mn(n,n.gzhead.time>>8&255),Mn(n,n.gzhead.time>>16&255),Mn(n,n.gzhead.time>>24&255),Mn(n,9===n.level?2:n.strategy>=Vt||n.level<2?4:0),Mn(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Mn(n,255&n.gzhead.extra.length),Mn(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=St(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=fn;else if(Mn(n,0),Mn(n,0),Mn(n,0),Mn(n,0),Mn(n,0),Mn(n,9===n.level?2:n.strategy>=Vt||n.level<2?4:0),Mn(n,_n),n.status=mn,kn(e),0!==n.pending)return n.last_flush=-1,Nt;if(n.status===fn){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;while(n.pending+r>n.pending_buf_size){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=St(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,kn(e),0!==n.pending)return n.last_flush=-1,Nt;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=St(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=pn}if(n.status===pn){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=St(e.adler,n.pending_buf,n.pending-r,r)),kn(e),0!==n.pending)return n.last_flush=-1,Nt;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Mn(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=St(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=An}if(n.status===An){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=St(e.adler,n.pending_buf,n.pending-r,r)),kn(e),0!==n.pending)return n.last_flush=-1,Nt;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Mn(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=St(e.adler,n.pending_buf,n.pending-r,r))}n.status=gn}if(n.status===gn){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(kn(e),0!==n.pending))return n.last_flush=-1,Nt;Mn(n,255&e.adler),Mn(n,e.adler>>8&255),e.adler=0}if(n.status=mn,kn(e),0!==n.pending)return n.last_flush=-1,Nt}if(0!==e.avail_in||0!==n.lookahead||t!==Mt&&n.status!==yn){let r=0===n.level?Nn(n,t):n.strategy===Vt?Hn(n,t):n.strategy===Kt?jn(n,t):Qn[n.level].func(n,t);if(r!==wn&&r!==Cn||(n.status=yn),r===vn||r===wn)return 0===e.avail_out&&(n.last_flush=-1),Nt;if(r===bn&&(t===Ot?Bt(n):t!==Lt&&(Et(n,0,0,!1),t===Dt&&(Tn(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),kn(e),0===e.avail_out))return n.last_flush=-1,Nt}return t!==Rt?Nt:n.wrap<=0?Ut:(2===n.wrap?(Mn(n,255&e.adler),Mn(n,e.adler>>8&255),Mn(n,e.adler>>16&255),Mn(n,e.adler>>24&255),Mn(n,255&e.total_in),Mn(n,e.total_in>>8&255),Mn(n,e.total_in>>16&255),Mn(n,e.total_in>>24&255)):(On(n,e.adler>>>16),On(n,65535&e.adler)),kn(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?Nt:Ut)},Jn=e=>{if(Wn(e))return Ft;const t=e.state.status;return e.state=null,t===mn?Sn(e,jt):Nt},er=(e,t)=>{let n=t.length;if(Wn(e))return Ft;const r=e.state,i=r.wrap;
vendor: 4,751 bytes, line 86
86if(2===i||1===i&&r.status!==hn||r.lookahead)return Ft;if(1===i&&(e.adler=bt(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(Tn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const o=e.avail_in,s=e.next_in,a=e.input;e.avail_in=n,e.next_in=0,e.input=t,Ln(r);while(r.lookahead>=an){let e=r.strstart,t=r.lookahead-(an-1);do{r.ins_h=In(r,r.ins_h,r.window[e+an-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=an-1,Ln(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=an-1,r.match_available=0,e.next_in=s,e.input=a,e.avail_in=o,r.wrap=i,Nt};var tr=Zn,nr=Xn,rr=qn,ir=Gn,or=Yn,sr=$n,ar=Jn,cr=er,ur="pako deflate (from Nodeca project)",lr={deflateInit:tr,deflateInit2:nr,deflateReset:rr,deflateResetKeep:ir,deflateSetHeader:or,deflate:sr,deflateEnd:ar,deflateSetDictionary:cr,deflateInfo:ur};const hr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var dr=function(e){const t=Array.prototype.slice.call(arguments,1);while(t.length){const n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(const t in n)hr(n,t)&&(e[t]=n[t])}}return e},fr=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,o=e.length;r<o;r++){let t=e[r];n.set(t,i),i+=t.length}return n},pr={assign:dr,flattenChunks:fr};let Ar=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(xu){Ar=!1}const gr=new Uint8Array(256);for(let Tu=0;Tu<256;Tu++)gr[Tu]=Tu>=252?6:Tu>=248?5:Tu>=240?4:Tu>=224?3:Tu>=192?2:1;gr[254]=gr[254]=1;var mr=e=>{if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,i,o,s=e.length,a=0;for(i=0;i<s;i++)n=e.charCodeAt(i),55296===(64512&n)&&i+1<s&&(r=e.charCodeAt(i+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),o=0,i=0;o<a;i++)n=e.charCodeAt(i),55296===(64512&n)&&i+1<s&&(r=e.charCodeAt(i+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t};const yr=(e,t)=>{if(t<65534&&e.subarray&&Ar)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var vr=(e,t)=>{const n=t||e.length;if("function"===typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,i;const o=new Array(2*n);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){o[i++]=t;continue}let s=gr[t];if(s>4)o[i++]=65533,r+=s-1;else{t&=2===s?31:3===s?15:7;while(s>1&&r<n)t=t<<6|63&e[r++],s--;s>1?o[i++]=65533:t<65536?o[i++]=t:(t-=65536,o[i++]=55296|t>>10&1023,o[i++]=56320|1023&t)}}return yr(o,i)},br=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;while(n>=0&&128===(192&e[n]))n--;return n<0||0===n?t:n+gr[e[n]]>t?n:t},wr={string2buf:mr,buf2string:vr,utf8border:br};function Cr(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var _r=Cr;const Sr=Object.prototype.toString,{Z_NO_FLUSH:xr,Z_SYNC_FLUSH:Tr,Z_FULL_FLUSH:Pr,Z_FINISH:Er,Z_OK:Ir,Z_STREAM_END:kr,Z_DEFAULT_COMPRESSION:Br,Z_DEFAULT_STRATEGY:Mr,Z_DEFLATED:Or}=Tt;function Dr(e){this.options=pr.assign({level:Br,method:Or,chunkSize:16384,windowBits:15,memLevel:8,strategy:Mr},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _r,this.strm.avail_out=0;let n=lr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Ir)throw new Error(xt[n]);if(t.header&&lr.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"===typeof t.dictionary?wr.string2buf(t.dictionary):"[object ArrayBuffer]"===Sr.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=lr.deflateSetDictionary(this.strm,e),n!==Ir)throw new Error(xt[n]);this._dict_set=!0}}function Rr(e,t){const n=new Dr(t);if(n.push(e,!0),n.err)throw n.msg||xt[n.err];return n.result}function Lr(e,t){return t=t||{},t.raw=!0,Rr(e,t)}function Nr(e,t){return t=t||{},t.gzip=!0,Rr(e,t)}Dr.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?Er:xr,"string"===typeof e?n.input=wr.string2buf(e):"[object ArrayBuffer]"===Sr.call(e)?n.input=new 
vendor: 4,495 bytes, line 86
86Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===Tr||o===Pr)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(i=lr.deflate(n,o),i===kr)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=lr.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Ir;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},Dr.prototype.onData=function(e){this.chunks.push(e)},Dr.prototype.onEnd=function(e){e===Ir&&(this.result=pr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Ur=Dr,Fr=Rr,jr=Lr,Hr=Nr,zr=Tt,Qr={Deflate:Ur,deflate:Fr,deflateRaw:jr,gzip:Hr,constants:zr};const Vr=16209,Kr=16191;var Wr=function(e,t){let n,r,i,o,s,a,c,u,l,h,d,f,p,A,g,m,y,v,b,w,C,_,S,x;const T=e.state;n=e.next_in,S=e.input,r=n+(e.avail_in-5),i=e.next_out,x=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),a=T.dmax,c=T.wsize,u=T.whave,l=T.wnext,h=T.window,d=T.hold,f=T.bits,p=T.lencode,A=T.distcode,g=(1<<T.lenbits)-1,m=(1<<T.distbits)-1;e:do{f<15&&(d+=S[n++]<<f,f+=8,d+=S[n++]<<f,f+=8),y=p[d&g];t:for(;;){if(v=y>>>24,d>>>=v,f-=v,v=y>>>16&255,0===v)x[i++]=65535&y;else{if(!(16&v)){if(0===(64&v)){y=p[(65535&y)+(d&(1<<v)-1)];continue t}if(32&v){T.mode=Kr;break e}e.msg="invalid literal/length code",T.mode=Vr;break e}b=65535&y,v&=15,v&&(f<v&&(d+=S[n++]<<f,f+=8),b+=d&(1<<v)-1,d>>>=v,f-=v),f<15&&(d+=S[n++]<<f,f+=8,d+=S[n++]<<f,f+=8),y=A[d&m];n:for(;;){if(v=y>>>24,d>>>=v,f-=v,v=y>>>16&255,!(16&v)){if(0===(64&v)){y=A[(65535&y)+(d&(1<<v)-1)];continue n}e.msg="invalid distance code",T.mode=Vr;break e}if(w=65535&y,v&=15,f<v&&(d+=S[n++]<<f,f+=8,f<v&&(d+=S[n++]<<f,f+=8)),w+=d&(1<<v)-1,w>a){e.msg="invalid distance too far back",T.mode=Vr;break e}if(d>>>=v,f-=v,v=i-o,w>v){if(v=w-v,v>u&&T.sane){e.msg="invalid distance too far back",T.mode=Vr;break e}if(C=0,_=h,0===l){if(C+=c-v,v<b){b-=v;do{x[i++]=h[C++]}while(--v);C=i-w,_=x}}else if(l<v){if(C+=c+l-v,v-=l,v<b){b-=v;do{x[i++]=h[C++]}while(--v);if(C=0,l<b){v=l,b-=v;do{x[i++]=h[C++]}while(--v);C=i-w,_=x}}}else if(C+=l-v,v<b){b-=v;do{x[i++]=h[C++]}while(--v);C=i-w,_=x}while(b>2)x[i++]=_[C++],x[i++]=_[C++],x[i++]=_[C++],b-=3;b&&(x[i++]=_[C++],b>1&&(x[i++]=_[C++]))}else{C=i-w;do{x[i++]=x[C++],x[i++]=x[C++],x[i++]=x[C++],b-=3}while(b>2);b&&(x[i++]=x[C++],b>1&&(x[i++]=x[C++]))}break}}break}}while(n<r&&i<s);b=f>>3,n-=b,f-=b<<3,d&=(1<<f)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=i<s?s-i+257:257-(i-s),T.hold=d,T.bits=f};const Gr=15,qr=852,Yr=592,Xr=0,Zr=1,$r=2,Jr=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ei=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ti=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ni=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),ri=(e,t,n,r,i,o,s,a)=>{const c=a.bits;let u,l,h,d,f,p,A=0,g=0,m=0,y=0,v=0,b=0,w=0,C=0,_=0,S=0,x=null;const T=new Uint16Array(Gr+1),P=new Uint16Array(Gr+1);let E,I,k,B=null;for(A=0;A<=Gr;A++)T[A]=0;for(g=0;g<r;g++)T[t[n+g]]++;for(v=c,y=Gr;y>=1;y--)if(0!==T[y])break;if(v>y&&(v=y),0===y)return i[o++]=20971520,i[o++]=20971520,a.bits=1,0;for(m=1;m<y;m++)if(0!==T[m])break;for(v<m&&(v=m),C=1,A=1;A<=Gr;A++)if(C<<=1,C-=T[A],C<0)return-1;if(C>0&&(e===Xr||1!==y))return-1;for(P[1]=0,A=1;A<Gr;A++)P[A+1]=P[A]+T[A];for(g=0;g<r;g++)0!==t[n+g]&&(s[P[t[n+g]]++]=g);if(e===Xr?(x=B=s,p=20):e===Zr?(x=Jr,B=ei,p=257):(x=ti,B=ni,p=0),S=0,g=0,A=m,f=o,b=v,w=0,h=-1,_=1<<v,d=_-1,e===Zr&&_>qr||e===$r&&_>Yr)return 1;for(;;){E=A-w,s[g]+1<p?(I=0,k=s[g]):s[g]>=p?(I=B[s[g]-p],k=x[s[g]-p]):(I=96,k=0),u=1<<A-w,l=1<<b,m=l;do{l-=u,i[f+(S>>w)+l]=E<<24|I<<16|k}while(0!==l);u=1<<A-1;while(S&u)u>>=1;if(0!==u?(S&=u-1,S+=u):S=0,g++,0===--T[A]){if(A===y)break;A=t[n+s[g]]}if(A>v&&(S&d)!==h){0===w&&(w=v),f+=m,b=A-w,C=1<<b;while(b+w<y){if(C-=T[b+w],C<=0)break;b++,C<<=1}if(_+=1<<b,e===Zr&&_>qr||e===$r&&_>Yr)return 1;h=S&d,i[h]=v<<24|b<<16|f-o}}return 0!==S&&(i[f+S]=A-w<<24|64<<16),a.bits=v,0};var ii=ri;const oi=0,si=1,ai=2,{Z_FINISH:ci,Z_BLOCK:ui,Z_TREES:li,Z_OK:hi,Z_STREAM_END:di,Z_NEED_DICT:fi,Z_STREAM_ERROR:pi,Z_DATA_ERROR:Ai,Z_MEM_ERROR:gi,Z_BUF_ER
vendor: 9,819 bytes, line 86
86ROR:mi,Z_DEFLATED:yi}=Tt,vi=16180,bi=16181,wi=16182,Ci=16183,_i=16184,Si=16185,xi=16186,Ti=16187,Pi=16188,Ei=16189,Ii=16190,ki=16191,Bi=16192,Mi=16193,Oi=16194,Di=16195,Ri=16196,Li=16197,Ni=16198,Ui=16199,Fi=16200,ji=16201,Hi=16202,zi=16203,Qi=16204,Vi=16205,Ki=16206,Wi=16207,Gi=16208,qi=16209,Yi=16210,Xi=16211,Zi=852,$i=592,Ji=15,eo=Ji,to=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function no(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ro=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<vi||t.mode>Xi?1:0},io=e=>{if(ro(e))return pi;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=vi,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Zi),t.distcode=t.distdyn=new Int32Array($i),t.sane=1,t.back=-1,hi},oo=e=>{if(ro(e))return pi;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,io(e)},so=(e,t)=>{let n;if(ro(e))return pi;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?pi:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,oo(e))},ao=(e,t)=>{if(!e)return pi;const n=new no;e.state=n,n.strm=e,n.window=null,n.mode=vi;const r=so(e,t);return r!==hi&&(e.state=null),r},co=e=>ao(e,eo);let uo,lo,ho=!0;const fo=e=>{if(ho){uo=new Int32Array(512),lo=new Int32Array(32);let t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;ii(si,e.lens,0,288,uo,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;ii(ai,e.lens,0,32,lo,0,e.work,{bits:5}),ho=!1}e.lencode=uo,e.lenbits=9,e.distcode=lo,e.distbits=5},po=(e,t,n,r)=>{let i;const o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},Ao=(e,t)=>{let n,r,i,o,s,a,c,u,l,h,d,f,p,A,g,m,y,v,b,w,C,_,S=0;const x=new Uint8Array(4);let T,P;const E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ro(e)||!e.output||!e.input&&0!==e.avail_in)return pi;n=e.state,n.mode===ki&&(n.mode=Bi),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,u=n.hold,l=n.bits,h=a,d=c,_=hi;e:for(;;)switch(n.mode){case vi:if(0===n.wrap){n.mode=Bi;break}while(l<16){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===u){0===n.wbits&&(n.wbits=15),n.check=0,x[0]=255&u,x[1]=u>>>8&255,n.check=St(n.check,x,2,0),u=0,l=0,n.mode=bi;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=qi;break}if((15&u)!==yi){e.msg="unknown compression method",n.mode=qi;break}if(u>>>=4,l-=4,C=8+(15&u),0===n.wbits&&(n.wbits=C),C>15||C>n.wbits){e.msg="invalid window size",n.mode=qi;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&u?Ei:ki,u=0,l=0;break;case bi:while(l<16){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(n.flags=u,(255&n.flags)!==yi){e.msg="unknown compression method",n.mode=qi;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=qi;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&4&n.wrap&&(x[0]=255&u,x[1]=u>>>8&255,n.check=St(n.check,x,2,0)),u=0,l=0,n.mode=wi;case wi:while(l<32){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}n.head&&(n.head.time=u),512&n.flags&&4&n.wrap&&(x[0]=255&u,x[1]=u>>>8&255,x[2]=u>>>16&255,x[3]=u>>>24&255,n.check=St(n.check,x,4,0)),u=0,l=0,n.mode=Ci;case Ci:while(l<16){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&4&n.wrap&&(x[0]=255&u,x[1]=u>>>8&255,n.check=St(n.check,x,2,0)),u=0,l=0,n.mode=_i;case _i:if(1024&n.flags){while(l<16){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&4&n.wrap&&(x[0]=255&u,x[1]=u>>>8&255,n.check=St(n.check,x,2,0)),u=0,l=0}else n.head&&(n.head.extra=null);n.mode=Si;case Si:if(1024&n.flags&&(f=n.length,f>a&&(f=a),f&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+f),C)),512&n.flags&&4&n.wrap&&(n.check=St(n.check,r,f,o)),a-=f,o+=f,n.length-=f),n.length))break e;n.length=0,n.mode=xi;case xi:if(2048&n.flags){if(0===a)break e;f=0;do{C=r[o+f++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C))}while(C&&f<a);if(512&n.flags&&4&n.wrap&&(n.check=St(n.check,r,f,o)),a-=f,o+=f,C)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Ti;case Ti:if(4096&n.flags){if(0===a)break e;f=0;do{C=r[o+f++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C))}while(C&&f<a);if(512&n.flags&&4&n.wrap&&(n.check=St(n.check,r,f,o)),a-=f,o+=f,C)break e}else n.head&&(n.head.comment=null);n.mode=Pi;case Pi:if(512&n.flags){while(l<16){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(4&n.wrap&&u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=qi;break}u=0,l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ki;break;case Ei:while(l<32){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}e.adler=n.check=to(u),u=0,l=0,n.mode=Ii;case Ii:if(0===n.havedict)return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=l,fi;e.adler=n.check=1,n.mode=ki;case ki:if(t===ui||t===li)break e;case Bi:if(n.last){u>>>=7&l,l-=7&l,n.mode=Ki;break}while(l<3){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}switch(n.last=1&u,u>>>=1,l-=1,3&u){case 0:n.mode=Mi;break;case 1:if(fo(n),n.mode=Ui,t===li){u>>>=2,l-=2;break e}break;case 2:n.mode=Ri;break;case 3:e.msg="invalid block type",n.mode=qi}u>>>=2,l-=2;break;case Mi:u>>>=7&l,l-=7&l;while(l<32){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if((65535&u)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=qi;break}if(n.length=65535&u,u=0,l=0,n.mode=Oi,t===li)break e;case Oi:n.mode=Di;case Di:if(f=n.length,f){if(f>a&&(f=a),f>c&&(f=c),0===f)break e;i.set(r.subarray(o,o+f),s),a-=f,o+=f,c-=f,s+=f,n.length-=f;break}n.mode=ki;break;case Ri:while(l<14){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(n.nlen=257+(31&u),u>>>=5,l-=5,n.ndist=1+(31&u),u>>>=5,l-=5,n.ncode=4+(15&u),u>>>=4,l-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=qi;break}n.have=0,n.mode=Li;case Li:while(n.have<n.ncode){while(l<3){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}n.lens[E[n.have++]]=7&u,u>>>=3,l-=3}while(n.have<19)n.lens[E[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,T={bits:n.lenbits},_=ii(oi,n.lens,0,19,n.lencode,0,n.work,T),n.lenbits=T.bits,_){e.msg="invalid code lengths set",n.mode=qi;break}n.have=0,n.mode=Ni;case Ni:while(n.have<n.nlen+n.ndist){for(;;){if(S=n.lencode[u&(1<<n.lenbits)-1],g=S>>>24,m=S>>>16&255,y=65535&S,g<=l)break;if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(y<16)u>>>=g,l-=g,n.lens[n.have++]=y;else{if(16===y){P=g+2;while(l<P){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(u>>>=g,l-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=qi;break}C=n.lens[n.have-1],f=3+(3&u),u>>>=2,l-=2}else if(17===y){P=g+3;while(l<P){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}u>>>=g,l-=g,C=0,f=3+(7&u),u>>>=3,l-=3}else{P=g+7;while(l<P){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}u>>>=g,l-=g,C=0,f=11+(127&u),u>>>=7,l-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=qi;break}while(f--)n.lens[n.have++]=C}}if(n.mode===qi)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=qi;break}if(n.lenbits=9,T={bits:n.lenbits},_=ii(si,n.lens,0,n.nlen,n.lencode,0,n.work,T),n.lenbits=T.bits,_){e.msg="invalid literal/lengths set",n.mode=qi;break}if(n.distbits=6,n.distcode=n.distdyn,T={bits:n.distbits},_=ii(ai,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,T),n.distbits=T.bits,_){e.msg="invalid distances set",n.mode=qi;break}if(n.mode=Ui,t===li)break e;case Ui:n.mode=Fi;case Fi:if(a>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=l,Wr(e,d),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,u=n.hold,l=n.bits,n.mode===ki&&(n.back=-1);break}for(n.back=0;;){if(S=n.lencode[u&(1<<n.lenbits)-1],g=S>>>24,m=S>>>16&255,y=65535&S,g<=l)break;if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(m&&0===(240&m)){for(v=g,b=m,w=y;;){if(S=n.lencode[w+((u&(1<<v+b)-1)>>v)],g=S>>>24,m=S>>>16&255,y=65535&S,v+g<=l)break;if(0===a)break e;a--,u+=r[o++]<<l,l+=8}u>>>=v,l-=v,n.back+=v}if(u>>>=g,l-=g,n.back+=g,n.length=y,0===m){n.mode=Vi;break}if(32&m){n.back=-1,n.mode=ki;break}if(64&m){e.msg="invalid literal/length code",n.mode=qi;break}n.extra=15&m,n.mode=ji;case ji:if(n.extra){P=n.extra;while(l<P){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Hi;case Hi:for(;;){if(S=n.distcode[u&(1<<n.distbits)-1],g=S>>>24,m=S>>>16&255,y=65535&S,g<=l)break;if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(0===(240&m)){for(v=g,b=m,w=y;;){if(S=n.distcode[w+((u&(1<<v+b)-1)>>v)],g=S>>>24,m=S>>>16&255,y=65535&S,v+g<=l)break;if(0===a)break e;a--,u+=r[o++]<<l,l+=8}u>>>=v,l-=v,n.back+=v}if(u>>>=g,l-=g,n.back+=g,64&m){e.msg="invalid distance code",n.mode=qi;break}n.offset=y,n.extra=15&m,n.mode=zi;case zi:if(n.extra){P=n.extra;while(l<P){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>
vendor: 4,819 bytes, line 86
86n.dmax){e.msg="invalid distance too far back",n.mode=qi;break}n.mode=Qi;case Qi:if(0===c)break e;if(f=d-c,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=qi;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),A=n.window}else A=i,p=s-n.offset,f=n.length;f>c&&(f=c),c-=f,n.length-=f;do{i[s++]=A[p++]}while(--f);0===n.length&&(n.mode=Fi);break;case Vi:if(0===c)break e;i[s++]=n.length,c--,n.mode=Fi;break;case Ki:if(n.wrap){while(l<32){if(0===a)break e;a--,u|=r[o++]<<l,l+=8}if(d-=c,e.total_out+=d,n.total+=d,4&n.wrap&&d&&(e.adler=n.check=n.flags?St(n.check,i,d,s-d):bt(n.check,i,d,s-d)),d=c,4&n.wrap&&(n.flags?u:to(u))!==n.check){e.msg="incorrect data check",n.mode=qi;break}u=0,l=0}n.mode=Wi;case Wi:if(n.wrap&&n.flags){while(l<32){if(0===a)break e;a--,u+=r[o++]<<l,l+=8}if(4&n.wrap&&u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=qi;break}u=0,l=0}n.mode=Gi;case Gi:_=di;break e;case qi:_=Ai;break e;case Yi:return gi;case Xi:default:return pi}return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=l,(n.wsize||d!==e.avail_out&&n.mode<qi&&(n.mode<Ki||t!==ci))&&po(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,n.total+=d,4&n.wrap&&d&&(e.adler=n.check=n.flags?St(n.check,i,d,e.next_out-d):bt(n.check,i,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ki?128:0)+(n.mode===Ui||n.mode===Oi?256:0),(0===h&&0===d||t===ci)&&_===hi&&(_=mi),_},go=e=>{if(ro(e))return pi;let t=e.state;return t.window&&(t.window=null),e.state=null,hi},mo=(e,t)=>{if(ro(e))return pi;const n=e.state;return 0===(2&n.wrap)?pi:(n.head=t,t.done=!1,hi)},yo=(e,t)=>{const n=t.length;let r,i,o;return ro(e)?pi:(r=e.state,0!==r.wrap&&r.mode!==Ii?pi:r.mode===Ii&&(i=1,i=bt(i,t,n,0),i!==r.check)?Ai:(o=po(e,t,n,n),o?(r.mode=Yi,gi):(r.havedict=1,hi)))};var vo=oo,bo=so,wo=io,Co=co,_o=ao,So=Ao,xo=go,To=mo,Po=yo,Eo="pako inflate (from Nodeca project)",Io={inflateReset:vo,inflateReset2:bo,inflateResetKeep:wo,inflateInit:Co,inflateInit2:_o,inflate:So,inflateEnd:xo,inflateGetHeader:To,inflateSetDictionary:Po,inflateInfo:Eo};function ko(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Bo=ko;const Mo=Object.prototype.toString,{Z_NO_FLUSH:Oo,Z_FINISH:Do,Z_OK:Ro,Z_STREAM_END:Lo,Z_NEED_DICT:No,Z_STREAM_ERROR:Uo,Z_DATA_ERROR:Fo,Z_MEM_ERROR:jo}=Tt;function Ho(e){this.options=pr.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _r,this.strm.avail_out=0;let n=Io.inflateInit2(this.strm,t.windowBits);if(n!==Ro)throw new Error(xt[n]);if(this.header=new Bo,Io.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=wr.string2buf(t.dictionary):"[object ArrayBuffer]"===Mo.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Io.inflateSetDictionary(this.strm,t.dictionary),n!==Ro)))throw new Error(xt[n])}function zo(e,t){const n=new Ho(t);if(n.push(e),n.err)throw n.msg||xt[n.err];return n.result}function Qo(e,t){return t=t||{},t.raw=!0,zo(e,t)}Ho.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(s=t===~~t?t:!0===t?Do:Oo,"[object ArrayBuffer]"===Mo.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=Io.inflate(n,s),o===No&&i&&(o=Io.inflateSetDictionary(n,i),o===Ro?o=Io.inflate(n,s):o===Fo&&(o=No));while(n.avail_in>0&&o===Lo&&n.state.wrap>0&&0!==e[n.next_in])Io.inflateReset(n),o=Io.inflate(n,s);switch(o){case Uo:case Fo:case No:case jo:return this.onEnd(o),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(0===n.avail_out||o===Lo))if("string"===this.options.to){let e=wr.utf8border(n.output,n.next_out),t=n.next_out-e,i=wr.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==Ro||0!==a){if(o===Lo)return o=Io.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},Ho.prototype.onData=function(e){this.chunks.push(e)},Ho.prototype.onEnd=function(e){e===Ro&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=pr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};
vendor: 8,640 bytes, line 86
86var Vo=Ho,Ko=zo,Wo=Qo,Go=zo,qo=Tt,Yo={Inflate:Vo,inflate:Ko,inflateRaw:Wo,ungzip:Go,constants:qo};const{Deflate:Xo,deflate:Zo,deflateRaw:$o,gzip:Jo}=Qr,{Inflate:es,inflate:ts,inflateRaw:ns,ungzip:rs}=Yo;var is=es,os=ts;const ss=[];for(let Tu=0;Tu<256;Tu++){let e=Tu;for(let t=0;t<8;t++)1&e?e=3988292384^e>>>1:e>>>=1;ss[Tu]=e}const as=4294967295;function cs(e,t,n){let r=e;for(let i=0;i<n;i++)r=ss[255&(r^t[i])]^r>>>8;return r}function us(e,t){return(cs(as,e,t)^as)>>>0}function ls(e,t,n){const r=e.readUint32(),i=us(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function hs(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function ds(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function fs(e,t,n,r){let i=0;if(0===n.length)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function ps(e,t,n,r,i){let o=0;if(0===n.length){for(;o<i;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+(t[o-i]>>1)&255}else{for(;o<i;o++)t[o]=e[o]+(n[o]>>1)&255;for(;o<r;o++)t[o]=e[o]+(t[o-i]+n[o]>>1)&255}}function As(e,t,n,r,i){let o=0;if(0===n.length){for(;o<i;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+t[o-i]&255}else{for(;o<i;o++)t[o]=e[o]+n[o]&255;for(;o<r;o++)t[o]=e[o]+gs(t[o-i],n[o],n[o-i])&255}}function gs(e,t,n){const r=e+t-n,i=Math.abs(r-e),o=Math.abs(r-t),s=Math.abs(r-n);return i<=o&&i<=s?e:o<=s?t:n}function ms(e,t,n,r,i,o){switch(e){case 0:hs(t,n,i);break;case 1:ds(t,n,i,o);break;case 2:fs(t,n,r,i);break;case 3:ps(t,n,r,i,o);break;case 4:As(t,n,r,i,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}const ys=new Uint16Array([255]),vs=new Uint8Array(ys.buffer),bs=255===vs[0];function ws(e){const{data:t,width:n,height:r,channels:i,depth:o}=e,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(o/8)*i,c=new Uint8Array(r*n*a);let u=0;for(let l=0;l<7;l++){const e=s[l],i=Math.ceil((n-e.x)/e.xStep),o=Math.ceil((r-e.y)/e.yStep);if(i<=0||o<=0)continue;const h=i*a,d=new Uint8Array(h);for(let s=0;s<o;s++){const o=t[u++],l=t.subarray(u,u+h);u+=h;const f=new Uint8Array(h);ms(o,l,f,d,h,a),d.set(f);for(let t=0;t<i;t++){const i=e.x+t*e.xStep,o=e.y+s*e.yStep;if(!(i>=n||o>=r))for(let e=0;e<a;e++)c[(o*n+i)*a+e]=f[t*a+e]}}}if(16===o){const e=new Uint16Array(c.buffer);if(bs)for(let t=0;t<e.length;t++)e[t]=Cs(e[t]);return e}return c}function Cs(e){return(255&e)<<8|e>>8&255}const _s=new Uint16Array([255]),Ss=new Uint8Array(_s.buffer),xs=255===Ss[0],Ts=new Uint8Array(0);function Ps(e){const{data:t,width:n,height:r,channels:i,depth:o}=e,s=Math.ceil(o/8)*i,a=Math.ceil(o/8*i*n),c=new Uint8Array(r*a);let u,l,h=Ts,d=0;for(let f=0;f<r;f++){switch(u=t.subarray(d+1,d+1+a),l=c.subarray(f*a,(f+1)*a),t[d]){case 0:hs(u,l,a);break;case 1:ds(u,l,a,s);break;case 2:fs(u,l,h,a);break;case 3:ps(u,l,h,a,s);break;case 4:As(u,l,h,a,s);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}h=l,d+=a+1}if(16===o){const e=new Uint16Array(c.buffer);if(xs)for(let t=0;t<e.length;t++)e[t]=Es(e[t]);return e}return c}function Es(e){return(255&e)<<8|e>>8&255}const Is=Uint8Array.of(137,80,78,71,13,10,26,10);function ks(e){if(!Bs(e.readBytes(Is.length)))throw new Error("wrong PNG signature")}function Bs(e){if(e.length<Is.length)return!1;for(let t=0;t<Is.length;t++)if(e[t]!==Is[t])return!1;return!0}const Ms="tEXt",Os=0,Ds=new TextDecoder("latin1");function Rs(e){if(Ns(e),0===e.length||e.length>79)throw new Error("keyword length must be between 1 and 79")}const Ls=/^[\u0000-\u00FF]*$/;function Ns(e){if(!Ls.test(e))throw new Error("invalid latin1 text")}function Us(e,t,n){const r=Fs(t);e[r]=js(t,n-r.length-1)}function Fs(e){e.mark();while(e.readByte()!==Os);const t=e.offset;e.reset();const n=Ds.decode(e.readBytes(t-e.offset-1));return e.skip(1),Rs(n),n}function js(e,t){return Ds.decode(e.readBytes(t))}const Hs={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},zs={UNKNOWN:-1,DEFLATE:0},Qs={UNKNOWN:-1,ADAPTIVE:0},Vs={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Ks={NONE:0,BACKGROUND:1,PREVIOUS:2},Ws={SOURCE:0,OVER:1};class Gs extends te{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,t={}){super(e);const{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new is,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=zs.UNKNOWN,this._filterMethod=Qs.UNKNOWN,this._interlaceMethod=Vs.UNKNOWN,this._colorType=Hs.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){ks(this);while(!this._end){const e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){ks(this);while(!this._end){const e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){const n=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case Ms:Us(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?ls(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){const n=this.offset;switch("fdAT"!==t&&"IDAT"!==t&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=n+e;break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?ls(this,e+4,t):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=qs(this.readUint8());const t=this.readUint8();let n;switch(this._colorType=t,t){case Hs.GREYSCALE:n=1;break;case Hs.TRUECOLOUR:n=3;break;case Hs.INDEXED_COLOUR:n=1;break;case Hs.GREYSCALE_ALPHA:n=2;break;case Hs.TRUECOLOUR_ALPHA:n=4;break;case Hs.UNKNOWN:default:throw new Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==zs.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const t=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let r=0;r<t;r++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const t=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(n+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case Hs.GREYSCALE:case Hs.TRUECOLOUR:if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break;case Hs.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alph
86a values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t<e;t++){const e=this.readByte();this._palette[t].push(e)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}case Hs.UNKNOWN:case Hs.GREYSCALE_ALPHA:case Hs.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const t=Fs(this),n=this.readUint8();if(n!==zs.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const r=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:os(r)}}decodepHYs(){const e=this.readUint32(),t=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:t,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=Ps({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===e||0===n.xOffset&&0===n.yOffset&&n.width===this._png.width&&n.height===this._png.height)t.data=n.data;else{const r=this._apng.frames.at(e-1);this.disposeFrame(n,r,t),this.addFrameDataToCanvas(t,n)}this._apng.frames.push(t)}}return this._apng}disposeFrame(e,t,n){switch(e.disposeOp){case Ks.NONE:break;case Ks.BACKGROUND:for(let t=0;t<this._png.height;t++)for(let r=0;r<this._png.width;r++){const i=(t*e.width+r)*this._png.channels;for(let e=0;e<this._png.channels;e++)n.data[i+e]=0}break;case Ks.PREVIOUS:n.data.set(t.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,t){const n=1<<this._png.depth,r=(e,n)=>{const r=((e+t.yOffset)*this._png.width+t.xOffset+n)*this._png.channels,i=(e*t.width+n)*this._png.channels;return{index:r,frameIndex:i}};switch(t.blendOp){case Ws.SOURCE:for(let n=0;n<t.height;n++)for(let i=0;i<t.width;i++){const{index:o,frameIndex:s}=r(n,i);for(let n=0;n<this._png.channels;n++)e.data[o+n]=t.data[s+n]}break;case Ws.OVER:for(let i=0;i<t.height;i++)for(let o=0;o<t.width;o++){const{index:s,frameIndex:a}=r(i,o);for(let r=0;r<this._png.channels;r++){const i=t.data[a+this._png.channels-1]/n,o=r%(this._png.channels-1)===0?1:t.data[a+r],c=Math.floor(i*o+(1-i)*e.data[s+r]);e.data[s+r]+=c}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Qs.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Vs.NO_INTERLACE)this._png.data=Ps({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==Vs.ADAM7)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=ws({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Ks.NONE,blendOp:Ws.SOURCE,data:e}),this._inflator=new is,this._writingDataChunks=!1}}function qs(e){if(1!==e&&2!==e&&4!==e&&8!==e&&16!==e)throw new Error(`invalid bit depth: ${e}`);return e}var Ys;function Xs(e,t){const n=new Gs(e,t);return n.decode()}(function(e){e[e["UNKNOWN"]=0]="UNKNOWN",e[e["METRE"]=1]="METRE"})(Ys||(Ys={}));
87/** @license
88 *
89 * jsPDF - PDF Document creation from JavaScript
90 * Version 4.2.1 Built on 2026-03-17T11:11:27.057Z
91 *                      CommitID 00000000
92 *
93 * Copyright (c) 2010-2025 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
94 *               2015-2025 yWorks GmbH, http://www.yworks.com
95 *               2015-2025 Lukas Holländer <[email protected]>, https://github.com/HackbrettXXX
96 *               2016-2018 Aras Abbasi <[email protected]>
97 *               2010 Aaron Spike, https://github.com/acspike
98 *               2012 Willow Systems Corporation, https://github.com/willowsystems
99 *               2012 Pablo Hess, https://github.com/pablohess
100 *               2012 Florian Jenett, https://github.com/fjenett
101 *               2013 Warren Weckesser, https://github.com/warrenweckesser
102 *               2013 Youssef Beddad, https://github.com/lifof
103 *               2013 Lee Driscoll, https://github.com/lsdriscoll
104 *               2013 Stefan Slonevskiy, https://github.com/stefslon
105 *               2013 Jeremy Morel, https://github.com/jmorel
106 *               2013 Christoph Hartmann, https://github.com/chris-rock
107 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
108 *               2014 James Makes, https://github.com/dollaruw
109 *               2014 Diego Casorran, https://github.com/diegocr
110 *               2014 Steven Spungin, https://github.com/Flamenco
111 *               2014 Kenneth Glassey, https://github.com/Gavver
111s
112 *
113 * Permission is hereby granted, free of charge, to any person obtaining
114 * a copy of this software and associated documentation files (the
115 * "Software"), to deal in the Software without restriction, including
116 * without limitation the rights to use, copy, modify, merge, publish,
117 * distribute, sublicense, and/or sell copies of the Software, and to
118 * permit persons to whom the Software is furnished to do so, subject to
119 * the following conditions:
120 *
121 * The above copyright notice and this permission notice shall be
122 * included in all copies or substantial portions of the Software.
123 *
124 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
125 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
126 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
127 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
128 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
129 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
130 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
131 *
132 * Contributor(s):
133 *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
134 *    kim3er, mfo, alnorth, Flamenco
135 */
136var Zs=function(){return"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:this}();function $s(){Zs.console&&"function"==typeof Zs.console.log&&Zs.console.log.apply(Zs.console,arguments)}var Js={log:$s,warn:function(e){Zs.console&&("function"==typeof Zs.console.warn?Zs.console.warn.apply(Zs.console,arguments):$s.call(null,arguments))},error:function(e){Zs.console&&("function"==typeof Zs.console.error?Zs.console.error.apply(Zs.console,arguments):$s(e))}};function ea(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){ra(r.response,t,n)},r.onerror=function(){Js.error("could not download file")},r.send()}function ta(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function na(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");
vendor: 3,468 bytes, lines 136-142
136t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var ra=Zs.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.A)(window))||window!==Zs?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=Zs.URL||Zs.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener","string"==typeof e?(i.href=e,i.origin!==location.origin?ta(i.href)?ea(e,t,n):na(i,i.target="_blank"):na(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){na(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(ta(e))ea(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){na(i)})}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,r.A)(t)&&(Js.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return ea(e,t,n);var o="application/octet-stream"===e.type,s=/constructor/i.test(Zs.HTMLElement)||Zs.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&s)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.A)(FileReader))){var c=new FileReader;c.onloadend=function(){var e=c.result;e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var u=Zs.URL||Zs.webkitURL,l=u.createObjectURL(e);i?i.location=l:location.href=l,i=null,setTimeout(function(){u.revokeObjectURL(l)},4e4)}});
137/**
138 * A class to parse color values
139 * @author Stoyan Stefanov <[email protected]>
140 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
141 * @license Use it if you like it
142 */function ia(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
vendor: 5,795 bytes, lines 142-151
1420",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,s=i.exec(e);s&&(t=o(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}var oa=Zs.atob.bind(Zs),sa=Zs.btoa.bind(Zs);
143/**
144 * @license
145 * Joseph Myers does not specify a particular license for his work.
146 *
147 * Author: Joseph Myers
148 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
149 *
150 * Modified by: Owen Leong
151 */function aa(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n=ua(n,r,i,o,t[0],7,-680876936),o=ua(o,n,r,i,t[1],12,-389564586),i=ua(i,o,n,r,t[2],17,606105819),r=ua(r,i,o,n,t[3],22,-1044525330),n=ua(n,r,i,o,t[4],7,-176418897),o=ua(o,n,r,i,t[5],12,1200080426),i=ua(i,o,n,r,t[6],17,-1473231341),r=ua(r,i,o,n,t[7],22,-45705983),n=ua(n,r,i,o,t[8],7,1770035416),o=ua(o,n,r,i,t[9],12,-1958414417),i=ua(i,o,n,r,t[10],17,-42063),r=ua(r,i,o,n,t[11],22,-1990404162),n=ua(n,r,i,o,t[12],7,1804603682),o=ua(o,n,r,i,t[13],12,-40341101),i=ua(i,o,n,r,t[14],17,-1502002290),n=la(n,r=ua(r,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=la(o,n,r,i,t[6],9,-1069501632),i=la(i,o,n,r,t[11],14,643717713),r=la(r,i,o,n,t[0],20,-373897302),n=la(n,r,i,o,t[5],5,-701558691),o=la(o,n,r,i,t[10],9,38016083),i=la(i,o,n,r,t[15],14,-660478335),r=la(r,i,o,n,t[4],20,-405537848),n=la(n,r,i,o,t[9],5,568446438),o=la(o,n,r,i,t[14],9,-1019803690),i=la(i,o,n,r,t[3],14,-187363961),r=la(r,i,o,n,t[8],20,1163531501),n=la(n,r,i,o,t[13],5,-1444681467),o=la(o,n,r,i,t[2],9,-51403784),i=la(i,o,n,r,t[7],14,1735328473),n=ha(n,r=la(r,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=ha(o,n,r,i,t[8],11,-2022574463),i=ha(i,o,n,r,t[11],16,1839030562),r=ha(r,i,o,n,t[14],23,-35309556),n=ha(n,r,i,o,t[1],4,-1530992060),o=ha(o,n,r,i,t[4],11,1272893353),i=ha(i,o,n,r,t[7],16,-155497632),r=ha(r,i,o,n,t[10],23,-1094730640),n=ha(n,r,i,o,t[13],4,681279174),o=ha(o,n,r,i,t[0],11,-358537222),i=ha(i,o,n,r,t[3],16,-722521979),r=ha(r,i,o,n,t[6],23,76029189),n=ha(n,r,i,o,t[9],4,-640364487),o=ha(o,n,r,i,t[12],11,-421815835),i=ha(i,o,n,r,t[15],16,530742520),n=da(n,r=ha(r,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=da(o,n,r,i,t[7],10,1126891415),i=da(i,o,n,r,t[14],15,-1416354905),r=da(r,i,o,n,t[5],21,-57434055),n=da(n,r,i,o,t[12],6,1700485571),o=da(o,n,r,i,t[3],10,-1894986606),i=da(i,o,n,r,t[10],15,-1051523),r=da(r,i,o,n,t[1],21,-2054922799),n=da(n,r,i,o,t[8],6,1873313359),o=da(o,n,r,i,t[15],10,-30611744),i=da(i,o,n,r,t[6],15,-1560198380),r=da(r,i,o,n,t[13],21,1309151649),n=da(n,r,i,o,t[4],6,-145523070),o=da(o,n,r,i,t[11],10,-1120210379),i=da(i,o,n,r,t[2],15,718787259),r=da(r,i,o,n,t[9],21,-343485551),e[0]=ba(n,e[0]),e[1]=ba(r,e[1]),e[2]=ba(i,e[2]),e[3]=ba(o,e[3])}function ca(e,t,n,r,i,o){return t=ba(ba(t,e),ba(r,o)),ba(t<<i|t>>>32-i,n)}function ua(e,t,n,r,i,o,s){return ca(t&n|~t&r,e,t,i,o,s)}function la(e,t,n,r,i,o,s){return ca(t&r|n&~r,e,t,i,o,s)}function ha(e,t,n,r,i,o,s){return ca(t^n^r,e,t,i,o,s)}function da(e,t,n,r,i,o,s){return ca(n^(t|~r),e,t,i,o,s)}function fa(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)aa(r,pa(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(aa(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,aa(r,i),r}function pa(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var Aa="0123456789abcdef".split("");function ga(e){for(var t="",n=0;n<4;n++)t+=Aa[e>>
vendor: 4,349 bytes, lines 151-170
1518*n+4&15]+Aa[e>>8*n&15];return t}function ma(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function ya(e){return fa(e).map(ma).join("")}var va="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=ga(e[t]);return e.join("")}(fa("hello"));function ba(e,t){if(va){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}
152/**
153 * @license
154 * FPDF is released under a permissive license: there is no usage restriction.
155 * You may embed it freely in your application (commercial or not), with or
156 * without modifications.
157 *
158 * Reference: http://www.fpdf.org/en/script/script37.php
159 */function wa(e,t){var n,r,i,o;if(e!==n){for(var s=(i=e,o=1+(256/e.length|0),new Array(o+1).join(i)),a=[],c=0;c<256;c++)a[c]=c;var u=0;for(c=0;c<256;c++){var l=a[c];u=(u+l+s.charCodeAt(c))%256,a[c]=a[u],a[u]=l}n=e,r=a}else a=r;var h=t.length,d=0,f=0,p="";for(c=0;c<h;c++)f=(f+(l=a[d=(d+1)%256]))%256,a[d]=a[f],a[f]=l,s=a[(a[d]+a[f])%256],p+=String.fromCharCode(t.charCodeAt(c)^s);return p}
160/**
161 * @license
162 * Licensed under the MIT License.
163 * http://opensource.org/licenses/mit-license
164 * Author: Owen Leong (@owenl131)
165 * Date: 15 Oct 2020
166 * References:
167 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
168 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
169 * http://www.fpdf.org/en/script/script37.php
170 */var Ca={print:4,modify:8,copy:16,"annot-forms":32};function _a(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(e){if(void 0!==Ca.perm)throw new Error("Invalid permission: "+e);i+=Ca[e]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var o=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,s),this.P=-(1+(255^i)),this.encryptionKey=ya(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=wa(this.encryptionKey,this.padding)}function Sa(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function xa(e){if("object"!==(0,r.A)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!r],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[n]){var s=t[n][o];try{s[0].apply(e,r)}catch(na){Zs.console&&Js.error("jsPDF PubSub Error",na.message,na)}s[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Ta(e){if(!(this instanceof Ta))return new Ta(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function Pa(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ea(e,t,n,r,i){if(!(this instanceof Ea))return new Ea(e,t,n,r,i);this.type="axial"===e?2:3,this.coords=t,this.colors=n,Pa.call(this,r,i)}function Ia(e,t,n,r,i){if(!(this instanceof Ia))return new Ia(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,Pa.call(this,r,i)}function ka(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],o=arguments[2],s=arguments[3],a=[],c=1,u=16,l="S",h=null;"object"===(0,r.A)(e=e||{})&&(n=e.orientation,i=e.unit||i,o=e.format||o,s=e.compress||e.compressPdf||s,null!==(h=e.encryption||null)&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),c="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(u=e.floatPrecision),l=e.defaultPathOperation||"S"),a=e.filters||(!0===s?["FlateEncode"]:a),i=i||"mm",n=(""+(n||"P")).toLowerCase();
vendor: 4,613 bytes, line 170
170var d=e.putOnlyUsedFonts||!1,f={},p={internal:{},__private__:{}};p.__private__.PubSub=xa;var A="1.3",g=p.__private__.getPdfVersion=function(){return A};p.__private__.setPdfVersion=function(e){A=e};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return m};var y=p.__private__.getPageFormat=function(e){return m[e]};o=o||"a4";var v="compat",b="advanced",w=v;function C(){this.saveGraphicsState(),$(new Me(fe,0,0,-fe,0,gn()*fe).toString()+" cm"),this.setFontSize(this.getFontSize()/fe),l="n",w=b}function _(){this.restoreGraphicsState(),l="S",w=v}var S=p.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};p.advancedAPI=function(e){var t=w===v;return t&&C.call(this),"function"!=typeof e||(e(this),t&&_.call(this)),this},p.compatAPI=function(e){var t=w===b;return t&&_.call(this),"function"!=typeof e||(e(this),t&&C.call(this)),this},p.isAdvancedAPI=function(){return w===b};var x,T=function(e){if(w!==b)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},P=p.roundToPrecision=p.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};x=p.hpf=p.__private__.hpf="number"==typeof u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return P(e,u)}:"smart"===u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return P(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return P(e,16)};var E=p.f2=p.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return P(e,2)},I=p.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return P(e,3)},k=p.scale=p.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return w===v?e*fe:w===b?e:void 0},B=function(e){return k(function(e){return w===v?gn()-e:w===b?e:void 0}(e))};p.__private__.setPrecision=p.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var M,O="00000000000000000000000000000000",D=p.__private__.getFileId=function(){return O},R=p.__private__.setFileId=function(e){return O=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():O.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==h&&(wt=new _a(h.userPermissions,h.userPassword,h.ownerPassword,O)),O};p.setFileId=function(e){return R(e),this},p.getFileId=function(){return D()};var L=p.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),o=[n,H(r),"'",H(i),"'"].join("");return["D:",e.getFullYear(),H(e.getMonth()+1),H(e.getDate()),H(e.getHours()),H(e.getMinutes()),H(e.getSeconds()),o].join("")},N=p.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return new Date(t,n,r,i,o,s,0)},U=p.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=L(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to 
170jsPDF.setCreationDate");t=e}return M=t},F=p.__private__.getCreationDate=function(e){var t=M;return"jsDate"===e&&(t=N(M)),t};p.setCreationDate=function(e){return U(e),this},p.getCreationDate=function(e){return F(e)};var j,H=p.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},z=p.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},Q=0,V=[],K=[],W=0,G=[],q=[],Y=!1,X=K;p.__private__.setCustomOutputDestination=function(e){Y=!0,X=e};var Z=function(e){Y||(X=e)};p.__private__.resetCustomOutputDestination=function(){Y=!1,X=K};var $=p.__private__.out=function(e){return e=e.toString(),W+=e.length+1,X.push(e),X},J=p.__private__.write=function(e){return $(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},ee=p.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},te=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return te};var ne=e.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(e){return ne=w===b?e/fe:e,this};var re,ie=p.__private__.getFontSize=p.getFontSize=function(){return w===v?ne:ne*fe},oe=e.R2L||!1;p.__private__.setR2L=p.setR2L=function(e){return oe=e,this},p.__private__.getR2L=p.getR2L=function(){return oe};var se,ae=p.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))re=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');re=e}else re=parseInt(e,10)};p.__private__.getZoomMode=function(){return re};var ce,ue=p.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');se=e};p.__private__.getPageMode=function(){return se};var le=p.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');ce=e};p.__private__.getLayoutMode=function(){return ce},p.__private__.setDisplayMode=p.setDisplayMode=function(e,t,n){return ae(e),le(t),ue(n),this};var he={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(e){if(-1===Object.keys(he).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return he[e]},p.__private__.getDocumentProperties=function(){return he},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(e){for(var t in he)he.hasOwnProperty(t)&&e[t]&&(he[t]=e[t]);return this},p.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(he).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return he[e]=t};var de,fe,pe,Ae,ge,me={},ye={},ve=[],be={},we={},Ce={},_e={},Se=null,xe=0,Te=[],Pe=new xa(p),Ee=e.hotfixes||[],Ie={},ke={},Be=[],Me=function e(t,n,r,i,o,s){if(!(this instanceof e))return new e(t,n,r,i,o,s);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(s)&&(s=0),this._matrix=[t,n,r,i,o,s]};Object.defineProperty(Me.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Me.prototype,"shy",{get:function(){return this._matrix[
vendor: 4,764 bytes, line 170
1701]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Me.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Me.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Me.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Me.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Me.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Me.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Me.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Me.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Me.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Me.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Me.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Me.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Me.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Me.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Me.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(x).join(e)},Me.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,i=e.shx*this.shy+e.sy*this.sy,o=e.tx*this.sx+e.ty*this.shx+this.tx,s=e.tx*this.shy+e.ty*this.sy+this.ty;return new Me(t,n,r,i,o,s)},Me.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,s=Math.sqrt(e*e+t*t),a=(e/=s)*n+(t/=s)*r;n-=e*a,r-=t*a;var c=Math.sqrt(n*n+r*r);return a/=c,e*(r/=c)<t*(n/=c)&&(e=-e,t=-t,a=-a,s=-s),{scale:new Me(s,0,0,c,0,0),translate:new Me(1,0,0,1,i,o),rotate:new Me(e,t,-t,e,0,0),skew:new Me(1,0,a,1,0,0)}},Me.prototype.toString=function(e){return this.join(" ")},Me.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,s=1/(e*r-t*n),a=r*s,c=-t*s,u=-n*s,l=e*s;return new Me(a,c,u,l,-a*i-u*o,-c*i-l*o)},Me.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new on(t,n)},Me.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new on(e.x+e.w,e.y+e.h));return new sn(t.x,t.y,n.x-t.x,n.y-t.y)},Me.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new Me(e,t,n,r,i,o)},p.Matrix=Me;var Oe=p.matrixMult=function(e,t){return t.multiply(e)},De=new Me(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=De;var Re=function(e,t){if(!we[e]){var n=(t instanceof Ea?"Sh":"P")+(Object.keys(be).length+1).toString(10);t.id=n,we[e]=n,be[n]=t,Pe.publish("addPattern",t)}};p.ShadingPattern=Ea,p.TilingPattern=Ia,p.addShadingPattern=function(e,t){return T("addShadingPattern()"),Re(e,t),this},p.beginTilingPattern=function(e){T("beginTilingPattern()"),cn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},p.endTilingPattern=function(e,t){T("endTilingPattern()"),t.stream=q[j].join("\n"),Re(e,t),Pe.publish("endTilingPattern",t),Be.pop().restore()};var Le,Ne=p.__private__.newObject=function(){var e=Ue();return Fe(e,!0),e},Ue=p.__private__.newObjectDeferred=function(){return Q++,V[Q]=function(){return W},Q},Fe=function(e,t){return t="boolean"==typeof t&&t,V[e]=W,t&&$(e+" 0 obj"),e},je=p.__private__.newAdditionalObject=function(){var e={objId:Ue(),content:""};return G.push(e),e},He=Ue(),ze=Ue(),Qe=p.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(t[i])).toString(16)).slice(-2);return r},Ve=p.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,i=e.ch2,o=e.ch3,s=e.ch4,a="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var c=new ia(n);if(c.ok)n=c.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to 
170jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,i=u>>8&255,o=255&u}if(void 0===i||void 0===s&&n===i&&i===o)t="string"==typeof n?n+" "+a[0]:2===e.precision?E(n/255)+" "+a[0]:I(n/255)+" "+a[0];else if(void 0===s||"object"===(0,r.A)(s)){if(s&&!isNaN(s.a)&&0===s.a)return["1.","1.","1.",a[1]].join(" ");t="string"==typeof n?[n,i,o,a[1]].join(" "):2===e.precision?[E(n/255),E(i/255),E(o/255),a[1]].join(" "):[I(n/255),I(i/255),I(o/255),a[1]].join(" ")}else t="string"==typeof n?[n,i,o,s,a[2]].join(" "):2===e.precision?[E(n),E(i),E(o),E(s),a[2]].join(" "):[I(n),I(i),I(o),I(s),a[2]].join(" ");return t},Ke=p.__private__.getFilters=function(){return a},We=p.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||Ke(),r=e.alreadyAppliedFilters||[],i=e.addLength1||!1,o=t.length,s=e.objectId,a=function(e){return e};if(null!==h&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==h&&(a=wt.encryptor(s,0));var c={};!0===n&&(n=["FlateEncode"]);var u=e.additionalKeyValues||[],l=(c=void 0!==ka.API.processDataByFilters?ka.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=l.length)if(l.split("/").length-1==1)u.push({key:"Filter",value:l});else{u.push({key:"Filter",value:"["+l+"]"});for(var d=0;d<u.length;d+=1)if("DecodeParms"===u[d].key){for(var f=[],p=0;p<c.reverseChain.split("/").length-1;p+=1)f.push("null");f.push(u[d].value),u[d].value="["+f.join(" ")+"]"}}$("<<");for(var A=0;A<u.length;A++)$("/"+u[A].key+" "+u[A].value);$(">>"),0!==c.data.length&&($("stream"),$(a(c.data)),$("endstream"))},Ge=p.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,i=e.contentsObjId;Fe(r,!0),$("<</Type /Page"),$("/Parent "+e.rootDictionaryObjId+" 0 R"),$("/Resources "+e.resourceDictionaryObjId+" 0 R"),$("/MediaBox ["+parseFloat(x(e.mediaBox.bottomLeftX))+" "+parseFloat(x(e.mediaBox.bottomLeftY))+" "+x(e.mediaBox.topRightX)+" "+x(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&$("/CropBox ["+x(e.cropBox.bottomLeftX)+" "+x(e.cropBox.bottomLeftY)+" "+x(e.cropBox.topRightX)+" "+x(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&$("/BleedBox ["+x(e.bleedBox.bottomLeftX)+" "+x(e.bleedBox.bottomLeftY)+" "+x(e.bleedBox.topRightX)+" "+x(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&$("/TrimBox ["+x(e.trimBox.bottomLeftX)+" "+x(e.trimBox.bottomLeftY)+" "+x(e.trimBox.topRightX)+" "+x(e.trimBox.topRightY)+"]"),null!==e.artBox&&$("/ArtBox ["+x(e.artBox.bottomLeftX)+" "+x(e.artBox.bottomLeftY)+" "+x(e.artBox.topRightX)+" "+x(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&$("/UserUnit "+e.userUnit),Pe.publish("putPage",{objId:r,pageContext:Te[t],pageNumber:t,page:n}),$("/Contents "+i+" 0 R"),$(">>"),$("endobj");var o=n.join("\n");return w===b&&(o+="\nQ"),Fe(i,!0),We({data:o,filters:Ke(),objectId:i}),$("endobj"),r},qe=p.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=xe;e++)Te[e].objId=Ue(),Te[e].contentsObjId=Ue();for(e=1;e<=xe;e++)n.push(Ge({number:e,data:q[e],objId:Te[e].objId,contentsObjId:Te[e].contentsObjId,mediaBox:Te[e].mediaBox,cropBox:Te[e].cropBox,bleedBox:Te[e].bleedBox,trimBox:Te[e].trimBox,artBox:Te[e].artBox,userUnit:Te[e].userUnit,rootDictionaryObjId:He,resourceDictionaryObjId:ze}));Fe(He,!0),$("<</Type /Pages");var r="/Kids [";for(t=0;t<xe;t++)r+=n[t]+" 0 R ";$(r+"]"),$("/Count "+xe),$(">>"),$("endobj"),Pe.publish("postPutPages")},Ye=function(e){Pe.publish("putFont",{font:e,out:$,newObject:Ne,putStream:We}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ne(),$("<<"),$("/Type /Font"),$("/BaseFont /"+Sa(e.postScriptName)),$("/Subtype /Type1"),"string"==typeof e.encoding&&$("/Encoding /"+e.encoding),$("/FirstChar 32"),$("/LastChar 255"),$(">>"),$("endobj"))},Xe=function(e){e.objectNumber=Ne();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[x(e.x),x(e.y),x(e.x+e.width),x(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");We({data:n,additionalKeyValues:t,objectId:e.objectNumber}
vendor: 12,940 bytes, line 170
170),$("endobj")},Ze=function(e,t){t||(t=21);var n=Ne(),r=function(e,t){var n,r=[],i=1/(t-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=e[0].offset){var o={offset:0,color:e[0].color};e.unshift(o)}if(1!=e[e.length-1].offset){var s={offset:1,color:e[e.length-1].color};e.push(s)}for(var a="",c=0,u=0;u<r.length;u++){for(n=r[u];n>e[c+1].offset;)c++;var l=e[c].offset,h=(n-l)/(e[c+1].offset-l),d=e[c].color,f=e[c+1].color;a+=z(Math.round((1-h)*d[0]+h*f[0]).toString(16))+z(Math.round((1-h)*d[1]+h*f[1]).toString(16))+z(Math.round((1-h)*d[2]+h*f[2]).toString(16))}return a.trim()}(e.colors,t),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+t+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),We({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),$("endobj"),e.objectNumber=Ne(),$("<< /ShadingType "+e.type),$("/ColorSpace /DeviceRGB");var o="/Coords ["+x(parseFloat(e.coords[0]))+" "+x(parseFloat(e.coords[1]))+" ";2===e.type?o+=x(parseFloat(e.coords[2]))+" "+x(parseFloat(e.coords[3])):o+=x(parseFloat(e.coords[2]))+" "+x(parseFloat(e.coords[3]))+" "+x(parseFloat(e.coords[4]))+" "+x(parseFloat(e.coords[5])),$(o+="]"),e.matrix&&$("/Matrix ["+e.matrix.toString()+"]"),$("/Function "+n+" 0 R"),$("/Extend [true true]"),$(">>"),$("endobj")},$e=function(e,t){var n=Ue(),r=Ne();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+e.boundingBox.map(x).join(" ")+"]"}),i.push({key:"XStep",value:x(e.xStep)}),i.push({key:"YStep",value:x(e.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),e.matrix&&i.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),We({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),$("endobj")},Je=function(e){for(var t in e.objectNumber=Ne(),$("<<"),e)switch(t){case"opacity":$("/ca "+E(e[t]));break;case"stroke-opacity":$("/CA "+E(e[t]))}$(">>"),$("endobj")},et=function(e){Fe(e.resourcesOid,!0),$("<<"),$("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in $("/Font <<"),me)me.hasOwnProperty(e)&&(!1===d||!0===d&&f.hasOwnProperty(e))&&$("/"+e+" "+me[e].objectNumber+" 0 R");$(">>")}(),function(){if(Object.keys(be).length>0){for(var e in $("/Shading <<"),be)be.hasOwnProperty(e)&&be[e]instanceof Ea&&be[e].objectNumber>=0&&$("/"+e+" "+be[e].objectNumber+" 0 R");Pe.publish("putShadingPatternDict"),$(">>")}}(),function(e){if(Object.keys(be).length>0){for(var t in $("/Pattern <<"),be)be.hasOwnProperty(t)&&be[t]instanceof p.TilingPattern&&be[t].objectNumber>=0&&be[t].objectNumber<e&&$("/"+t+" "+be[t].objectNumber+" 0 R");Pe.publish("putTilingPatternDict"),$(">>")}}(e.objectOid),function(){if(Object.keys(Ce).length>0){var e;for(e in $("/ExtGState <<"),Ce)Ce.hasOwnProperty(e)&&Ce[e].objectNumber>=0&&$("/"+e+" "+Ce[e].objectNumber+" 0 R");Pe.publish("putGStateDict"),$(">>")}}(),function(){for(var e in $("/XObject <<"),Ie)Ie.hasOwnProperty(e)&&Ie[e].objectNumber>=0&&$("/"+e+" "+Ie[e].objectNumber+" 0 R");Pe.publish("putXobjectDict"),$(">>")}(),$(">>"),$("endobj")},tt=function(e){ye[e.fontName]=ye[e.fontName]||{},ye[e.fontName][e.fontStyle]=e.id},nt=function(e,t,n,r,i){var o={id:"F"+(Object.keys(me).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Pe.publish("addFont",{font:o,instance:this}),me[o.id]=o,tt(o),o.id},rt=p.__private__.pdfEscape=p.pdfEscape=function(e,t){return function(e,t){var n,r,i,o,s,a,c,u,l;if(i=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&me[de].metadata&&me[de].metadata[i]&&me[de].metadata[i].encoding&&(o=me[de].metadata[i].encoding,!s&&me[de].encoding&&(s=me[de].encoding),!s&&o.codePages&&(s=o.codePages[0]),"string"==typeof s&&(s=o[s]),s)){for(c=!1,a=[],n=0,r=e.length;n<r;n++)(u=s[e.charCodeAt(n)])?a.push(String.fromCharCode(u)):a.push(e[n]),a[n].charCodeAt(0)>>8&&(c=!0);e=a.join("")}for(n=e.length;void 0===c&&0!==n;)e.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return e;for(a=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((l=(u=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(l),a.push(u-(l<<8))}return String.fromCharCode.apply(void 0,a)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},it=p.__private__.beginPage=function(e){q[++xe]=[],Te[xe]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},at(xe),Z(q[j])},ot=function(e,t){var r,i,s;switch(n=t||n,"string"==typeof e&&(r=y(e.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(e)&&(i=e[0]*fe,s=e[1]*fe),isNaN(i)&&(i=o[0],s=o[1]),(i>14400||s>14400)&&(Js.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),o=[i,s],n.substr(0,1)){case"l":s>i&&(o=[s,i]);break;case"p":i>s&&(o=[s,i])}it(o),Ht(Ft),$(Yt),0!==tn&&$(tn+" J"),0!==nn&&$(nn+" j"),Pe.publish("addPage",{pageNumber:xe})},st=function(e){e>0&&e<=xe&&(q.splice(e,1),Te.splice(e,1),xe--,j>xe&&(j=xe),this.setPage(j))},at=function(e){e>0&&e<=xe&&(j=e)},ct=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return q.length-1},ut=function(e,t,n){var r,i=void 0;return n=n||{},e=void 0!==e?e:me[de].fontName,t=void 0!==t?t:me[de].fontStyle,r=e.toLowerCase(),void 0!==ye[r]&&void 0!==ye[r][t]?i=ye[r][t]:void 0!==ye[e]&&void 0!==ye[e][t]?i=ye[e][t]:!1===n.disableWarning&&Js.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=ye.times[t])&&(i=ye.times.normal),i},lt=p.__private__.putInfo=function(){var e=Ne(),t=function(e){return e};for(var n in null!==h&&(t=wt.encryptor(e,0)),$("<<"),$("/Producer ("+rt(t("jsPDF "+ka.version))+")"),he)he.hasOwnProperty(n)&&he[n]&&$("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+rt(t(he[n]))+")");$("/CreationDate ("+rt(t(M))+")"),$(">>"),$("endobj")},ht=p.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||He;switch(Ne(),$("<<"),$("/Type /Catalog"),$("/Pages "+t+" 0 R"),re||(re="fullwidth"),re){case"fullwidth":$("/OpenAction [3 0 R /FitH null]");break;case"fullheight":$("/OpenAction [3 0 R /FitV null]");break;case"fullpage":$("/OpenAction [3 0 R /Fit]");break;case"original":$("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+re;"%"===n.substr(n.length-1)&&(re=parseInt(re)/100),"number"==typeof re&&$("/OpenAction [3 0 R /XYZ null null "+E(re)+"]")}switch(ce||(ce="continuous"),ce){case"continuous":$("/PageLayout /OneColumn");break;case"single":$("/PageLayout /SinglePage");break;case"two":case"twoleft":$("/PageLayout /TwoColumnLeft");break;case"tworight":$("/PageLayout /TwoColumnRight")}se&&$("/PageMode /"+se),Pe.publish("putCatalog"),$(">>"),$("endobj")},dt=p.__private__.putTrailer=function(){$("trailer"),$("<<"),$("/Size "+(Q+1)),$("/Root "+Q+" 0 R"),$("/Info "+(Q-1)+" 0 R"),null!==h&&$("/Encrypt "+wt.oid+" 0 R"),$("/ID [ <"+O+"> <"+O+"> ]"),$(">>")},ft=p.__private__.putHeader=function(){$("%PDF-"+A),$("%ºß¬à")},pt=p.__private__.putXRef=function(){var e="0000000000";$("xref"),$("0 "+(Q+1)),$("0000000000 65535 f ");for(var t=1;t<=Q;t++)"function"==typeof V[t]?$((e+V[t]()).slice(-10)+" 00000 n "):void 0!==V[t]?$((e+V[t]).slice(-10)+" 00000 n "):$("0000000000 00000 n ")},At=p.__private__.buildDocument=function(){var e;Q=0,W=0,K=[],V=[],G=[],He=Ue(),ze=Ue(),Z(K),Pe.publish("buildDocument"),ft(),qe(),function(){Pe.publish("putAdditionalObjects");for(var e=0;e<G.length;e++){var t=G[e];Fe(t.objId,!0),$(t.content),$("endobj")}Pe.publish("postPutAdditionalObjects")}(),e=[],function(){for(var e in me)me.hasOwnProperty(e)&&(!1===d||!0===d&&f.hasOwnProperty(e))&&Ye(me[e])}(),function(){var e;for(e in Ce)Ce.hasOwnProperty(e)&&Je(Ce[e])}(),function(){for(var e in Ie)Ie.hasOwnProperty(e)&&Xe(Ie[e])}(),function(e){var t;for(t in be)be.hasOwnProperty(t)&&(be[t]instanceof Ea?Ze(be[t]):be[t]instanceof Ia&&$e(be[t],e))}(e),Pe.publish("putResources"),e.forEach(et),et({resourcesOid:ze,objectOid:Number.MAX_SAFE_INTEGER}),Pe.publish("postPutResources"),null!==h&&(wt.oid=Ne(),$("<<"),$("/Filter /Standard"),$("/V "+wt.v),$("/R "+wt.r),$("/U <"+wt.toHexString(wt.U)+">"),$("/O <"+wt.toHexString(wt.O)+">"),$("/P "+wt.P),$(">>"),$("endobj")),lt(),ht();var t=W;return pt(),dt(),$("startxref"),$(""+t),$("%%EOF"),Z(q[j]),K.join("\n")},gt=p.__private__.getBlob=function(e){return new Blob([ee(e)],{type:"application/pdf"})},mt=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},yt=function(e){var t,n=e.document,r=n.documentElement,i=n.head,o=n.body;return i||(i=n.createElement("head"),r.appendChild(i)),o||(o=n.createElement("body"),r.appendChild(o)),mt(i),mt(o),(t=n.createElement("style")).appendChild(n.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),i.appendChild(t),{document:n,body:o}},vt=p.output=p.__private__.output=(Le=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return At();case"save":p.save(t.filename);break;case"arraybuffer":return ee(At());case"blob":return gt(At());case"bloburi":case"bloburl":if(void 0!==Zs.URL&&"function"==typeof Zs.URL.createObjectURL)return Zs.URL&&Zs.URL.createObjectURL(gt(At()))||void 0;Js.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=At();try{n=sa(r)}catch(m){n=sa(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+encodeURIComponent(t.filename)+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Zs)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",o=!t.pdfObjectUrl;o||(i=t.pdfObjectUrl);var s=Zs.open();if(null!==s){var a=yt(s),c=a.document.createElement("script"),u=this;c.src=i,o&&(c.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",c.crossOrigin="anonymous"),c.onload=function(){s.PDFObject.embed(u.output("dataurlstring"),t)},a.body.appendChild(c)}return s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Zs)){var l=t.pdfJsUrl||"examples/PDF.js/web/viewer.html",h=Zs.open();if(null!==h){var d=yt(h),f=d.document.createElement("iframe"),A=-1===l.indexOf("?")?"?":"&";u=this,f.id="pdfViewer",f.width="500px",f.height="400px",f.src=l+A+"file=&downloadName="+encodeURIComponent(t.filename),f.onload=function(){h.document.title=t.filename,f.contentWindow.PDFViewerApplication.open(u.output("bloburl"))},d.body.appendChild(f)}return h}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Zs))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var g=Zs.open();if(null!==g){var y=yt(g),v=y.document.createElement("iframe");v.src=this.output("datauristring",t),y.body.appendChild(v),g.document.title=t.filename}if(g||"undefined"==typeof safari)return g;break;case"datauri":case"dataurl":return Zs.document.location.href=this.output("datauristring",t);default:return null}},Le.foo=function(){try{return Le.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!Zs.console)throw new Error(n);Zs.console.error(n,t),Zs.alert&&alert(n)}},Le.foo.bar=Le,Le.foo),bt=function(e){return!0===Array.isArray(Ee)&&Ee.indexOf(e)>-1};switch(i){case"pt":fe=1;break;case"mm":fe=72/25.4;break;case"cm":fe=72/2.54;break;case"in":fe=72;break;case"px":fe=1==bt("px_scaling")?.75:96/72;break;case"pc":case"em":fe=12;break;case"ex":fe=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);fe=i}var wt=null;U(),R();var Ct=p.__private__.getPageInfo=p.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Te[e].objId,pageNumber:e,pageContext:Te[e]}},_t=p.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Te)if(Te[t].objId===e)break;return Ct(t)},St=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Te[j].objId,pageNumber:j,pageContext:Te[j]}};p.addPage=function(){return ot.apply(this,arguments),this}
vendor: 7,336 bytes, line 170
170,p.setPage=function(){return at.apply(this,arguments),Z.call(this,q[j]),this},p.insertPage=function(e){return this.addPage(),this.movePage(j,e),this},p.movePage=function(e,t){var n,r;if(e>t){n=q[e],r=Te[e];for(var i=e;i>t;i--)q[i]=q[i-1],Te[i]=Te[i-1];q[t]=n,Te[t]=r,this.setPage(t)}else if(e<t){n=q[e],r=Te[e];for(var o=e;o<t;o++)q[o]=q[o+1],Te[o]=Te[o+1];q[t]=n,Te[t]=r,this.setPage(t)}return this},p.deletePage=function(){return st.apply(this,arguments),this},p.__private__.text=p.text=function(e,t,n,i,o){var s,a,c,u,l,h,d,p,A,g=(i=i||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var m=n;n=t,t=e,e=m}if(arguments[3]instanceof Me==0?(c=arguments[4],u=arguments[5],"object"===(0,r.A)(d=arguments[3])&&null!==d||("string"==typeof c&&(u=c,c=null),"string"==typeof d&&(u=d,d=null),"number"==typeof d&&(c=d,d=null),i={flags:d,angle:c,align:u})):(T("The transform parameter of text() with a Matrix value"),A=o),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return g;var y,v="",C="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Ut,_=g.internal.scaleFactor;function S(e){return e=e.split("\t").join(Array(i.TabLen||9).join(" ")),rt(e,d)}function P(e){for(var t,n=e.concat(),r=[],i=n.length;i--;)"string"==typeof(t=n.shift())?r.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function E(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var r,i,o=e.concat(),s=[],a=o.length;a--;)"string"==typeof(r=o.shift())?s.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=t(r[0],r[1],r[2]),s.push([i[0],i[1],i[2]]));n=s}return n}var I=!1,B=!0;if("string"==typeof e)I=!0;else if(Array.isArray(e)){var M=e.concat();a=[];for(var O,D=M.length;D--;)("string"!=typeof(O=M.shift())||Array.isArray(O)&&"string"!=typeof O[0])&&(B=!1);I=B}if(!1===I)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var R=ne/g.internal.scaleFactor,L=R*(C-1);switch(i.baseline){case"bottom":n-=L;break;case"top":n+=R-L;break;case"hanging":n+=R-2*L;break;case"middle":n+=R/2-L}if((h=i.maxWidth||0)>0&&("string"==typeof e?e=g.splitTextToSize(e,h):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(g.splitTextToSize(t,h))},[]))),s={text:e,x:t,y:n,options:i,mutex:{pdfEscape:rt,activeFontKey:de,fonts:me,activeFontSize:ne}},Pe.publish("preProcessText",s),e=s.text,c=(i=s.options).angle,A instanceof Me==0&&c&&"number"==typeof c){c*=Math.PI/180,0===i.rotationDirection&&(c=-c),w===b&&(c=-c);var N=Math.cos(c),U=Math.sin(c);A=new Me(N,U,-U,N,0,0)}else c&&c instanceof Me&&(A=c);w!==b||A||(A=De),void 0!==(l=i.charSpace||Jt)&&(v+=x(k(l))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=i.horizontalScale)&&(v+=x(100*p)+" Tz\n"),i.lang;var F=-1,j=void 0!==i.renderingMode?i.renderingMode:i.stroke,H=g.internal.getCurrentPageInfo().pageContext;switch(j){case 0:case!1:case"fill":F=0;break;case 1:case!0:case"stroke":F=1;break;case 2:case"fillThenStroke":F=2;break;case 3:case"invisible":F=3;break;case 4:case"fillAndAddForClipping":F=4;break;case 5:case"strokeAndAddPathForClipping":F=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":F=6;break;case 7:case"addToPathForClipping":F=7}var z=void 0!==H.usedRenderingMode?H.usedRenderingMode:-1;-1!==F?v+=F+" Tr\n":-1!==z&&(v+="0 Tr\n"),-1!==F&&(H.usedRenderingMode=F),u=i.align||"left";var Q,V=ne*C,K=g.internal.pageSize.getWidth(),W=me[de];l=i.charSpace||Jt,h=i.maxWidth||0,d=Object.assign({autoencode:!0,noBOM:!0},i.flags);var G=[],q=function(e){return g.getStringUnitWidth(e,{font:W,charSpace:l,fontSize:ne,doKerning:!1})*ne/_};if("[object Array]"===Object.prototype.toString.call(e)){var Y;a=P(e),"left"!==u&&(Q=a.map(q));var X,Z=0;if("right"===u){t-=Q[0],e=[],D=a.length;for(var J=0;J<D;J++)0===J?(X=Kt(t),Y=Wt(n)):(X=k(Z-Q[J]),Y=-V),e.push([a[J],X,Y]),Z=Q[J]}else if("center"===u){t-=Q[0]/2,e=[],D=a.length;for(var ee=0;ee<D;ee++)0===ee?(X=Kt(t),Y=Wt(n)):(X=k((Z-Q[ee])/2),Y=-V),e.push([a[ee],X,Y]),Z=Q[ee]}else if("left"===u){e=[],D=a.length;for(var te=0;te<D;te++)e.push(a[te])}else if("justify"===u&&"Identity-H"===W.encoding){e=[],D=a.length,h=0!==h?h:K;for(var re=0,ie=0;ie<D;ie++)if(Y=0===ie?Wt(n):-V,X=0===ie?Kt(t):re,ie<D-1){var se=k((h-Q[ie])/(a[ie].split(" ").length-1)),ae=a[ie].split(" ");e.push([ae[0]+" ",X,Y]),re=0;for(var ce=1;ce<ae.length;ce++){var ue=(q(ae[ce-1]+" "+ae[ce])-q(ae[ce]))*_+se;ce==ae.length-1?e.push([ae[ce],ue,0]):e.push([ae[ce]+" ",ue,0]),re-=ue}}else e.push([a[ie],X,Y]);e.push(["",re,0])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],D=a.length,h=0!==h?h:K,ie=0;ie<D;ie++){Y=0===ie?Wt(n):-V,X=0===ie?Kt(t):0;var le=a[ie].split(" ").length-1,he=le>0?(h-Q[ie])/le:0;ie<D-1?G.push(x(k(he))):G.push(0),e.push([a[ie],X,Y])}}}!0===("boolean"==typeof i.R2L?i.R2L:oe)&&(e=E(e,function(e,t,n){return[e.split("").reverse().join(""),t,n]})),s={text:e,x:t,y:n,options:i,mutex:{pdfEscape:rt,activeFontKey:de,fonts:me,activeFontSize:ne}},Pe.publish("postProcessText",s),e=s.text,y=s.mutex.isHex||!1;var fe=me[de].encoding;"WinAnsiEncoding"!==fe&&"StandardEncoding"!==fe||(e=E(e,function(e,t,n){return[S(e),t,n]})),a=P(e),e=[];for(var pe,Ae,ge,ye=Array.isArray(a[0])?1:0,ve="",be=function(e,t,n){var r="";return n instanceof Me?(n="number"==typeof i.angle?Oe(n,new Me(1,0,0,1,e,t)):Oe(new Me(1,0,0,1,e,t),n),w===b&&(n=Oe(new Me(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=x(e)+" "+x(t)+" Td\n",r},we=0;we<a.length;we++){switch(ve="",ye){case 1:ge=(y?"<":"(")+a[we][0]+(y?">":")"),pe=parseFloat(a[we][1]),Ae=parseFloat(a[we][2]);break;case 0:ge=(y?"<":"(")+a[we]+(y?">":")"),pe=Kt(t),Ae=Wt(n)}void 0!==G&&void 0!==G[we]&&(ve=G[we]+" Tw\n"),0===we?e.push(ve+be(pe,Ae,A)+ge):0===ye?e.push(ve+ge):1===ye&&e.push(ve+be(pe,Ae,A)+ge)}e=0===ye?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var Ce="BT\n/";return Ce+=de+" "+ne+" Tf\n",Ce+=x(ne*C)+" TL\n",Ce+=Zt+"\n",Ce+=v,Ce+=e,$(Ce+="ET"),f[de]=!0,g};var xt=p.__private__.clip=p.clip=function(e){return $("evenodd"===e?"W*":"W"),this};p.clipEvenOdd=function(){return xt("evenodd")},p.__private__.discardPath=p.discardPath=function(){return $("n"),this};var Tt=p.__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};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(e){return Tt(e)&&(l=e),this};var Pt=p.__private__.getStyle=p.getStyle=function(e){var t=l;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},Et=p.close=function(){return $("h"),this};p.stroke=function(){return $("S"),this},p.fill=function(e){return It("f",e),this},p.fillEvenOdd=function(e){return It("f*",e),this},p.fillStroke=function(e){return It("B",e),this},p.fillStrokeEvenOdd=function(e){return It("B*",e),this};var It=function(e,t){"object"===(0,r.A)(t)?Mt(t,e):$(e)},kt=function(e){null===e||w===b&&void 0===e||(e=Pt(e),$(e))};function Bt(e,t,n,r,i){var o=new Ia(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix
vendor: 4,229 bytes, line 170
170);o.stream=this.stream;var s=e+"$$"+this.cloneIndex+++"$$";return Re(s,o),o}var Mt=function(e,t){var n=we[e.key],r=be[n];if(r instanceof Ea)$("q"),$(Ot(t)),r.gState&&p.setGState(r.gState),$(e.matrix.toString()+" cm"),$("/"+n+" sh"),$("Q");else if(r instanceof Ia){var i=new Me(1,0,0,-1,0,gn());e.matrix&&(i=i.multiply(e.matrix||De),n=Bt.call(r,e.key,e.boundingBox,e.xStep,e.yStep,i).id),$("q"),$("/Pattern cs"),$("/"+n+" scn"),r.gState&&p.setGState(r.gState),$(t),$("Q")}},Ot=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Dt=p.moveTo=function(e,t){return $(x(k(e))+" "+x(B(t))+" m"),this},Rt=p.lineTo=function(e,t){return $(x(k(e))+" "+x(B(t))+" l"),this},Lt=p.curveTo=function(e,t,n,r,i,o){return $([x(k(e)),x(B(t)),x(k(n)),x(B(r)),x(k(i)),x(B(o)),"c"].join(" ")),this};p.__private__.line=p.line=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Tt(i))throw new Error("Invalid arguments passed to jsPDF.line");return w===v?this.lines([[n-e,r-t]],e,t,[1,1],i||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},p.__private__.lines=p.lines=function(e,t,n,r,i,o){var s,a,c,u,l,h,d,f,p,A,g,m;if("number"==typeof e&&(m=n,n=t,t=e,e=m),r=r||[1,1],o=o||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Tt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(Dt(t,n),s=r[0],a=r[1],u=e.length,A=t,g=n,c=0;c<u;c++)2===(l=e[c]).length?(A=l[0]*s+A,g=l[1]*a+g,Rt(A,g)):(h=l[0]*s+A,d=l[1]*a+g,f=l[2]*s+A,p=l[3]*a+g,A=l[4]*s+A,g=l[5]*a+g,Lt(h,d,f,p,A,g));return o&&Et(),kt(i),this},p.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case"m":Dt(r[0],r[1]);break;case"l":Rt(r[0],r[1]);break;case"c":Lt.apply(this,r);break;case"h":Et()}}return this},p.__private__.rect=p.rect=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Tt(i))throw new Error("Invalid arguments passed to jsPDF.rect");return w===v&&(r=-r),$([x(k(e)),x(B(t)),x(k(n)),x(k(r)),"re"].join(" ")),kt(i),this},p.__private__.triangle=p.triangle=function(e,t,n,r,i,o,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Tt(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,r-t],[i-n,o-r],[e-i,t-o]],e,t,[1,1],s,!0),this},p.__private__.roundedRect=p.roundedRect=function(e,t,n,r,i,o,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Tt(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),o=Math.min(o,.5*r),this.lines([[n-2*i,0],[i*a,0,i,o-o*a,i,o],[0,r-2*o],[0,o*a,-i*a,o,-i,o],[2*i-n,0],[-i*a,0,-i,-o*a,-i,-o],[0,2*o-r],[0,-o*a,i*a,-o,i,-o]],e+i,t,[1,1],s,!0),this},p.__private__.ellipse=p.ellipse=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Tt(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,s=4/3*(Math.SQRT2-1)*r;return Dt(e+n,t),Lt(e+n,t-s,e+o,t-r,e,t-r),Lt(e-o,t-r,e-n,t-s,e-n,t),Lt(e-n,t+s,e-o,t+r,e,t+r),Lt(e+o,t+r,e+n,t+s,e+n,t),kt(i),this},p.__private__.circle=p.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!Tt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,r)},p.setFont=function(e,t,n){return n&&(t=S(t,n)),de=ut(e,t,{disableWarning:!1}),this};var Nt=p.__private__.getFont=p.getFont=function(){return me[ut.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var e,t,n={};for(e in ye)if(ye.hasOwnProperty(e))for(t in n[e]=[],ye[e])ye[e].hasOwnProperty(t)&&n[e].push(t);return n},p.addFont=function(e,t,n,r,i){var o=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==o.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==o.indexOf(arguments[3])&&(n=S(n,r)),nt.call(this,e,t,n,i=i||"Identity-H")};var Ut,Ft=e.lineWidth||.200025,jt=p.__private__.getLineWidth=p.getLineWidth=function(){return Ft},Ht=p.__private__.setLineWidth=p.setLineWidth=function(e){return Ft=e,$(x(k(e))+" w"),this};p.__private__.setLineDash=ka.API.setLineDash=ka.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to 
170jsPDF.setLineDash");return e=e.map(function(e){return x(k(e))}).join(" "),t=x(k(t)),$("["+e+"] "+t+" d"),this};var zt=p.__private__.getLineHeight=p.getLineHeight=function(){return ne*Ut};p.__private__.getLineHeight=p.getLineHeight=function(){return ne*Ut};var Qt=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Ut=e),this},Vt=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Ut};Qt(e.lineHeight);var Kt=p.__private__.getHorizontalCoordinate=function(e){return k(e)},Wt=p.__private__.getVerticalCoordinate=function(e){return w===b?e:Te[j].mediaBox.topRightY-Te[j].mediaBox.bottomLeftY-k(e)},Gt=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(e){return x(Kt(e))},qt=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(e){return x(Wt(e))},Yt=e.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return Qe(Yt)},p.__private__.setStrokeColor=p.setDrawColor=function(e,t,n,r){return Yt=Ve({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),$(Yt),this};var Xt=e.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return Qe(Xt)},p.__private__.setFillColor=p.setFillColor=function(e,t,n,r){return Xt=Ve({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),$(Xt),this};var Zt=e.textColor||"0 g",$t=p.__private__.getTextColor=p.getTextColor=function(){return Qe(Zt)};p.__private__.setTextColor=p.setTextColor=function(e,t,n,r){return Zt=Ve({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var Jt=e.charSpace,en=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Jt||0)};p.__private__.setCharSpace=p.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Jt=e,this};var tn=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(e){var t=p.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return tn=t,$(t+" J"),this};var nn=0;p.__private__.setLineJoin=p.setLineJoin=function(e){var t=p.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return nn=t,$(t+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return $(x(k(e))+" M"),this},p.GState=Ta,p.setGState=function(e){(e="string"==typeof e?Ce[_e[e]]:rn(null,e)).equals(Se)||($("/"+e.id+" gs"),Se=e)};var rn=function(e,t){if(!e||!_e[e]){var n=!1;for(var r in Ce)if(Ce.hasOwnProperty(r)&&Ce[r].equals(t)){n=!0;break}if(n)t=Ce[r];else{var i="GS"+(Object.keys(Ce).length+1).toString(10);Ce[i]=t,t.id=i}return e&&(_e[e]=t.id),Pe.publish("addGState",t),t}};p.addGState=function(e,t){return rn(e,t),this},p.saveGraphicsState=function(){return $("q"),ve.push({key:de,size:ne,color:Zt}),this},p.restoreGraphicsState=function(){$("Q");var e=ve.pop();return de=e.key,ne=e.size,Zt=e.color,Se=null,this},p.setCurrentTransformationMatrix=function(e){return $(e.toString()+" cm"),this},p.comment=function(e){return $("#"+e),this};var on=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(e){i=e.toString()}}),this},sn=function(e,t,n,r){on.call(this,e,t),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o}
vendor: 4,394 bytes, line 170
170,set:function(e){isNaN(e)||(o=parseFloat(e))}}),this},an=function(){this.page=xe,this.currentPage=j,this.pages=q.slice(0),this.pagesContext=Te.slice(0),this.x=pe,this.y=Ae,this.matrix=ge,this.width=ln(j),this.height=dn(j),this.outputDestination=X,this.id="",this.objectNumber=-1};an.prototype.restore=function(){xe=this.page,j=this.currentPage,Te=this.pagesContext,q=this.pages,pe=this.x,Ae=this.y,ge=this.matrix,hn(j,this.width),fn(j,this.height),X=this.outputDestination};var cn=function(e,t,n,r,i){Be.push(new an),xe=j=0,q=[],pe=e,Ae=t,ge=i,it([n,r])};for(var un in p.beginFormObject=function(e,t,n,r,i){return cn(e,t,n,r,i),this},p.endFormObject=function(e){return function(e){if(ke[e])Be.pop().restore();else{var t=new an,n="Xo"+(Object.keys(Ie).length+1).toString(10);t.id=n,ke[e]=n,Ie[n]=t,Pe.publish("addFormObject",t),Be.pop().restore()}}(e),this},p.doFormObject=function(e,t){var n=Ie[ke[e]];return $("q"),$(t.toString()+" cm"),$("/"+n.id+" Do"),$("Q"),this},p.getFormObject=function(e){var t=Ie[ke[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},p.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(ra(gt(At()),e),"function"==typeof ra.unload&&Zs.setTimeout&&setTimeout(ra.unload,911),this):new Promise(function(t,n){try{var r=ra(gt(At()),e);"function"==typeof ra.unload&&Zs.setTimeout&&setTimeout(ra.unload,911),t(r)}catch(i){n(i.message)}})},ka.API)ka.API.hasOwnProperty(un)&&("events"===un&&ka.API.events.length?function(e,t){var n,r,i;for(i=t.length-1;-1!==i;i--)n=t[i][0],r=t[i][1],e.subscribe.apply(e,[n].concat("function"==typeof r?[r]:r))}(Pe,ka.API.events):p[un]=ka.API[un]);function ln(e){return Te[e].mediaBox.topRightX-Te[e].mediaBox.bottomLeftX}function hn(e,t){Te[e].mediaBox.topRightX=t+Te[e].mediaBox.bottomLeftX}function dn(e){return Te[e].mediaBox.topRightY-Te[e].mediaBox.bottomLeftY}function fn(e,t){Te[e].mediaBox.topRightY=t+Te[e].mediaBox.bottomLeftY}var pn=p.getPageWidth=function(e){return ln(e=e||j)/fe},An=p.setPageWidth=function(e,t){hn(e,t*fe)},gn=p.getPageHeight=function(e){return dn(e=e||j)/fe},mn=p.setPageHeight=function(e,t){fn(e,t*fe)};return p.internal={pdfEscape:rt,getStyle:Pt,getFont:Nt,getFontSize:ie,getCharSpace:en,getTextColor:$t,getLineHeight:zt,getLineHeightFactor:Vt,getLineWidth:jt,write:J,getHorizontalCoordinate:Kt,getVerticalCoordinate:Wt,getCoordinateString:Gt,getVerticalCoordinateString:qt,collections:{},newObject:Ne,newAdditionalObject:je,newObjectDeferred:Ue,newObjectDeferredBegin:Fe,getFilters:Ke,putStream:We,events:Pe,scaleFactor:fe,pageSize:{getWidth:function(){return pn(j)},setWidth:function(e){An(j,e)},getHeight:function(){return gn(j)},setHeight:function(e){mn(j,e)}},encryptionOptions:h,encryption:wt,getEncryptor:function(e){return null!==h?wt.encryptor(e,0):function(e){return e}},output:vt,getNumberOfPages:ct,get pages(){return q},out:$,f2:E,f3:I,getPageInfo:Ct,getPageInfoByObjId:_t,getCurrentPageInfo:St,getPDFVersion:g,Point:on,Rectangle:sn,Matrix:Me,hasHotfix:bt},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return pn(j)},set:function(e){An(j,e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return gn(j)},set:function(e){mn(j,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=te.length;t<n;t++){var r=nt.call(this,e[t][0],e[t][1],e[t][2],te[t][3],!0);!1===d&&(f[r]=!0);var i=e[t][0].split("-");tt({id:r,fontName:i[0],fontStyle:i[1]||""})}Pe.publish("addFonts",{fonts:me,dictionary:ye})}.call(p,te),de="F1",ot(o,n),Pe.publish("initialized"),p}_a.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},_a.prototype.toHexString=function(e){return e.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},_a.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},_a.prototype.processOwnerPassword=function(e,t){return wa(ya(t).substr(0,5),e)},_a.prototype.encryptor=function(e,t){var n=ya(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return wa(n,e)}},Ta.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||(0,r.A)(e)!==(0,r.A)(this))return!1;var i=0;for(t in this)if(!(n.indexOf(t)>
vendor: 6,728 bytes, line 170
170=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;i++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&i--;return 0===i},ka.API={events:[]},ka.version="4.2.1";var Ba=ka.API,Ma=1,Oa=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Da=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ra=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===t.length?"0"+t:t)})},La=function(e){return e.toFixed(2)},Na=function(e){return e.toFixed(5)};Ba.__acroform__={};var Ua=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Fa=function(e){return e*Ma},ja=function(e){var t=new rc,n=mc.internal.getHeight(e)||0,r=mc.internal.getWidth(e)||0;return t.BBox=[0,0,Number(La(r)),Number(La(n))],t},Ha=Ba.__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<<t},za=Ba.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},Qa=Ba.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Va=Ba.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Qa(e,t-1)},Ka=Ba.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Ha(e,t-1)},Wa=Ba.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return za(e,t-1)},Ga=Ba.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],o=e[1],s=e[2],a=e[3],c={};return c.lowerLeft_X=n(i)||0,c.lowerLeft_Y=r(o+a)||0,c.upperRight_X=n(i+s)||0,c.upperRight_Y=r(o)||0,[Number(La(c.lowerLeft_X)),Number(La(c.lowerLeft_Y)),Number(La(c.upperRight_X)),Number(La(c.upperRight_Y))]},qa=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=Ya(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+La(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=ja(e);return o.scope=e.scope,o.stream=t.join("\n"),o}},Ya=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(e){return e.split("\n")}):i.map(function(e){return[e]});var o=n,s=mc.internal.getHeight(e)||0;s=s<0?-s:s;var a=mc.internal.getWidth(e)||0;a=a<0?-a:a;var c=function(t,n,r){if(t+1<i.length){var o=n+" "+i[t+1][0];return Xa(o,e,r).width<=a-4}return!1};o++;e:for(;o>0;){t="",o--;var u,l,h=Xa("3",e,o).height,d=e.multiline?s-o:(s-h)/2,f=d+=2,p=0,A=0,g=0;if(o<=0){t="(...) Tj\n",t+="% Width of Text: "+Xa(t,e,o=12).width+", FieldWidth:"+a+"\n";break}for(var m="",y=0,v=0;v<i.length;v++)if(i.hasOwnProperty(v)){var b=!1;if(1!==i[v].length&&g!==i[v].length-1){if((h+2)*(y+2)+2>s)continue e;m+=i[v][g],b=!0,A=v,v--}else{m=" "==(m+=i[v][g]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var w=parseInt(v),C=c(w,m,o),_=v>=i.length-1;if(C&&!_){m+=" ",g=0;continue}if(C||_){if(_)A=w;else if(e.multiline&&(h+2)*(y+2)+2>s)continue e}else{if(!e.multiline)continue e;if((h+2)*(y+2)+2>s)continue e;A=w}}for(var S="",x=p;x<=A;x++){var T=i[x];if(e.multiline){if(x===A){S+=T[g]+" ",g=(g+1)%T.length;continue}if(x===p){S+=T[T.length-1]+" ";continue}}S+=T[0]+" "}switch(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,l=Xa(S,e,o).width,e.textAlign){case"right":u=a-l-2;break;case"center":u=(a-l)/2;break;default:u=2}t+=La(u)+" "+La(f)+" Td\n",t+="("+Oa(S)+") Tj\n",t+=-La(u)+" 0 Td\n",f=-(o+2),l=0,p=b?A:A+1,y++,m=""}break}return r.text=t,r.fontSize=o,r},Xa=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}},Za={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},$a=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)},Ja=function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(oc.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Za)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ma=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new ic,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&&$a(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 i 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(i)){var o=e[i],s=[],a=o.Rect;if(o.Rect&&(o.Rect=Ga(o.Rect,t)),t.internal.newObjectDeferredBegin(o.obj
vendor: 4,148 bytes, line 170
170Id,!0),o.DA=mc.createDefaultAppearanceStream(o),"object"===(0,r.A)(o)&&"function"==typeof o.getKeyValueListForStream&&(s=o.getKeyValueListForStream()),o.Rect=a,o.hasAppearanceStream&&!o.appearanceStreamContent){var c=qa(o);s.push({key:"AP",value:"<</N "+c+">>"}),t.internal.acroformPlugin.xForms.push(c)}if(o.appearanceStreamContent){var u="";for(var l in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(l)){var h=o.appearanceStreamContent[l];if(u+="/"+l+" ",u+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var d=h[i];"function"==typeof d&&(d=d.call(t,o)),u+="/"+i+" "+d+" ",t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d)}}else"function"==typeof(d=h)&&(d=d.call(t,o)),u+="/"+i+" "+d,t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d);u+=">>"}s.push({key:"AP",value:"<<\n"+u+">>"})}t.internal.putStream({additionalKeyValues:s,objectId:o.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=n,o=e[n];t.internal.newObjectDeferredBegin(o.objId,!0),"object"===(0,r.A)(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[i]}}(t.internal.acroformPlugin.xForms,t)}(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},ec=Ba.__acroform__.arrayToPdfArray=function(e,t,n){var i=function(e){return e};if(Array.isArray(e)){for(var o="[",s=0;s<e.length;s++)switch(0!==s&&(o+=" "),(0,r.A)(e[s])){case"boolean":case"number":case"object":o+=e[s].toString();break;case"string":"/"===e[s].substr(0,1)?o+="/"+Ra(e[s].substr(1)):(void 0!==t&&n&&(i=n.internal.getEncryptor(t)),o+="("+Oa(i(e[s].toString()))+")")}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},tc=function(e,t,n){var r=function(e){return e};return void 0!==t&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Oa(r(e))+")"},nc=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};nc.prototype.toString=function(){return this.objId+" 0 R"},nc.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},nc.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)});for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:ec(i,this.objId,this.scope)}):i instanceof nc?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&e.push({key:r,value:i}))}return e};var rc=function(){nc.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Ua(rc,nc);var ic=function(){nc.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?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)),"("+Oa(t(e))+")"}},set:function(t){e=t}})};Ua(ic,nc);var oc=function e(){nc.call(this);var t=4;
vendor: 8,861 bytes, line 170
170Object.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(Va(t,3))},set:function(e){!0===Boolean(e)?this.F=Ka(t,3):this.F=Wa(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 fc)return;o="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Oa(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 s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/Ma:u},set:function(e){u=e}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof fc||this instanceof Ac))return tc(h,this.objId,this.scope)},set:function(e){e=e.toString(),h=e}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof lc==0?tc(d,this.objId,this.scope):d},set:function(e){e=e.toString(),d=this instanceof lc==0?"("===e.substr(0,1)?Da(e.substr(1,e.length-2)):Da(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof lc==1?Da(d.substr(1,d.length-1)):d},set:function(e){e=e.toString(),d=this instanceof lc==1?"/"+Ra(e):e}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof lc==0?tc(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof lc==0?"("===e.substr(0,1)?Da(e.substr(1,e.length-2)):Da(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof lc==1?Da(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof lc==1?"/"+Ra(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 p,A=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return A},set:function(e){e=Boolean(e),A=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(e){p=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,1):this.Ff=Wa(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,2):this.Ff=Wa(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,3):this.Ff=Wa(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){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:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};Ua(oc,nc);var sc=function(){oc.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 ec(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(Va(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,18):this.Ff=Wa(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=Ka(this.Ff,19):this.Ff=Wa(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=Ka(this.Ff,20),t.sort()):this.Ff=Wa(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,22):this.Ff=Wa(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,23):this.Ff=Wa(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,27):this.Ff=Wa(this.Ff,27)}}),this.hasAppearanceStream=!1};Ua(sc,oc);var ac=function(){sc.call(this),this.fontName="helvetica",this.combo=!1};Ua(ac,sc);var cc=function(){ac.call(this),this.combo=!0};Ua(cc,ac);var uc=function(){cc.call(this),this.edit=!0};Ua(uc,cc);var lc=function(){oc.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,15):this.Ff=Wa(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,16):this.Ff=Wa(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,17):this.Ff=Wa(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,26):this.Ff=Wa(this.Ff,26)}});var e,t={};
vendor: 4,792 bytes, line 170
170Object.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+" ("+Oa(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===(0,r.A)(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){var n=null==t?"":t.toString();"/"===n.substr(0,1)&&(n=n.substr(1)),e="/"+Ra(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+Ra(t)}})};Ua(lc,oc);var hc=function(){lc.call(this),this.pushButton=!0};Ua(hc,lc);var dc=function(){lc.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:[]}})};Ua(dc,lc);var fc=function(){var e,t;oc.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,i={};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("<<"),i)n.push("/"+t+" ("+Oa(e(i[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===(0,r.A)(e)&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(e){"string"==typeof e&&(i.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){var t=null==e?"":e.toString();"/"===t.substr(0,1)&&(t=t.substr(1)),n="/"+Ra(t)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){var t=null==e?"":e.toString();"/"===t.substr(0,1)&&(t=t.substr(1)),n="/"+Ra(t)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=mc.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ua(fc,oc),dc.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()}},dc.prototype.createOption=function(e){var t=new fc;return t.Parent=this,t.optionName=e,this.Kids.push(t),yc.call(this.scope,t),t};var pc=function(){lc.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=mc.CheckBox.createAppearanceStream()};Ua(pc,lc);var Ac=function(){oc.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,13):this.Ff=Wa(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,21):this.Ff=Wa(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,23):this.Ff=Wa(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,24):this.Ff=Wa(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,25):this.Ff=Wa(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,26):this.Ff=Wa(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}})};Ua(Ac,oc);
vendor: 4,234 bytes, line 170
170var gc=function(){Ac.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Va(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=Ka(this.Ff,14):this.Ff=Wa(this.Ff,14)}}),this.password=!0};Ua(gc,Ac);var mc={CheckBox:{createAppearanceStream:function(){return{N:{On:mc.CheckBox.YesNormal},D:{On:mc.CheckBox.YesPushDown,Off:mc.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ja(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=Ya(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+La(mc.internal.getWidth(e))+" "+La(mc.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+La(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=ja(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=mc.internal.getHeight(e),s=mc.internal.getWidth(e),a=Ya(e,e.caption);return i.push("1 g"),i.push("0 0 "+La(s)+" "+La(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+La(s-1)+" "+La(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+La(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=ja(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+La(mc.internal.getWidth(e))+" "+La(mc.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:mc.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=mc.RadioButton.Circle.YesNormal,t.D[e]=mc.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ja(e);t.scope=e.scope;var n=[],r=mc.internal.getWidth(e)<=mc.internal.getHeight(e)?mc.internal.getWidth(e)/4:mc.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=mc.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Na(mc.internal.getWidth(e)/2)+" "+Na(mc.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=ja(e);t.scope=e.scope;var n=[],r=mc.internal.getWidth(e)<=mc.internal.getHeight(e)?mc.internal.getWidth(e)/4:mc.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*mc.internal.Bezier_C).toFixed(5)),s=Number((r*mc.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Na(mc.internal.getWidth(e)/2)+" "+Na(mc.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 "+Na(mc.internal.getWidth(e)/2)+" "+Na(mc.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=ja(e);t.scope=e.scope;var n=[],r=mc.internal.getWidth(e)<=mc.internal.getHeight(e)?mc.internal.getWidth(e)/4:mc.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*mc.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Na(mc.internal.getWidth(e)/2)+" "+Na(mc.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:mc.RadioButton.Cross.OffPushDown},N:{}}
vendor: 4,383 bytes, line 170
170;return t.N[e]=mc.RadioButton.Cross.YesNormal,t.D[e]=mc.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ja(e);t.scope=e.scope;var n=[],r=mc.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+La(mc.internal.getWidth(e)-2)+" "+La(mc.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(La(r.x1.x)+" "+La(r.x1.y)+" m"),n.push(La(r.x2.x)+" "+La(r.x2.y)+" l"),n.push(La(r.x4.x)+" "+La(r.x4.y)+" m"),n.push(La(r.x3.x)+" "+La(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=ja(e);t.scope=e.scope;var n=mc.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+La(mc.internal.getWidth(e))+" "+La(mc.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+La(mc.internal.getWidth(e)-2)+" "+La(mc.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(La(n.x1.x)+" "+La(n.x1.y)+" m"),r.push(La(n.x2.x)+" "+La(n.x2.y)+" l"),r.push(La(n.x4.x)+" "+La(n.x4.y)+" m"),r.push(La(n.x3.x)+" "+La(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=ja(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+La(mc.internal.getWidth(e))+" "+La(mc.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}};mc.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=mc.internal.getWidth(e),n=mc.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}}}},mc.internal.getWidth=function(e){var t=0;return"object"===(0,r.A)(e)&&(t=Fa(e.Rect[2])),t},mc.internal.getHeight=function(e){var t=0;return"object"===(0,r.A)(e)&&(t=Fa(e.Rect[3])),t};var yc=Ba.addField=function(e){if(Ja(this,e),!(e instanceof oc))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};Ba.AcroFormChoiceField=sc,Ba.AcroFormListBox=ac,Ba.AcroFormComboBox=cc,Ba.AcroFormEditBox=uc,Ba.AcroFormButton=lc,Ba.AcroFormPushButton=hc,Ba.AcroFormRadioButton=dc,Ba.AcroFormCheckBox=pc,Ba.AcroFormTextField=Ac,Ba.AcroFormPasswordField=gc,Ba.AcroFormAppearance=mc,Ba.AcroForm={ChoiceField:sc,ListBox:ac,ComboBox:cc,EditBox:uc,Button:lc,PushButton:hc,RadioButton:dc,CheckBox:pc,TextField:Ac,PasswordField:gc,Appearance:mc},ka.AcroForm={ChoiceField:sc,ListBox:ac,ComboBox:cc,EditBox:uc,Button:lc,PushButton:hc,RadioButton:dc,CheckBox:pc,TextField:Ac,PasswordField:gc,Appearance:mc};ka.AcroForm;function vc(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}!function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",i={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]]},o=e.__addimage__.getImageFileTypeByImageData=function(e,t){var r,o,s,a,c,u=n;if("RGBA"===(t=t||n)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(_(e))for(c in i)for(s=i[c],r=0;r<s.length;r+=1){for(a=!0,o=0;o<s[r].length;o+=1)if(void 0!==s[r][o]&&s[r][o]!==e[o]){a=!1;break}if(!0===a){u=c;break}}else for(c in i)for(s=i[c],r=0;r<s.length;r+=1){for(a=!0,o=0;o<s[r].length;o+=1)if(void 0!==s[r][o]&&s[r][o]!==e.charCodeAt(o)){a=!1;break}if(!0===a){u=c;break}}return u===n&&t!==n&&(u=t),u},s=function e(t){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:t.width}),o.push({key:"Height",value:t.height}
vendor: 4,437 bytes, line 170
170),t.colorSpace===y.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===y.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var s="",a=0,c=t.transparency.length;a<c;a++)s+=t.transparency[a]+" "+t.transparency[a]+" ";o.push({key:"Mask",value:"["+s+"]"})}void 0!==t.sMask&&o.push({key:"SMask",value:t.objectId+1+" 0 R"});var u=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:o,alreadyAppliedFilters:u,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var l,h=null!==(l=t.sMaskBitsPerComponent)&&void 0!==l?l:t.bitsPerComponent,d={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:h,data:t.sMask};"filter"in t&&(d.decodeParameters="/Predictor ".concat(t.predictor," /Colors 1 /BitsPerComponent ").concat(h," /Columns ").concat(t.width),d.filter=t.filter),e.call(this,d)}if(t.colorSpace===y.INDEXED){var f=this.internal.newObject();r({data:x(new Uint8Array(t.palette)),objectId:f}),n("endobj")}},a=function(){var e=this.internal.collections[t+"images"];for(var n in e)s.call(this,e[n])},c=function(){var e,n=this.internal.collections[t+"images"],r=this.internal.write;for(var i in n)r("/I"+(e=n[i]).index,e.objectId,"0","R")},u=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",c))},l=function(){var e=this.internal.collections[t+"images"];return u.call(this),e},h=function(){return Object.keys(this.internal.collections[t+"images"]).length},d=function(t){return"function"==typeof e["process"+t.toUpperCase()]},f=function(e){return"object"===(0,r.A)(e)&&1===e.nodeType},p=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return oa(unescape(r).split("base64,").pop());var i=e.loadFile(r,!0);if(void 0!==i)return i}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var o;switch(n){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;default:o="image/jpeg"}return oa(t.toDataURL(o,1).split("base64,").pop())}},A=function(e){var n=this.internal.collections[t+"images"];if(n)for(var r in n)if(e===n[r].alias)return n[r]},g=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},m=function(e,t,n,r,i,o){var s=g.call(this,n,r,i),a=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=l.call(this);if(n=s[0],r=s[1],u[i.index]=i,o){o*=Math.PI/180;var h=Math.cos(o),d=Math.sin(o),f=function(e){return e.toFixed(4)},p=[f(h),f(d),f(-1*d),f(h),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,a(e),c(t+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([a(n),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(n),"0","0",a(r),a(e),c(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},y=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var v=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},b=e.__addimage__.sHashCode=function(e){var t,n,r=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(_(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r}
vendor: 3,979 bytes, lines 170-178
170,w=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},C=e.__addimage__.extractImageFromDataUrl=function(e){if(null==e)return null;if(!(e=e.trim()).startsWith("data:"))return null;var t=e.indexOf(",");return t<0?null:e.substring(0,t).trim().endsWith("base64")?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var _=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},S=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},x=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=_(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,t,i,o,s,a,c,l,h;if("number"==typeof arguments[1]?(t=n,i=arguments[1],o=arguments[2],s=arguments[3],a=arguments[4],c=arguments[5],l=arguments[6],h=arguments[7]):(t=arguments[1],i=arguments[2],o=arguments[3],s=arguments[4],a=arguments[5],c=arguments[6],l=arguments[7],h=arguments[8]),"object"===(0,r.A)(e=arguments[0])&&!f(e)&&"imageData"in e){var d=e;e=d.imageData,t=d.format||t||n,i=d.x||i||0,o=d.y||o||0,s=d.w||d.width||s,a=d.h||d.height||a,c=d.alias||c,l=d.compression||l,h=d.rotation||d.angle||h}var p=this.internal.getFilters();if(void 0===l&&-1!==p.indexOf("FlateEncode")&&(l="SLOW"),isNaN(i)||isNaN(o))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var A=T.call(this,e,t,c,l);return m.call(this,i,o,s,a,A,h),this};var T=function(t,r,i,s){var a,c,u;if("string"==typeof t&&o(t)===n){t=unescape(t);var l=P(t,!1);(""!==l||void 0!==(l=e.loadFile(t,!0)))&&(t=l)}if(f(t)&&(t=p(t,r)),r=o(t,r),!d(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(u=i)||0===u.length)&&(i=function(e){return"string"==typeof e||_(e)?b(e):_(e.data)?b(e.data):null}(t)),(a=A.call(this,i))||(t instanceof Uint8Array||"RGBA"===r||(c=t,t=S(t)),a=this["process"+r.toUpperCase()](t,h.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:v.NONE}(s),c)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},P=e.__addimage__.convertBase64ToBinaryString=function(e,t){t="boolean"!=typeof t||t;var n,r="";if("string"==typeof e){var i;n=null!==(i=C(e))&&void 0!==i?i:e;try{r=oa(n)}catch(o){if(t)throw w(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+o.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};e.getImageProperties=function(t){var r,i,s="";if(f(t)&&(t=p(t)),"string"==typeof t&&o(t)===n&&(""===(s=P(t,!1))&&(s=e.loadFile(t)||""),t=s),i=o(t),!d(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(t instanceof Uint8Array||(t=S(t)),!(r=this["process"+i.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(ka.API),
171/**
172 * @license
173 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
174 *
175 * Licensed under the MIT License.
176 * http://opensource.org/licenses/mit-license
177 */
178function(e){var t=function(e){if(void 0!==e&&""!=e)return!0};ka.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(e){for(var n,r,i,o=this.internal.getCoordinateString,
vendor: 11,151 bytes, lines 178-193
178s=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(e.objId),c=e.pageContext.annotations,u=!1,l=0;l<c.length&&!u;l++)switch((n=c[l]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(0!=u){this.internal.write("/Annots [");for(var h=0;h<c.length;h++){n=c[h];var d=this.internal.pdfEscape,f=this.internal.getEncryptor(e.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),A=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(p.objId),m=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+d(g(n.contents))+")",i+=" /Popup "+A.objId+" 0 R",i+=" /P "+a.objId+" 0 R",i+=" /T ("+d(g(m))+") >>",p.content=i;var y=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+y,n.open&&(i+=" /Open true"),i+=" >>",A.content=i,this.internal.write(p.objId,"0 R",A.objId,"0 R");break;case"freetext":r="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var v="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(n.color||"#000000");i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+d(f(n.contents))+")",i+=" /DS("+d(f(v))+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var b=this.annotations._nameMap[n.options.name];n.options.pageNumber=b.page,n.options.top=b.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+d(f(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;default:var w=s(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+w+" "+n.options.zoom+"]"}""!=i&&(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(),s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:s(e),y:a(t),w:s(e+n),h:a(t+r)},options:i,type:"link"})},e.textWithLink=function(e,t,n,r){var i,o,s=this.getTextWidth(e),a=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){o=r.maxWidth;var c=this.splitTextToSize(e,o).length;i=Math.ceil(a*c)}else o=s,i=a;return this.text(e,t,n,r),n+=.2*a,"center"===r.align&&(t-=s/2),"right"===r.align&&(t-=s),this.link(t,n-a,o,i,r),s},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(ka.API),
179/**
180 * @license
181 * Copyright (c) 2017 Aras Abbasi
182 *
183 * Licensed under the MIT License.
184 * http://opensource.org/licenses/mit-license
185 */
186function(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)]},s=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},a=e.__arabicParser__.isArabicEndLetter=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(e){return s(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length>=3};var l=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return s(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<e.length;t+=1)void 0!==r[e.charCodeAt(t)]?(o++,"number"==typeof(r=r[e.charCodeAt(t)])&&(i+=String.fromCharCode(r),r=n,o=0),t===e.length-1&&(r=n,i+=e.charAt(t-(o-1)),t-=o-1,o=0)):(r=n,i+=e.charAt(t-o),t-=o,o=0);return i};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==r[e.charCodeAt(0)]};var d=e.__arabicParser__.getCorrectForm=function(e,t,n){return s(e)?!1===o(e)?-1:!u(e)||!s(t)&&!s(n)||!s(n)&&a(t)||a(e)&&!s(t)||a(e)&&c(t)||a(e)&&a(t)?0:l(e)&&s(t)&&!a(t)&&s(n)&&u(n)?3:a(e)||!s(n)?1:2:-1},f=function(e){var n=0,r=0,i=0,o="",a="",c="",u=(e=e||"").split("\\s+"),l=[];for(n=0;n<u.length;n+=1){for(l.push(""),r=0;r<u[n].length;r+=1)o=u[n][r],a=u[n][r-1],c=u[n][r+1],s(o)?(i=d(o,a,c),l[n]+=-1!==i?String.fromCharCode(t[o.charCodeAt(0)][i]):o):l[n]+=o;l[n]=h(l[n])}return l.join(" ")},p=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([f(t[r][0]),t[r][1],t[r][2]]):n.push([f(t[r])]);e=n}else e=f(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",p])}(ka.API),ka.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform","javascript"===e.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this
187/**
188 * @license
189 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
190 *
191 * Licensed under the MIT License.
192 * http://opensource.org/licenses/mit-license
193 */},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}])}(ka.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,i=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 s,this.internal.__cell__.pages=1},s=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}
vendor: 4,437 bytes, line 193
193,set:function(e){o=e}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(e){s=e}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){i.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),r=t.font||this.getFont(),o=t.scaleFactor||this.internal.scaleFactor,s=0,a=0,c=0,u=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 l=t.maxWidth;l>0?"string"==typeof e?e=this.splitTextToSize(e,l):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(u.splitTextToSize(t,l))},[])):e=Array.isArray(e)?e:[e];for(var h=0;h<e.length;h++)s<(c=this.getStringUnitWidth(e[h],{font:r})*n)&&(s=c);return 0!==s&&(a=e.length),{w:s/=o,h:Math.max((a*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/o,0)}},e.cellAddPage=function(){i.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var e;e=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),i.call(this);var r=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,a=this.internal.__cell__.margins||t,c=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===e.lineNumber?(e.x=(r.x||0)+(r.width||0),e.y=r.y||0):r.y+r.height+e.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=a.top,u&&c&&(this.printHeaderRow(e.lineNumber,!0),e.y+=c[0].height)):e.y=r.y+r.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,u,l,h){if(i.call(this),!u)throw new Error("No data for PDF table.");var d,f,p,A,g=[],m=[],y=[],v={},b={},w=[],C=[],_=(h=h||{}).autoSize||!1,S=!1!==h.printHeaders,x=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,T=h.margins||Object.assign({width:this.getPageWidth()},t),P="number"==typeof h.padding?h.padding:3,E=h.headerBackgroundColor||"#c8c8c8",I=h.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=S,this.internal.__cell__.margins=T,this.internal.__cell__.table_font_size=x,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=E,this.internal.__cell__.headerTextColor=I,this.setFontSize(x),null==l)m=g=Object.keys(u[0]),y=g.map(function(){return"left"});else if(Array.isArray(l)&&"object"===(0,r.A)(l[0]))for(g=l.map(function(e){return e.name}),m=l.map(function(e){return e.prompt||e.name||""}),y=l.map(function(e){return e.align||"left"}),d=0;d<l.length;d+=1)b[l[d].name]=.7499990551181103*l[d].width;else Array.isArray(l)&&"string"==typeof l[0]&&(m=g=l,y=g.map(function(){return"left"}));if(_||Array.isArray(l)&&"string"==typeof l[0])for(d=0;d<g.length;d+=1){for(v[A=g[d]]=u.map(function(e){return e[A]}),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(m[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=v[A],this.setFont(void 0,"normal"),p=0;p<f.length;p+=1)w.push(this.getTextDimensions(f[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);b[A]=Math.max.apply(null,w)+P+P,w=[]}if(S){var k={};for(d=0;d<g.length;d+=1)k[g[d]]={},k[g[d]].text=m[d],k[g[d]].align=y[d];var B=c.call(this,k,b);C=g.map(function(t){return new s(e,n,b[t],B,k[t].text,void 0,k[t].align)}),this.setTableHeaderRow(C),this.printHeaderRow(1,!1)}var M=l.reduce(function(e,t){return e[t.name]=t.align,e},{});for(d=0;d<u.length;
vendor: 62,083 bytes, lines 193-260
193d+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:d,data:u[d]},this);var O=c.call(this,u[d],b);for(p=0;p<g.length;p+=1){var D=u[d][g[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:d,col:p,data:D},this),a.call(this,new s(e,n,b[g[p]],O,D,d+2,M[g[p]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var c=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(e).map(function(r){var i=e[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,t[r]-n-n)},this).map(function(e){return this.getLineHeightFactor()*e.length*r/i+n+n},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){i.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var o=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(o[0],o[1],o[2],o[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),t&&(r.y=this.internal.__cell__.margins.top||0,c.push(r)),r.lineNumber=e;var l=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,r),this.setTextColor(l)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),n=!1}}(ka.API);var bc={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},wc=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Cc=vc(wc),_c=[100,200,300,400,500,600,700,800,900],Sc=vc(_c);function xc(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return bc[e=e||"normal"]?e:"normal"}(e.style),r=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),i=function(e){return"number"==typeof Cc[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 Tc(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var Pc={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ec={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ic(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function kc(e){return e.trimLeft()}function Bc(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Mc(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var Oc,Dc,Rc,Lc,Nc,Uc=["times"];function Fc(e,t,n,r,i){var o=4,s=zc;switch(i){case ka.API.image_compression.FAST:o=1,s=Hc;break;case ka.API.image_compression.MEDIUM:o=6,s=Qc;break;case ka.API.image_compression.SLOW:o=9,s=Vc}e=function(e,t,n,r){for(var i,o=e.length/t,s=new Uint8Array(e.length+o),a=[jc,Hc,zc,Qc,Vc],c=0;c<o;c+=1){var u=c*t,l=e.subarray(u,u+t);if(r)s.set(r(l,n,i),u+c);else{for(var h=a.length,d=[],f=0;f<h;f+=1)d[f]=a[f](l,n,i);var p=Wc(d.concat());s.set(d[p],u+c)}i=l}return s}(e,t,Math.ceil(n*r/8),s);var a=H(e,{level:o});return ka.API.__addimage__.arrayBufferToBinaryString(a)}function jc(e){var t=Array.apply([],e);return t.unshift(0),t}function Hc(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var o=e[i-t]||0;r[i+1]=e[i]-o+256&255}return r}function zc(e,t,n){var r=e.length,i=[];i[0]=2;for(var o=0;o<r;o+=1){var s=n&&n[o]||0;i[o+1]=e[o]-s+256&255}return i}function Qc(e,t,n){var r=e.length,i=[];i[0]=3;for(var o=0;o<r;o+=1){var s=e[o-t]||0,a=n&&n[o]||0;i[o+1]=e[o]+256-(s+a>>>1)&255}return i}function Vc(e,t,n){var r=e.length,i=[];i[0]=4;for(var o=0;o<r;o+=1){var s=Kc(e[o-t]||0,n&&n[o]||0,n&&n[o-t]||0);i[o+1]=e[o]-s+256&255}return i}function Kc(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),o=Math.abs(e+t-n-n);return r<=i&&r<=o?e:i<=o?t:n}function Wc(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))}function Gc(e,t,n){var r=t*n,i=Math.floor(r/8),o=16-(r-8*i+n),s=(1<<n)-1;return Yc(e,i)>>o&s}function qc(e,t,n,r){var i=n*r,o=Math.floor(i/8),s=16-(i-8*o+r),a=(1<<r)-1,c=(t&a)<<s;!function(e,t,n){if(t+1<e.byteLength)e.setUint16(t,n,!1);else{var r=n>>8&255;e.setUint8(t,r)}}
194/**
195 * @license
196 * (c) Dean McNamee <[email protected]>, 2013.
197 *
198 * https://github.com/deanm/omggif
199 *
200 * Permission is hereby granted, free of charge, to any person obtaining a copy
201 * of this software and associated documentation files (the "Software"), to
202 * deal in the Software without restriction, including without limitation the
203 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
204 * sell copies of the Software, and to permit persons to whom the Software is
205 * furnished to do so, subject to the following conditions:
206 *
207 * The above copyright notice and this permission notice shall be included in
208 * all copies or substantial portions of the Software.
209 *
210 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
211 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
212 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
213 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
214 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
215 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
216 * IN THE SOFTWARE.
217 *
218 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
219 * including animation and compression.  It does not rely on any specific
220 * underlying system, so should run in the browser, Node, or Plask.
221 */(e,o,Yc(e,o)&~(a<<s)&65535|c)}function Yc(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function Xc(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,s=1<<1+(7&i);e[t++],e[t++];var a=null,c=null;o&&(a=t,c=s,t+=3*s);var u=!0,l=[],h=0,d=null,f=0,p=null;for(this.width=n,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,p=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((P=e[t++])>=0))throw Error("Invalid block size");if(0===P)break;t+=P}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var A=e[t++];h=e[t++]|e[t++]<<8,d=e[t++],1&A||(d=null),f=A>>2&7,t++;break;case 254:for(;;){if(!((P=e[t++])>=0))throw Error("Invalid block size");if(0===P)break;t+=P}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,b=e[t++],w=b>>6&1,C=1<<1+(7&b),_=a,S=c,x=!1;b>>7&&(x=!0,_=t,S=C,t+=3*C);var T=t;for(t++;;){var P;if(!((P=e[t++])>=0))throw Error("Invalid block size");if(0===P)break;t+=P}l.push({x:g,y:m,width:y,height:v,has_local_palette:x,palette_offset:_,palette_size:S,data_offset:T,data_length:t-T,transparent_index:d,interlaced:!!w,delay:h,disposal:f});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error("Frame index out of range.");return l[e]},this.decodeAndBlitFrameBGRA=function(t,r){var i=this.frameInfo(t),o=i.width*i.height;if(o>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var s=new Uint8Array(o);Zc(e,i.data_offset,s,o);var a=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=n-u,h=u,d=4*(i.y*n+i.x),f=4*((i.y+i.height)*n+i.x),p=d,A=4*l;!0===i.interlaced&&(A+=4*n*7);for(var g=8,m=0,y=s.length;m<y;++m){var v=s[m];if(0===h&&(h=u,(p+=A)>=f&&(A=4*l+4*n*(g-1),p=d+(u+l)*(g<<1),g>>=1)),v===c)p+=4;else{var b=e[a+3*v],w=e[a+3*v+1],C=e[a+3*v+2];r[p++]=C,r[p++]=w,r[p++]=b,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,r){var i=this.frameInfo(t),o=i.width*i.height;if(o>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var s=new Uint8Array(o);Zc(e,i.data_offset,s,o);var a=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=n-u,h=u,d=4*(i.y*n+i.x),f=4*((i.y+i.height)*n+i.x),p=d,A=4*l;!0===i.interlaced&&(A+=4*n*7);for(var g=8,m=0,y=s.length;m<y;++m){var v=s[m];if(0===h&&(h=u,(p+=A)>=f&&(A=4*l+4*n*(g-1),p=d+(u+l)*(g<<1),g>>=1)),v===c)p+=4;else{var b=e[a+3*v],w=e[a+3*v+1],C=e[a+3*v+2];r[p++]=b,r[p++]=w,r[p++]=C,r[p++]=255}--h}}}function Zc(e,t,n,r){for(var i=e[t++],o=1<<i,s=o+1,a=s+1,c=i+1,u=(1<<c)-1,l=0,h=0,d=0,f=e[t++],p=new Int32Array(4096),A=null;;){for(;l<16&&0!==f;)h|=e[t++]<<l,l+=8,1===f?f=e[t++]:--f;if(l<c)break;var g=h&u;if(h>>=c,l-=c,g!==o){if(g===s)break;for(var m=g<a?g:A,y=0,v=m;v>o;)v=p[v]>>8,++y;var b=v;if(d+y+(m!==g?1:0)>r)return void Js.log("Warning, gif stream longer than expected.");n[d++]=b;var w=d+=y;for(m!==g&&(n[d++]=b),v=m;y--;)v=p[v],n[--w]=255&v,v>>=8;null!==A&&a<4096&&(p[a++]=A<<8|b,a>=u+1&&c<12&&(++c,u=u<<1|1)),A=g}else a=s+1,u=(1<<(c=i+1))-1,A=null}return d!==r&&Js.log("Warning, gif stream shorter than expected."),n}
222/**
223 * @license
224  Copyright (c) 2008, Adobe Systems Incorporated
225  All rights reserved.
226
227  Redistribution and use in source and binary forms, with or without 
228  modification, are permitted provided that the following conditions are
229  met:
230
231  * Redistributions of source code must retain the above copyright notice, 
232    this list of conditions and the following disclaimer.
233  
234  * Redistributions in binary form must reproduce the above copyright
235    notice, this list of conditions and the following disclaimer in the 
236    documentation and/or other materials provided with the distribution.
237  
238  * Neither the name of Adobe Systems Incorporated nor the names of its 
239    contributors may be used to endorse or promote products derived from 
240    this software without specific prior written permission.
241
242  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
243  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
244  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
245  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
246  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
247  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
248  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
249  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
250  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
251  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
252  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
253*/function $c(e){var t,n,r,i,o,s=Math.floor,a=new Array(64),c=new Array(64),u=new Array(64),l=new Array(64),h=new Array(65535),d=new Array(65535),f=new Array(64),p=new Array(64),A=[],g=0,m=7,y=new Array(64),v=new Array(64),b=new Array(64),w=new Array(256),C=new Array(2048),_=[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],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],x=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],B=[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 M(e,t){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var s=1;s<=e[o];s++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=o,r++,n++;n*=2}return i}function O(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<m),n--,--m<0&&(255==g?(D(255),D(0)):D(g),m=7,g=0)}function D(e){A.push(e)}function R(e){D(e>>8&255),D(255&e)}function L(e,t,n,r,i){for(var o,s=i[0],a=i[240],c=function(e,t){var n,r,i,o,s,a,c,u,l,h,d=0;for(l=0;l<8;++l){n=e[d],r=e[d+1],i=e[d+2],o=e[d+3],s=e[d+4],a=e[d+5],c=e[d+6];var p=n+(u=e[d+7]),A=n-u,g=r+c,m=r-c,y=i+a,v=i-a,b=o+s,w=o-s,C=p+b,_=p-b,S=g+y,x=g-y;e[d]=C+S,e[d+4]=C-S;var T=.707106781*(x+_);e[d+2]=_+T,e[d+6]=_-T;var P=.382683433*((C=w+v)-(x=m+A)),E=.5411961*C+P,I=1.306562965*x+P,k=.707106781*(S=v+m),B=A+k,M=A-k;e[d+5]=M+E,e[d+3]=M-E,e[d+1]=B+I,e[d+7]=B-I,d+=8}for(d=0,l=0;l<8;++l){n=e[d],r=e[d+8],i=e[d+16],o=e[d+24],s=e[d+32],a=e[d+40],c=e[d+48];var O=n+(u=e[d+56]),D=n-u,R=r+c,L=r-c,N=i+a,U=i-a,F=o+s,j=o-s,H=O+F,z=O-F,Q=R+N,V=R-N;e[d]=H+Q,e[d+32]=H-Q;var K=.707106781*(V+z);e[d+16]=z+K,e[d+48]=z-K;var W=.382683433*((H=j+U)-(V=L+D)),G=.5411961*H+W,q=1.306562965*V+W,Y=.707106781*(Q=U+L),X=D+Y,Z=D-Y;e[d+40]=Z+G,e[d+24]=Z-G,e[d+8]=X+q,e[d+56]=X-q,d++}for(l=0;l<64;++l)h=e[l]*t[l],f[l]=h>0?h+.5|0:h-.5|0;return f}(e,t),u=0;u<64;++u)p[_[u]]=c[u];var l=p[0]-n;n=p[0],0==l?O(r[0]):(O(r[d[o=32767+l]]),O(h[o]));for(var A=63;A>0&&0==p[A];)A--;if(0==A)return O(s),n;for(var g,m=1;m<=A;){for(var y=m;0==p[m]&&m<=A;)++m;var v=m-y;if(v>=16){g=v>>4;for(var b=1;b<=g;++b)O(a);v&=15}o=32767+p[m],O(i[(v<<4)+d[o]]),O(h[o]),m++}return 63!=A&&O(s),n}function N(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=s((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),a[_[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=s((i[o]*e+50)/100);h=Math.min(Math.max(h,1),255),c[_[o]]=h}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,p=0;p<8;p++)for(var A=0;A<8;A++)u[f]=1/(a[_[f]]*d[p]*d[A]*8),l[f]=1/(c[_[f]]*d[p]*d[A]*8),f++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),o=e)}this.encode=function(e,o){o&&N(o),A=new Array,g=0,m=7,R(65496),R(65504),R(16),D(74),D(70),D(73),D(70),D(0),D(1),D(1),D(0),R(1),R(1),D(0),D(0),function(){R(65499),R(132),D(0);for(var e=0;e<64;e++)D(a[e]);D(1);for(var t=0;t<64;t++)D(c[t])}(),function(e,t){R(65472),R(17),D(8),R(t),R(e),D(3),D(1),D(17),D(0),D(2),D(17),D(1),D(3),D(17),D(1)}(e.width,e.height),function(){R(65476),R(418),D(0);for(var e=0;e<16;e++)D(S[e+1]);for(var t=0;t<=11;t++)D(x[t]);D(16);for(var n=0;n<16;n++)D(T[n+1]);for(var r=0;r<=161;r++)D(P[r]);D(1);for(var i=0;i<16;i++)D(E[i+1]);for(var o=0;o<=11;o++)D(I[o]);D(17);for(var s=0;s<16;s++)D(k[s+1]);for(var a=0;a<=161;a++)D(B[a])}(),R(65498),R(12),D(3),D(1),D(0),D(2),D(17),D(3),D(17),D(0),D(63),D(0);var s=0,h=0,d=0;g=0,m=7,this.encode.displayName="_encode_";for(var f,p,w,_,M,U,F,j,H,z=e.data,Q=e.width,V=e.height,K=4*Q,W=0;W<V;){for(f=0;f<K;){for(M=K*W+f,F=-1,j=0,H=0;H<64;H++)U=M+(j=H>>3)*K+(F=4*(7&H)),W+j>=V&&(U-=K*(W+1+j-V)),f+F>=K&&(U-=f+F-K+4),p=z[U++],w=z[U++],_=z[U++],y[H]=(C[p]+C[w+256|0]+C[_+512|0]>>16)-128,v[H]=(C[p+768|0]+C[w+1024|0]+C[_+1280|0]>>16)-128,b[H]=(C[p+1280|0]+C[w+1536|0]+C[_+1792|0]>>16)-128;s=L(y,u,s,t,r),h=L(v,l,h,n,i),d=L(b,l,d,n,i),f+=32}W+=8}if(m>=0){var G=[];G[1]=m+1,G[0]=(1<<m+1)-1,O(G)}return R(65497),new Uint8Array(A)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)w[t]=e(t)}(),t=M(S,x),n=M(E,I),r=M(T,P),i=M(k,B),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)d[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(t-1);i<=-e;i++)d[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,h[32767+i][0]=t-1+i;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)C[e]=19595*e,C[e+256|0]=38470*e,C[e+512|0]=7471*e+32768,C[e+768|0]=-11059*e,C[e+1024|0]=-21709*e,C[e+1280|0]=32768*e+8421375,C[e+1536|0]=-27439*e,C[e+1792|0]=-5329*e}(),N(e)}
254/**
255 * @license
256 * Copyright (c) 2017 Aras Abbasi
257 *
258 * Licensed under the MIT License.
259 * http://opensource.org/licenses/mit-license
260 */function Jc(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 eu(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;o<i;o++)e[t+o]=n[r+o]}function i(e,t,n,r){for(var i=0;i<r;i++)e[t+i]=n}function o(e){return new Int32Array(e)}function s(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function a(e,t){var n=[];return function e(n,r,i){for(var o=i[r],s=0;s<o&&(n.push(i.length>r+1?[]:new t),!(i.length<r+1));s++)e(n[s],r+1,i)}(n,0,e),n}var c=function(){var e=this;function c(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function u(e,n,r,i,o){t(!(i%r));do{e[n+(i-=r)]=o}while(0<i)}function l(e,n,r,i,s){if(t(2328>=s),512>=s)var a=o(512);else if(null==(a=o(s)))return 0;return function(e,n,r,i,s,a){var l,d,f=n,p=1<<r,A=o(16),g=o(16);for(t(0!=s),t(null!=i),t(null!=e),t(0<r),d=0;d<s;++d){if(15<i[d])return 0;++A[i[d]]}if(A[0]==s)return 0;for(g[1]=0,l=1;15>l;++l){if(A[l]>1<<l)return 0;g[l+1]=g[l]+A[l]}for(d=0;d<s;++d)l=i[d],0<i[d]&&(a[g[l]++]=d);if(1==g[15])return(i=new h).g=0,i.value=a[0],u(e,f,1,p,i),p;var m,y=-1,v=p-1,b=0,w=1,C=1,_=1<<r;for(d=0,l=1,s=2;l<=r;++l,s<<=1){if(w+=C<<=1,0>(C-=A[l]))return 0;for(;0<A[l];--A[l])(i=new h).g=l,i.value=a[d++],u(e,f+b,s,_,i),b=c(b,l)}for(l=r+1,s=2;15>=l;++l,s<<=1){if(w+=C<<=1,0>(C-=A[l]))return 0;for(;0<A[l];--A[l]){if(i=new h,(b&v)!=y){for(f+=_,m=1<<(y=l)-r;15>y&&!(0>=(m-=A[y]));)++y,m<<=1;p+=_=1<<(m=y-r),e[n+(y=b&v)].g=m+r,e[n+y].value=f-n-y}i.g=l-r,i.value=a[d++],u(e,f+(b>>r),s,_,i),b=c(b,l)}}return w!=2*g[15]-1?0:p}(e,n,r,i,s,a)}function h(){this.value=this.g=0}function d(){this.value=this.g=0}function f(){this.G=s(5,h),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Un,d)}function p(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,T(e)}function A(e,t){for(var n=0;0<t--;)n|=E(e,128)<<t;return n}function g(e,t){var n=A(e,t);return P(e)?-n:n}function m(e,n,r,i){var o,s=0;for(t(null!=e),t(null!=n),t(4294967288>i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4<i&&(i=4),o=0;o<i;++o)s+=n[r+o]<<8*o;e.Ra=s,e.bb=i,e.oa=n,e.pa=r}function y(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Hn-8>>>0,++e.bb,e.u-=8;_(e)&&(e.h=1,e.u=0)}function v(e,n){if(t(0<=n),!e.h&&n<=jn){var r=C(e)&Fn[n];return e.u+=n,y(e),r}return e.h=1,e.u=0}function b(){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 C(e){return e.Ra>>>(e.u&Hn-1)>>>0}function _(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Hn}function S(e,t){e.u=t,e.h=_(e)}function x(e){e.u>=zn&&(t(e.u>=zn),y(e))}function T(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function P(e){return A(e,1)}function E(e,t){var n=e.Ca;0>e.b&&T(e);var r=e.b,i=n*t>>>8,o=(e.I>>>r>i)+0;for(o?(n-=i,e.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Qn[r],e.b-=r,e.Ca=(n<<r)-1,o}function I(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function k(e,t){return e[t+0]|e[t+1]<<8}function B(e,t){return k(e,t)|e[t+2]<<16}function M(e,t){return k(e,t)|k(e,t+2)<<16}function O(e,n){var r=1<<n;return t(null!=e),t(0<n),e.X=o(r),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function D(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function R(){this.X=[],this.Xa=this.Mb=0}function L(e,n,r,i){t(null!=r),t(null!=i);var o=r[0],s=i[0];return 0==o&&(o=(e*s+n/2)/n),0==s&&(s=(n*o+e/2)/e),0>=o||0>=s?0:(r[0]=o,i[0]=s,1)}function N(e,t){return e+(1<<t)-1>>>t}function U(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function F(t,n){e[n]=function(n,r,i,o,s,a,c){var u;for(u=0;u<s;++u){var l=e[t](a[c+u-1],i,o+u);a[c+u]=U(n[r+u],l)}}}function j(){this.ud=this.hd=this.jd=0}function H(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function z(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function Q(e,t){return z(e+(e-t+.5>>1))}function V(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function K(e,t,n,r,i,o,s){for(r=o[s-1],n=0;n<i;++n)o[s+n]=r=U(e[t+n],r)}function W(e,t,n,r,i){var o;for(o=0;o<n;++o){var s=e[t+o],a=s>>8&255,c=16711935&(c=(c=16711935&s)+((a<<16)+a));r[i+o]=(4278255360&s)+c>>>0}}function G(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function q(e,t,n,r,i,o){var s;for(s=0;s<r;++s){var a=t[n+s],c=a>>>8,u=a,l=255&(l=(l=a>>>16)+((e.jd<<24>>24)*(c<<24>>24)>>>5));u=255&(u=(u+=(e.hd<<24>>24)*(c<<24>>24)>>>5)+((e.ud<<24>>24)*(l<<24>>24)>>>5)),i[o+s]=(4278255360&a)+(l<<16)+u}}function Y(t,n,r,i,o){e[n]=function(e,t,n,r,s,a,c,u,l){for(r=c;r<u;++r)for(c=0;c<l;++c)s[a++]=o(n[i(e[t++])])},e[t]=function(t,n,s,a,c,u,l){var h=8>>t.b,d=t.Ea,f=t.K[0],p=t.w;if(8>h)for(t=(1<<t.b)-1,p=(1<<h)-1;n<s;++n){var A,g=0;for(A=0;A<d;++A)A&t||(g=i(a[c++])),u[l++]=o(f[g&p]),g>>=h}else e["VP8LMapColor"+r](a,c,f,p,u,l,n,s,d)}}function X(e,t,n,r,i){for(n=t+n;t<n;){var o=e[t++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=255&o}}function Z(e,t,n,r,i){for(n=t+n;t<n;){var o=e[t++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=255&o,r[i++]=o>>24&255}}function $(e,t,n,r,i){for(n=t+n;t<n;){var o=(s=e[t++])>>16&240|s>>12&15,s=240&s|s>>28&15;r[i++]=o,r[i++]=s}}function J(e,t,n,r,i){for(n=t+n;t<n;){var o=(s=e[t++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;r[i++]=o,r[i++]=s}}function ee(e,t,n,r,i){for(n=t+n;t<n;){var o=e[t++];r[i++]=255&o,r[i++]=o>>8&255,r[i++]=o>>16&255}}function te(e,t,n,i,o,s){if(0==s)for(n=t+n;t<n;)I(i,((s=e[t++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[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==zr||e==Qr||e==Vr||e==Kr}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 se(){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 ae(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ce(){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 ue(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function le(e,t){var n=e.T,i=t.ba.f.RGBA,o=i.eb,s=i.fb+e.ka*i.A,a=gi[t.ba.S],c=e.y,u=e.O,l=e.f,h=e.N,d=e.ea,f=e.W,p=t.cc,A=t.dc,g=t.Mc,m=t.Nc,y=e.ka,v=e.ka+e.T,b=e.U,w=b+1>>1;for(0==y?a(c,u,null,null,l,h,d,f,l,h,d,f,o,s,null,null,b):(a(t.ec,t.fc,c,u,p,A,g,m,l,h,d,f,o,s-i.A,o,s,b),++n);y+2<v;y+=2)p=l,A=h,g=d,m=f,h+=e.Rc,f+=e.Rc,s+=2*i.A,a(c,(u+=2*e.fa)-e.fa,c,u,p,A,g,m,l,h,d,f,o,s-i.A,o,s,b);return u+=e.fa,e.j+v<e.o?(r(t.ec,t.fc,c,u,b),r(t.cc,t.dc,l,h,w),r(t.Mc,t.Nc,d,f,w),n--):1&v||a(c,u,null,null,l,h,d,f,l,h,d,f,o,s+i.A,null,null,b),n}function he(e,n,r){var i=e.F,o=[e.J];if(null!=i){var s=e.U,a=n.ba.S,c=a==Fr||a==Vr;n=n.ba.f.RGBA;var u=[0],l=e.ka;u[0]=e.T,e.Kb&&(0==l?--u[0]:(--l,o[0]-=e.width),e.j+e.ka+e.T==e.o&&(u[0]=e.o-e.j-l));var h=n.eb;l=n.fb+l*n.A,e=Sr(i,o[0],e.width,s,u,h,l+(c?0:3),n.A),t(r==u),e&&re(a)&&Cr(h,l,c,s,u,n.A)}return 0}function de(e){var t=e.ma,n=t.ba.S,r=11>n,i=n==Lr||n==Ur||n==Fr||n==jr||12==n||re(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Rn(t.Oa,e,i?11:12))return 0;if(i&&re(n)&&yn(),e.da)alert("todo:use_scaling");else{if(r){if(t.Ib=ue,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=le,yn()}}else alert("todo:EmitYUV");i&&(t.Jb=he,r&&gn())}if(r&&!ki){for(e=0;256>e;++e)Bi[e]=89858*(e-128)+xi>>Si,Di[e]=-22014*(e-128)+xi,Oi[e]=-45773*(e-128),Mi[e]=113618*(e-128)+xi>>Si;for(e=Ti;e<Pi;++e)t=76283*(e-16)+xi>>Si,Ri[e-Ti]=Ke(t,255),Li[e-Ti]=Ke(t+8>>4,15);ki=1}return 1}function fe(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 pe(e){e.ma.memory=null}function Ae(e,t,n,r){return 47!=v(e,8)?0:(t[0]=v(e,14)+1,n[0]=v(e,14)+1,r[0]=v(e,1),0!=v(e,3)?0:!e.h)}function ge(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+v(t,n)+1}function me(e,t){return 120<t?t-120:1<=(n=((n=Zr[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function ye(e,t,n){var r=C(n),i=e[t+=255&r].g-8;return 0<i&&(S(n,n.u+8),r=C(n),t+=e[t].value,t+=r&(1<<i)-1),S(n,n.u+e[t].g),e[t].value}function ve(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function be(e,n,r){var i=e.xc;return t((n=0==i?0:e.vc[e.md*(r>>i)+(n>>i)])<e.Wb),e.Ya[n]}function we(e,n,i,o){var s=e.ab,a=e.c*n,c=e.C;n=c+n;var u=i,l=o;for(o=e.Ta,i=e.Ua;0<s--;){var h=e.gc[s],d=c,f=n,p=u,A=l,g=(l=o,u=i,h.Ea);switch(t(d<f),t(f<=h.nc),h.hc){case 2:Wn(p,A,(f-d)*g,l,u);break;case 0:var m=d,y=f,v=l,b=u,w=(T=h).Ea;0==m&&(Vn(p,A,null,null,1,v,b),K(p,A+1,0,0,w-1,v,b+1),A+=w,b+=w,++m);for(var C=1<<T.b,_=C-1,S=N(w,T.b),x=T.K,T=T.w+(m>>T.b)*S;m<y;){var P=x,E=T,I=1;for(Kn(p,A,v,b-w,1,v,b);I<w;){var k=(I&~_)+C;k>w&&(k=w),(0,Zn[P[E++]>>8&15])(p,A+ +I,v,b+I-w,k-I,v,b+I),I=k}A+=w,b+=w,++m&_||(T+=S)}f!=h.nc&&r(l,u-g,l,u+(f-d-1)*g,g);break;case 1:for(g=p,y=A,w=(p=h.Ea)-(b=p&~(v=(A=1<<h.b)-1)),m=N(p,h.b),C=h.K,h=h.w+(d>>h.b)*m;d<f;){for(_=C,S=h,x=new j,T=y+b,P=y+p;y<T;)G(_[S++],x),$n(x,g,y,A,l,u),y+=A,u+=A;y<P&&(G(_[S++],x),$n(x,g,y,w,l,u),y+=w,u+=w),++d&v||(h+=m)}break;case 3:if(p==l&&A==u&&0<h.b){for(y=l,p=g=u+(f-d)*g-(b=(f-d)*N(h.Ea,h.b)),A=l,v=u,m=[],b=(w=b)-1;0<=b;--b)m[b]=A[v+b];for(b=w-1;0<=b;--b)y[p+b]=m[b];Gn(h,d,f,l,g,l,u)}else Gn(h,d,f,p,A,l,u)}u=o,l=i}l!=i&&r(o,i,u,l,a)}function Ce(e,n){var r=e.V,i=e.Ba+e.c*e.C,o=n-e.C;if(t(n<=e.l.o),t(16>=o),0<o){var s=e.l,a=e.Ta,c=e.Ua,u=s.width;if(we(e,o,r,i),o=c=[c],t((r=e.C)<(i=n)),t(s.v<s.va),i>s.o&&(i=s.o),r<s.j){var l=s.j-r;r=s.j,o[0]+=l*u}if(r>=i?r=0:(o[0]+=4*s.v,s.ka=r-s.j,s.U=s.va-s.v,s.T=i-r,r=1),r){if(c=c[0],11>(r=e.ca).S){var h=r.f.RGBA,d=(i=r.S,o=s.U,s=s.T,l=h.eb,h.A),f=s;for(h=h.fb+e.Ma*h.A;0<f--;){var p=a,A=c,g=o,m=l,y=h;switch(i){case Rr:Jn(p,A,g,m,y);break;case Lr:er(p,A,g,m,y);break;case zr:er(p,A,g,m,y),Cr(m,y,0,g,1,0);break;case Nr:rr(p,A,g,m,y);break;case Ur:te(p,A,g,m,y,1);break;case Qr:te(p,A,g,m,y,1),Cr(m,y,0,g,1,0);break;case Fr:te(p,A,g,m,y,0);break;case Vr:te(p,A,g,m,y,0),Cr(m,y,1,g,1,0);break;case jr:tr(p,A,g,m,y);break;case Kr:tr(p,A,g,m,y),_r(m,y,g,1,0);break;case Hr:nr(p,A,g,m,y);break;default:t(0)}c+=u,h+=d}e.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function _e(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Se(e,n,r,i,o,s){if(0!=e.Z){var a=e.qd,c=e.rd;for(t(null!=Ai[e.Z]);n<r;++n)Ai[e.Z](a,c,i,o,i,o,s),a=i,c=o,o+=s;e.qd=a,e.rd=c}}function xe(e,n){var r=e.l.ma,i=0==r.Z||1==r.Z?e.l.j:e.C;if(i=e.C<i?i:e.C,t(n<=e.l.o),n>i){var o=e.l.width,s=r.ca,a=r.tb+o*i,c=e.V,u=e.Ba+e.c*i,l=e.gc;t(1==e.ab),t(3==l[0].hc),Yn(l[0],i,n,c,u,s,a),Se(r,i,n,s,a,o)}e.C=e.Ma=n}function Te(e,n,r,i,o,s,a){var c=e.$/i,u=e.$%i,l=e.m,h=e.s,d=r+e.$,f=d;o=r+i*o;var p=r+i*s,A=280+h.ua,g=e.Pb?c:16777216,m=0<h.ua?h.Wa:null,y=h.wc,v=d<p?be(h,u,c):null;t(e.C<s),t(p<=o);var b=!1;e:for(;;){for(;b||d<p;){var w=0;if(c>=g){var T=d-r;t((g=e).Pb),g.wd=g.m,g.xd=T,0<g.s.ua&&D(g.s.Wa,g.s.vb),g=c+Jr}if(u&y||(v=be(h,u,c)),t(null!=v),v.Qb&&(n[d]=v.qb,b=!0),!b)if(x(l),v.jc){w=l,T=n;var P=d,E=v.pd[C(w)&Un-1];t(v.jc),256>E.g?(S(w,w.u+E.g),T[P]=E.value,w=0):(S(w,w.u+E.g-256),t(256<=E.value),w=E.value),0==w&&(b=!0)}else w=ye(v.G[0],v.H[0],l);if(l.h)break;if(b||256>w){if(!b)if(v.nd)n[d]=(v.qb|w<<8)>>>0;else{if(x(l),b=ye(v.G[1],v.H[1],l),x(l),T=ye(v.G[2],v.H[2],l),P=ye(v.G[3],v.H[3],l),l.h)break;n[d]=(P<<24|b<<16|w<<8|T)>>>0}if(b=!1,++d,++u>=i&&(u=0,++c,null!=a&&c<=s&&!(c%16)&&a(e,c),null!=m))for(;f<d;)w=n[f++],m.X[(506832829*w&4294967295)>>>m.Mb]=w}else if(280>w){if(w=ge(w-256,l),T=ye(v.G[4],v.H[4],l),x(l),T=me(i,T=ge(T,l)),l.h)break;if(d-r<T||o-d<w)break e;for(P=0;P<w;++P)n[d+P]=n[d+P-T];for(d+=w,u+=w;u>=i;)u-=i,++c,null!=a&&c<=s&&!(c%16)&&a(e,c);if(t(d<=o),u&y&&(v=be(h,u,c)),null!=m)for(;f<d;)w=n[f++],m.X[(506832829*w&4294967295)>>>m.Mb]=w}else{if(!(w<A))break e;for(b=w-280,t(null!=m);f<d;)w=n[f++],m.X[(506832829*w&4294967295)>>>m.Mb]=w;w=d,t(!(b>>>(T=m).Xa)),n[w]=T.X[b],b=!0}b||t(l.h==_(l))}if(e.Pb&&l.h&&d<o)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&D(e.s.vb,e.s.Wa);else{if(l.h)break e;null!=a&&a(e,c>s?s:c),e.a=0,e.$=d-r}return 1}return e.a=3,0}function Pe(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 Ee(){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"),Wn=W,$n=q,Jn=X,er=Z,tr=$,nr=J,rr=ee,e.VP8LMapColor32b=qn,e.VP8LMapColor8b=Xn,t)}function Ie(e,n,r,a,c){var u=1,d=[e],p=[n],A=a.m,g=a.s,m=null,y=0;e:for(;;){if(r)for(;u&&v(A,1);){var b=d,w=p,_=a,T=1,P=_.m,E=_.gc[_.ab],I=v(P,2);if(_.Oc&1<<I)u=0;else{switch(_.Oc|=1<<I,E.hc=I,E.Ea=b[0],E.nc=w[0],E.K=[null],++_.ab,t(4>=_.ab),I){case 0:case 1:E.b=v(P,3)+2,T=Ie(N(E.Ea,E.b),N(E.nc,E.b),0,_,E.K),E.K=E.K[0];break;case 3:var k,B=v(P,8)+1,M=16<B?0:4<B?1:2<B?2:3;if(b[0]=N(E.Ea,M),E.b=M,k=T=Ie(B,1,0,_,E.K)){var D,R=B,L=E,F=1<<(8>>L.b),j=o(F);if(null==j)k=0;else{var H=L.K[0],z=L.w;for(j[0]=L.K[0][0],D=1;D<1*R;++D)j[D]=U(H[z+D],j[D-1]);for(;D<4*F;++D)j[D]=0;L.K[0]=null,L.K[0]=j,k=1}}T=k;break;case 2:break;default:t(0)}u=T}}if(d=d[0],p=p[0],u&&v(A,1)&&!(u=1<=(y=v(A,4))&&11>=y)){a.a=3;break e}var Q;if(Q=u)t:{var V,K,W,G=a,q=d,Y=p,X=y,Z=r,$=G.m,J=G.s,ee=[null],te=1,ne=0,re=$r[X];n:for(;;){if(Z&&v($,1)){var ie=v($,3)+2,oe=N(q,ie),se=N(Y,ie),ae=oe*se;if(!Ie(oe,se,0,G,ee))break n;for(ee=ee[0],J.xc=ie,V=0;V<ae;++V){var ce=ee[V]>>8&65535;ee[V]=ce,ce>=te&&(te=ce+1)}}if($.h)break n;for(K=0;5>K;++K){var ue=qr[K];!K&&0<X&&(ue+=1<<X),ne<ue&&(ne=ue)}var le=s(te*re,h),he=te,de=s(he,f);if(null==de)var fe=null;else t(65536>=he),fe=de;var pe=o(ne);if(null==fe||null==pe||null==le){G.a=1;break n}var Ae=le;for(V=W=0;V<te;++V){var ge=fe[V],me=ge.G,ye=ge.H,be=0,we=1,Ce=0;for(K=0;5>K;++K){ue=qr[K],me[K]=Ae,ye[K]=W,!K&&0<X&&(ue+=1<<X);r:{var _e,Se=ue,xe=G,Ee=pe,ke=Ae,Be=W,Me=0,Oe=xe.m,De=v(Oe,1);if(i(Ee,0,0,Se),De){var Re=v(Oe,1)+1,Le=v(Oe,1),Ne=v(Oe,0==Le?1:8);Ee[Ne]=1,2==Re&&(Ee[Ne=v(Oe,8)]=1);var Ue=1}else{var Fe=o(19),je=v(Oe,4)+4;if(19<je){xe.a=3;var He=0;break r}for(_e=0;_e<je;++_e)Fe[Xr[_e]]=v(Oe,3);var ze=void 0,Qe=void 0,Ve=xe,Ke=Fe,We=Se,Ge=Ee,qe=0,Ye=Ve.m,Xe=8,Ze=s(128,h);i:for(;l(Ze,0,7,Ke,19);){if(v(Ye,1)){var $e=2+2*v(Ye,3);if((ze=2+v(Ye,$e))>We)break i}else ze=We;for(Qe=0;Qe<We&&ze--;){x(Ye);var Je=Ze[0+(127&C(Ye))];S(Ye,Ye.u+Je.g);var et=Je.value;if(16>et)Ge[Qe++]=et,0!=et&&(Xe=et);else{var tt=16==et,nt=et-16,rt=Gr[nt],it=v(Ye,Wr[nt])+rt;if(Qe+it>We)break i;for(var ot=tt?Xe:0;0<it--;)Ge[Qe++]=ot}}qe=1;break i}qe||(Ve.a=3),Ue=qe}(Ue=Ue&&!Oe.h)&&(Me=l(ke,Be,8,Ee,Se)),Ue&&0!=Me?He=Me:(xe.a=3,He=0)}if(0==He)break n;if(we&&1==Yr[K]&&(we=0==Ae[W].g),be+=Ae[W].g,W+=He,3>=K){var st,at=pe[0];for(st=1;st<ue;++st)pe[st]>at&&(at=pe[st]);Ce+=at}}if(ge.nd=we,ge.Qb=0,we&&(ge.qb=(me[3][ye[3]+0].value<<24|me[1][ye[1]+0].value<<16|me[2][ye[2]+0].value)>>>0,0==be&&256>me[0][ye[0]+0].value&&(ge.Qb=1,ge.qb+=me[0][ye[0]+0].value<<8)),ge.jc=!ge.Qb&&6>Ce,ge.jc){var ct,ut=ge;for(ct=0;ct<Un;++ct){var lt=ct,ht=ut.pd[lt],dt=ut.G[0][ut.H[0]+lt];256<=dt.value?(ht.g=dt.g+256,ht.value=dt.value):(ht.g=0,ht.value=0,lt>>=ve(dt,8,ht),lt>>=ve(ut.G[1][ut.H[1]+lt],16,ht),lt>>=ve(ut.G[2][ut.H[2]+lt],0,ht),ve(ut.G[3][ut.H[3]+lt],24,ht))}}}J.vc=ee,J.Wb=te,J.Ya=fe,J.yc=le,Q=1;break t}Q=0}if(!(u=Q)){a.a=3;break e}if(0<y){if(g.ua=1<<y,!O(g.Wa,y)){a.a=1,u=0;break e}}else g.ua=0;var ft=a,pt=d,At=p,gt=ft.s,mt=gt.xc;if(ft.c=pt,ft.i=At,gt.md=N(pt,mt),gt.wc=0==mt?-1:(1<<mt)-1,r){a.xb=fi;break e}if(null==(m=o(d*p))){a.a=1,u=0;break e}u=(u=Te(a,m,0,d,p,p,null))&&!A.h;break e}return u?(null!=c?c[0]=m:(t(null==m),t(r)),a.$=0,r||Pe(g)):Pe(g),u}function ke(e,n){var r=e.c*e.i,i=r+n+16*n;return t(e.c<=n),e.V=o(i),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function Be(e,n){var r=e.C,i=n-r,o=e.V,s=e.Ba+e.c*r;for(t(n<=e.l.o);0<i;){var a=16<i?16:i,c=e.l.ma,u=e.l.width,l=u*a,h=c.ca,d=c.tb+u*r,f=e.Ta,p=e.Ua;we(e,a,o,s),xr(f,p,h,d,l),Se(c,r,r+a,h,d,u),i-=a,o+=a*e.c,r+=a}t(r==n),e.C=e.Ma=n}function Me(){this.ub=this.yd=this.td=this.Rb=0}function Oe(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function De(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Re(){this.Yb=function(){var e=[];return function e(t,n,r){for(var i=r[n],o=0;o<i&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));o++)e(t[o],n+1,r)}(e,0,[3,11]),e}()}function Le(){this.jb=o(3),this.Wc=a([4,8],Re),this.Xc=a([4,17],Re)}function Ne(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Ue(){this.ld=this.La=this.dd=this.tc=0}function Fe(){this.Na=this.la=0}function je(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function He(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ze(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ue),this.Y=0,this.ya=Array(new He),this.aa=0,this.l=new We}function Qe(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Ve(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new Me,this.Kc=new Oe,this.ed=new Ne,this.Qa=new De,this.Ic=this.$c=this.Aa=0,this.D=new ze,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,b),this.ia=0,this.pb=s(4,je),this.Pa=new Le,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Qe),this.Hd=0,this.rb=Array(new Fe),this.sb=0,this.wa=Array(new Ue),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new He),this.L=this.aa=0,this.gd=a([4,2],Ue),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ke(e,t){return 0>e?0:e>t?t:e}function We(){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 Ge(){var e=new Ve;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ni||(ni=Ze)),e}function qe(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function Ye(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Xe(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return qe(e,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,o=n.w,s=n.ha;if(4>s)return qe(e,7,"Truncated header.");var a=r[o+0]|r[o+1]<<8|r[o+2]<<16,c=e.Od;if(c.Rb=!(1&a),c.td=a>>1&7,c.yd=a>>4&1,c.ub=a>>5,3<c.td)return qe(e,3,"Incorrect keyframe parameters.");if(!c.yd)return qe(e,4,"Frame not displayable.");o+=3,s-=3;var u=e.Kc;if(c.Rb){if(7>s)return qe(e,7,"cannot parse picture header");if(!Ye(r,o,s))return qe(e,3,"Bad code word");u.c=16383&(r[o+4]<<8|r[o+3]),u.Td=r[o+4]>>6,u.i=16383&(r[o+6]<<8|r[o+5]),u.Ud=r[o+6]>>6,o+=7,s-=7,e.za=u.c+15>>4,e.Ub=u.i+15>>4,n.width=u.c,n.height=u.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((a=e.Pa).jb,0,255,a.jb.length),t(null!=(a=e.Qa)),a.Cb=0,a.Bb=0,a.Fb=1,i(a.Zb,0,0,a.Zb.length),i(a.Lb,0,0,a.Lb)}if(c.ub>s)return qe(e,7,"bad partition length");p(a=e.m,r,o,c.ub),o+=c.ub,s-=c.ub,c.Rb&&(u.Ld=P(a),u.Kd=P(a)),u=e.Qa;var l,h=e.Pa;if(t(null!=a),t(null!=u),u.Cb=P(a),u.Cb){if(u.Bb=P(a),P(a)){for(u.Fb=P(a),l=0;4>l;++l)u.Zb[l]=P(a)?g(a,7):0;for(l=0;4>l;++l)u.Lb[l]=P(a)?g(a,6):0}if(u.Bb)for(l=0;3>l;++l)h.jb[l]=P(a)?A(a,8):255}else u.Bb=0;if(a.Ka)return qe(e,3,"cannot parse segment header");if((u=e.ed).zd=P(a),u.Tb=A(a,6),u.wb=A(a,3),u.Pc=P(a),u.Pc&&P(a)){for(h=0;4>h;++h)P(a)&&(u.vd[h]=g(a,6));for(h=0;4>h;++h)P(a)&&(u.od[h]=g(a,6))}if(e.L=0==u.Tb?0:u.zd?1:2,a.Ka)return qe(e,3,"cannot parse filter header");var d=s;if(s=l=o,o=l+d,u=d,e.Xb=(1<<A(e.m,2))-1,d<3*(h=e.Xb))r=7;else{for(l+=3*h,u-=3*h,d=0;d<h;++d){var f=r[s+0]|r[s+1]<<8|r[s+2]<<16;f>u&&(f=u),p(e.Jc[+d],r,l,f),l+=f,u-=f,s+=3}p(e.Jc[+h],r,l,u),r=l<o?0:5}if(0!=r)return qe(e,r,"cannot parse partitions");for(r=A(l=e.m,7),s=P(l)?g(l,4):0,o=P(l)?g(l,4):0,u=P(l)?g(l,4):0,h=P(l)?g(l,4):0,l=P(l)?g(l,4):0,d=e.Qa,f=0;4>f;++f){if(d.Cb){var m=d.Zb[f];d.Fb||(m+=r)}else{if(0<f){e.pb[f]=e.pb[0];continue}m=r}var y=e.pb[f];y.Sc[0]=ei[Ke(m+s,127)],y.Sc[1]=ti[Ke(m+0,127)],y.Eb[0]=2*ei[Ke(m+o,127)],y.Eb[1]=101581*ti[Ke(m+u,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=ei[Ke(m+h,117)],y.Qc[1]=ti[Ke(m+l,127)],y.lc=m+l}if(!c.Rb)return qe(e,4,"Not a key frame.");for(P(a),c=e.Pa,r=0;4>r;++r){for(s=0;8>s;++s)for(o=0;3>o;++o)for(u=0;11>u;++u)h=E(a,ci[r][s][o][u])?A(a,8):si[r][s][o][u],c.Wc[r][s].Yb[o][u]=h;for(s=0;17>s;++s)c.Xc[r][s]=c.Wc[r][ui[s]]}return e.kc=P(a),e.kc&&(e.Bd=A(a,8)),e.cb=1}function Ze(e,t,n,r,i,o,s){var a=t[i].Yb[n];for(n=0;16>i;++i){if(!E(e,a[n+0]))return i;for(;!E(e,a[n+1]);)if(a=t[++i].Yb[0],n=0,16==i)return 16;var c=t[i+1].Yb;if(E(e,a[n+2])){var u=e,l=0;if(E(u,(d=a)[(h=n)+3]))if(E(u,d[h+6])){for(a=0,h=2*(l=E(u,d[h+8]))+(d=E(u,d[h+9+l])),l=0,d=ri[h];d[a];++a)l+=l+E(u,d[a]);l+=3+(8<<h)}else E(u,d[h+7])?(l=7+2*E(u,165),l+=E(u,145)):l=5+E(u,159);else l=E(u,d[h+4])?3+E(u,d[h+5]):2;a=c[2]}else l=1,a=c[1];c=s+ii[i],0>(u=e).b&&T(u);var h,d=u.b,f=(h=u.Ca>>1)-(u.I>>d)>>31;--u.b,u.Ca+=f,u.Ca|=1,u.I-=(h+1&f)<<d,o[c]=((l^f)-f)*r[(0<i)+0]}return 16}function $e(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,i(e.zc,0,0,e.zc.length),e.ja=0}function Je(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 et(e,t,n,r,i,o){Je(e,t,0,n,r+i),Je(e,t,1,n,r+o),Je(e,t,2,n,r-o),Je(e,t,3,n,r-i)}function tt(e){return(20091*e>>16)+e}function nt(e,t,n,r){var i,s=0,a=o(16);for(i=0;4>i;++i){var c=e[t+0]+e[t+8],u=e[t+0]-e[t+8],l=(35468*e[t+4]>>16)-tt(e[t+12]),h=tt(e[t+4])+(35468*e[t+12]>>16);a[s+0]=c+h,a[s+1]=u+l,a[s+2]=u-l,a[s+3]=c-h,s+=4,t++}for(i=s=0;4>i;++i)c=(e=a[s+0]+4)+a[s+8],u=e-a[s+8],l=(35468*a[s+4]>>16)-tt(a[s+12]),Je(n,r,0,0,c+(h=tt(a[s+4])+(35468*a[s+12]>>16))),Je(n,r,1,0,u+l),Je(n,r,2,0,u-l),Je(n,r,3,0,c-h),s++,r+=32}function rt(e,t,n,r){var i=e[t+0]+4,o=35468*e[t+4]>>16,s=tt(e[t+4]),a=35468*e[t+1]>>16;et(n,r,0,i+s,e=tt(e[t+1]),a),et(n,r,1,i+o,e,a),et(n,r,2,i-o,e,a),et(n,r,3,i-s,e,a)}function it(e,t,n,r,i){nt(e,t,n,r),i&&nt(e,t+16,n,r+4)}function ot(e,t,n,r){or(e,t+0,n,r,1),or(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)Je(n,r,t,i,e)}function at(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,s=o(16);for(i=0;4>i;++i){var a=e[t+0+i]+e[t+12+i],c=e[t+4+i]+e[t+8+i],u=e[t+4+i]-e[t+8+i],l=e[t+0+i]-e[t+12+i];s[0+i]=a+c,s[8+i]=a-c,s[4+i]=l+u,s[12+i]=l-u}for(i=0;4>i;++i)a=(e=s[0+4*i]+3)+s[3+4*i],c=s[1+4*i]+s[2+4*i],u=s[1+4*i]-s[2+4*i],l=e-s[3+4*i],n[r+0]=a+c>>3,n[r+16]=l+u>>3,n[r+32]=a-c>>3,n[r+48]=l-u>>3,r+=64}function ut(e,t,n){var r,i=t-32,o=Or,s=255-e[i-1];for(r=0;r<n;++r){var a,c=o,u=s+e[t-1];for(a=0;a<n;++a)e[t+a]=c[u+e[i+a]];t+=32}}function lt(e,t){ut(e,t,4)}function ht(e,t){ut(e,t,8)}function dt(e,t){ut(e,t,16)}function ft(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function pt(e,t){var n;for(n=16;0<n;--n)i(e,t,e[t-1],16),t+=32}function At(e,t,n){var r;for(r=0;16>r;++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];At(r>>5,e,t)}function mt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];At(r>>4,e,t)}function yt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];At(r>>4,e,t)}function vt(e,t){At(128,e,t)}function bt(e,t,n){return e+2*t+n+2>>2}function wt(e,t){var n,i=t-32;for(i=new Uint8Array([bt(e[i-1],e[i+0],e[i+1]),bt(e[i+0],e[i+1],e[i+2]),bt(e[i+1],e[i+2],e[i+3]),bt(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];I(e,t+0,16843009*bt(e[t-1-32],n,r)),I(e,t+32,16843009*bt(n,r,i)),I(e,t+64,16843009*bt(r,i,o)),I(e,t+96,16843009*bt(i,o,o))}function _t(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 St(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1-32],s=e[t+0-32],a=e[t+1-32],c=e[t+2-32],u=e[t+3-32];e[t+0+96]=bt(r,i,e[t-1+96]),e[t+1+96]=e[t+0+64]=bt(n,r,i),e[t+2+96]=e[t+1+64]=e[t+0+32]=bt(o,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=bt(s,o,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=bt(a,s,o),e[t+3+32]=e[t+2+0]=bt(c,a,s),e[t+3+0]=bt(u,c,a)}function xt(e,t){var n=e[t+1-32],r=e[t+2-32],i=e[t+3-32],o=e[t+4-32],s=e[t+5-32],a=e[t+6-32],c=e[t+7-32];e[t+0+0]=bt(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=bt(n,r,i),e[t+2+0]=e[t+1+32]=e[t+0+64]=bt(r,i,o),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=bt(i,o,s),e[t+3+32]=e[t+2+64]=e[t+1+96]=bt(o,s,a),e[t+3+64]=e[t+2+96]=bt(s,a,c),e[t+3+96]=bt(a,c,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-32],s=e[t+0-32],a=e[t+1-32],c=e[t+2-32],u=e[t+3-32];e[t+0+0]=e[t+1+64]=o+s+1>>1,e[t+1+0]=e[t+2+64]=s+a+1>>1,e[t+2+0]=e[t+3+64]=a+c+1>>1,e[t+3+0]=c+u+1>>1,e[t+0+96]=bt(i,r,n),e[t+0+64]=bt(r,n,o),e[t+0+32]=e[t+1+96]=bt(n,o,s),e[t+1+32]=e[t+2+96]=bt(o,s,a),e[t+2+32]=e[t+3+96]=bt(s,a,c),e[t+3+32]=bt(a,c,u)}function Pt(e,t){var n=e[t+0-32],r=e[t+1-32],i=e[t+2-32],o=e[t+3-32],s=e[t+4-32],a=e[t+5-32],c=e[t+6-32],u=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+s+1>>1,e[t+0+32]=bt(n,r,i),e[t+1+32]=e[t+0+96]=bt(r,i,o),e[t+2+32]=e[t+1+96]=bt(i,o,s),e[t+3+32]=e[t+2+96]=bt(o,s,a),e[t+3+64]=bt(s,a,c),e[t+3+96]=bt(a,c,u)}function Et(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]=bt(n,r,i),e[t+3+0]=e[t+1+32]=bt(r,i,o),e[t+3+32]=e[t+1+64]=bt(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 It(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1+96],s=e[t-1-32],a=e[t+0-32],c=e[t+1-32],u=e[t+2-32];e[t+0+0]=e[t+2+32]=n+s+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]=bt(a,c,u),e[t+2+0]=bt(s,a,c),e[t+1+0]=e[t+3+32]=bt(n,s,a),e[t+1+32]=e[t+3+64]=bt(r,n,s),e[t+1+64]=e[t+3+96]=bt(i,r,n),e[t+1+96]=bt(o,i,r)}function kt(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function Bt(e,t){var n;for(n=0;8>n;++n)i(e,t,e[t-1],8),t+=32}function Mt(e,t,n){var r;for(r=0;8>r;++r)i(t,n+32*r,e,8)}function Ot(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Mt(r>>4,e,t)}function Dt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Mt(r>>3,e,t)}function Rt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Mt(r>>3,e,t)}function Lt(e,t){Mt(128,e,t)}function Nt(e,t,n){var r=e[t-n],i=e[t+0],o=3*(i-r)+Br[1020+e[t-2*n]-e[t+n]],s=Mr[112+(o+4>>3)];e[t-n]=Or[255+r+Mr[112+(o+3>>3)]],e[t+0]=Or[255+i-s]}function Ut(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 Ft(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 jt(e,t,n,r,i){var o=e[t-3*n],s=e[t-2*n],a=e[t-n],c=e[t+0],u=e[t+n],l=e[t+2*n],h=e[t+3*n];return 4*Dr[255+a-c]+Dr[255+s-u]>r?0:Dr[255+e[t-4*n]-o]<=i&&Dr[255+o-s]<=i&&Dr[255+s-a]<=i&&Dr[255+h-l]<=i&&Dr[255+l-u]<=i&&Dr[255+u-c]<=i}function Ht(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)Ft(e,t+r,n,i)&&Nt(e,t+r,n)}function zt(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)Ft(e,t+r*n,1,i)&&Nt(e,t+r*n,1)}function Qt(e,t,n,r){var i;for(i=3;0<i;--i)Ht(e,t+=4*n,n,r)}function Vt(e,t,n,r){var i;for(i=3;0<i;--i)zt(e,t+=4,n,r)}function Kt(e,t,n,r,i,o,s,a){for(o=2*o+1;0<i--;){if(jt(e,t,n,o,s))if(Ut(e,t,n,a))Nt(e,t,n);else{var c=e,u=t,l=n,h=c[u-2*l],d=c[u-l],f=c[u+0],p=c[u+l],A=c[u+2*l],g=27*(y=Br[1020+3*(f-d)+Br[1020+h-p]])+63>>7,m=18*y+63>>7,y=9*y+63>>7;c[u-3*l]=Or[255+c[u-3*l]+y],c[u-2*l]=Or[255+h+m],c[u-l]=Or[255+d+g],c[u+0]=Or[255+f-g],c[u+l]=Or[255+p-m],c[u+2*l]=Or[255+A-y]}t+=r}}function Wt(e,t,n,r,i,o,s,a){for(o=2*o+1;0<i--;){if(jt(e,t,n,o,s))if(Ut(e,t,n,a))Nt(e,t,n);else{var c=e,u=t,l=n,h=c[u-l],d=c[u+0],f=c[u+l],p=Mr[112+(4+(A=3*(d-h))>>3)],A=Mr[112+(A+3>>3)],g=p+1>>1;c[u-2*l]=Or[255+c[u-2*l]+g],c[u-l]=Or[255+h+A],c[u+0]=Or[255+d-p],c[u+l]=Or[255+f-g]}t+=r}}function Gt(e,t,n,r,i,o){Kt(e,t,n,1,16,r,i,o)}function qt(e,t,n,r,i,o){Kt(e,t,1,n,16,r,i,o)}function Yt(e,t,n,r,i,o){var s;for(s=3;0<s;--s)Wt(e,t+=4*n,n,1,16,r,i,o)}function Xt(e,t,n,r,i,o){var s;for(s=3;0<s;--s)Wt(e,t+=4,1,n,16,r,i,o)}function Zt(e,t,n,r,i,o,s,a){Kt(e,t,i,1,8,o,s,a),Kt(n,r,i,1,8,o,s,a)}function $t(e,t,n,r,i,o,s,a){Kt(e,t,1,i,8,o,s,a),Kt(n,r,1,i,8,o,s,a)}function Jt(e,t,n,r,i,o,s,a){Wt(e,t+4*i,i,1,8,o,s,a),Wt(n,r+4*i,i,1,8,o,s,a)}function en(e,t,n,r,i,o,s,a){Wt(e,t+4,1,i,8,o,s,a),Wt(n,r+4,1,i,8,o,s,a)}function tn(){this.ba=new se,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ce,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function rn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){this.ua=0,this.Wa=new R,this.vb=new R,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new h}function sn(){this.xb=this.a=0,this.l=new We,this.ca=new se,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=s(4,rn),this.Oc=0}function an(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new We,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(e,t,n,r,i,o,s){for(e=null==e?0:e[t+0],t=0;t<s;++t)i[o+t]=e+n[r+t]&255,e=i[o+t]}function un(e,t,n,r,i,o,s){var a;if(null==e)cn(null,null,n,r,i,o,s);else for(a=0;a<s;++a)i[o+a]=e[t+a]+n[r+a]&255}function ln(e,t,n,r,i,o,s){if(null==e)cn(null,null,n,r,i,o,s);else{var a,c=e[t+0],u=c,l=c;for(a=0;a<s;++a)u=l+(c=e[t+a])-u,l=n[r+a]+(-256&u?0>u?0:255:u)&255,u=c,i[o+a]=l}}function hn(e,n,i,s){var a=n.width,c=n.o;if(t(null!=e&&null!=n),0>i||0>=s||i+s>c)return null;if(!e.Cc){if(null==e.ga){var u;if(e.ga=new an,(u=null==e.ga)||(u=n.width*n.o,t(0==e.Gb.length),e.Gb=o(u),e.Uc=0,null==e.Gb?u=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,u=1),u=!u),!u){u=e.ga;var l=e.Fa,h=e.P,d=e.qc,f=e.mb,p=e.nb,A=h+1,g=d-1,y=u.l;if(t(null!=l&&null!=f&&null!=n),Ai[0]=null,Ai[1]=cn,Ai[2]=un,Ai[3]=ln,u.ca=f,u.tb=p,u.c=n.width,u.i=n.height,t(0<u.c&&0<u.i),1>=d)n=0;else if(u.$a=3&l[h+0],u.Z=l[h+0]>>2&3,u.Lc=l[h+0]>>4&3,h=l[h+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||h)n=0;else if(y.put=fe,y.ac=de,y.bc=pe,y.ma=u,y.width=n.width,y.height=n.height,y.Da=n.Da,y.v=n.v,y.va=n.va,y.j=n.j,y.o=n.o,u.$a)e:{t(1==u.$a),n=Ee();t:for(;;){if(null==n){n=0;break e}if(t(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,m(n.m,l,A,g),!Ie(u.c,u.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&_e(n.s)?(u.ic=1,l=n.c*n.i,n.Ta=null,n.Ua=0,n.V=o(l),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=ke(n,u.c)),!n)break t;n=1;break e}u.mc=null,n=0}else n=g>=u.c*u.i;u=!n}if(u)return null;1!=e.ga.Lc?e.Ga=0:s=c-i}t(null!=e.ga),t(i+s<=c);e:{if(n=(l=e.ga).c,c=l.l.o,0==l.$a){if(A=e.rc,g=e.Vc,y=e.Fa,h=e.P+1+i*n,d=e.mb,f=e.nb+i*n,t(h<=e.P+e.qc),0!=l.Z)for(t(null!=Ai[l.Z]),u=0;u<s;++u)Ai[l.Z](A,g,y,h,d,f,n),A=d,g=f,f+=n,h+=n;else for(u=0;u<s;++u)r(d,f,y,h,n),A=d,g=f,f+=n,h+=n;e.rc=A,e.Vc=g}else{if(t(null!=l.mc),n=i+s,t(null!=(u=l.mc)),t(n<=u.i),u.C>=n)n=1;else if(l.ic||gn(),l.ic){l=u.V,A=u.Ba,g=u.c;var v=u.i,b=(y=1,h=u.$/g,d=u.$%g,f=u.m,p=u.s,u.$),w=g*v,C=g*n,S=p.wc,T=b<C?be(p,d,h):null;t(b<=w),t(n<=v),t(_e(p));t:for(;;){for(;!f.h&&b<C;){if(d&S||(T=be(p,d,h)),t(null!=T),x(f),256>(v=ye(T.G[0],T.H[0],f)))l[A+b]=v,++b,++d>=g&&(d=0,++h<=n&&!(h%16)&&xe(u,h));else{if(!(280>v)){y=0;break t}v=ge(v-256,f);var P,E=ye(T.G[4],T.H[4],f);if(x(f),!(b>=(E=me(g,E=ge(E,f)))&&w-b>=v)){y=0;break t}for(P=0;P<v;++P)l[A+b+P]=l[A+b+P-E];for(b+=v,d+=v;d>=g;)d-=g,++h<=n&&!(h%16)&&xe(u,h);b<C&&d&S&&(T=be(p,d,h))}t(f.h==_(f))}xe(u,h>n?n:h);break t}!y||f.h&&b<w?(y=0,u.a=f.h?5:3):u.$=b,n=y}else n=Te(u,u.V,u.Ba,u.c,u.i,n,Be);if(!n){s=0;break e}}i+s>=c&&(e.Cc=1),s=1}if(!s)return null;if(e.Cc&&(null!=(s=e.ga)&&(s.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+i*a}function dn(e,t,n,r,i,o){for(;0<i--;){var s,a=e,c=t+(n?1:0),u=e,l=t+(n?0:3);for(s=0;s<r;++s){var h=u[l+4*s];255!=h&&(h*=32897,a[c+4*s+0]=a[c+4*s+0]*h>>23,a[c+4*s+1]=a[c+4*s+1]*h>>23,a[c+4*s+2]=a[c+4*s+2]*h>>23)}t+=o}}function fn(e,t,n,r,i){for(;0<r--;){var o;for(o=0;o<n;++o){var s=e[t+2*o+0],a=15&(u=e[t+2*o+1]),c=4369*a,u=(240&u|u>>4)*c>>16;e[t+2*o+0]=(240&s|s>>4)*c>>16&240|(15&s|s<<4)*c>>16>>4&15,e[t+2*o+1]=240&u|a}t+=i}}function pn(e,t,n,r,i,o,s,a){var c,u,l=255;for(u=0;u<i;++u){for(c=0;c<r;++c){var h=e[t+c];o[s+4*c]=h,l&=h}t+=n,s+=a}return 255!=l}function An(e,t,n,r,i){var o;for(o=0;o<i;++o)n[r+o]=e[t+o]>>8}function gn(){Cr=dn,_r=fn,Sr=pn,xr=An}function mn(n,r,i){e[n]=function(e,n,o,s,a,c,u,l,h,d,f,p,A,g,m,y,v){var b,w=v-1>>1,C=a[c+0]|u[l+0]<<16,_=h[d+0]|f[p+0]<<16;t(null!=e);var S=3*C+_+131074>>2;for(r(e[n+0],255&S,S>>16,A,g),null!=o&&(S=3*_+C+131074>>2,r(o[s+0],255&S,S>>16,m,y)),b=1;b<=w;++b){var x=a[c+b]|u[l+b]<<16,T=h[d+b]|f[p+b]<<16,P=C+x+_+T+524296,E=P+2*(x+_)>>3;S=E+C>>1,C=(P=P+2*(C+T)>>3)+x>>1,r(e[n+2*b-1],255&S,S>>16,A,g+(2*b-1)*i),r(e[n+2*b-0],255&C,C>>16,A,g+(2*b-0)*i),null!=o&&(S=P+_>>1,C=E+T>>1,r(o[s+2*b-1],255&S,S>>16,m,y+(2*b-1)*i),r(o[s+2*b+0],255&C,C>>16,m,y+(2*b+0)*i)),C=x,_=T}1&v||(S=3*C+_+131074>>2,r(e[n+v-1],255&S,S>>16,A,g+(v-1)*i),null!=o&&(S=3*_+C+131074>>2,r(o[s+v-1],255&S,S>>16,m,y+(v-1)*i)))}}function yn(){gi[Rr]=mi,gi[Lr]=vi,gi[Nr]=yi,gi[Ur]=bi,gi[Fr]=wi,gi[jr]=Ci,gi[Hr]=_i,gi[zr]=vi,gi[Qr]=bi,gi[Vr]=wi,gi[Kr]=Ci}function vn(e){return e&~Ii?0>e?0:255:e>>Ei}function bn(e,t){return vn((19077*e>>8)+(26149*t>>8)-14234)}function wn(e,t,n){return vn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Cn(e,t){return vn((19077*e>>8)+(33050*t>>8)-17685)}function _n(e,t,n,r,i){r[i+0]=bn(e,n),r[i+1]=wn(e,t,n),r[i+2]=Cn(e,t)}function Sn(e,t,n,r,i){r[i+0]=Cn(e,t),r[i+1]=wn(e,t,n),r[i+2]=bn(e,n)}function xn(e,t,n,r,i){var o=wn(e,t,n);t=o<<3&224|Cn(e,t)>>3,r[i+0]=248&bn(e,n)|o>>5,r[i+1]=t}function Tn(e,t,n,r,i){var o=240&Cn(e,t)|15;r[i+0]=240&bn(e,n)|wn(e,t,n)>>4,r[i+1]=o}function Pn(e,t,n,r,i){r[i+0]=255,_n(e,t,n,r,i+1)}function En(e,t,n,r,i){Sn(e,t,n,r,i),r[i+3]=255}function In(e,t,n,r,i){_n(e,t,n,r,i),r[i+3]=255}function kn(t,n,r){e[t]=function(e,t,i,o,s,a,c,u,l){for(var h=u+(-2&l)*r;u!=h;)n(e[t+0],i[o+0],s[a+0],c,u),n(e[t+1],i[o+0],s[a+0],c,u+r),t+=2,++o,++a,u+=2*r;1&l&&n(e[t+0],i[o+0],s[a+0],c,u)}}function Bn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Mn(e,t,n,r,i){switch(e>>>30){case 3:or(t,n,r,i,0);break;case 2:sr(t,n,r,i);break;case 1:cr(t,n,r,i)}}function On(e,t){var n,o,s=t.M,a=t.Nb,c=e.oc,u=e.pc+40,l=e.oc,h=e.pc+584,d=e.oc,f=e.pc+600;for(n=0;16>n;++n)c[u+32*n-1]=129;for(n=0;8>n;++n)l[h+32*n-1]=129,d[f+32*n-1]=129;for(0<s?c[u-1-32]=l[h-1-32]=d[f-1-32]=129:(i(c,u-32-1,127,21),i(l,h-32-1,127,9),i(d,f-32-1,127,9)),o=0;o<e.za;++o){var p=t.ya[t.aa+o];if(0<o){for(n=-1;16>n;++n)r(c,u+32*n-4,c,u+32*n+12,4);for(n=-1;8>n;++n)r(l,h+32*n-4,l,h+32*n+4,4),r(d,f+32*n-4,d,f+32*n+4,4)}var A=e.Gd,g=e.Hd+o,m=p.ad,y=p.Hc;if(0<s&&(r(c,u-32,A[g].y,0,16),r(l,h-32,A[g].f,0,8),r(d,f-32,A[g].ea,0,8)),p.Za){var v=c,b=u-32+16;for(0<s&&(o>=e.za-1?i(v,b,A[g].y[15],4):r(v,b,A[g+1].y,0,4)),n=0;4>n;n++)v[b+128+n]=v[b+256+n]=v[b+384+n]=v[b+0+n];for(n=0;16>n;++n,y<<=2)v=c,b=u+Ni[n],hi[p.Ob[n]](v,b),Mn(y,m,16*+n,v,b)}else if(v=Bn(o,s,p.Ob[0]),li[v](c,u),0!=y)for(n=0;16>n;++n,y<<=2)Mn(y,m,16*+n,c,u+Ni[n]);for(n=p.Gc,v=Bn(o,s,p.Dd),di[v](l,h),di[v](d,f),y=m,v=l,b=h,255&(p=0|n)&&(170&p?ar(y,256,v,b):ur(y,256,v,b)),p=d,y=f,255&(n>>=8)&&(170&n?ar(m,320,p,y):ur(m,320,p,y)),s<e.Ub-1&&(r(A[g].y,0,c,u+480,16),r(A[g].f,0,l,h+224,8),r(A[g].ea,0,d,f+224,8)),n=8*a*e.B,A=e.sa,g=e.ta+16*o+16*a*e.R,m=e.qa,p=e.ra+8*o+n,y=e.Ha,v=e.Ia+8*o+n,n=0;16>n;++n)r(A,g+n*e.R,c,u+32*n,16);for(n=0;8>n;++n)r(m,p+n*e.B,l,h+32*n,8),r(y,v+n*e.B,d,f+32*n,8)}}function Dn(e,r,i,o,s,a,c,u,l){var h=[0],d=[0],f=0,p=null!=l?l.kd:0,A=null!=l?l:new nn;if(null==e||12>i)return 7;A.data=e,A.w=r,A.ha=i,r=[r],i=[i],A.gb=[A.gb];e:{var g=r,y=i,v=A.gb;if(t(null!=e),t(null!=y),t(null!=v),v[0]=0,12<=y[0]&&!n(e,g[0],"RIFF")){if(n(e,g[0]+8,"WEBP")){v=3;break e}var b=M(e,g[0]+4);if(12>b||4294967286<b){v=3;break e}if(p&&b>y[0]-8){v=7;break e}v[0]=b,g[0]+=12,y[0]-=12}v=0}if(0!=v)return v;for(b=0<A.gb[0],i=i[0];;){e:{var C=e;y=r,v=i;var _=h,S=d,x=g=[0];if((E=f=[f])[0]=0,8>v[0])v=7;else{if(!n(C,y[0],"VP8X")){if(10!=M(C,y[0]+4)){v=3;break e}if(18>v[0]){v=7;break e}var T=M(C,y[0]+8),P=1+B(C,y[0]+12);if(2147483648<=P*(C=1+B(C,y[0]+15))){v=3;break e}null!=x&&(x[0]=T),null!=_&&(_[0]=P),null!=S&&(S[0]=C),y[0]+=18,v[0]-=18,E[0]=1}v=0}}if(f=f[0],g=g[0],0!=v)return v;if(y=!!(2&g),!b&&f)return 3;if(null!=a&&(a[0]=!!(16&g)),null!=c&&(c[0]=y),null!=u&&(u[0]=0),c=h[0],g=d[0],f&&y&&null==l){v=0;break}if(4>i){v=7;break}if(b&&f||!b&&!f&&!n(e,r[0],"ALPH")){i=[i],A.na=[A.na],A.P=[A.P],A.Sa=[A.Sa];e:{T=e,v=r,b=i;var E=A.gb;_=A.na,S=A.P,x=A.Sa,P=22,t(null!=T),t(null!=b),C=v[0];var I=b[0];for(t(null!=_),t(null!=x),_[0]=null,S[0]=null,x[0]=0;;){if(v[0]=C,b[0]=I,8>I){v=7;break e}var k=M(T,C+4);if(4294967286<k){v=3;break e}var O=8+k+1&-2;if(P+=O,0<E&&P>E){v=3;break e}if(!n(T,C,"VP8 ")||!n(T,C,"VP8L")){v=0;break e}if(I[0]<O){v=7;break e}n(T,C,"ALPH")||(_[0]=T,S[0]=C+8,x[0]=k),C+=O,I-=O}}if(i=i[0],A.na=A.na[0],A.P=A.P[0],A.Sa=A.Sa[0],0!=v)break}i=[i],A.Ja=[A.Ja],A.xa=[A.xa];e:if(E=e,v=r,b=i,_=A.gb[0],S=A.Ja,x=A.xa,T=v[0],C=!n(E,T,"VP8 "),P=!n(E,T,"VP8L"),t(null!=E),t(null!=b),t(null!=S),t(null!=x),8>b[0])v=7;else{if(C||P){if(E=M(E,T+4),12<=_&&E>_-12){v=3;break e}if(p&&E>b[0]-8){v=7;break e}S[0]=E,v[0]+=8,b[0]-=8,x[0]=P}else x[0]=5<=b[0]&&47==E[T+0]&&!(E[T+4]>>5),S[0]=b[0];v=0}if(i=i[0],A.Ja=A.Ja[0],A.xa=A.xa[0],r=r[0],0!=v)break;if(4294967286<A.Ja)return 3;if(null==u||y||(u[0]=A.xa?2:1),c=[c],g=[g],A.xa){if(5>i){v=7;break}u=c,p=g,y=a,null==e||5>i?e=0:5<=i&&47==e[r+0]&&!(e[r+4]>>5)?(b=[0],E=[0],_=[0],m(S=new w,e,r,i),Ae(S,b,E,_)?(null!=u&&(u[0]=b[0]),null!=p&&(p[0]=E[0]),null!=y&&(y[0]=_[0]),e=1):e=0):e=0}else{if(10>i){v=7;break}u=g,null==e||10>i||!Ye(e,r+3,i-3)?e=0:(p=e[r+0]|e[r+1]<<8|e[r+2]<<16,y=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=A.Ja||!y||!e?e=0:(c&&(c[0]=y),u&&(u[0]=e),e=1))}if(!e)return 3;if(c=c[0],g=g[0],f&&(h[0]!=c||d[0]!=g))return 3;null!=l&&(l[0]=A,l.offset=r-l.w,t(4294967286>r-l.w),t(l.offset==l.ha-i));break}return 0==v||7==v&&f&&null==l?(null!=a&&(a[0]|=null!=A.na&&0<A.na.length),null!=o&&(o[0]=c),null!=s&&(s[0]=g),0):v}function Rn(e,t,n){var r=t.width,i=t.height,o=0,s=0,a=r,c=i;if(t.Da=null!=e&&0<e.Da,t.Da&&(a=e.cd,c=e.bd,o=e.v,s=e.j,11>n||(o&=-2,s&=-2),0>o||0>s||0>=a||0>=c||o+a>r||s+c>i))return 0;if(t.v=o,t.j=s,t.va=o+a,t.o=s+c,t.U=a,t.T=c,t.da=null!=e&&0<e.da,t.da){if(!L(a,c,n=[e.ib],o=[e.hb]))return 0;t.ib=n[0],t.hb=o[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*i/4,t.Kb=0),1}function Ln(e){if(null==e)return 2;if(11>e.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 Nn(e,t,n,r){if(null==r||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var i=n.cd,s=n.bd,a=-2&n.v,c=-2&n.j;if(0>a||0>c||0>=i||0>=s||a+i>e||c+s>t)return 2;e=i,t=s}if(n.da){if(!L(e,t,i=[n.ib],s=[n.hb]))return 2;e=i[0],t=s[0]}}r.width=e,r.height=t;e:{var u=r.width,l=r.height;if(e=r.S,0>=u||0>=l||!(e>=Rr&&13>e))e=2;else{if(0>=r.Rd&&null==r.sd){a=s=i=t=0;var h=(c=u*Hi[e])*l;if(11>e||(s=(l+1)/2*(t=(u+1)/2),12==e&&(a=(i=u)*l)),null==(l=o(h+2*s+a))){e=1;break e}r.sd=l,11>e?((u=r.f.RGBA).eb=l,u.fb=0,u.A=c,u.size=h):((u=r.f.kb).y=l,u.O=0,u.fa=c,u.Fd=h,u.f=l,u.N=0+h,u.Ab=t,u.Cd=s,u.ea=l,u.W=0+h+s,u.Db=t,u.Ed=s,12==e&&(u.F=l,u.J=0+h+2*s),u.Tc=a,u.lb=i)}if(t=1,i=r.S,s=r.width,a=r.height,i>=Rr&&13>i)if(11>i)e=r.f.RGBA,t&=(c=Math.abs(e.A))*(a-1)+s<=e.size,t&=c>=s*Hi[i],t&=null!=e.eb;else{e=r.f.kb,c=(s+1)/2,h=(a+1)/2,u=Math.abs(e.fa),l=Math.abs(e.Ab);var d=Math.abs(e.Db),f=Math.abs(e.lb),p=f*(a-1)+s;t&=u*(a-1)+s<=e.Fd,t&=l*(h-1)+c<=e.Cd,t=(t&=d*(h-1)+c<=e.Ed)&u>=s&l>=c&d>=c,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==i&&(t&=f>=s,t&=p<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Ln(r)),e}var Un=64,Fn=[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],jn=24,Hn=32,zn=8,Qn=[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];F("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 H(H(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return H(e,t[n-1])},e.Predictor7=function(e,t,n){return H(e,t[n+0])},e.Predictor8=function(e,t,n){return H(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return H(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return H(H(e,t[n-1]),H(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=V(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+V(r>>16&255,e>>16&255,t>>16&255)+V(r>>8&255,e>>8&255,t>>8&255)+V(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(z((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|z((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|z((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|z((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return(Q((e=H(e,t[n+0]))>>24&255,r>>24&255)<<24|Q(e>>16&255,r>>16&255)<<16|Q(e>>8&255,r>>8&255)<<8|Q(255&e,255&r))>>>0};var Vn=e.PredictorAdd0;e.PredictorAdd1=K,F("Predictor2","PredictorAdd2"),F("Predictor3","PredictorAdd3"),F("Predictor4","PredictorAdd4"),F("Predictor5","PredictorAdd5"),F("Predictor6","PredictorAdd6"),F("Predictor7","PredictorAdd7"),F("Predictor8","PredictorAdd8"),F("Predictor9","PredictorAdd9"),F("Predictor10","PredictorAdd10"),F("Predictor11","PredictorAdd11"),F("Predictor12","PredictorAdd12"),F("Predictor13","PredictorAdd13");var Kn=e.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",function(e){return e>>8&255},function(e){return e}),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(e){return e},function(e){return e>>8&255});var Wn,Gn=e.ColorIndexInverseTransform,qn=e.MapARGB,Yn=e.VP8LColorIndexInverseTransformAlpha,Xn=e.MapAlpha,Zn=e.VP8LPredictorsAdd=[];Zn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var $n,Jn,er,tr,nr,rr,ir,or,sr,ar,cr,ur,lr,hr,dr,fr,pr,Ar,gr,mr,yr,vr,br,wr,Cr,_r,Sr,xr,Tr=o(511),Pr=o(2041),Er=o(225),Ir=o(767),kr=0,Br=Pr,Mr=Er,Or=Ir,Dr=Tr,Rr=0,Lr=1,Nr=2,Ur=3,Fr=4,jr=5,Hr=6,zr=7,Qr=8,Vr=9,Kr=10,Wr=[2,3,7],Gr=[3,3,11],qr=[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],Zr=[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,3
vendor: 4,386 bytes, line 260
2606,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],$r=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Jr=8,ei=[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],ti=[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],ni=null,ri=[[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]],ii=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-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,25
2605,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]]]],a
vendor: 7,698 bytes, line 260
260i=[[[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]]]],
vendor: 15,687 bytes, lines 260-294
260ui=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],li=[],hi=[],di=[],fi=1,pi=2,Ai=[],gi=[];mn("UpsampleRgbLinePair",_n,3),mn("UpsampleBgrLinePair",Sn,3),mn("UpsampleRgbaLinePair",In,4),mn("UpsampleBgraLinePair",En,4),mn("UpsampleArgbLinePair",Pn,4),mn("UpsampleRgba4444LinePair",Tn,2),mn("UpsampleRgb565LinePair",xn,2);var mi=e.UpsampleRgbLinePair,yi=e.UpsampleBgrLinePair,vi=e.UpsampleRgbaLinePair,bi=e.UpsampleBgraLinePair,wi=e.UpsampleArgbLinePair,Ci=e.UpsampleRgba4444LinePair,_i=e.UpsampleRgb565LinePair,Si=16,xi=1<<Si-1,Ti=-227,Pi=482,Ei=6,Ii=(256<<Ei)-1,ki=0,Bi=o(256),Mi=o(256),Oi=o(256),Di=o(256),Ri=o(Pi-Ti),Li=o(Pi-Ti);kn("YuvToRgbRow",_n,3),kn("YuvToBgrRow",Sn,3),kn("YuvToRgbaRow",In,4),kn("YuvToBgraRow",En,4),kn("YuvToArgbRow",Pn,4),kn("YuvToRgba4444Row",Tn,2),kn("YuvToRgb565Row",xn,2);var Ni=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ui=[0,2,8],Fi=[8,7,6,4,4,2,2,2,1,1,1,1],ji=1;this.WebPDecodeRGBA=function(e,n,a,c,u){var l=Lr,h=new tn,d=new se;h.ba=d,d.S=l,d.width=[d.width],d.height=[d.height];var f=d.width,p=d.height,A=new ae;if(null==A||null==e)var g=2;else t(null!=A),g=Dn(e,n,a,A.width,A.height,A.Pd,A.Qd,A.format,null);if(0!=g?f=0:(null!=f&&(f[0]=A.width[0]),null!=p&&(p[0]=A.height[0]),f=1),f){d.width=d.width[0],d.height=d.height[0],null!=c&&(c[0]=d.width),null!=u&&(u[0]=d.height);e:{if(c=new We,(u=new nn).data=e,u.w=n,u.ha=a,u.kd=1,n=[0],t(null!=u),(0==(e=Dn(u.data,u.w,u.ha,null,null,null,n,null,u))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=h),c.data=u.data,c.w=u.w+u.offset,c.ha=u.ha-u.offset,c.put=fe,c.ac=de,c.bc=pe,c.ma=h,u.xa){if(null==(e=Ee())){h=1;break e}if(function(e,n){var r=[0],i=[0],o=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,m(e.m,n.data,n.w,n.ha),!Ae(e.m,r,i,o)){e.a=3;break t}if(e.xb=pi,n.width=r[0],n.height=i[0],!Ie(r[0],i[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,c)){if(c=0==(n=Nn(c.width,c.height,h.Oa,h.ba))){t:{c=e;n:for(;;){if(null==c){c=0;break t}if(t(null!=c.s.yc),t(null!=c.s.Ya),t(0<c.s.Wb),t(null!=(a=c.l)),t(null!=(u=a.ma)),0!=c.xb){if(c.ca=u.ba,c.tb=u.tb,t(null!=c.ca),!Rn(u.Oa,a,Ur)){c.a=2;break n}if(!ke(c,a.width))break n;if(a.da)break n;if((a.da||re(c.ca.S))&&gn(),11>c.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=c.ca.f.kb.F&&gn()),c.Pb&&0<c.s.ua&&null==c.s.vb.X&&!O(c.s.vb,c.s.Wa.Xa)){c.a=1;break n}c.xb=0}if(!Te(c,c.V,c.Ba,c.c,c.i,a.o,Ce))break n;u.Dc=c.Ma,c=1;break t}t(0!=c.a),c=0}c=!c}c&&(n=e.a)}else n=e.a}else{if(null==(e=new Ge)){h=1;break e}if(e.Fa=u.na,e.P=u.P,e.qc=u.Sa,Xe(e,c)){if(0==(n=Nn(c.width,c.height,h.Oa,h.ba))){if(e.Aa=0,a=h.Oa,t(null!=(u=e)),null!=a){if(0<(f=0>(f=a.Md)?0:100<f?255:255*f/100)){for(p=A=0;4>p;++p)12>(g=u.pb[p]).lc&&(g.ia=f*Fi[0>g.lc?0:g.lc]>>3),A|=g.ia;A&&(alert("todo:VP8InitRandom"),u.ia=1)}u.Ga=a.Id,100<u.Ga?u.Ga=100:0>u.Ga&&(u.Ga=0)}(function(e,n){if(null==e)return 0;if(null==n)return qe(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Xe(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var a=Ui[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-a>>4,e.zb=n.j-a>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+a>>4,e.Hb=n.va+15+a>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var c=e.ed;for(a=0;4>a;++a){var u;if(e.Qa.Cb){var l=e.Qa.Lb[a];e.Qa.Fb||(l+=c.Tb)}else l=c.Tb;for(u=0;1>=u;++u){var h=e.gd[a][u],d=l;if(c.Pc&&(d+=c.vd[0],u&&(d+=c.od[0])),0<(d=0>d?0:63<d?63:d)){var f=d;0<c.wb&&(f=4<c.wb?f>>2:f>>1)>9-c.wb&&(f=9-c.wb),1>f&&(f=1),h.dd=f,h.tc=2*d+f,h.ld=40<=d?2:15<=d?1:0}else h.tc=0;h.La=u}}}a=0}else qe(e,6,"Frame setup failed"),a=e.a;if(a=0==a){if(a){e.$c=0,0<e.Aa||(e.Ic=ji);t:{a=e.Ic,c=4*(f=e.za);var p=32*f,A=f+1,g=0<e.L?f*(0<e.Aa?2:1):0,m=(2==e.Aa?2:1)*f;if((h=c+832+(u=3*(16*a+Ui[e.L])/2*p)+(l=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=h)a=0;else{if(h>e.Vb){if(e.Vb=0,e.Ec=o(h),e.Fc=0,null==e.Ec){a=qe(e,1,"no memory during frame initialization.");break t}e.Vb=h}h=e.Ec,d=e.Fc,e.Ac=h,e.Bc=d,d+=c,e.Gd=s(p,Qe),e.Hd=0,e.rb=s(A+1,Fe),e.sb=1,e.wa=g?s(g,Ue):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=f),t(!0),e.oc=h,e.pc=d,d+=832,e.ya=s(m,He),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=f),e.R=16*f,e.B=8*f,f=(p=Ui[e.L])*e.R,p=p/2*e.B,e.sa=h,e.ta=d+f,e.qa=e.sa,e.ra=e.ta+16*a*e.R+p,e.Ha=e.qa,e.Ia=e.ra+8*a*e.B+p,e.$c=0,d+=u,e.mb=l?h:null,e.nb=l?d:null,t(d+l<=e.Fc+e.Vb),$e(e),i(e.Ac,e.Bc,0,c),a=1}}if(a){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!kr){for(a=-255;255>=a;++a)Tr[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Pr[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)Er[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Ir[255+a]=0>a?0:255<a?255:a;kr=1}ir=ct,or=it,ar=ot,cr=st,ur=at,sr=rt,lr=Gt,hr=qt,dr=Zt,fr=$t,pr=Yt,Ar=Xt,gr=Jt,mr=en,yr=Ht,vr=zt,br=Qt,wr=Vt,hi[0]=_t,hi[1]=lt,hi[2]=wt,hi[3]=Ct,hi[4]=St,hi[5]=Tt,hi[6]=xt,hi[7]=Pt,hi[8]=It,hi[9]=Et,li[0]=gt,li[1]=dt,li[2]=ft,li[3]=pt,li[4]=mt,li[5]=yt,li[6]=vt,di[0]=Ot,di[1]=ht,di[2]=kt,di[3]=Bt,di[4]=Rt,di[5]=Dt,di[6]=Lt,a=1}else a=0}a&&(a=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var s,a=e.Jc[e.M&e.Xb],c=e.m,u=e;for(s=0;s<u.za;++s){var l=c,h=u,d=h.Ac,f=h.Bc+4*s,p=h.zc,A=h.ya[h.aa+s];if(h.Qa.Bb?A.$b=E(l,h.Pa.jb[0])?2+E(l,h.Pa.jb[2]):E(l,h.Pa.jb[1]):A.$b=0,h.kc&&(A.Ad=E(l,h.Bd)),A.Za=!E(l,145)+0,A.Za){var g=A.Ob,m=0;for(h=0;4>h;++h){var y,v=p[0+h];for(y=0;4>y;++y){v=ai[d[f+y]][v];for(var b=oi[E(l,v[0])];0<b;)b=oi[2*b+E(l,v[b])];v=-b,d[f+y]=v}r(g,m,d,f,4),m+=4,p[0+h]=v}}else v=E(l,156)?E(l,128)?1:3:E(l,163)?2:0,A.Ob[0]=v,i(d,f,v,4),i(p,0,v,4);A.Dd=E(l,142)?E(l,114)?E(l,183)?1:3:2:0}if(u.m.Ka)return qe(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(u=a,l=(c=e).rb[c.sb-1],d=c.rb[c.sb+c.ja],s=c.ya[c.aa+c.ja],f=c.kc?s.Ad:0)l.la=d.la=0,s.Za||(l.Na=d.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var w,C;if(l=d,d=u,f=c.Pa.Xc,p=c.ya[c.aa+c.ja],A=c.pb[p.$b],h=p.ad,g=0,m=c.rb[c.sb-1],v=y=0,i(h,g,0,384),p.Za)var _=0,S=f[3];else{b=o(16);var x=l.Na+m.Na;if(x=ni(d,f[1],x,A.Eb,0,b,0),l.Na=m.Na=(0<x)+0,1<x)ir(b,0,h,g);else{var T=b[0]+3>>3;for(b=0;256>b;b+=16)h[g+b]=T}_=1,S=f[0]}var P=15&l.la,I=15&m.la;for(b=0;4>b;++b){var k=1&I;for(T=C=0;4>T;++T)P=P>>1|(k=(x=ni(d,S,x=k+(1&P),A.Sc,_,h,g))>_)<<7,C=C<<2|(3<x?3:1<x?2:0!=h[g+0]),g+=16;P>>=4,I=I>>1|k<<7,y=(y<<8|C)>>>0}for(S=P,_=I>>4,w=0;4>w;w+=2){for(C=0,P=l.la>>4+w,I=m.la>>4+w,b=0;2>b;++b){for(k=1&I,T=0;2>T;++T)x=k+(1&P),P=P>>1|(k=0<(x=ni(d,f[2],x,A.Qc,0,h,g)))<<3,C=C<<2|(3<x?3:1<x?2:0!=h[g+0]),g+=16;P>>=2,I=I>>1|k<<5}v|=C<<4*w,S|=P<<4<<w,_|=(240&I)<<w}l.la=S,m.la=_,p.Hc=y,p.Gc=v,p.ia=43690&v?0:A.ia,f=!(y|v)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[s.$b][s.Za],c.wa[c.Y+c.ja].La|=!f),u.Ka)return qe(e,7,"Premature end-of-file encountered.")}if($e(e),c=n,u=1,s=(a=e).D,l=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)t:{if(s.M=a.M,s.uc=l,On(a,s),u=1,s=(C=a.D).Nb,l=(v=Ui[a.L])*a.R,d=v/2*a.B,b=16*s*a.R,T=8*s*a.B,f=a.sa,p=a.ta-l+b,A=a.qa,h=a.ra-d+T,g=a.Ha,m=a.Ia-d+T,I=0==(P=C.M),y=P>=a.Va-1,2==a.Aa&&On(a,C),C.uc)for(k=(x=a).D.M,t(x.D.uc),C=x.yb;C<x.Hb;++C){_=C,S=k;var B=(M=(H=x).D).Nb;w=H.R;var M=M.wa[M.Y+_],O=H.sa,D=H.ta+16*B*w+16*_,R=M.dd,L=M.tc;if(0!=L)if(t(3<=L),1==H.L)0<_&&vr(O,D,w,L+4),M.La&&wr(O,D,w,L),0<S&&yr(O,D,w,L+4),M.La&&br(O,D,w,L);else{var N=H.B,U=H.qa,F=H.ra+8*B*N+8*_,j=H.Ha,H=H.Ia+8*B*N+8*_;B=M.ld,0<_&&(hr(O,D,w,L+4,R,B),fr(U,F,j,H,N,L+4,R,B)),M.La&&(Ar(O,D,w,L,R,B),mr(U,F,j,H,N,L,R,B)),0<S&&(lr(O,D,w,L+4,R,B),dr(U,F,j,H,N,L+4,R,B)),M.La&&(pr(O,D,w,L,R,B),gr(U,F,j,H,N,L,R,B))}}if(a.ia&&alert("todo:DitherRow"),null!=c.put){if(C=16*P,P=16*(P+1),I?(c.y=a.sa,c.O=a.ta+b,c.f=a.qa,c.N=a.ra+T,c.ea=a.Ha,c.W=a.Ia+T):(C-=v,c.y=f,c.O=p,c.f=A,c.N=h,c.ea=g,c.W=m),y||(P-=v),P>c.o&&(P=c.o),c.F=null,c.J=null,null!=a.Fa&&0<a.Fa.length&&C<P&&(c.J=hn(a,c,C,P-C),c.F=a.mb,null==c.F&&0==c.F.length)){u=qe(a,3,"Could not decode alpha data.");break t}C<c.j&&(v=c.j-C,C=c.j,t(!(1&v)),c.O+=a.R*v,c.N+=a.B*(v>>1),c.W+=a.B*(v>>1),null!=c.F&&(c.J+=c.width*v)),C<P&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,null!=c.F&&(c.J+=c.v),c.ka=C-c.j,c.U=c.va-c.v,c.T=P-C,u=c.put(c))}s+1!=a.Ic||y||(r(a.sa,a.ta-l,f,p+16*a.R,l),r(a.qa,a.ra-d,A,h+8*a.B,d),r(a.Ha,a.Ia-d,g,m+8*a.B,d))}if(!u)return qe(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),a&=1}return a?(e.cb=0,a):0})(e,c)||(n=e.a)}}else n=e.a}0==n&&null!=h.Oa&&h.Oa.fd&&(n=Ln(h.ba))}h=n}l=0!=h?null:11>l?d.f.RGBA.eb:d.f.kb.y}else l=null;return l};var Hi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(e,t){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function l(e,t){return e[t+0]|e[t+1]<<8}function h(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function d(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new c;var f=[0],p=[0],A=[],g=new c,m=e,y=function(e,t){var n={},r=0,i=!1,o=0,s=0;if(n.frames=[],!
261/** @license
262   * Copyright (c) 2017 Dominik Homberger
263  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:
264  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
265  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.
266  https://webpjs.appspot.com
267  WebPRiffParser [email protected]
268  */
269function(e,t){for(var n=0;n<4;n++)if(e[t+n]!="RIFF".charCodeAt(n))return!0;return!1}(e,t)){for(d(e,t+=4),t+=8;t<e.length;){var a=u(e,t),c=d(e,t+=4);t+=4;var f=c+(1&c);switch(a){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(g=n.frames[r]).src_off=i?s:t-8,g.src_size=o+c+8,r++,i&&(i=!1,o=0,s=0);break;case"VP8X":(g=n.header={}).feature_flags=e[t];var p=t+4;g.canvas_width=1+h(e,p),p+=3,g.canvas_height=1+h(e,p),p+=3;break;case"ALPH":i=!0,o=f+8,s=t-8;break;case"ANIM":(g=n.header).bgcolor=d(e,t),p=t+4,g.loop_count=l(e,p),p+=2;break;case"ANMF":var A,g;(g=n.frames[r]={}).offset_x=2*h(e,t),t+=3,g.offset_y=2*h(e,t),t+=3,g.width=1+h(e,t),t+=3,g.height=1+h(e,t),t+=3,g.duration=h(e,t),t+=3,A=e[t++],g.dispose=1&A,g.blend=A>>1&1}"ANMF"!=a&&(t+=f)}return n}}(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var v=y.header?y.header:null,b=y.frames?y.frames:null;if(v){v.loop_counter=v.loop_count,f=[v.canvas_height],p=[v.canvas_width];for(var w=0;w<b.length&&0!=b[w].blend;w++);}var C=b[0],_=g.WebPDecodeRGBA(m,C.src_off,C.src_size,p,f);C.rgba=_,C.imgwidth=p[0],C.imgheight=f[0];for(var S=0;S<p[0]*f[0]*4;S++)A[S]=_[S];return this.width=p,this.height=f,this.data=A,this}
270/** ====================================================================
271 * @license
272 * jsPDF XMP metadata plugin
273 * Copyright (c) 2016 Jussi Utunen, [email protected]
274 *
275 * Permission is hereby granted, free of charge, to any person obtaining
276 * a copy of this software and associated documentation files (the
277 * "Software"), to deal in the Software without restriction, including
278 * without limitation the rights to use, copy, modify, merge, publish,
279 * distribute, sublicense, and/or sell copies of the Software, and to
280 * permit persons to whom the Software is furnished to do so, subject to
281 * the following conditions:
282 *
283 * The above copyright notice and this permission notice shall be
284 * included in all copies or substantial portions of the Software.
285 *
286 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
287 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
288 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
289 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
290 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
291 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
292 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
293 * ====================================================================
294 */function tu(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function nu(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}!function(e){var t,n,i,o,s,a,c,u,l,h=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new u,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new a,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new a,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,a=this.internal.Point,c=this.internal.Rectangle,u=this.internal.Matrix,l=new h}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),l.margin=t}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(e){s=e}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a}
vendor: 9,182 bytes, line 294
294,set:function(e){a=e}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(e){e instanceof h&&(l=e)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(e){l.path=e}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=f(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=f(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 d=null,p=null,A=null;Object.defineProperty(this,"fontFaces",{get:function(){return A},set:function(e){d=null,p=null,A=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(e))){var n=t[1];t[2];var r=t[3],i=t[4];t[5];var o=t[6],s=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===s?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===s?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var a=function(e){var t,n,r=[],i=e.trim();if(""===i)return Uc;if(i in Ec)return[Ec[i]];for(;""!==i;){switch(n=null,t=(i=kc(i)).charAt(0)){case'"':case"'":n=Bc(i.substring(1),t);break;default:n=Mc(i)}if(null===n)return Uc;if(r.push(n[0]),""!==(i=kc(n[1]))&&","!==i.charAt(0))return Uc;i=i.replace(/^,/,"")}return r}(o);if(this.fontFaces){var c=function(e,t){var n=e.getFontList(),r=JSON.stringify(n);if(null===d||p!==r){var i=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}(n);d=function(e){for(var t={},n=0;n<e.length;++n){var r=xc(e[n]),i=r.family,o=r.stretch,s=r.style,a=r.weight;t[i]=t[i]||{},t[i][o]=t[i][o]||{},t[i][o][s]=t[i][o][s]||{},t[i][o][s][a]=r}return t}(i.concat(t)),p=r}return d}(this.pdf,this.fontFaces),u=a.map(function(e){return{family:e,stretch:"normal",weight:r,style:n}}),l=function(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Pc,n.genericFontFamilies||{}),o=null,s=null,a=0;a<t.length;++a)if(i[(o=xc(t[a])).family]&&(o.family=i[o.family]),e.hasOwnProperty(o.family)){s=e[o.family];break}if(!(s=s||e[r]))throw new Error("Could not find a font-family for the rule '"+Ic(o)+"' and default family '"+r+"'.");if(s=function(e,t){if(t[e])return t[e];var n=Cc[e],r=n<=Cc.normal?-1:1,i=Tc(t,wc,n,r);if(!i)throw new Error("Could not find a matching font-stretch value for "+e);return i}(o.stretch,s),s=function(e,t){if(t[e])return t[e];for(var n=bc[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw new Error("Could not find a matching font-style for "+e)}(o.style,s),!(s=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=Sc[e],r=Tc(t,_c,n,e<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+e);return r}(o.weight,s)))throw new Error("Failed to resolve a font for the rule '"+Ic(o)+"'.");return s}(c,u);this.pdf.setFont(l.ref.name,l.ref.style)}else{var h="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(h="bold"),"italic"===n&&(h+="italic"),0===h.length&&(h="normal");for(var f="",A={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"},g=0;g<a.length;g++){if(void 0!==this.pdf.internal.getFont(a[g],h,{noFallback:!0,disableWarning:!0})){f=a[g];break}if("bolditalic"===h&&void 0!==this.pdf.internal.getFont(a[g],"bold",{noFallback:!0,disableWarning:!0}))f=a[g],h="bold";else if(void 0!==this.pdf.internal.getFont(a[g],"normal",{noFallback:!0,disableWarning:!0})){f=a[g],h="normal";break}}if(""===f)for(var m=0;m<a.length;m++)if(A[a[m]]){f=A[a[m]];break}f=""===f?"Times":f,this.pdf.setFont(f,h)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,U.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,U.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};d.prototype.setLineDash=function(e){this.lineDash=e},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){w.call(this,"fill",!1)},d.prototype.stroke=function(){w.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw Js.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(e,t)},d.prototype.closePath=function(){var e=new a(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===(0,r.A)(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new a(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw Js.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(n.x,n.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),w.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw Js.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new a(n,r)),o=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new a(i.x,i.y)},d.prototype.bezierCurveTo=function(e,t,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw Js.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new a(i,o)),c=this.ctx.transform.applyToPoint(new a(e,t)),u=this.ctx.transform.applyToPoint(new a(n,r));this.path.push({type:"bct",x1:c.x,y1:c.y,x2:u.x,y2:u.y,x:s.x,y:s.y}),this.ctx.lastPoint=new a(s.x,s.y)},d.prototype.arc=function(e,t,n,r,i,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i))throw Js.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to 
294jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new a(e,t));e=s.x,t=s.y;var c=this.ctx.transform.applyToPoint(new a(0,n)),u=this.ctx.transform.applyToPoint(new a(0,0));n=Math.sqrt(Math.pow(c.x-u.x,2)+Math.pow(c.y-u.y,2))}Math.abs(i-r)>=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 Js.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 Js.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.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 Js.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");A.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 Js.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;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},d.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(e){var t,n,r,i;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==o)t=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof e&&"#"!==e.charAt(0)){var s=new ia(e);e=s.ok?s.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:i,style:e}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},A=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw Js.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to 
294jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!p.call(this)){var i=R(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;I.call(this,{text:e,x:t,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},d.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw Js.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!A.call(this)){r=isNaN(r)?void 0:r;var i=R(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;I.call(this,{text:e,x:t,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},d.prototype.measureText=function(e){if("string"!=typeof e)throw Js.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),i=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw Js.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new u(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.rotate=function(e){if(isNaN(e))throw Js.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new u(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw Js.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new u(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.transform=function(e,t,n,r,i,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw Js.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new u(e,t,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(s)},d.prototype.setTransform=function(e,t,n,r,i,o){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new u(e,t,n,r,i,o)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(e,t,n,r,i,o,s,a,l){var h=this.pdf.getImageProperties(e),d=1,f=1,p=1,A=1;void 0!==r&&void 0!==a&&(p=a/r,A=l/i,d=h.width/r*a/r,f=h.height/i*l/i),void 0===o&&(o=t,s=n,t=0,n=0),void 0!==r&&void 0===a&&(a=r,l=i),void 0===r&&void 0===a&&(a=h.width,l=h.height);var y=this.ctx.transform.decompose(),w=R(y.rotate.shx),_=new u,S=(_=(_=(_=_.multiply(y.translate)).multiply(y.skew)).multiply(y.scale)).applyToRectangle(new c(o-t*p,s-n*A,r*d,i*f));if(this.autoPaging){for(var x,T=m.call(this,S),P=[],E=0;E<T.length;E+=1)-1===P.indexOf(T[E])&&P.push(T[E]);b(P);for(var I=P[0],k=P[P.length-1],B=I;B<k+1;B++){this.pdf.setPage(B);var M=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],O=1===B?this.posY+this.margin[0]:this.margin[0],D=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],N=1===B?0:D+(B-2)*L;if(0!==this.ctx.clip_path.length){var U=this.path;x=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(x,this.posX+this.margin[3],-N+O+this.ctx.prevPageLastElemOffset),C.call(this,"fill",!0),this.path=U}var F=JSON.parse(JSON.stringify(S));F=v([F],this.posX+this.margin[3],-N+O+this.ctx.prevPageLastElemOffset)[0];var j=(B>I||B<k)&&g.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,L,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",F.x,F.y,F.w,F.h,null,null,w),j&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(e,"JPEG",S.x,S.y,S.w,S.h,null,null,w)};var m=function(e,t,n){var r=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":r.push(Math.floor((e.y+i)/n)+1);break;case"arc":r.push(Math.floor((e.y+i-e.radius)/n)+1),r.push(Math.floor((e.y+i+e.radius)/n)+1);break;case"qct":var o=L(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case"bct":var s=N(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((s.y+i)/n)+1),r.push(Math.floor((s.y+s.h+i)/n)+1);break;
vendor: 11,588 bytes, lines 294-312
294case"rect":r.push(Math.floor((e.y+i)/n)+1),r.push(Math.floor((e.y+e.h+i)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)y.call(this);return r},y=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},v=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case"bct":e[r].x2+=t,e[r].y2+=n;case"qct":e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},b=function(e){return e.sort(function(e,t){return e-t})},w=function(e,t){var n=this.fillStyle,r=this.strokeStyle,i=this.lineCap,o=this.lineWidth,s=Math.abs(o*this.ctx.transform.scaleX),a=this.lineJoin;if(this.autoPaging){for(var c,u,l=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),d=[],f=0;f<h.length;f++)if(void 0!==h[f].x)for(var p=m.call(this,h[f]),A=0;A<p.length;A+=1)-1===d.indexOf(p[A])&&d.push(p[A]);for(var w=0;w<d.length;w++)for(;this.pdf.internal.getNumberOfPages()<d[w];)y.call(this);b(d);for(var _=d[0],S=d[d.length-1],x=_;x<S+1;x++){this.pdf.setPage(x),this.fillStyle=n,this.strokeStyle=r,this.lineCap=i,this.lineWidth=s,this.lineJoin=a;var T=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===x?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],k=1===x?0:E+(x-2)*I;if(0!==this.ctx.clip_path.length){var B=this.path;c=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(c,this.posX+this.margin[3],-k+P+this.ctx.prevPageLastElemOffset),C.call(this,e,!0),this.path=B}if(u=JSON.parse(JSON.stringify(l)),this.path=v(u,this.posX+this.margin[3],-k+P+this.ctx.prevPageLastElemOffset),!1===t||0===x){var M=(x>_||x<S)&&g.call(this);M&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],T,I,null).clip().discardPath()),C.call(this,e,t),M&&this.pdf.restoreGraphicsState()}this.lineWidth=o}this.path=l}else this.lineWidth=s,C.call(this,e,t),this.lineWidth=o},C=function(e,t){if(("stroke"!==e||t||!A.call(this))&&("stroke"===e||t||!p.call(this))){for(var n,r,i=[],o=this.path,s=0;s<o.length;s++){var a=o[s];switch(a.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:a,deltas:[],abs:[]});break;case"lt":var c=i.length;if(o[s-1]&&!isNaN(o[s-1].x)&&(n=[a.x-o[s-1].x,a.y-o[s-1].y],c>0))for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(n),i[c-1].abs.push(a);break}break;case"bct":n=[a.x1-o[s-1].x,a.y1-o[s-1].y,a.x2-o[s-1].x,a.y2-o[s-1].y,a.x-o[s-1].x,a.y-o[s-1].y],i[i.length-1].deltas.push(n);break;case"qct":var u=o[s-1].x+2/3*(a.x1-o[s-1].x),l=o[s-1].y+2/3*(a.y1-o[s-1].y),h=a.x+2/3*(a.x1-a.x),d=a.y+2/3*(a.y1-a.y),f=a.x,g=a.y;n=[u-o[s-1].x,l-o[s-1].y,h-o[s-1].x,d-o[s-1].y,f-o[s-1].x,g-o[s-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(a)}}r=t?null:"stroke"===e?"stroke":"fill";for(var m=!1,y=0;y<i.length;y++)if(i[y].arc)for(var v=i[y].abs,b=0;b<v.length;b++){var w=v[b];"arc"===w.type?x.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,t,!m):k.call(this,w.x,w.y),m=!0}else if(!0===i[y].close)this.pdf.internal.out("h"),m=!1;else if(!0!==i[y].begin){var C=i[y].start.x,_=i[y].start.y;B.call(this,i[y].deltas,C,_),m=!0}r&&T.call(this,r),t&&P.call(this)}},_=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}},S=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var x=function(e,t,n,r,i,o,s,a,c){for(var u=O.call(this,n,r,i,o),l=0;l<u.length;l++){var h=u[l];0===l&&(c?E.call(this,h.x1+e,h.y1+t):k.call(this,h.x1+e,h.y1+t)),M.call(this,e,t,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}a?P.call(this):T.call(this,s)},T=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},P=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(e,t){this.pdf.internal.out(n(e)+" "+i(t)+" m")},I=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n,r,i,o=this.pdf.getTextDimensions(e.text),s=_.call(this,e.y),l=S.call(this,s)-o.h,h=this.ctx.transform.applyToPoint(new a(e.x,s));if(this.autoPaging){var d=this.ctx.transform.decompose(),f=new u;f=(f=(f=f.multiply(d.translate)).multiply(d.skew)).multiply(d.scale);for(var p=this.ctx.transform.applyToRectangle(new c(e.x,s,o.w,o.h)),A=f.applyToRectangle(new c(e.x,l,o.w,o.h)),y=m.call(this,A),w=[],x=0;x<y.length;x+=1)-1===w.indexOf(y[x])&&w.push(y[x]);b(w);for(var T=w[0],P=w[w.length-1],E=T;E<P+1;E++){this.pdf.setPage(E);var I=1===E?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],B=this.pdf.internal.pageSize.height-this.margin[2],M=B-this.margin[0],O=this.pdf.internal.pageSize.width-this.margin[1],D=O-this.margin[3],R=1===E?0:k+(E-2)*M;if(0!==this.ctx.clip_path.length){var L=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(n,this.posX+this.margin[3],-1*R+I),C.call(this,"fill",!0),this.path=L}var N=v([JSON.parse(JSON.stringify(A))],this.posX+this.margin[3],-R+I+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale);var U="text"!==this.autoPaging;if(U||N.y+N.h<=B){if(U||N.y>=I&&N.x<=O){var F=U?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||O-N.x)[0],j=v([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-R+I+this.ctx.prevPageLastElemOffset)[0],H=U&&(E>T||E<P)&&g.call(this);H&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],D,M,null).clip().discardPath()),this.pdf.text(F,j.x,j.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),H&&this.pdf.restoreGraphicsState()}}else N.y<B&&(this.ctx.prevPageLastElemOffset+=B-N.y);e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)}}else e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale),this.pdf.text(e.text,h.x+this.posX,h.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)},k=function(e,t,r,o){r=r||0,o=o||0,this.pdf.internal.out(n(e+r)+" "+i(t+o)+" l")},B=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},M=function(e,n,r,i,a,c,u,l){this.pdf.internal.out([t(o(r+e)),t(s(i+n)),t(o(a+e)),t(s(c+n)),t(o(u+e)),t(s(l+n)),"c"].join(" "))},O=function(e,t,n,r){for(var i=2*Math.PI,o=Math.PI/2;t>n;)t-=i;var s=Math.abs(n-t);s<i&&r&&(s=i-s);for(var a=[],c=r?-1:1,u=t;s>1e-5;){var l=u+c*Math.min(s,o);a.push(D.call(this,e,u,l)),s-=Math.abs(l-u),u=l}return a},D=function(e,t,n){var r=(n-t)/2,i=e*Math.cos(r),o=e*Math.sin(r),s=i,a=-o,c=s*s+a*a,u=c+s*i+a*o,l=4/3*(Math.sqrt(2*c*u)-u)/(s*o-a*i),h=s-l*a,d=a+l*s,f=h,p=-d,A=r+t,g=Math.cos(A),m=Math.sin(A);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:h*g-d*m,y2:h*m+d*g,x3:f*g-p*m,y3:f*m+p*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},R=function(e){return 180*e/Math.PI},L=function(e,t,n,r,i,o){var s=e+.5*(n-e),a=t+.5*(r-t),u=i+.5*(n-i),l=o+.5*(r-o),h=Math.min(e,i,s,u),d=Math.max(e,i,s,u),f=Math.min(t,o,a,l),p=Math.max(t,o,a,l);return new c(h,f,d-h,p-f)},N=function(e,t,n,r,i,o,s,a){var u,l,h,d,f,p,A,g,m,y,v,b,w,C,_=n-e,S=r-t,x=i-n,T=o-r,P=s-i,E=a-o;for(l=0;l<41;l++)m=(A=(h=e+(u=l/40)*_)+u*((f=n+u*x)-h))+u*(f+u*(i+u*P-f)-A),y=(g=(d=t+u*S)+u*((p=r+u*T)-d))+u*(p+u*(o+u*E-p)-g),0==l?(v=m,b=y,w=m,C=y):(v=Math.min(v,m),b=Math.min(b,y),w=Math.max(w,m),C=Math.max(C,y));return new c(Math.round(v),Math.round(b),Math.round(w-v),Math.round(C-b))},U=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)}}}(ka.API),
295/**
296 * @license
297 * jsPDF filters PlugIn
298 * Copyright (c) 2014 Aras Abbasi
299 *
300 * Licensed under the MIT License.
301 * http://opensource.org/licenses/mit-license
302 */
303function(e){var t=function(e){var t,n,r,i,o,s,a,c,u,l;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))?(s=(o=((o=((o=((o=(o-(l=o%85))/85)-(u=o%85))/85)-(c=o%85))/85)-(a=o%85))/85)%85,n.push(s+33,a+33,c+33,u+33,l+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,s=String,a="length",c=255,u="charCodeAt",l="slice",h="replace";for(e[l](-2),e=e[l](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,o=(e+=t="uuuuu"[l](e[a]%5||5))[a];o>i;i+=5)n=52200625*(e[u](i)-33)+614125*(e[u](i+1)-33)+7225*(e[u](i+2)-33)+85*(e[u](i+3)-33)+(e[u](i+4)-33),r.push(c&n>>24,c&n>>16,c&n>>8,c&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[a]),s.fromCharCode.apply(s,r)},r=function(e){return e.split("").map(function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=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<e.length;r+=2)n+=String.fromCharCode("0x"+(e[r]+e[r+1]));return n},o=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=H(t)).reduce(function(e,t){return e+String.fromCharCode(t)},"")};e.processDataByFilters=function(e,s){var a=0,c=e||"",u=[];for("string"==typeof(s=s||[])&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":c=n(c),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=o(c),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[a]+'" is not implemented')}return{data:c,reverseChain:u.reverse().join(" ")}}}(ka.API),
304/**
305 * @license
306 * jsPDF fileloading PlugIn
307 * Copyright (c) 2018 Aras Abbasi ([email protected])
308 *
309 * Licensed under the MIT License.
310 * http://opensource.org/licenses/mit-license
311 */
312function(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;i<t;i+=1)n.push(r(255&e.charCodeAt(i)));return n.join("")};if(r.open("GET",e,!t),r.overrideMimeType("text/plain;
312 charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?n(o(this.responseText)):n(void 0)}),r.send(null),t&&200===r.status)return o(r.responseText)}(e,t,n)}catch(m){}return r}(e,t,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(ka.API),function(e){function t(){return(Zs.html2canvas?Promise.resolve(Zs.html2canvas):n.e(8096).then(n.t.bind(n,20354,23))).catch(function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))}).then(function(e){return e.default?e.default:e})}function i(){return(Zs.DOMPurify?Promise.resolve(Zs.DOMPurify):n.e(8096).then(n.bind(n,99418))).catch(function(e){return Promise.reject(new Error("Could not load dompurify: "+e))}).then(function(e){return e.default?e.default:e})}var o=function(e){var t=(0,r.A)(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},s=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},a=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(e(i,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft},!0)),r},c=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(e,t){return e.__proto__=t||c.prototype,e},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch(o(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e),t){case"string":return this.then(i).then(function(t){return this.set({src:s("div",{innerHTML:e,dompurify:t})})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}})},c.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},c.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then(function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var o=0;o<n.length;++o){var s=n[o],a=s.src.find(function(e){return"truetype"===e.format});a&&t.addFont(a.url,s.ref.name,s.ref.style)}
vendor: 4,673 bytes, line 312
312return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,t.context2d.save(!0),e(this.prop.container,i)}).then(function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},c.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},c.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}})},c.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(e){if("object"!==o(e))return this;var t=Object.keys(e||{}).map(function(t){if(t in c.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},c.prototype.get=function(e,t){return this.then(function(){var n=e in c.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},c.prototype.setMargin=function(e){return this.then(function(){switch(o(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e}).then(this.setPageSize)},c.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e=e||ka.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},c.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},c.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},c.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then;var r=this;e&&(e=e.bind(r)),t&&(t=t.bind(r));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:c.convert(Object.assign({},r),Promise.prototype),o=n.call(i,e,t);return c.convert(o,r.__proto__)},c.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},c.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},c.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return c.convert(t,this)},c.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},c.prototype.error=function(e){return this.then(function(){throw new Error(e)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.exp
vendor: 7,242 bytes, lines 312-326
312ort=c.prototype.output,c.prototype.run=c.prototype.then,ka.getPageSize=function(e,t,n){if("object"===(0,r.A)(e)){var i=e;e=i.orientation,t=i.unit||t,n=i.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var o,s=(""+n).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+t}var c,u=0,l=0;if(a.hasOwnProperty(s))u=a[s][1]/o,l=a[s][0]/o;else try{u=n[1],l=n[0]}catch(ia){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",l>u&&(c=l,l=u,u=c);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",u>l&&(c=l,l=u,u=c)}return{width:l,height:u,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(xc):null;var n=new c(t);return t.worker?n:n.from(e).doCallback()}}(ka.API),ka.API.addJS=function(e){var t,n,r=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if("("===r||")"===r){for(var i=0,o=n-1;o>=0&&"\\"===e[o];o--)i++;t+=i%2==0?"\\"+r:r}else t+=r}return t}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==t&&void 0!==n&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this
313/**
314 * @license
315 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
316 *
317 * Licensed under the MIT License.
318 * http://opensource.org/licenses/mit-license
319 */},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<r.length;i++){var o=r[i],s=n.exec(o);if(null!=s){var a=s[1];e.internal.newObjectDeferredBegin(a,!1)}e.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var l=e.internal.newObject();u.push(l);var h=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var d=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<u.length;i++)e.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+d+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.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;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(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;r<t.children.length;r++){var i=t.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),i.children.length>0&&(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 s=e.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var a=0;a<t.children.length;a++)this.renderItems(t.children[a])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(ka.API),
320/**
321 * @license
322 *
323 * Licensed under the MIT License.
324 * http://opensource.org/licenses/mit-license
325 */
326function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,i,o,s){var a,c=this.decode.DCT_DECODE,u=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=o||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,a=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),i=e.length,o={width:0,height:0,numcomponents:1},s=4;s<i;s+=2){if(s+=r,-1!==t.indexOf(e.charCodeAt(s+1))){n=256*e.charCodeAt(s+5)+e.charCodeAt(s+6),o={width:256*e.charCodeAt(s+7)+e.charCodeAt(s+8),height:n,numcomponents:e.charCodeAt(s+9)};break}r=256*e.charCodeAt(s+2)+e.charCodeAt(s+3)}return o}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),a.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:e,width:a.width,height:a.height,colorSpace:s,bitsPerComponent:8,filter:c,index:n,alias:r}}return u}}(ka.API),ka.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,o=Xs(e,{checkCrc:!0}),s=o.width,a=o.height,c=o.channels,u=o.palette,l=o.depth;
vendor: 8,533 bytes, lines 326-342
326i=u&&1===c?function(e){for(var t=e.width,n=e.height,r=e.data,i=e.palette,o=e.depth,s=!1,a=[],c=[],u=void 0,l=!1,h=0,d=0;d<i.length;d++){var f=q(i[d],4),p=f[0],A=f[1],g=f[2],m=f[3];a.push(p,A,g),null!=m&&(0===m?(h++,c.length<1&&c.push(d)):m<255&&(l=!0))}if(l||h>1){s=!0,c=void 0;var y=t*n;u=new Uint8Array(y);for(var v=new DataView(r.buffer),b=0;b<y;b++){var w=Gc(v,b,o),C=q(i[w],4)[3];u[b]=C}}else 0===h&&(c=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:s?8:void 0,colorBytes:r,alphaBytes:u,needSMask:s,palette:a,mask:c}}(o):2===c||4===c?function(e){for(var t=e.data,n=e.width,r=e.height,i=e.channels,o=e.depth,s=2===i?"DeviceGray":"DeviceRGB",a=i-1,c=n*r,u=a,l=c*u,h=1*c,d=Math.ceil(l*o/8),f=Math.ceil(h*o/8),p=new Uint8Array(d),A=new Uint8Array(f),g=new DataView(t.buffer),m=new DataView(p.buffer),y=new DataView(A.buffer),v=!1,b=0;b<c;b++){for(var w=b*i,C=0;C<u;C++)qc(m,Gc(g,w+C,o),b*u+C,o);var _=Gc(g,w+u,o);_<(1<<o)-1&&(v=!0),qc(y,_,1*b,o)}return{colorSpace:s,colorsPerPixel:a,sMaskBitsPerComponent:v?o:void 0,colorBytes:p,alphaBytes:A,needSMask:v}}(o):function(e){var t=e.data,n=1===e.channels?"DeviceGray":"DeviceRGB";return{colorSpace:n,colorsPerPixel:"DeviceGray"===n?1:3,colorBytes:t instanceof Uint16Array?function(e){for(var t=e.length,n=new Uint8Array(2*t),r=new DataView(n.buffer,n.byteOffset,n.byteLength),i=0;i<t;i++)r.setUint16(2*i,e[i],!1);return n}(t):t,needSMask:!1}}(o);var h,d,f,p=i,A=p.colorSpace,g=p.colorsPerPixel,m=p.sMaskBitsPerComponent,y=p.colorBytes,v=p.alphaBytes,b=p.needSMask,w=p.palette,C=p.mask,_=null;return r!==ka.API.image_compression.NONE&&"function"==typeof H?(_=function(e){var t;switch(e){case ka.API.image_compression.FAST:t=11;break;case ka.API.image_compression.MEDIUM:t=13;break;case ka.API.image_compression.SLOW:t=14;break;default:t=12}return t}(r),h=this.decode.FLATE_DECODE,d="/Predictor ".concat(_," /Colors ").concat(g," /BitsPerComponent ").concat(l," /Columns ").concat(s),e=Fc(y,Math.ceil(s*g*l/8),g,l,r),b&&(f=Fc(v,Math.ceil(s*m/8),1,m,r))):(h=void 0,d=void 0,e=y,b&&(f=v)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:n,data:e,index:t,filter:h,decodeParameters:d,transparency:C,palette:w,sMask:f,predictor:_,width:s,height:a,bitsPerComponent:l,sMaskBitsPerComponent:m,colorSpace:A}}},function(e){e.processGIF89A=function(t,n,r,i){var o=new Xc(t),s=o.width,a=o.height,c=[];o.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:s,height:a},l=new $c(100).encode(u,100);return e.processJPEG.call(this,l,n,r,i)},e.processGIF87A=e.processGIF89A}(ka.API),Jc.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Jc.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){Js.log("bit decode error:"+n)}},Jc.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var c=this.palette[o>>7-a&1];this.data[s+4*a]=c.blue,this.data[s+4*a+1]=c.green,this.data[s+4*a+2]=c.red,this.data[s+4*a+3]=255}0!==n&&(this.pos+=4-n)}},Jc.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<e;i++){var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*i*4,a=o>>4,c=15&o,u=this.palette[a];if(this.data[s]=u.blue,this.data[s+1]=u.green,this.data[s+2]=u.red,this.data[s+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[s+4]=u.blue,this.data[s+4+1]=u.green,this.data[s+4+2]=u.red,this.data[s+4+3]=255}0!==t&&(this.pos+=4-t)}},Jc.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<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var s=this.palette[i];this.data[o]=s.red,this.data[o+1]=s.green,this.data[o+2]=s.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==e&&(this.pos+=4-e)}},Jc.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&t)/t*255|0,c=(o>>10&t)/t*255|0,u=o>>15?255:0,l=r*this.width*4+4*i;this.data[l]=c,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=u}this.pos+=e}},Jc.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<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&t)/t*255|0,c=(s>>5&n)/n*255|0,u=(s>>11)/t*255|0,l=i*this.width*4+4*o;this.data[l]=u,this.data[l+1]=c,this.data[l+2]=a,this.data[l+3]=255}this.pos+=e}},Jc.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<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},Jc.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=s}},Jc.prototype.getData=function(){return this.data},
327/**
328 * @license
329 * Copyright (c) 2018 Aras Abbasi
330 *
331 * Licensed under the MIT License.
332 * http://opensource.org/licenses/mit-license
333 */
334function(e){e.processBMP=function(t,n,r,i){var o=new Jc(t,!1),s=o.width,a=o.height,c={data:o.getData(),width:s,height:a},u=new $c(100).encode(c,100);return e.processJPEG.call(this,u,n,r,i)}}(ka.API),eu.prototype.getData=function(){return this.data},
335/**
336 * @license
337 * Copyright (c) 2019 Aras Abbasi
338 *
339 * Licensed under the MIT License.
340 * http://opensource.org/licenses/mit-license
341 */
342function(e){e.processWEBP=function(t,n,r,i){var o=new eu(t),s=o.width,a=o.height,c={data:o.getData(),width:s,height:a},u=new $c(100).encode(c,100);return e.processJPEG.call(this,u,n,r,i)}}(ka.API),ka.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,o=new Uint8Array(i/4*3),s=new Uint8Array(i/4),a=0,c=0,u=0;u<i;u+=4){var l=r[u],h=r[u+1],d=r[u+2],f=r[u+3];o[a++]=l,o[a++]=h,o[a++]=d,s[c++]=f}var p=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:p,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},ka.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq
vendor: 8,476 bytes, line 342
342:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Oc=ka.API,Dc=Oc.getCharWidthsArray=function(e,t){var n,i,o=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),a=t.charSpace||this.internal.getCharSpace(),c=t.widths?t.widths:o.metadata.Unicode.widths,u=c.fof?c.fof:1,l=t.kerning?t.kerning:o.metadata.Unicode.kerning,h=l.fof?l.fof:1,d=!1!==t.doKerning,f=0,p=e.length,A=0,g=c[0]||u,m=[];for(n=0;n<p;n++)i=e.charCodeAt(n),"function"==typeof o.metadata.widthOfString?m.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+a*(1e3/s)||0)/1e3):(f=d&&"object"===(0,r.A)(l[i])&&!isNaN(parseInt(l[i][A],10))?l[i][A]/h:0,m.push((c[i]||g)/u+f)),A=i;return m},Rc=Oc.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Oc.processArabic&&(e=Oc.processArabic(e)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(e,n,i)/n:Dc.apply(this,arguments).reduce(function(e,t){return e+t},0)},Lc=function(e,t,n,r){for(var i=[],o=0,s=e.length,a=0;o!==s&&a+t[o]<n;)a+=t[o],o++;i.push(e.slice(0,o));var c=o;for(a=0;o!==s;)a+t[o]>r&&(i.push(e.slice(c,o)),a=0,c=o),a+=t[o],o++;return c!==o&&i.push(e.slice(c,o)),i},Nc=function(e,t,n){n||(n={});var r,i,o,s,a,c,u,l=[],h=[l],d=n.textIndent||0,f=0,p=0,A=e.split(" "),g=Dc.apply(this,[" ",n])[0];if(c=-1===n.lineIndent?A[0].length+2:n.lineIndent||0){var m=Array(c).join(" "),y=[];A.map(function(e){(e=e.split(/\s*\n/)).length>1?y=y.concat(e.map(function(e,t){return(t&&e.length?"\n":"")+e})):y.push(e[0])}),A=y,c=Rc.apply(this,[m,n])}for(o=0,s=A.length;o<s;o++){var v=0;if(r=A[o],c&&"\n"==r[0]&&(r=r.substr(1),v=1),d+f+(p=(i=Dc.apply(this,[r,n])).reduce(function(e,t){return e+t},0))>t||v){if(p>t){for(a=Lc.apply(this,[r,i,t-(d+f),t]),l.push(a.shift()),l=[a.pop()];a.length;)h.push([a.shift()]);p=i.slice(r.length-(l[0]?l[0].length:0)).reduce(function(e,t){return e+t},0)}else l=[r];h.push(l),d=p+c,f=g}else l.push(r),d+=f+p,f=g}return u=c?function(e,t){return(t?m:"")+e.join(" ")}:function(e){return e.join(" ")},h.map(u)},Oc.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),n="Unicode";return t.metadata[n]?{widths:t.metadata[n].widths||{0:1},kerning:t.metadata[n].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 s=1*this.internal.scaleFactor*t/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var a,c,u=[];for(a=0,c=r.length;a<c;a++)u=u.concat(Nc.apply(this,[r[a],s,o]));return u},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",i={},o={},s=0;s<16;s++)i[n[s]]=t[s],o[t[s]]=n[s];var a=function(e){return"0x"+parseInt(e,10).toString(16)},c=e.__fontmetrics__.compress=function(e){var t,n,i,s,u=["{"];for(var l in e){if(t=e[l],isNaN(parseInt(l,10))?n="'"+l+"'":(l=parseInt(l,10),n=(n=a(l).slice(2)).slice(0,-1)+o[n.slice(-1)]),"number"==typeof t)t<0?(i=a(t).slice(3),s="-"):(i=a(t).slice(2),s=""),i=s+i.slice(0,-1)+o[i.slice(-1)];else{if("object"!==(0,r.A)(t))throw new Error("Don't know what to do with value type "+(0,r.A)(t)+".");i=c(t)}u.push(n+i)}return u.push("}"),u.join("")},u=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,n,r,o,s={},a=1,c=s,u=[],l="",h="",d=e.length-1,f=1;f<d;f+=1)"'"==(o=e[f])?t?(r=t.join(""),t=void 0):t=[]:t?t.push(o):"{"==o?(u.push([c,r]),c={},r=void 0):"}"==o?((n=u.pop())[0][n[1]]=c,r=void 0,c=n[0]):"-"==o?a=-1:void 0===r?i.hasOwnProperty(o)?(l+=i[o],r=parseInt(l,16)*a,a=1,l=""):l+=o:i.hasOwnProperty(o)?(h+=i[o],c[r]=parseInt(h,16)*a,a=1,r=void 0,h=""):h+=o;return s},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l
vendor: 14,975 bytes, line 342
342}},d={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=d.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=h.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(
vendor: 6,521 bytes, lines 342-348
342ka.API),
343/**
344 * @license
345 * Licensed under the MIT License.
346 * http://opensource.org/licenses/mit-license
347 */
348function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===o.existsFileInVFS(i.postScriptName)?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(oa(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(ka),ka.API.addSvgAsImage=function(e,t,r,i,o,s,a,c){if(isNaN(t)||isNaN(r))throw Js.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw Js.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=o;var l=u.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(Zs.canvg?Promise.resolve(Zs.canvg):n.e(8096).then(n.bind(n,61132))).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e}).then(function(t){return t.fromString(l,e,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(e){return e.render(h)}).then(function(){d.addImage(u.toDataURL("image/jpeg",1),t,r,i,o,a,c)})},ka.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},ka.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var i,o,s,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(a),u=[],l=0,h=0,d=0;function f(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var p=c.length;for(d=0;d<p;d+=1)n[c[d]].value=n[c[d]].defaultValue,n[c[d]].explicitSet=!1}if("object"===(0,r.A)(e))for(o in e)if(s=e[o],f(c,o)&&void 0!==s){if("boolean"===n[o].type&&"boolean"==typeof s)n[o].value=s;else if("name"===n[o].type&&f(n[o].valueSet,s))n[o].value=s;else if("integer"===n[o].type&&Number.isInteger(s))n[o].value=s;else if("array"===n[o].type){for(l=0;l<s.length;l+=1)if(i=!0,1===s[l].length&&"number"==typeof s[l][0])u.push(String(s[l]-1));else if(s[l].length>1){for(h=0;h<s[l].length;h+=1)"number"!=typeof s[l][h]&&(i=!1);!0===i&&u.push([s[l][0]-1,s[l][1]-1].join(" "))}n[o].value="["+u.join(" ")+"]"}else n[o].value=n[o].defaultValue;n[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},ka.API.addMetadata=function(e,t){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceUri:null!=t?t:"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof t&&t},this.internal.events.subscribe("putCatalog",nu),this.internal.events.subscribe("postPutResources",tu)),this},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=[""],s=0,a=e.length;s<a;
vendor: 39,082 bytes, lines 348-362
348++s){if(n=t.metadata.characterToGlyph(e.charCodeAt(s)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(s),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},r=function(e){var t,n,r,i,o,s,a;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],s=0,a=(n=Object.keys(e).sort(function(e,t){return e-t})).length;s<a;s++)t=n[s],r.length>=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,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var a=n.metadata.Unicode.widths,c=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),u="",l=0;l<c.length;l++)u+=String.fromCharCode(c[l]);var h=o();s({data:u,addLength1:!0,objectId:h}),i("endobj");var d=o();s({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),i("endobj");var f=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+Sa(n.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var p=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+Sa(n.fontName)),i("/FontDescriptor "+f+" 0 R"),i("/W "+e.API.PDFObject.convert(a)),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 "+d+" 0 R"),i("/BaseFont /"+Sa(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+p+" 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,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var a=n.metadata.rawData,c="",u=0;u<a.length;u++)c+=String.fromCharCode(a[u]);var l=o();s({data:c,addLength1:!0,objectId:l}),i("endobj");var h=o();s({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var d=o();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+l+" 0 R"),i("/Flags 96"),i("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+Sa(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=o();for(var f=0;f<n.metadata.hmtx.widths.length;f++)n.metadata.hmtx.widths[f]=parseInt(n.metadata.hmtx.widths[f]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+Sa(n.fontName)+"/FontDescriptor "+d+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(t)}]);var i=function(e){var t,r=e.text||"",i=e.x,o=e.y,s=e.options||{},a=e.mutex||{},c=a.pdfEscape,u=a.activeFontKey,l=a.fonts,h=u,d="",f=0,p="",A=l[h].encoding;if("Identity-H"!==l[h].encoding)return{text:r,x:i,y:o,options:s,mutex:a};for(p=r,h=u,Array.isArray(r)&&(p=r[0]),f=0;f<p.length;f+=1)l[h].metadata.hasOwnProperty("cmap")&&(t=l[h].metadata.cmap.unicode.codeMap[p[f].charCodeAt(0)]),t||p[f].charCodeAt(0)<256&&l[h].metadata.hasOwnProperty("Unicode")?d+=p[f]:d+="";var g="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===A?g=c(d,h).split("").map(function(e){return e.charCodeAt(0).toString(16)}).join(""):"Identity-H"===A&&(g=n(d,l[h])),a.isHex=!0,{text:g,x:i,y:o,options:s,mutex:a}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var o=0;for(o=0;o<t.length;o+=1)Array.isArray(t[o])&&3===t[o].length?n.push([i(Object.assign({},r,{text:t[o][0]})).text,t[o][1],t[o][2]]):n.push(i(Object.assign({},r,{text:t[o]})).text);e.text=n}else e.text=i(Object.assign({},r,{text:t})).text}])}(ka),
349/**
350 * @license
351 * jsPDF virtual FileSystem functionality
352 *
353 * Licensed under the MIT License.
354 * http://opensource.org/licenses/mit-license
355 */
356function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(ka.API),
357/**
358 * @license
359 * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
360 * MIT License
361 */
362function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,i,o,s,a,c,u=t,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],A=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)$/),g=!1,m=0;this.__bidiEngine__={};var y=function(e){var t=e.charCodeAt(),n=t>>8,r=f[n];return void 0!==r?u[256*r+(255&t)]:252===n||253===n?"AL":A.test(n)?"L":8===n?"R":"N"},v=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=y(e.charAt(n))))return!1;if("R"===t)return!0}return!1},b=function(e,t,s,a){var c,u,l,h,d=t[a];switch(d){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(d="AN");break;case"AL":g=!0,d="R";break;case"WS":case"BN":d="N";break;case"CS":a<1||a+1>=t.length||"EN"!==(c=s[a-1])&&"AN"!==c||"EN"!==(u=t[a+1])&&"AN"!==u?d="N":g&&(u="AN"),d=u===c?u:"N";break;case"ES":d="EN"===(c=a>0?s[a-1]:"B")&&a+1<t.length&&"EN"===t[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===s[a-1]){d="EN";break}if(g){d="N";break}for(l=a+1,h=t.length;l<h&&"ET"===t[l];)l++;d=l<h&&"EN"===t[l]?"EN":"N";break;case"NSM":if(i&&!o){for(h=t.length,l=a+1;l<h&&"NSM"===t[l];)l++;if(l<h){var f=e[a],p=f>=1425&&f<=2303||64286===f;if(c=t[l],p&&("R"===c||"AL"===c)){d="R";break}}}d=a<1||"B"===(c=t[a-1])?"N":s[a-1];break;case"B":g=!1,n=!0,d=m;break;case"S":r=!0,d="N"}return d},w=function(e,t,n){var r=e.split("");return n&&C(r,n,{hiLevel:m}),r.reverse(),t&&t.reverse(),r.join("")},C=function(e,t,i){var o,s,a,c,u,f=-1,p=e.length,A=0,v=[],w=m?h:l,C=[];for(g=!1,n=!1,r=!1,s=0;s<p;s++)C[s]=y(e[s]);for(a=0;a<p;a++){if(u=A,v[a]=b(e,C,v,a),o=240&(A=w[u][d[v[a]]]),A&=15,t[a]=c=w[A][5],o>0)if(16===o){for(s=f;s<a;s++)t[s]=1;f=-1}else f=-1;if(w[A][6])-1===f&&(f=a);else if(f>-1){for(s=f;s<a;s++)t[s]=c;f=-1}"B"===C[a]&&(t[a]=0),i.hiLevel|=c}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=m;for(var i=r-1;i>=0&&"WS"===e[i];i--)t[i]=m}}(C,t,p)},_=function(e,t,r,i,o){if(!(o.hiLevel<e)){if(1===e&&1===m&&!n)return t.reverse(),void(r&&r.reverse());for(var s,a,c,u,l=t.length,h=0;h<l;){if(i[h]>=e){for(c=h+1;c<l&&i[c]>=e;)c++;for(u=h,a=c-1;u<a;u++,a--)s=t[u],t[u]=t[a],t[a]=s,r&&(s=r[u],r[u]=r[a],r[a]=s);h=c}h++}}},S=function(e,t,n){var r=e.split(""),i={hiLevel:m};return n||(n=[]),C(r,n,i),function(e,t,n){if(0!==n.hiLevel&&c)for(var r,i=0;i<e.length;i++)1===t[i]&&(r=p.indexOf(e[i]))>=0&&(e[i]=p[r+1])}(r,n,i),_(2,r,t,n,i),_(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<e.length;n++)t[n]=n;void 0===o&&(o=v(e)),void 0===a&&(a=v(e))}(e,t),i||!s||a)if(i&&s&&o^a)m=o?1:0,e=w(e,t,n);else if(!i&&s&&a)m=o?1:0,e=S(e,t,n),e=w(e,t);else if(!i||o||s||a){if(i&&!s&&o^a)e=w(e,t),o?(m=0,e=S(e,t,n)):(m=1,e=S(e,t,n),e=w(e,t));else if(i&&o&&!s&&a)m=1,e=S(e,t,n),e=w(e,t);else if(!i&&!s&&o^a){var r=c;o?(m=1,e=S(e,t,n),m=0,c=!1,e=S(e,t,n),c=r):(m=0,e=S(e,t,n),e=w(e,t),m=1,c=!1,e=S(e,t,n),c=r,e=w(e,t))}}else m=0,e=S(e,t,n);else m=o?1:0,e=S(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(i=e.isInputVisual,s=e.isOutputVisual,o=e.isInputRtl,a=e.isOutputRtl,c=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text;e.x,e.y;var r=e.options||{};e.mutex,r.lang;var i=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var o=0;for(i=[],o=0;o<t.length;o+=1)"[object Array]"===Object.prototype.toString.call(t[o])?i.push([n.doBidiReorder(t[o][0]),t[o][1],t[o][2]]):i.push([n.doBidiReorder(t[o])]);e.text=i}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(ka),ka.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new iu(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new _u(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new ou(this.contents),this.head=new cu(this),this.name=new Au(this),this.cmap=new lu(this),this.toUnicode={},this.hhea=new hu(this),this.maxp=new gu(this),this.hmtx=new mu(this),this.post=new fu(this),this.os2=new du(this),this.loca=new Cu(this),this.glyf=new vu(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,i;for(i=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],i.push(Math.round(e*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(t=r>>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,s;for(o=0,i=0,s=(e=""+e).length;0<=s?i<s:i>s;i=0<=s?++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 ru,iu=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?t<e:t>e;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?t<n:t>n;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,s,a;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),a=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^s)+(255^a)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*i+65536*o+256*s+a},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?n<e:n>e;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;n<r;n++)t=e[n],i.push(this.writeByte(t));return i},e}(),ou=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;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,s,a,c,u,l,h,d,f,p;for(p in d=Object.keys(t).length,a=Math.log(2),l=16*Math.floor(Math.log(d)/a),o=Math.floor(l/a),u=16*d-l,(r=new iu).writeInt(this.scalarType),r.writeShort(d),r.writeShort(l),r.writeShort(o),r.writeShort(u),i=16*d,c=r.pos+i,s=null,f=[],t)for(h=t[p],r.writeString(p),r.writeInt(e(h)),r.writeInt(c),r.writeInt(h.length),f=f.concat(h),"head"===p&&(s=c),c+=h.length;c%4;)f.push(0),c++;return r.write(f),n=2981146554-e(r.data),r.pos=s+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,i;for(e=yu.call(e);e.length%4;)e.push(0);for(r=new iu(e),n=0,t=0,i=e.length;t<i;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),su={}.hasOwnProperty,au=function(e,t){for(var n in t)su.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};ru=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var cu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new iu).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),uu=function(){function e(e,t){var n,r,i,o,s,a,c,u,l,h,d,f,p,A,g,m,y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),l=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(a=0;a<256;++a)this.codeMap[a]=e.readByte();break;case 4:for(d=e.readUInt16(),h=d/2,e.pos+=6,i=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,p=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),u=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,s=function(){var t,n;for(n=[],a=t=0;0<=r?t<r:t>r;a=0<=r?++t:--t)n.push(e.readUInt16());return n}(),a=g=0,y=i.length;g<y;a=++g)for(A=i[a],n=m=f=p[a];f<=A?m<=A:m>=A;n=f<=A?++m:--m)0===u[a]?o=n+c[a]:0!==(o=s[u[a]/2+(n-f)-(h-a)]||0)&&(o+=c[a]),this.codeMap[n]=65535&o}e.pos=l}return e.encode=function(e,t){var n,r,i,o,s,a,c,u,l,h,d,f,p,A,g,m,y,v,b,w,C,_,S,x,T,P,E,I,k,B,M,O,D,R,L,N,U,F,j,H,z,Q,V,K,W,G;switch(I=new iu,o=Object.keys(e).sort(function(e,t){return e-t}),t){case"macroman":for(p=0,A=function(){var e=[];for(f=0;f<256;++f)e.push(0);return e}(),m={0:0},i={},k=0,D=o.length;k<D;k++)null==m[V=e[r=o[k]]]&&(m[V]=++p),i[r]={old:e[r],new:m[e[r]]},A[r]=m[e[r]];return I.writeUInt16(1),I.writeUInt16(0),I.writeUInt32(12),I.writeUInt16(0),I.writeUInt16(262),I.writeUInt16(0),I.write(A),{charMap:i,subtable:I.data,maxGlyphID:p+1};case"unicode":for(P=[],l=[],y=0,m={},n={},g=c=null,B=0,R=o.length;B<R;B++)null==m[b=e[r=o[B]]]&&(m[b]=++y),n[r]={old:b,new:m[b]},s=m[b]-r,null!=g&&s===c||(g&&l.push(g),P.push(r),c=s),g=r;for(g&&l.push(g),l.push(65535),P.push(65535),x=2*(S=P.length),_=2*Math.pow(Math.log(S)/Math.LN2,2),h=Math.log(_/2)/Math.LN2,C=2*S-_,a=[],w=[],d=[],f=M=0,L=P.length;M<L;f=++M){if(T=P[f],u=l[f],65535===T){a.push(0),w.push(0);break}if(T-(E=n[T].new)>=32768)for(a.push(0),w.push(2*(d.length+S-f)),r=O=T;T<=u?O<=u:O>=u;r=T<=u?++O:--O)d.push(n[r].new);else a.push(E-T),w.push(0)}for(I.writeUInt16(3),I.writeUInt16(1),I.writeUInt32(12),I.writeUInt16(4),I.writeUInt16(16+8*S+2*d.length),I.writeUInt16(0),I.writeUInt16(x),I.writeUInt16(_),I.writeUInt16(h),I.writeUInt16(C),z=0,N=l.length;z<N;z++)r=l[z],I.writeUInt16(r);for(I.writeUInt16(0),Q=0,U=P.length;Q<U;Q++)r=P[Q],I.writeUInt16(r);for(K=0,F=a.length;K<F;K++)s=a[K],I.writeUInt16(s);for(W=0,j=w.length;W<j;W++)v=w[W],I.writeUInt16(v);for(G=0,H=d.length;G<H;G++)p=d[G],I.writeUInt16(p);return{charMap:n,subtable:I.data,maxGlyphID:y+1}}},e}(),lu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new uu(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=uu.encode(e,t),(r=new iu).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),hu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="hhea",e.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()},e}(),du=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="OS/2",e.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()},e}(),fu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="post",e.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:case 196608:break;case 131072:var i;for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],i=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;i=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),pu=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Au=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,r,i,o,s,a,c,u,l,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),s=e.readShort(),n=[],i=0;0<=t?i<t:i>t;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+s+e.readShort()});for(a={},i=u=0,l=n.length;u<l;i=++u)r=n[i],e.pos=r.offset,c=e.readString(r.length),o=new pu(c,r),null==a[h=r.nameID]&&(a[h]=[]),a[r.nameID].push(o);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(oa){this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},e}(),gu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),mu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,r,i,o,s,a;for(e.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++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?n<r:n>r;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;e<t;e++)i=n[e],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],a=[],t=o=0;0<=r?o<r:o>r;t=0<=r?++o:--o)a.push(this.widths.push(n));return a},e.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]}},e}(),yu=[].slice,vu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,i,o,s,a,c,u,l;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=(s=new iu(t.read(r))).readShort(),c=s.readShort(),l=s.readShort(),a=s.readShort(),u=s.readShort(),this.cache[e]=-1===o?new wu(s,c,l,a,u):new bu(s,o,c,l,a,u),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,i,o,s,a;for(o=[],i=[],s=0,a=t.length;s<a;s++)r=e[t[s]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),bu=function(){function e(e,t,n,r,i,o){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),wu=function(){function e(e,t,n,r,i){var o,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new iu(yu.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),Cu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return au(e,ru),e.prototype.tag="loca",e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<t.length&&t[i]==o){++i,n[o]=r;var s=this.offsets[o],a=this.offsets[o+1]-s;a>0&&(r+=a)}for(var c=new Array(4*n.length),u=0;u<n.length;++u)c[4*u+3]=255&n[u],c[4*u+2]=(65280&n[u])>>8,c[4*u+1]=(16711680&n[u])>>16,c[4*u]=(4278190080&n[u])>>24;return c},e}(),_u=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,s,a;for(r={},o=0,s=e.length;o<s;o++)r[i=e[o]]=this.font.glyf.glyphFor(i);
362for(i in t=[],r)(null!=(n=r[i])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(i in a=this.glyphsFor(t))n=a[i],r[i]=n;return r},e.prototype.encode=function(e,t){var n,r,i,o,s,a,c,u,l,h,d,f,p,A,g;for(r in n=lu.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),d={0:0},g=n.charMap)d[(a=g[r]).old]=a.new;for(f in h=n.maxGlyphID,o)f in d||(d[f]=h++);return u=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(d),l=Object.keys(u).sort(function(e,t){return e-t}),p=function(){var e,t,n;for(n=[],e=0,t=l.length;e<t;e++)s=l[e],n.push(u[s]);return n}(),i=this.font.glyf.encode(o,p,d),c=this.font.loca.encode(i.offsets,p),A={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(A["OS/2"]=this.font.os2.raw()),this.font.directory.encode(A)},e}();ka.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,i,o,s;if(Array.isArray(n))return"["+function(){var e,i,o;for(o=[],e=0,i=n.length;e<i;e++)r=n[e],o.push(t.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in o=["<<"],n)s=n[i],o.push("/"+i+" "+t.convert(s));return o.push(">>"),o.join("\n")}return""+n},t}()},71710:function(e,t,n){
363/*!
364
365JSZip v3.10.1 - A JavaScript class for generating and reading zip files
366<http://stuartk.com/jszip>
367
368(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
369Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
370
371JSZip uses the library pako released under the MIT license :
372https://github.com/nodeca/pako/blob/main/LICENSE
373*/
374!function(t){e.exports=t()}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var c=void 0;if(!a&&c)return require(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,s,a,c,u,l=[],h=0,d=e.length,f=d,p="string"!==r.getTypeOf(e);h<e.length;)f=d-h,i=p?(t=e[h++],n=h<d?e[h++]:0,h<d?e[h++]:0):(t=e.charCodeAt(h++),n=h<d?e.charCodeAt(h++):0,h<d?e.charCodeAt(h++):0),s=t>>2,a=(3&t)<<4|n>>4,c=1<f?(15&n)<<2|i>>6:64,u=2<f?63&i:64,l.push(o.charAt(s)+o.charAt(a)+o.charAt(c)+o.charAt(u));return l.join("")},n.decode=function(e){var t,n,r,s,a,c,u=0,l=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(s=o.indexOf(e.charAt(u++)))>>4,n=(15&s)<<4|(a=o.indexOf(e.charAt(u++)))>>2,r=(3&a)<<6|(c=o.indexOf(e.charAt(u++))),d[l++]=t,64!==a&&(d[l++]=n),64!==c&&(d[l++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function a(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,s=r+n;e^=-1;for(var a=r;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=i,s=r+n;e^=-1;for(var a=r;a<s;a++)e=e>>>8^o[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),s=e("./stream/GenericWorker"),a=r?"uint8array":"array";function c(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(c,s),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,e.data),!1)},c.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)}
vendor: 6,827 bytes, line 374
374,c.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,s,l){var h,d,f=e.file,p=e.compression,A=l!==a.utf8encode,g=o.transformTo("string",l(f.name)),m=o.transformTo("string",a.utf8encode(f.name)),y=f.comment,v=o.transformTo("string",l(y)),b=o.transformTo("string",a.utf8encode(y)),w=m.length!==f.name.length,C=b.length!==y.length,_="",S="",x="",T=f.dir,P=f.date,E={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize);var I=0;t&&(I|=8),A||!w&&!C||(I|=2048);var k=0,B=0;T&&(k|=16),"UNIX"===s?(B=798,k|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,T)):(B=20,k|=function(e){return 63&(e||0)}(f.dosPermissions)),h=P.getUTCHours(),h<<=6,h|=P.getUTCMinutes(),h<<=5,h|=P.getUTCSeconds()/2,d=P.getUTCFullYear()-1980,d<<=4,d|=P.getUTCMonth()+1,d<<=5,d|=P.getUTCDate(),w&&(S=r(1,1)+r(c(g),4)+m,_+="up"+r(S.length,2)+S),C&&(x=r(1,1)+r(c(v),4)+b,_+="uc"+r(x.length,2)+x);var M="";return M+="\n\0",M+=r(I,2),M+=p.magic,M+=r(h,2),M+=r(d,2),M+=r(E.crc32,4),M+=r(E.compressedSize,4),M+=r(E.uncompressedSize,4),M+=r(g.length,2),M+=r(_.length,2),{fileRecord:u.LOCAL_FILE_HEADER+M+g+_,dirRecord:u.CENTRAL_FILE_HEADER+r(B,2)+M+r(v.length,2)+"\0\0\0\0"+r(k,4)+r(i,4)+g+_+v}}var o=e("../utils"),s=e("../stream/GenericWorker"),a=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,n,r){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,s),l.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,s){var a=o.transformTo("string",s(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(a.length,2)+a}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},l.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},l.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),s=0;try{e.forEach(function(e,n){s++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),a=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,u=n.date;n._compressWorker(i,a).withStreamInfo("file",{name:e,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)}),o.entriesCount=s}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),o=e("./utf8"),s=e("./zipEntries"),a=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new a);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip f
374ile",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new s(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(u(r[o]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),o=i.files,s=0;s<o.length;s++){var a=o[s],c=a.fileNameStr,u=r.resolve(a.fileNameStr);n.file(u,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders}),a.dir||(n.file(u).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=o.getTypeOf(t),a=o.extend(n||{},c);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=A(e)),a.createFolders&&(r=p(e))&&g.call(this,r,!0);var h="string"===i&&!1===a.binary&&!1===a.base64;n&&void 0!==n.binary||(a.binary=!h),(t instanceof u&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var m=null;m=t instanceof u||t instanceof s?t:d.isNode&&d.isStream(t)?new f(e,t):o.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var y=new l(e,m,a);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),s=e("./stream/GenericWorker"),a=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),h=e("./generate"),d=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},A=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:c.createFolders,e=A(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(m(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(m(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 5,804 bytes, line 374
374,generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=h.generateWorker(this,n,r)}catch(e){(t=new s("error")).error(e)}return new a(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),s=e("./StringReader"),a=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new a(e):i.uint8array?new c(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK��",n.CENTRAL_FILE_HEADER="PK��",n.CENTRAL_DIRECTORY_END="PK��",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK��",n.ZIP64_CENTRAL_DIRECTORY_END="PK��",n.DATA_DESCRIPTOR="PK�\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}
vendor: 7,654 bytes, line 374
374r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),a=e("../support"),c=e("../external"),u=null;if(a.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function l(e,t){return new c.Promise(function(n,i){var o=[],a=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",function(e,n){o.push(e),t&&t(n)}).on("error",function(e){o=[],i(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(a,o),u);n(e)}catch(e){i(e)}o=[]}).resume()})}function h(e,t,n){var s=t;switch(t){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=n,r.checkSupport(s),this._worker=e.pipe(new i(s)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return l(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),s=e("./stream/GenericWorker"),a=new Array(256),c=0;c<256;c++)a[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){s.call(this,"utf-8 decode"),this.leftOver=null}function l(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,s,a=e.length,c=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),o=s=0;s<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[s++]=n:(n<2048?t[s++]=192|n>>>6:(n<65536?t[s++]=224|n>>>12:(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63),t[s++]=128|n>>>6&63),t[s++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,s=e.length,c=new Array(2*s);for(t=n=0;t<s;)if((i=e[t++])<128)c[n++]=i;else if(4<(o=a[i]))c[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<s;)i=i<<6|63&e[t++],o--;
vendor: 4,664 bytes, line 374
3741<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,s),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}(t),c=t;s!==t.length&&(i.uint8array?(c=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(c=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(l,s),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),s=e("./external");function a(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(t,r){n.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function l(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function h(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=l;var d={};d.string={string:a,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},d.array={string:l,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},d.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:l,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return o.newBufferFrom(e)}},d.nodebuffer={string:l,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:a},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return d[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;
vendor: 4,196 bytes, line 374
374n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,a,u){return s.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var l=n.getTypeOf(t);return l?("arraybuffer"===l?t=n.transformTo("uint8array",t):"string"===l&&(u?t=i.decode(t):o&&!0!==a&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),s=e("./zipEntry"),a=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=a.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
374ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),s=e("./crc32"),a=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&
vendor: 2,334 bytes, line 374
374(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),s=e("./utf8"),a=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new s.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)}
vendor: 6,399 bytes, line 374
374,nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof c?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)r.prototype[u[h]]=l;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(l),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r(function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var s=p(function(){t(i,r)});"error"===s.status&&r(s.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===a?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,c=-1,u=new this(i);++c<n;)l(e[c],c);return u;function l(e,i){t.resolve(e).then(function(e){s[i]=e,++a!==n||r||(r=!0,o.resolve(u,s))},function(e){r||(r=!0,o.reject(u,e))})}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s,a=-1,c=new this(i);++a<n;)s=e[a],t.resolve(s).then(function(e){r||(r=!0,o.resolve(c,e))},function(e){r||(r=!0,o.reject(c,e))});return c}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/messages"),a=e("./zlib/zstream"),c=Object.prototype.toString,u=0,l=-1,h=0,d=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:l,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(s[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(s[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(e,t){var n,s,a=this.strm,l=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?a.input=new 
vendor: 6,233 bytes, line 374
374Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(l),a.next_out=0,a.avail_out=l),1!==(n=r.deflate(a,s))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==n);return 4===s?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==s||(this.onEnd(u),!(a.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/constants"),a=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==s.Z_OK)throw new Error(a[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(e,t){var n,a,c,u,h,d,f=this.strm,p=this.options.chunkSize,A=this.options.dictionary,g=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&A&&(d="string"==typeof A?o.string2buf(A):"[object ArrayBuffer]"===l.call(A)?new Uint8Array(A):A,n=r.inflateSetDictionary(this.strm,d)),n===s.Z_BUF_ERROR&&!0===g&&(n=s.Z_OK,g=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==s.Z_STREAM_END&&(0!==f.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),u=f.next_out-c,h=o.buf2string(f.output,c),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,c,u,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,s;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(s=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new r.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",s=0;s<t;s++)n+=String.fromCharCode(e[s]);return n}s[254]=s[254]=1,n.string2buf=function(e){var t,n,i,o,s,a=e.length,c=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),o=s=0;s<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[s++]=n:(n<2048?t[s++]=192|n>>>6:(n<65536?t[s++]=224|n>>>12:(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63),t[s++]=128|n>>>6&63),t[s++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,a=t||e.length,u=new Array(2*a);for(n=r=0;n<a;)if((i=e[n++])<128)u[r++]=i;else if(4<(o=s[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<a;)i=i<<6|63&e[n++],o--;
vendor: 4,482 bytes, line 374
3741<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,s=0;0!==n;){for(n-=s=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--s;);i%=65521,o%=65521}return i|o<<16}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,s=i+n;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),s=e("./adler32"),a=e("./crc32"),c=e("./messages"),u=0,l=4,h=0,d=-2,f=-1,p=4,A=2,g=8,m=9,y=286,v=30,b=19,w=2*y+1,C=15,_=3,S=258,x=S+_+1,T=42,P=113,E=1,I=2,k=3,B=4;function M(e,t){return e.msg=c[t],t}function O(e){return(e<<1)-(4<e?9:0)}function D(e){for(var t=e.length;0<=--t;)e[t]=0}function R(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function L(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function N(e,t){e.pending_buf[e.pending++]=t}function U(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function F(e,t){var n,r,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,c=e.strstart>e.w_size-x?e.strstart-(e.w_size-x):0,u=e.window,l=e.w_mask,h=e.prev,d=e.strstart+S,f=u[o+s-1],p=u[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(u[(n=t)+s]===p&&u[n+s-1]===f&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(r=S-(d-o),o=d-S,s<r){if(e.match_start=t,a<=(s=r))break;f=u[o+s-1],p=u[o+s]}}}while((t=h[t&l])>c&&0!=--i);return s<=e.lookahead?s:e.lookahead}function j(e){var t,n,r,o,c,u,l,h,d,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-x)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,h=e.strstart+e.lookahead,d=o,f=void 0,f=u.avail_in,d<f&&(f=d),n=0===f?0:(u.avail_in-=f,i.arraySet(l,u.input,u.next_in,f,h),1===u.state.wrap?u.adler=s(u.adler,l,f,h):2===u.state.wrap&&(u.adler=a(u.adler,l,f,h)),u.next_in+=f,u.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=_)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+_-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<_)););}while(e.lookahead<x&&0!==e.strm.avail_in)}function H(e,t){for(var n,r;;){if(e.lookahead<x){if(j(e),e.lookahead<x&&t===u)return E;if(0===e.lookahead)break}if(n=0,e.lookahead>=_&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-x&&(e.match_length=F(e,n)),e.match_length>=_)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-_),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;
vendor: 25,557 bytes, line 374
374else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(L(e,!1),0===e.strm.avail_out))return E}return e.insert=e.strstart<_-1?e.strstart:_-1,t===l?(L(e,!0),0===e.strm.avail_out?k:B):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?E:I}function z(e,t){for(var n,r,i;;){if(e.lookahead<x){if(j(e),e.lookahead<x&&t===u)return E;if(0===e.lookahead)break}if(n=0,e.lookahead>=_&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=_-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-x&&(e.match_length=F(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===_&&4096<e.strstart-e.match_start)&&(e.match_length=_-1)),e.prev_length>=_&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-_,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-_),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=_-1,e.strstart++,r&&(L(e,!1),0===e.strm.avail_out))return E}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&L(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return E}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<_-1?e.strstart:_-1,t===l?(L(e,!0),0===e.strm.avail_out?k:B):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?E:I}function Q(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*v+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),D(this.dyn_ltree),D(this.dyn_dtree),D(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*y+1),D(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),D(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function K(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=A,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:P,e.adler=2===t.wrap?0:1,t.last_flush=u,o._tr_init(t),h):M(e,d)}function W(e){var t=K(e);return t===h&&function(e){e.window_size=2*e.w_size,D(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=_-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,n,r,o,s){if(!e)return d;var a=1;if(t===f&&(t=6),r<0?(a=0,r=-r):15<r&&(a=2,r-=16),o<1||m<o||n!==g||r<8||15<r||t<0||9<t||s<0||p<s)return M(e,d);8===r&&(r=9);var c=new V;return(e.state=c).strm=e,c.wrap=a,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+_-1)/_),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=s,c.method=n,W(e)}r=[new Q(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===u)return E;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,L(e,!1),0===e.strm.avail_out))return E;if(e.strstart-e.block_start>=e.w_size-x&&(L(e,!1),0===e.strm.avail_out))return E}return e.insert=0,t===l?(L(e,!0),0===e.strm.avail_out?k:B):(e.strstart>e.block_start&&(L(e,!1),e.strm.avail_out),E)}),new Q(4,4,8,4,H),new Q(4,5,16,8,H),new Q(4,6,32,32,H),new Q(4,4,16,16,z),new Q(8,16,32,32,z),new Q(8,16,128,128,z),new Q(8,32,128,256,z),new Q(32,128,258,1024,z),new Q(32,258,258,4096,z)],n.deflateInit=function(e,t){return G(e,t,g,15,8,0)},n.deflateInit2=G,n.deflateReset=W,n.deflateResetKeep=K,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,h):d},n.deflate=function(e,t){var n,i,s,c;if(!e||!e.state||5<t||t<0)return e?M(e,d):d;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==l)return M(e,0===e.avail_out?-5:d);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===T)if(2===i.wrap)e.adler=0,N(i,31),N(i,139),N(i,8),i.gzhead?(N(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),N(i,255&i.gzhead.time),N(i,i.gzhead.time>>8&255),N(i,i.gzhead.time>>16&255),N(i,i.gzhead.time>>24&255),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(N(i,255&i.gzhead.extra.length),N(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(N(i,0),N(i,0),N(i,0),N(i,0),N(i,0),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,3),i.status=P);else{var f=g+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=P,U(i,f),0!==i.strstart&&(U(i,e.adler>>>16),U(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),R(e),s=i.pending,i.pending!==i.pending_buf_size));)N(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),R(e),s=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,N(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),R(e),s=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,N(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&R(e),i.pending+2<=i.pending_buf_size&&(N(i,255&e.adler),N(i,e.adler>>8&255),e.adler=0,i.status=P)):i.status=P),0!==i.pending){if(R(e),0===e.avail_out)return i.last_flush=-1,h}else if(0===e.avail_in&&O(t)<=O(n)&&t!==l)return M(e,-5);if(666===i.status&&0!==e.avail_in)return M(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===u)return E;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(L(e,!1),0===e.strm.avail_out))return E}return e.insert=0,t===l?(L(e,!0),0===e.strm.avail_out?k:B):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?E:I}(i,t):3===i.strategy?function(e,t){for(var n,r,i,s,a=e.window;;){if(e.lookahead<=S){if(j(e),e.lookahead<=S&&t===u)return E;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=_&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){s=e.strstart+S;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<s);e.match_length=S-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=_?(n=o._tr_tally(e,1,e.match_length-_),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(L(e,!1),0===e.strm.avail_out))return E}return e.insert=0,t===l?(L(e,!0),0===e.strm.avail_out?k:B):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?E:I}(i,t):r[i.level].func(i,t);if(p!==k&&p!==B||(i.status=666),p===E||p===k)return 0===e.avail_out&&(i.last_flush=-1),h;if(p===I&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(D(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),R(e),0===e.avail_out))return i.last_flush=-1,h}return t!==l?h:i.wrap<=0?1:(2===i.wrap?(N(i,255&e.adler),N(i,e.adler>>8&255),N(i,e.adler>>16&255),N(i,e.adler>>24&255),N(i,255&e.total_in),N(i,e.total_in>>8&255),N(i,e.total_in>>16&255),N(i,e.total_in>>24&255)):(U(i,e.adler>>>16),U(i,65535&e.adler)),R(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?h:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==P&&666!==t?M(e,d):(e.state=null,t===P?M(e,-3):h):d},n.deflateSetDictionary=function(e,t){var n,r,o,a,c,u,l,f,p=t.length;if(!e||!e.state)return d;if(2===(a=(n=e.state).wrap)||1===a&&n.status!==T||n.lookahead)return d;for(1===a&&(e.adler=s(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===a&&(D(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),c=e.avail_in,u=e.next_in,l=e.input,e.avail_in=p,e.next_in=0,e.input=t,j(n);n.lookahead>=_;){for(r=n.strstart,o=n.lookahead-(_-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+_-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=_-1,j(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=_-1,n.match_available=0,e.next_in=u,e.input=l,e.avail_in=c,n.wrap=a,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,s,a,c,u,l,h,d,f,p,A,g,m,y,v,b,w,C,_,S,x,T;n=e.state,r=e.next_in,x=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,A=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(f+=x[r++]<<p,p+=8,f+=x[r++]<<p,p+=8),v=A[f&m];t:for(;;){if(f>>>=b=v>>>24,p-=b,0===(b=v>>>16&255))T[o++]=65535&v;else{if(!(16&b)){if(0==(64&b)){v=A[(65535&v)+(f&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&v,(b&=15)&&(p<b&&(f+=x[r++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=x[r++]<<p,p+=8,f+=x[r++]<<p,p+=8),v=g[f&y];n:for(;;){if(f>>>=b=v>>>24,p-=b,!(16&(b=v>>>16&255))){if(0==(64&b)){v=g[(65535&v)+(f&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(C=65535&v,p<(b&=15)&&(f+=x[r++]<<p,(p+=8)<b&&(f+=x[r++]<<p,p+=8)),c<(C+=f&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,(b=o-s)<C){if(l<(b=C-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=d,(_=0)===h){if(_+=u-b,b<w){for(w-=b;T[o++]=d[_++],--b;);_=o-C,S=T}}else if(h<b){if(_+=u+h-b,(b-=h)<w){for(w-=b;T[o++]=d[_++],--b;);if(_=0,h<w){for(w-=b=h;T[o++]=d[_++],--b;);_=o-C,S=T}}}else if(_+=h-b,b<w){for(w-=b;T[o++]=d[_++],--b;);_=o-C,S=T}for(;2<w;)T[o++]=S[_++],T[o++]=S[_++],T[o++]=S[_++],w-=3;w&&(T[o++]=S[_++],1<w&&(T[o++]=S[_++]))}else{for(_=o-C;T[o++]=T[_++],T[o++]=T[_++],T[o++]=T[_++],2<(w-=3););w&&(T[o++]=T[_++],1<w&&(T[o++]=T[_++]))}break}}break}}while(r<i&&o<a);r-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<a?a-o+257:257-(o-a),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),s=e("./inffast"),a=e("./inftrees"),c=1,u=2,l=0,h=-2,d=1,f=852,p=592;function A(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(f),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,l):h}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,m(e)):h}function v(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?h:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):h}function b(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=v(e,t))!==l&&(e.state=null),n):h}var w,C,_=!0;function S(e){if(_){var t;for(w=new r.Buf32(512),C=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(c,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(u,e.lens,0,32,C,0,e.work,{bits:5}),_=!1}e.lencode=w,e.lenbits=9,e.distcode=C,e.distbits=5}function x(e,t,n,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new r.Buf8(s.wsize)),i>=s.wsize?(r.arraySet(s.window,t,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),r.arraySet(s.window,t,n-i,o,s.wnext),(i-=o)?(r.arraySet(s.window,t,n-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}n.inflateReset=y,n.inflateReset2=v,n.inflateResetKeep=m,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,f,p,g,m,y,v,b,w,C,_,T,P,E,I,k,B,M,O,D,R,L,N,U,F=0,j=new r.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return h;12===(n=e.state).mode&&(n.mode=13),m=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,f=e.input,y=e.avail_in,b=n.hold,w=n.bits,C=y,_=v,L=l;e:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(2&n.wrap&&35615===b){j[n.check=0]=255&b,j[1]=b>>>8&255,n.check=o(n.check,j,2,0),w=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=30;break}if(w-=4,R=8+(15&(b>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(n.flags=b,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(j[0]=255&b,j[1]=b>>>8&255,n.check=o(n.check,j,2,0)),w=b=0,n.mode=3;case 3:for(;w<32;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}n.head&&(n.head.time=b),512&n.flags&&(j[0]=255&b,j[1]=b>>>8&255,j[2]=b>>>16&255,j[3]=b>>>24&255,n.check=o(n.check,j,4,0)),w=b=0,n.mode=4;case 4:for(;w<16;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(j[0]=255&b,j[1]=b>>>8&255,n.check=o(n.check,j,2,0)),w=b=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(j[0]=255&b,j[1]=b>>>8&255,n.check=o(n.check,j,2,0)),w=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(T=n.length)&&(T=y),T&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,g,T,R)),512&n.flags&&(n.check=o(n.check,f,T,g)),y-=T,g+=T,n.length-=T),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;for(T=0;R=f[g+T++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R)),R&&T<y;);if(512&n.flags&&(n.check=o(n.check,f,T,g)),y-=T,g+=T,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break e;for(T=0;R=f[g+T++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R)),R&&T<y;);if(512&n.flags&&(n.check=o(n.check,f,T,g)),y-=T,g+=T,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(b!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}w=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}e.adler=n.check=A(b),w=b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=v,e.next_in=g,e.avail_in=y,n.hold=b,n.bits=w,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){b>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}switch(n.last=1&b,w-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(S(n),n.mode=20,6!==t)break;b>>>=2,w-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,w=b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(T=n.length){if(y<T&&(T=y),v<T&&(T=v),0===T)break e;r.arraySet(p,f,g,T,m),y-=T,g+=T,v-=T,m+=T,n.length-=T;break}n.mode=12;break;case 17:for(;w<14;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(n.nlen=257+(31&b),b>>>=5,w-=5,n.ndist=1+(31&b),b>>>=5,w-=5,n.ncode=4+(15&b),b>>>=4,w-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}n.lens[H[n.have++]]=7&b,b>>>=3,w-=3}for(;n.have<19;)n.lens[H[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},L=a(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,L){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;k=(F=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,B=65535&F,!((I=F>>>24)<=w);){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(B<16)b>>>=I,w-=I,n.lens[n.have++]=B;else{if(16===B){for(U=I+2;w<U;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(b>>>=I,w-=I,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}R=n.lens[n.have-1],T=3+(3&b),b>>>=2,w-=2}else if(17===B){for(U=I+3;w<U;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}w-=I,R=0,T=3+(7&(b>>>=I)),b>>>=3,w-=3}else{for(U=I+7;w<U;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}w-=I,R=0,T=11+(127&(b>>>=I)),b>>>=7,w-=7}if(n.have+T>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;T--;)n.lens[n.have++]=R}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},L=a(c,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,L){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},L=a(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,L){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=y&&258<=v){e.next_out=m,e.avail_out=v,e.next_in=g,e.avail_in=y,n.hold=b,n.bits=w,s(e,_),m=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,f=e.input,y=e.avail_in,b=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;k=(F=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,B=65535&F,!((I=F>>>24)<=w);){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(k&&0==(240&k)){for(M=I,O=k,D=B;k=(F=n.lencode[D+((b&(1<<M+O)-1)>>M)])>>>16&255,B=65535&F,!(M+(I=F>>>24)<=w);){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}b>>>=M,w-=M,n.back+=M}if(b>>>=I,w-=I,n.back+=I,n.length=B,0===k){n.mode=26;break}if(32&k){n.back=-1,n.mode=12;break}if(64&k){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&k,n.mode=22;case 22:if(n.extra){for(U=n.extra;w<U;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;k=(F=n.distcode[b&(1<<n.distbits)-1])>>>16&255,B=65535&F,!((I=F>>>24)<=w);){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(0==(240&k)){for(M=I,O=k,D=B;k=(F=n.distcode[D+((b&(1<<M+O)-1)>>M)])>>>16&255,B=65535&F,!(M+(I=F>>>24)<=w);){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}b>>>=M,w-=M,n.back+=M}if(b>>>=I,w-=I,n.back+=I,64&k){e.msg="invalid distance code",n.mode=30;break}n.offset=B,n.extra=15&k,n.mode=24;case 24:if(n.extra){for(U=n.extra;w<U;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===v)break e;if(T=_-v,n.offset>T){if((T=n.offset-T)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}P=T>n.wnext?(T-=n.wnext,n.wsize-T):n.wnext-T,T>n.length&&(T=n.length),E=n.window}else E=p,P=m-n.offset,T=n.length;for(v<T&&(T=v),v-=T,n.length-=T;p[m++]=E[P++],--T;);0===n.length&&(n.mode=21);break;case 26:if(0===v)break e;p[m++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===y)break e;y--,b|=f[g++]<<w,w+=8}if(_-=v,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?o(n.check,p,_,m-_):i(n.check,p,_,m-_)),_=v,(n.flags?b:A(b))!==n.check){e.msg="incorrect data check",n.mode=30;break}w=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===y)break e;y--,b+=f[g++]<<w,w+=8}if(b!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}w=b=0}n.mode=29;case 29:L=1;break e;case 30:L=-3;break e;case 31:return-4;case 32:default:return h}return e.next_out=m,e.avail_out=v,e.next_in=g,e.avail_in=y,n.hold=b,n.bits=w,(n.wsize||_!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&x(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(C-=e.avail_in,_-=e.avail_out,e.total_in+=C,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?o(n.check,p,_,e.next_out-_):i(n.check,p,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==C&&0===_||4===t)&&L===l&&(L=-5),L)},n.inflateEnd=function(e){if(!e||!e.state)return h;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?h:((n.head=t).done=!1,l):h},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,t,r,0)!==n.check?-3:x(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,l):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,u,l,h,d){var f,p,A,g,m,y,v,b,w,C=d.bits,_=0,S=0,x=0,T=0,P=0,E=0,I=0,k=0,B=0,M=0,O=null,D=0,R=new r.Buf16(16),L=new r.Buf16(16),N=null,U=0;for(_=0;_<=15;_++)R[_]=0;for(S=0;S<c;S++)R[t[n+S]]++;for(P=C,T=15;1<=T&&0===R[T];T--);if(T<P&&(P=T),0===T)return u[l++]=20971520,u[l++]=20971520,d.bits=1,0;for(x=1;x<T&&0===R[x];x++);for(P<x&&(P=x),_=k=1;_<=15;_++)if(k<<=1,(k-=R[_])<0)return-1;if(0<k&&(0===e||1!==T))return-1;for(L[1]=0,_=1;_<15;_++)L[_+1]=L[_]+R[_];for(S=0;S<c;S++)0!==t[n+S]&&(h[L[t[n+S]]++]=S);if(y=0===e?(O=N=h,19):1===e?(O=i,D-=257,N=o,U-=257,256):(O=s,N=a,-1),_=x,m=l,I=S=M=0,A=-1,g=(B=1<<(E=P))-1,1===e&&852<B||2===e&&592<B)return 1;for(;;){for(v=_-I,w=h[S]<y?(b=0,h[S]):h[S]>y?(b=N[U+h[S]],O[D+h[S]]):(b=96,0),f=1<<_-I,x=p=1<<E;u[m+(M>>I)+(p-=f)]=v<<24|b<<16|w,0!==p;);for(f=1<<_-1;M&f;)f>>=1;if(0!==f?(M&=f-1,M+=f):M=0,S++,0==--R[_]){if(_===T)break;_=t[n+h[S]]}
vendor: 5,285 bytes, line 374
374if(P<_&&(M&g)!==A){for(0===I&&(I=P),m+=x,k=1<<(E=_-I);E+I<T&&!((k-=R[E+I])<=0);)E++,k<<=1;if(B+=1<<E,1===e&&852<B||2===e&&592<B)return 1;u[A=M&g]=P<<24|E<<16|m-l}}return 0!==M&&(u[m+M]=_-I<<24|64<<16),d.bits=P,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common"),i=0,o=1;function s(e){for(var t=e.length;0<=--t;)e[t]=0}var a=0,c=29,u=256,l=u+1+c,h=30,d=19,f=2*l+1,p=15,A=16,g=7,m=256,y=16,v=17,b=18,w=[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],C=[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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=new Array(2*(l+2));s(x);var T=new Array(2*h);s(T);var P=new Array(512);s(P);var E=new Array(256);s(E);var I=new Array(c);s(I);var k,B,M,O=new Array(h);function D(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function R(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function L(e){return e<256?P[e]:P[256+(e>>>7)]}function N(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function U(e,t,n){e.bi_valid>A-n?(e.bi_buf|=t<<e.bi_valid&65535,N(e,e.bi_buf),e.bi_buf=t>>A-e.bi_valid,e.bi_valid+=n-A):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function F(e,t,n){U(e,n[2*t],n[2*t+1])}function j(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function H(e,t,n){var r,i,o=new Array(p+1),s=0;for(r=1;r<=p;r++)o[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=j(o[a]++,a))}}function z(e){var t;for(t=0;t<l;t++)e.dyn_ltree[2*t]=0;for(t=0;t<h;t++)e.dyn_dtree[2*t]=0;for(t=0;t<d;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*m]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Q(e){8<e.bi_valid?N(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function V(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function K(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&V(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!V(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function W(e,t,n){var r,i,o,s,a=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*a]<<8|e.pending_buf[e.d_buf+2*a+1],i=e.pending_buf[e.l_buf+a],a++,0===r?F(e,i,t):(F(e,(o=E[i])+u+1,t),0!==(s=w[o])&&U(e,i-=I[o],s),F(e,o=L(--r),n),0!==(s=C[o])&&U(e,r-=O[o],s)),a<e.last_lit;);F(e,m,t)}function G(e,t){var n,r,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=f,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)K(e,o,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],K(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,K(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,s,a,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,A=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<f;n++)g<(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(o=g,m++),c[2*r+1]=o,u<r||(e.bl_count[o]++,s=0,A<=r&&(s=d[r-A]),a=c[2*r],e.opt_len+=a*(o+s),h&&(e.static_len+=a*(l[2*r+1]+s)));if(0!==m){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(o=g;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),H(o,u,e.bl_count)}function q(e,t,n){var r,i,o=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=t[2*(r+1)+1],++a<c&&i===s||(a<u?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):a<=10?e.bl_tree[2*v]++:e.bl_tree[2*b]++,o=i,u=(a=0)===s?(c=138,3):i===s?(c=6,3):(c=7,4))}function Y(e,t,n){var r,i,o=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),r=0;r<=n;r++)if(i=s,s=t[2*(r+1)+1],!(++a<c&&i===s)){if(a<u)for(;F(e,i,e.bl_tree),0!=--a;);else 0!==i?(i!==o&&(F(e,i,e.bl_tree),a--),F(e,y,e.bl_tree),U(e,a-3,2)):a<=10?(F(e,v,e.bl_tree),U(e,a-3,3)):(F(e,b,e.bl_tree),U(e,a-11,7));o=i,u=(a=0)===s?(c=138,3):i===s?(c=6,3):(c=7,4)}}s(O);var X=!1;function Z(e,t,n,i){U(e,(a<<1)+(i?1:0),3),function(e,t,n,i){Q(e),i&&(N(e,n),N(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){X||(function(){var e,t,n,r,i,o=new Array(p+1);for(r=n=0;r<c-1;r++)for(I[r]=n,e=0;e<1<<w[r];e++)E[n++]=r;for(E[n-1]=r,r=i=0;r<16;r++)for(O[r]=i,e=0;e<1<<C[r];e++)P[i++]=r;for(i>>=7;r<h;r++)for(O[r]=i<<7,e=0;e<1<<C[r]-7;e++)P[256+i++]=r;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)x[2*e+1]=8,e++,o[8]++;for(;e<=255;)x[2*e+1]=9,e++,o[9]++;for(;e<=279;)x[2*e+1]=7,e++,o[7]++;for(;e<=287;)x[2*e+1]=8,e++,o[8]++;for(H(x,l+1,o),e=0;e<h;
vendor: 4,054 bytes, line 374
374e++)T[2*e+1]=5,T[2*e]=j(e,5);k=new D(x,w,u+1,l,p),B=new D(T,C,0,h,p),M=new D(new Array(0),_,0,d,g)}(),X=!0),e.l_desc=new R(e.dyn_ltree,k),e.d_desc=new R(e.dyn_dtree,B),e.bl_desc=new R(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,z(e)},n._tr_stored_block=Z,n._tr_flush_block=function(e,t,n,r){var s,a,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),G(e,e.l_desc),G(e,e.d_desc),c=function(e){var t;for(q(e,e.dyn_ltree,e.l_desc.max_code),q(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=d-1;3<=t&&0===e.bl_tree[2*S[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),s=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=s&&(s=a)):s=a=n+5,n+4<=s&&-1!==t?Z(e,t,n,r):4===e.strategy||a===s?(U(e,2+(r?1:0),3),W(e,x,T)):(U(e,4+(r?1:0),3),function(e,t,n,r){var i;for(U(e,t-257,5),U(e,n-1,5),U(e,r-4,4),i=0;i<r;i++)U(e,e.bl_tree[2*S[i]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),W(e,e.dyn_ltree,e.dyn_dtree)),z(e),r&&Q(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(E[n]+u+1)]++,e.dyn_dtree[2*L(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){U(e,2,3),F(e,m,x),function(e){16===e.bi_valid?(N(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,r,i,o,s=1,a={},c=!1,u=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){d(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return a[s]=i,n(s),s++},l.clearImmediate=h}function h(e){delete a[e]}function d(e){if(c)setTimeout(d,0,e);else{var n=a[e];if(n){c=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{h(e),c=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})},13491:function(e){(function(){var t,n,r,i,o,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},n=process.hrtime,t=function(){var e;return e=n(),1e9*e[0]+e[1]}
vendor: 21,711 bytes, lines 374-398
374,i=t(),s=1e9*process.uptime(),o=i-s):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},48851:function(e,t,n){"use strict";
375/**!
376 * @fileOverview Kickass library to create and place poppers near their reference elements.
377 * @version 1.16.1
378 * @license
379 * Copyright (c) 2016 Federico Zivolo and contributors
380 *
381 * Permission is hereby granted, free of charge, to any person obtaining a copy
382 * of this software and associated documentation files (the "Software"), to deal
383 * in the Software without restriction, including without limitation the rights
384 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
385 * copies of the Software, and to permit persons to whom the Software is
386 * furnished to do so, subject to the following conditions:
387 *
388 * The above copyright notice and this permission notice shall be included in all
389 * copies or substantial portions of the Software.
390 *
391 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
392 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
393 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
394 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
395 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
396 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
397 * SOFTWARE.
398 */var r="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,i=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(r&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function o(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function s(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i))}}var a=r&&window.Promise,c=a?o:s;function u(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function l(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function h(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function d(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=l(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:d(h(e))}function f(e){return e&&e.referenceNode?e.referenceNode:e}var p=r&&!(!window.MSInputMethodContext||!document.documentMode),A=r&&/MSIE 10/.test(navigator.userAgent);function g(e){return 11===e?p:10===e?A:p||A}function m(e){if(!e)return document.documentElement;var t=g(10)?document.body:null,n=e.offsetParent||null;while(n===t&&e.nextElementSibling)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===l(n,"position")?m(n):n:e?e.ownerDocument.documentElement:document.documentElement}function y(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||m(e.firstElementChild)===e)}function v(e){return null!==e.parentNode?v(e.parentNode):e}function b(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s=o.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return y(s)?s:m(s);var a=v(e);return a.host?b(a.host,t):b(e,v(t).host)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=w(t,"top"),i=w(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function _(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function S(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],g(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,r=g(10)&&getComputedStyle(n);return{height:S("Height",t,n,r),width:S("Width",t,n,r)}}var T=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},P=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function k(e){return I({},e,{right:e.left+e.width,bottom:e.top+e.height})}function B(e){var t={};try{if(g(10)){t=e.getBoundingClientRect();var n=w(e,"top"),r=w(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?x(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,a=o.height||e.clientHeight||i.height,c=e.offsetWidth-s,u=e.offsetHeight-a;if(c||u){var h=l(e);c-=_(h,"x"),u-=_(h,"y"),i.width-=c,i.height-=u}return k(i)}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(10),i="HTML"===t.nodeName,o=B(e),s=B(t),a=d(e),c=l(t),u=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=k({top:o.top-s.top-u,left:o.left-s.left-h,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!r&&i){var p=parseFloat(c.marginTop),A=parseFloat(c.marginLeft);f.top-=u-p,f.bottom-=u-p,f.left-=h-A,f.right-=h-A,f.marginTop=p,f.marginLeft=A}return(r&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(f=C(f,t)),f}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=M(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:w(n),a=t?0:w(n,"left"),c={top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:o};return k(c)}function D(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===l(e,"position"))return!0;var n=h(e);return!!n&&D(n)}function R(e){if(!e||!e.parentElement||g())return document.documentElement;var t=e.parentElement;while(t&&"none"===l(t,"transform"))t=t.parentElement;return t||document.documentElement}function L(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=i?R(e):b(e,f(t));if("viewport"===r)o=O(s,i);else{var a=void 0;"scrollParent"===r?(a=d(h(t)),"BODY"===a.nodeName&&(a=e.ownerDocument.documentElement)):a="window"===r?e.ownerDocument.documentElement:r;var c=M(a,s,i);if("HTML"!==a.nodeName||D(s))o=c;else{var u=x(e.ownerDocument),l=u.height,p=u.width;o.top+=c.top-c.marginTop,o.bottom=l+c.top,o.left+=c.left-c.marginLeft,o.right=p+c.left}}n=n||0;var A="number"===typeof n;return o.left+=A?n:n.left||0,o.top+=A?n:n.top||0,o.right-=A?n:n.right||0,o.bottom-=A?n:n.bottom||0,o}function N(e){var t=e.width,n=e.height;return t*n}function U(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=L(n,r,o,i),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},c=Object.keys(a).map(function(e){return I({key:e},a[e],{area:N(a[e])})}).sort(function(e,t){return t.area-e.area}),u=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=u.length>0?u[0].key:c[0].key,h=e.split("-")[1];return l+(h?"-"+h:"")}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?R(t):b(t,f(n));return M(n,i,r)}function j(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function H(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function z(e,t,n){n=n.split("-")[0];var r=j(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return i[s]=t[s]+t[c]/2-r[c]/2,i[a]=n===a?t[a]-r[u]:t[H(a)],i}function Q(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function V(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=Q(e,function(e){return e[t]===n});return e.indexOf(r)}function K(e,t,n){var r=void 0===n?e:e.slice(0,V(e,"name",n));return r.forEach(function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&u(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))}),t}function W(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=U(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=z(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=K(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function G(e,t){return e.some(function(e){var n=e.name,r=e.enabled;return r&&n===t})}function q(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function Y(){return this.state.isDestroyed=!0,G(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[q("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function X(e){var t=e.ownerDocument;return t?t.defaultView:window}function Z(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||Z(d(o.parentNode),t,n,r),r.push(o)}function $(e,t,n,r){n.updateBound=r,X(e).addEventListener("resize",n.updateBound,{passive:!0});var i=d(e);return Z(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=$(this.reference,this.options,this.state,this.scheduleUpdate))}function ee(e,t){return X(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function te(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=ee(this.reference,this.state))}function ne(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function re(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ne(t[n])&&(r="px"),e.style[n]=t[n]+r})}function ie(e,t){Object.keys(t).forEach(function(n){var r=t[n];!1!==r?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function oe(e){return re(e.instance.popper,e.styles),ie(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&re(e.arrowElement,e.arrowStyles),e}function se(e,t,n,r,i){var o=F(i,t,e,n.positionFixed),s=U(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),re(t,{position:n.positionFixed?"fixed":"absolute"}),n}function ae(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,s=Math.floor,a=function(e){return e},c=o(i.width),u=o(r.width),l=-1!==["left","right"].indexOf(e.placement),h=-1!==e.placement.indexOf("-"),d=c%2===u%2,f=c%2===1&&u%2===1,p=t?l||h||d?o:s:a,A=t?o:a;return{left:p(f&&!h&&t?r.left-1:r.left),top:A(r.top),bottom:A(r.bottom),right:p(r.right)}}var ce=r&&/Firefox/i.test(navigator.userAgent);function ue(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Q(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:t.gpuAcceleration,a=m(e.instance.popper),c=B(a),u={position:i.position},l=ae(e,window.devicePixelRatio<2||!ce),h="bottom"===n?"top":"bottom",d="right"===r?"left":"right",f=q("transform"),p=void 0,A=void 0;if(A="bottom"===h?"HTML"===a.nodeName?-a.clientHeight+l.bottom:-c.height+l.bottom:l.top,p="right"===d?"HTML"===a.nodeName?-a.clientWidth+l.right:-c.width+l.right:l.left,s&&f)u[f]="translate3d("+p+"px, "+A+"px, 0)",u[h]=0,u[d]=0,u.willChange="transform";else{var g="bottom"===h?-1:1,y="right"===d?-1:1;u[h]=A*g,u[d]=p*y,u.willChange=h+", "+d}var v={"x-placement":e.placement};return e.attributes=I({},v,e.attributes),e.styles=I({},u,e.styles),e.arrowStyles=I({},e.offsets.arrow,e.arrowStyles),e}function le(e,t,n){var r=Q(e,function(e){var n=e.name;return n===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function he(e,t){var n;if(!le(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,a=o.reference,c=-1!==["left","right"].indexOf(i),u=c?"height":"width",h=c?"Top":"Left",d=h.toLowerCase(),f=c?"left":"top",p=c?"bottom":"right",A=j(r)[u];a[p]-A<s[d]&&(e.offsets.popper[d]-=s[d]-(a[p]-A)),a[d]+A>s[p]&&(e.offsets.popper[d]+=a[d]+A-s[p]),e.offsets.popper=k(e.offsets.popper);var g=a[d]+a[u]/2-A/2,m=l(e.instance.popper),y=parseFloat(m["margin"+h]),v=parseFloat(m["border"+h+"Width"]),b=g-e.offsets.popper[d]-y-v;return b=Math.max(Math.min(s[u]-A,b),0),e.arrowElement=r,e.offsets.arrow=(n={},E(n,d,Math.round(b)),E(n,f,""),n),e}function de(e){return"end"===e?"start":"start"===e?"end":e}var fe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],pe=fe.slice(3);function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pe.indexOf(e),r=pe.slice(n+1).concat(pe.slice(0,n));return t?r.reverse():r}var ge={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function me(e,t){if(G(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=L(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=H(r),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case ge.FLIP:s=[r,i];break;case ge.CLOCKWISE:s=Ae(r);break;case ge.COUNTERCLOCKWISE:s=Ae(r,!0);break;default:s=t.behavior}return s.forEach(function(a,c){if(r!==a||s.length===c+1)return e;r=e.placement.split("-")[0],i=H(r);var u=e.offsets.popper,l=e.offsets.reference,h=Math.floor,d="left"===r&&h(u.right)>h(l.left)||"right"===r&&h(u.left)<h(l.right)||"top"===r&&h(u.bottom)>h(l.top)||"bottom"===r&&h(u.top)<h(l.bottom),f=h(u.left)<h(n.left),p=h(u.right)>h(n.right),A=h(u.top)<h(n.top),g=h(u.bottom)>h(n.bottom),m="left"===r&&f||"right"===r&&p||"top"===r&&A||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&A||!y&&"end"===o&&g),b=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&g||!y&&"end"===o&&A),w=v||b;(d||m||w)&&(e.flipped=!0,(d||m)&&(r=s[c+1]),w&&(o=de(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=I({},e.offsets.popper,z(e.instance.popper,e.offsets.reference,e.placement)),e=K(e.instance.modifiers,e,"flip"))}),e}function ye(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",c=s?"left":"top",u=s?"width":"height";return n[a]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[u]),n[c]>o(r[a])&&(e.offsets.popper[c]=o(r[a])),e}function ve(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return e;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=r}var c=k(a);return c[t]/100*o}if("vh"===s||"vw"===s){var u=void 0;return u="vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*o}return o}function be(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(Q(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(c)[0]]),[s[a].split(c)[1]].concat(s.slice(a+1))]:[s];return u=u.map(function(e,r){var i=(1===r?!o:o)?"height":"width",s=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return ve(e,i,t,n)})}),u.forEach(function(e,t){e.forEach(function(n,r){ne(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}function we(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,s=i.reference,a=r.split("-")[0],c=void 0;return c=ne(+n)?[+n,0]:be(n,o,s,a),"left"===a?(o.top+=c[0],o.left-=c[1]):"right"===a?(o.top+=c[0],o.left+=c[1]):"top"===a?(o.left+=c[0],o.top-=c[1]):"bottom"===a&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function Ce(e,t){var n=t.boundariesElement||m(e.instance.popper);e.instance.reference===n&&(n=m(n));var r=q("transform"),i=e.instance.popper.style,o=i.top,s=i.left,a=i[r];i.top="",i.left="",i[r]="";var c=L(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=s,i[r]=a,t.boundaries=c;var u=t.priority,l=e.offsets.popper,h={primary:function(e){var n=l[e];return l[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(l[e],c[e])),E({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),E({},n,r)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=I({},l,h[t](e))}),e.offsets.popper=l,e}function _e(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),c=a?"left":"top",u=a?"width":"height",l={start:E({},c,o[c]),end:E({},c,o[c]+o[u]-s[u])};e.offsets.popper=I({},s,l[r])}return e}function Se(e){if(!le(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Q(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function xe(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),e.placement=H(t),e.offsets.popper=k(i),e}var Te={shift:{order:100,enabled:!0,fn:_e},offset:{order:200,enabled:!0,fn:we,offset:0},preventOverflow:{order:300,enabled:!0,fn:Ce,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ye},arrow:{order:500,enabled:!0,fn:he,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:me,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:xe},hide:{order:800,enabled:!0,fn:Se},computeStyle:{order:850,enabled:!0,fn:ue,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:oe,onLoad:se,gpuAcceleration:void 0}},Pe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Te},Ee=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};T(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=c(this.update.bind(this)),this.options=I({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(I({}
vendor: 4,136 bytes, line 398
398,e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=I({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return I({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&u(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return P(e,[{key:"update",value:function(){return W.call(this)}},{key:"destroy",value:function(){return Y.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return te.call(this)}}]),e}();Ee.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,Ee.placements=fe,Ee.Defaults=Pe,t.A=Ee},42197:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var i=r(n(96913));function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e){return a(e)||c(e)||u()}function a(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function c(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var l="undefined"!==typeof window;function h(e){return Array.isArray(e)||"object"===o(e)?Object.freeze(e):e}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce(function(e,n){var r=n.passengers[0],i="function"===typeof r?r(t):n.passengers;return e.concat(i)},[])}function f(e,t){return e.map(function(e,t){return[t,e]}).sort(function(e,n){return t(e[1],n[1])||e[0]-n[0]}).map(function(e){return e[1]})}function p(e,t){return t.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}var A={},g={},m={},y=i.extend({data:function(){return{transports:A,targets:g,sources:m,trackInstances:l}},methods:{open:function(e){if(l){var t=e.to,n=e.from,r=e.passengers,o=e.order,s=void 0===o?1/0:o;if(t&&n&&r){var a={to:t,from:n,passengers:h(r),order:s},c=Object.keys(this.transports);-1===c.indexOf(t)&&i.set(this.transports,t,[]);var u=this.$_getTransportIndex(a),d=this.transports[t].slice(0);-1===u?d.push(a):d[u]=a,this.transports[t]=f(d,function(e,t){return e.order-t.order})}}},close:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.to,r=e.from;if(n&&(r||!1!==t)&&this.transports[n])if(t)this.transports[n]=[];else{var i=this.$_getTransportIndex(e);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(e,t,n){l&&(this.trackInstances&&!n&&this.targets[e]&&console.warn("[portal-vue]: Target ".concat(e," already exists")),this.$set(this.targets,e,Object.freeze([t])))},unregisterTarget:function(e){this.$delete(this.targets,e)},registerSource:function(e,t,n){l&&(this.trackInstances&&!n&&this.sources[e]&&console.warn("[portal-vue]: source ".concat(e," already exists")),this.$set(this.sources,e,Object.freeze([t])))},unregisterSource:function(e){this.$delete(this.sources,e)},hasTarget:function(e){return!(!this.targets[e]||!this.targets[e][0])},hasSource:function(e){return!(!this.sources[e]||!this.sources[e][0])},hasContentFor:function(e){return!!this.transports[e]&&!!this.transports[e].length},$_getTransportIndex:function(e){var t=e.to,n=e.from;for(var r in this.transports[t])if(this.transports[t][r].from===n)return+r;return-1}}}),v=new y(A),b=1,w=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(b++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var e=this;
vendor: 5,134 bytes, line 398
398this.$nextTick(function(){v.registerSource(e.name,e)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){v.unregisterSource(this.name),this.clear()},watch:{to:function(e,t){t&&t!==e&&this.clear(t),this.sendUpdate()}},methods:{clear:function(e){var t={from:this.name,to:e||this.to};v.close(t)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(e){return"function"===typeof e?e(this.slotProps):e},sendUpdate:function(){var e=this.normalizeSlots();if(e){var t={from:this.name,to:this.to,passengers:s(e),order:this.order};v.open(t)}else this.clear()}},render:function(e){var t=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return t&&this.disabled?t.length<=1&&this.slim?this.normalizeOwnChildren(t)[0]:e(n,[this.normalizeOwnChildren(t)]):this.slim?e():e(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),C=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:v.transports,firstRender:!0}},created:function(){var e=this;this.$nextTick(function(){v.registerTarget(e.name,e)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(e,t){v.unregisterTarget(t),v.registerTarget(e,this)}},mounted:function(){var e=this;this.transition&&this.$nextTick(function(){e.firstRender=!1})},beforeDestroy:function(){v.unregisterTarget(this.name)},computed:{ownTransports:function(){var e=this.transports[this.name]||[];return this.multiple?e:0===e.length?[]:[e[e.length-1]]},passengers:function(){return d(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var e=this.slim&&!this.transition;return e&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),e}},render:function(e){var t=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return t?n[0]:this.slim&&!r?e():e(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),_=0,S=["disabled","name","order","slim","slotProps","tag","to"],x=["multiple","transition"],T=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(_++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var e=document.querySelector(this.mountTo);if(e){var t=this.$props;if(v.targets[t.name])t.bail?console.warn("[portal-vue]: Target ".concat(t.name," is already mounted.\n        Aborting because 'bail: true' is set")):this.portalTarget=v.targets[t.name];else{var n=t.append;if(n){var r="string"===typeof n?n:"DIV",i=document.createElement(r);e.appendChild(i),e=i}var o=p(this.$props,x);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new C({el:e,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var e=this.portalTarget;if(this.append){var t=e.$el;t.parentNode.removeChild(t)}e.$destroy()},render:function(e){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),e();if(!this.$scopedSlots.manual){var t=p(this.$props,S);return e(w,{props:t,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||e()}});function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.portalName||"Portal",w),e.component(t.portalTargetName||"PortalTarget",C),e.component(t.MountingPortalName||"MountingPortal",T)}var E={install:P};t.ZL=w,t.mf=C,t.g7=v},48379:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return P},encode:function(){return E},toASCII:function(){return k},toUnicode:function(){return I},ucs2decode:function(){return C},ucs2encode:function(){return _}});const r=2147483647,i=36,o=1,s=26,a=38,c=700,u=72,l=128,h="-",d=/^xn--/,f=/[^\0-\x7F]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
398= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=i-o,m=Math.floor,y=String.fromCharCode;function v(e){throw new RangeError(A[e])}function b(e,t){const n=[];let r=e.length;while(r--)n[r]=t(e[r]);return n}function w(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(p,".");const i=e.split("."),o=b(i,t).join(".");return r+o}function C(e){const t=[];let n=0;const r=e.length;while(n<r){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const _=e=>String.fromCodePoint(...e),S=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:i},x=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},T=function(e,t,n){let r=0;for(e=n?m(e/c):e>>1,e+=m(e/t);e>g*s>>1;r+=i)e=m(e/g);return m(r+(g+1)*e/(e+a))},P=function(e){const t=[],n=e.length;let a=0,c=l,d=u,f=e.lastIndexOf(h);f<0&&(f=0);for(let r=0;r<f;++r)e.charCodeAt(r)>=128&&v("not-basic"),t.push(e.charCodeAt(r));for(let u=f>0?f+1:0;u<n;){const l=a;for(let t=1,c=i;;c+=i){u>=n&&v("invalid-input");const l=S(e.charCodeAt(u++));l>=i&&v("invalid-input"),l>m((r-a)/t)&&v("overflow"),a+=l*t;const h=c<=d?o:c>=d+s?s:c-d;if(l<h)break;const f=i-h;t>m(r/f)&&v("overflow"),t*=f}const h=t.length+1;d=T(a-l,h,0==l),m(a/h)>r-c&&v("overflow"),c+=m(a/h),a%=h,t.splice(a++,0,c)}return String.fromCodePoint(...t)},E=function(e){const t=[];e=C(e);const n=e.length;let a=l,c=0,d=u;for(const r of e)r<128&&t.push(y(r));const f=t.length;let p=f;f&&t.push(h);while(p<n){let n=r;for(const t of e)t>=a&&t<n&&(n=t);const u=p+1;n-a>m((r-c)/u)&&v("overflow"),c+=(n-a)*u,a=n;for(const l of e)if(l<a&&++c>r&&v("overflow"),l===a){let e=c;for(let n=i;;n+=i){const r=n<=d?o:n>=d+s?s:n-d;if(e<r)break;const a=e-r,c=i-r;t.push(y(x(r+a%c,0))),e=m(a/c)}t.push(y(x(e,0))),d=T(c,u,p===f),c=0,++p}++c,++a}return t.join("")},I=function(e){return w(e,function(e){return d.test(e)?P(e.slice(4).toLowerCase()):e})},k=function(e){return w(e,function(e){return f.test(e)?"xn--"+E(e):e})},B={version:"2.3.1",ucs2:{decode:C,encode:_},decode:P,encode:E,toASCII:k,toUnicode:I};t["default"]=B},40680:function(e){(function(t,n){e.exports=n()})(0,function(){"use strict";var e=function(){},t=Object.prototype.hasOwnProperty,n=Array.prototype.slice;function r(t,n){var r;return"function"===typeof Object.create?r=Object.create(t):(e.prototype=t,r=new e,e.prototype=null),n&&o(!0,r,n),r}function i(e,t,n,i){var s=this;return"string"!==typeof e&&(i=n,n=t,t=e,e=null),"function"!==typeof t&&(i=n,n=t,t=function(){return s.apply(this,arguments)}),o(!1,t,s,i),t.prototype=r(s.prototype,n),t.prototype.constructor=t,t.class_=e||s.class_,t.super_=s,t}function o(e,r,i){var o,s;i=n.call(arguments,2);for(var a=0,c=i.length;a<c;a++)for(o in s=i[a],s)e&&!t.call(s,o)||(r[o]=s[o])}var s=i;function a(){}a.class_="Nevis",a.super_=Object,a.extend=s;var c=a,u=c,l=u.extend(function(e,t,n){this.qrious=e,this.element=t,this.element.qrious=e,this.enabled=Boolean(n)},{draw:function(e){},getElement:function(){return this.enabled||(this.enabled=!0,this.render()),this.element},getModuleSize:function(e){var t=this.qrious,n=t.padding||0,r=Math.floor((t.size-2*n)/e.width);return Math.max(1,r)},getOffset:function(e){var t=this.qrious,n=t.padding;if(null!=n)return n;var r=this.getModuleSize(e),i=Math.floor((t.size-r*e.width)/2);return Math.max(0,i)},render:function(e){this.enabled&&(this.resize(),this.reset(),this.draw(e))},reset:function(){},resize:function(){}}),h=l,d=h.extend({draw:function(e){var t,n,r=this.qrious,i=this.getModuleSize(e),o=this.getOffset(e),s=this.element.getContext("2d");for(s.fillStyle=r.foreground,s.globalAlpha=r.foregroundAlpha,t=0;t<e.width;t++)for(n=0;n<e.width;n++)e.buffer[n*e.width+t]&&s.fillRect(i*t+o,i*n+o,i,i)},reset:function(){var e=this.qrious,t=this.element.getContext("2d"),n=e.size;t.lineWidth=1,t.clearRect(0,0,n,n),t.fillStyle=e.background,t.globalAlpha=e.backgroundAlpha,t.fillRect(0,0,n,n)},resize:function(){var e=this.element;e.width=e.height=this.qrious.size}}),f=d,p=u.extend(null,{BLOCK:[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28]}),A=p,g=u.extend(null,{BLOCKS:[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,3
vendor: 9,841 bytes, line 398
3980,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],FINAL_FORMAT:[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],LEVELS:{L:1,M:2,Q:3,H:4}}),m=g,y=u.extend(null,{EXPONENT:[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],LOG:[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175]}),v=y,b=u.extend(null,{BLOCK:[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177]}),w=b,C=u.extend(function(e){var t,n,r,i,o,s=e.value.length;this._badness=[],this._level=m.LEVELS[e.level],this._polynomial=[],this._value=e.value,this._version=0,this._stringBuffer=[];while(this._version<40)if(this._version++,r=4*(this._level-1)+16*(this._version-1),i=m.BLOCKS[r++],o=m.BLOCKS[r++],t=m.BLOCKS[r++],n=m.BLOCKS[r],r=t*(i+o)+o-3+(this._version<=9),s<=r)break;this._dataBlock=t,this._eccBlock=n,this._neccBlock1=i,this._neccBlock2=o;var a=this.width=17+4*this._version;this.buffer=C._createArray(a*a),this._ecc=C._createArray(t+(t+n)*(i+o)+o),this._mask=C._createArray((a*(a+1)+1)/2),this._insertFinders(),this._insertAlignments(),this.buffer[8+a*(a-8)]=1,this._insertTimingGap(),this._reverseMask(),this._insertTimingRowAndColumn(),this._insertVersion(),this._syncMask(),this._convertBitStream(s),this._calculatePolynomial(),this._appendEccToData(),this._interleaveBlocks(),this._pack(),this._finish()},{_addAlignment:function(e,t){var n,r=this.buffer,i=this.width;for(r[e+i*t]=1,n=-2;n<2;n++)r[e+n+i*(t-2)]=1,r[e-2+i*(t+n+1)]=1,r[e+2+i*(t+n)]=1,r[e+n+1+i*(t+2)]=1;for(n=0;n<2;n++)this._setMask(e-1,t+n),this._setMask(e+1,t-n),this._setMask(e-n,t-1),this._setMask(e+n,t+1)},_appendData:function(e,t,n,r){var i,o,s,a=this._polynomial,c=this._stringBuffer;for(o=0;o<r;o++)c[n+o]=0;for(o=0;o<t;o++){if(i=v.LOG[c[e+o]^c[n]],255!==i)for(s=1;s<r;s++)c[n+s-1]=c[n+s]^v.EXPONENT[C._modN(i+a[r-s])];else for(s=n;s<n+r;s++)c[s]=c[s+1];c[n+r-1]=255===i?0:v.EXPONENT[C._modN(i+a[0])]}},_appendEccToData:function(){var e,t=0,n=this._dataBlock,r=this._calculateMaxLength(),i=this._eccBlock;for(e=0;e<this._neccBlock1;e++)this._appendData(t,n,r,i),t+=n,r+=i;for(e=0;e<this._neccBlock2;e++)this._appendData(t,n+1,r,i),t+=n+1,r+=i},_applyMask:function(e){var t,n,r,i,o=this.buffer,s=this.width;switch(e){case 0:for(i=0;i<s;i++)for(r=0;r<s;r++)r+i&1||this._isMasked(r,i)||(o[r+i*s]^=1);break;case 1:for(i=0;i<s;i++)for(r=0;r<s;r++)1&i||this._isMasked(r,i)||(o[r+i*s]^=1);break;case 2:for(i=0;i<s;i++)for(t=0,r=0;r<s;r++,t++)3===t&&(t=0),t||this._isMasked(r,i)||(o[r+i*s]^=1);break;case 3:for(n=0,i=0;i<s;i++,n++)for(3===n&&(n=0),t=n,r=0;r<s;r++,t++)3===t&&(t=0),t||this._isMasked(r,i)||(o[r+i*s]^=1);break;case 4:for(i=0;i<s;i++)for(t=0,n=i>>1&1,r=0;r<s;r++,t++)3===t&&(t=0,n=!n),n||this._isMasked(r,i)||(o[r+i*s]^=1);break;case 5:for(n=0,i=0;i<s;i++,n++)for(3===n&&(n=0),t=0,r=0;r<s;r++,t++)3===t&&(t=0),(r&i&1)+!(!t|!n)||this._isMasked(r,i)||(o[r+i*s]^=1);break;case 6:for(n=0,i=0;i<s;i++,n++)for(3===n&&(n=0),t=0,r=0;r<s;r++,t++)3===t&&(t=0),(r&i&1)+(t&&t===n)&1||this._isMasked(r,i)||(o[r+i*s]^=1);break;case 7:for(n=0,i=0;i<s;i++,n++)for(3===n&&(n=0),t=0,r=0;r<s;r++,t++)3===t&&(t=0),(t&&t===n)+(r+i&1)&1||this._isMasked(r,i)||(o[r+i*s]^=1);break}},_calculateMaxLength:function(){return this._dataBlock*(this._neccBlock1+this._neccBlock2)+this._neccBlock2},_calculatePolynomial:function(){var e,t,n=this._eccBlock,r=this._polynomial;for(r[0]=1,e=0;e<n;e++){for(r[e+1]=1,t=e;t>0;t--)r[t]=r[t]?r[t-1]^v.EXPONENT[C._modN(v.LOG[r[t]]+e)]:r[t-1];r[0]=v.EXPONENT[C._modN(v.LOG[r[0]]+e)]}for(e=0;e<=n;e++)r[e]=v.LOG[r[e]]},_checkBadness:function(){var e,t,n,r,i,o=0,s=this._badness,a=this.buffer,c=this.width;for(i=0;i<c-1;i++)for(r=0;r<c-1;r++)(a[r+c*i]&&a[r+1+c*i]&&a[r+c*(i+1)]&&a[r+1+c*(i+1)]||!(a[r+c*i]||a[r+1+c*i]||a[r+c*(i+1)]||a[r+1+c*(i+1)]))&&(o+=C.N2);var u=0;for(i=0;i<c;i++){for(n=0,s[0]=0,e=0,r=0;r<c;r++)t=a[r+c*i],e===t?s[n]++:s[++n]=1,e=t,u+=e?1:-1;o+=this._getBadness(n)}u<0&&(u=-u);var l=0,h=u;h+=h<<2,h<<=1;while(h>c*c)h-=c*c,l++;for(o+=l*C.N4,r=0;r<c;r++){for(n=0,s[0]=0,e=0,i=0;i<c;i++)t=a[r+c*i],e===t?s[n]++:s[++n]=1,e=t;o+=this._getBadness(n)}return o},_convertBitStream:function(e){var t,n,r=this._ecc,i=this._version;for(n=0;n<e;n++)r[n]=this._value.charCodeAt(n);var o=this._stringBuffer=r.slice(),s=this._calculateMaxLength();e>=s-2&&(e=s-2,i>9&&e--);var a=e;if(i>9){o[a+2]=0,o[a+3]=0;while(a--)t=o[a],o[a+3]|=255&t<<4,o[a+2]=t>>4;o[2]|=255&e<<4,o[1]=e>>4,o[0]=64|e>>12}else{o[a+1]=0,o[a+2]=0;while(a--)t=o[a],o[a+2]|=255&t<<4,o[a+1]=t>>4;o[1]|=255&e<<4,o[0]=64|e>>4}a=e+3-(i<10);while(a<s)o[a++]=236,o[a++]=17},_getBadness:function(e){var t,n=0,r=this._badness;for(t=0;t<=e;t++)r[t]>=5&&(n+=C.N1+r[t]-5);for(t=3;t<e-1;t+=2)r[t-2]===r[t+2]&&r[t+2]===r[t-1]&&r[t-1]===r[t+1]&&3*r[t-1]===r[t]&&(0===r[t-3]||t+3>e||3*r[t-3]>=4*r[t]||3*r[t+3]>=4*r[t])&&(n+=C.N3);return n},_finish:function(){var e,t;this._stringBuffer=this.buffer.slice();var n=0,r=3e4;for(t=0;t<8;t++){if(this._applyMask(t),e=this._checkBadness(),e<r&&(r=e,n=t),7===n)break;this.buffer=this._stringBuffer.slice()}n!==t&&this._applyMask(n),r=m.FINAL_FORMAT[n+(this._level-1<<3)];var i=this.buffer,o=this.width;for(t=0;t<8;t++,r>>=1)1&r&&(i[o-1-t+8*o]=1,t<6?i[8+o*t]=1:i[8+o*(t+1)]=1);for(t=0;t<7;t++,r>>=1)1&r&&(i[8+o*(o-7+t)]=1,t?i[6-t+8*o]=1:i[7+8*o]=1)},_interleaveBlocks:function(){var e,t,n=this._dataBlock,r=this._ecc,i=this._eccBlock,o=0,s=this._calculateMaxLength(),a=this._neccBlock1,c=this._neccBlock2,u=this._stringBuffer;for(e=0;e<n;e++){for(t=0;t<a;t++)r[o++]=u[e+t*n];for(t=0;t<c;t++)r[o++]=u[a*n+e+t*(n+1)]}for(t=0;t<c;t++)r[o++]=u[a*n+e+t*(n+1)];for(e=0;e<i;e++)for(t=0;t<a+c;t++)r[o++]=u[s+e+t*i];this._stringBuffer=r},_insertAlignments:function(){var e,t,n,r=this._version,i=this.width;if(r>1)for(e=A.BLOCK[r],n=i-7;;){t=i-7;while(t>e-3){if(this._addAlignment(t,n),t<e)break;t-=e}if(n<=e+9)break;n-=e,this._addAlignment(6,n),this._addAlignment(n,6)}},_insertFinders:function(){var e,t,n,r,i=this.buffer,o=this.width;for(e=0;e<3;e++){for(t=0,r=0,1===e&&(t=o-7),2===e&&(r=o-7),i[r+3+o*(t+3)]=1,n=0;n<6;n++)i[r+n+o*t]=1,i[r+o*(t+n+1)]=1,i[r+6+o*(t+n)]=1,i[r+n+1+o*(t+6)]=1;for(n=1;n<5;n++)this._setMask(r+n,t+1),this._setMask(r+1,t+n+1),this._setMask(r+5,t+n),this._setMask(r+n+1,t+5);for(n=2;n<4;n++)i[r+n+o*(t+2)]=1,i[r+2+o*(t+n+1)]=1,i[r+4+o*(t+n)]=1,i[r+n+1+o*(t+4)]=1}},_insertTimingGap:function(){var e,t,n=this.width;for(t=0;t<7;t++)this._setMask(7,t),this._setMask(n-8,t),this._setMask(7,t+n-7);for(e=0;e<8;e++)this._setMask(e,7),this._setMask(e+n-8,7),this._setMask(e,n-8)},_insertTimingRowAndColumn:function(){var e,t=this.buffer,n=this.width;for(e=0;e<n-14;e++)1&e?(this._setMask(8+e,6),this._setMask(6,8+e)):(t[8+e+6*n]=1,t[6+n*(8+e)]=1)},_insertVersion:function(){var e,t,n,r,i=this.buffer,o=this._version,s=this.width;if(o>6)for(e=w.BLOCK[o-7],t=17,n=0;n<6;n++)for(r=0;r<3;r++,t--)1&(t>11?o>>t-12:e>>t)?(i[5-n+s*(2-r+s-11)]=1,i[2-r+s-11+s*(5-n)]=1):(this._setMask(5-n,2-r+s-11),this._setMask(2-r+s-11,5-n))},_isMasked:function(e,t){var n=C._getMaskBit(e,t);return 1===this._mask[n]},_pack:function(){var e,t,n,r=1,i=1,o=this.width,s=o-1,a=o-1,c=(this._dataBlock+this._eccBlock)*(this._neccBlock1+this._neccBlock2)+this._neccBlock2;
398for(t=0;t<c;t++)for(e=this._stringBuffer[t],n=0;n<8;n++,e<<=1){128&e&&(this.buffer[s+o*a]=1);do{i?s--:(s++,r?0!==a?a--:(s-=2,r=!r,6===s&&(s--,a=9)):a!==o-1?a++:(s-=2,r=!r,6===s&&(s--,a-=8))),i=!i}while(this._isMasked(s,a))}},_reverseMask:function(){var e,t,n=this.width;for(e=0;e<9;e++)this._setMask(e,8);for(e=0;e<8;e++)this._setMask(e+n-8,8),this._setMask(8,e);for(t=0;t<7;t++)this._setMask(8,t+n-7)},_setMask:function(e,t){var n=C._getMaskBit(e,t);this._mask[n]=1},_syncMask:function(){var e,t,n=this.width;for(t=0;t<n;t++)for(e=0;e<=t;e++)this.buffer[e+n*t]&&this._setMask(e,t)}},{_createArray:function(e){var t,n=[];for(t=0;t<e;t++)n[t]=0;return n},_getMaskBit:function(e,t){var n;return e>t&&(n=e,e=t,t=n),n=t,n+=t*t,n>>=1,n+=e,n},_modN:function(e){while(e>=255)e-=255,e=(e>>8)+(255&e);return e},N1:3,N2:3,N3:40,N4:10}),_=C,S=h.extend({draw:function(){this.element.src=this.qrious.toDataURL()},reset:function(){this.element.src=""},resize:function(){var e=this.element;e.width=e.height=this.qrious.size}}),x=S,T=u.extend(function(e,t,n,r){this.name=e,this.modifiable=Boolean(t),this.defaultValue=n,this._valueTransformer=r},{transform:function(e){var t=this._valueTransformer;return"function"===typeof t?t(e,this):e}}),P=T,E=u.extend(null,{abs:function(e){return null!=e?Math.abs(e):null},hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},noop:function(){},toUpperCase:function(e){return null!=e?e.toUpperCase():null}}),I=E,k=u.extend(function(e){this.options={},e.forEach(function(e){this.options[e.name]=e},this)},{exists:function(e){return null!=this.options[e]},get:function(e,t){return k._get(this.options[e],t)},getAll:function(e){var t,n=this.options,r={};for(t in n)I.hasOwn(n,t)&&(r[t]=k._get(n[t],e));return r},init:function(e,t,n){var r,i;for(r in"function"!==typeof n&&(n=I.noop),this.options)I.hasOwn(this.options,r)&&(i=this.options[r],k._set(i,i.defaultValue,t),k._createAccessor(i,t,n));this._setAll(e,t,!0)},set:function(e,t,n){return this._set(e,t,n)},setAll:function(e,t){return this._setAll(e,t)},_set:function(e,t,n,r){var i=this.options[e];if(!i)throw new Error("Invalid option: "+e);if(!i.modifiable&&!r)throw new Error("Option cannot be modified: "+e);return k._set(i,t,n)},_setAll:function(e,t,n){if(!e)return!1;var r,i=!1;for(r in e)I.hasOwn(e,r)&&this._set(r,e[r],t,n)&&(i=!0);return i}},{_createAccessor:function(e,t,n){var r={get:function(){return k._get(e,t)}};e.modifiable&&(r.set=function(r){k._set(e,r,t)&&n(r,e)}),Object.defineProperty(t,e.name,r)},_get:function(e,t){return t["_"+e.name]},_set:function(e,t,n){var r="_"+e.name,i=n[r],o=e.transform(null!=t?t:e.defaultValue);return n[r]=o,o!==i}}),B=k,M=u.extend(function(){this._services={}},{getService:function(e){var t=this._services[e];if(!t)throw new Error("Service is not being managed with name: "+e);return t},setService:function(e,t){if(this._services[e])throw new Error("Service is already managed with name: "+e);t&&(this._services[e]=t)}}),O=M,D=new B([new P("background",!0,"white"),new P("backgroundAlpha",!0,1,I.abs),new P("element"),new P("foreground",!0,"black"),new P("foregroundAlpha",!0,1,I.abs),new P("level",!0,"L",I.toUpperCase),new P("mime",!0,"image/png"),new P("padding",!0,null,I.abs),new P("size",!0,100,I.abs),new P("value",!0,"")]),R=new O,L=u.extend(function(e){D.init(e,this,this.update.bind(this));var t=D.get("element",this),n=R.getService("element"),r=t&&n.isCanvas(t)?t:n.createCanvas(),i=t&&n.isImage(t)?t:n.createImage();this._canvasRenderer=new f(this,r,!0),this._imageRenderer=new x(this,i,i===t),this.update()},{get:function(){return D.getAll(this)},set:function(e){D.setAll(e,this)&&this.update()},toDataURL:function(e){return this.canvas.toDataURL(e||this.mime)},update:function(){var e=new _({level:this.level,value:this.value});this._canvasRenderer.render(e),this._imageRenderer.render(e)}},{use:function(e){R.setService(e.getName(),e)}});Object.defineProperties(L.prototype,{canvas:{get:function(){return this._canvasRenderer.getElement()}},image:{get:function(){return this._imageRenderer.getElement()}}});var N=L,U=N,F=u.extend({getName:function(){}}),j=F,H=j.extend({createCanvas:function(){},createImage:function(){},getName:function(){return"element"},isCanvas:function(e){},isImage:function(e){}}),z=H,Q=z.extend({createCanvas:function(){return document.createElement("canvas")},createImage:function(){return document.createElement("img")},isCanvas:function(e){return e instanceof HTMLCanvasElement},isImage:function(e){return e instanceof HTMLImageElement}}),V=Q;U.use(new V);var K=U;return K})},93146:function(e,t,n){for(var r=n(13491),i="undefined"===typeof window?n.g:window,o=["moz","webkit"],s="AnimationFrame",a=i["request"+s],c=i["cancel"+s]||i["cancelRequest"+s],u=0;!a&&u<o.length;u++)a=i[o[u]+"Request"+s],c=i[o[u]+"Cancel"+s]||i[o[u]+"CancelRequest"+s];if(!a||!c){var l=0,h=0,d=[],f=1e3/60;a=function(e){if(0===d.length){var t=r(),n=Math.max(0,f-(t-l));l=n+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout(function(){throw n},0)}},Math.round(n))}return d.push({handle:++h,callback:e,cancelled:!1}),h},c=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return a.call(i,e)},e.exports.cancel=function(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=a,e.cancelAnimationFrame=c}},82855:function(e){e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
3980",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,s=i.exec(e);if(s){var a=o(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n},this.getHelpXML=function(){for(var e=new Array,r=0;r<n.length;r++)for(var i=n[r].example,o=0;o<i.length;o++)e[e.length]=i[o];for(var s in t)e[e.length]=s;var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(r=0;r<e.length;r++)try{var c=document.createElement("li"),u=new RGBColor(e[r]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),l.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+e[r]+" -> "+u.toRGB()+" -> "+u.toHex());c.appendChild(l),c.appendChild(h),a.appendChild(c)}catch(d){}return a}}},92592:function(e,t,n){"use strict";n.d(t,{p3:function(){return at},Dz:function(){return wt}});var r=["MO","TU","WE","TH","FR","SA","SU"],i=function(){function e(e,t){if(0===t)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(r.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=r[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}(),o=function(e){return null!==e&&void 0!==e},s=function(e){return"number"===typeof e},a=function(e){return"string"===typeof e&&r.includes(e)},c=Array.isArray,u=function(e,t){void 0===t&&(t=e),1===arguments.length&&(t=e,e=0);for(var n=[],r=e;r<t;r++)n.push(r);return n},l=function(e,t){var n=0,r=[];if(c(e))for(;n<t;n++)r[n]=[].concat(e);else for(;n<t;n++)r[n]=e;return r},h=function(e){return c(e)?e:[e]};function d(e,t,n){void 0===n&&(n=" ");var r=String(e);return t|=0,r.length>t?String(r):(t-=r.length,t>n.length&&(n+=l(n,t/n.length)),n.slice(0,t)+String(r))}var f=function(e,t,n){var r=e.split(t);return n?r.slice(0,n).concat([r.slice(n).join(t)]):r},p=function(e,t){var n=e%t;return n*t<0?n+t:n},A=function(e,t){return{div:Math.floor(e/t),mod:p(e,t)}},g=function(e){return!o(e)||0===e.length},m=function(e){return!g(e)},y=function(e,t){return m(e)&&-1!==e.indexOf(t)},v=function(e,t,n,r,i,o){return void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),new Date(Date.UTC(e,t-1,n,r,i,o))},b=[31,28,31,30,31,30,31,31,30,31,30,31],w=864e5,C=9999,_=v(1970,1,1),S=[6,0,1,2,3,4,5],x=function(e){return e%4===0&&e%100!==0||e%400===0},T=function(e){return e instanceof Date},P=function(e){return T(e)&&!isNaN(e.getTime())},E=function(e,t){var n=e.getTime(),r=t.getTime(),i=n-r;return Math.round(i/w)},I=function(e){return E(e,_)},k=function(e){return new Date(_.getTime()+e*w)},B=function(e){var t=e.getUTCMonth();return 1===t&&x(e.getUTCFullYear())?29:b[t]},M=function(e){return S[e.getUTCDay()]},O=function(e,t){var n=v(e,t+1,1);return[M(n),B(n)]},D=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},R=function(e){var t=new Date(e.getTime());return t},L=function(e){for(var t=[],n=0;n<e.length;n++)t.push(R(e[n]));return t},N=function(e){e.sort(function(e,t){return e.getTime()-t.getTime()})},U=function(e,t){void 0===t&&(t=!0);var n=new Date(e);return[d(n.getUTCFullYear().toString(),4,"0"),d(n.getUTCMonth()+1,2,"0"),d(n.getUTCDate(),2,"0"),"T",d(n.getUTCHours(),2,"0"),d(n.getUTCMinutes(),2,"0"),d(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},F=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,n=t.exec(e);if(!n)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[5],10)||0,parseInt(n[6],10)||0,parseInt(n[7],10)||0))}
vendor: 5,086 bytes, line 398
398,j=function(e,t){var n=e.toLocaleString("sv-SE",{timeZone:t});return n.replace(" ","T")+"Z"},H=function(e,t){var n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Date(j(e,n)),i=new Date(j(e,null!==t&&void 0!==t?t:"UTC")),o=i.getTime()-r.getTime();return new Date(e.getTime()-o)},z=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;case"before":case"after":default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),Q=z,V=function(e,t){return V=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])},V(e,t)};function K(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W.apply(this,arguments)};Object.create;function G(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var q,Y=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.iterator=r,i}return K(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(Q),X=Y,Z={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},$=Z,J=function(e,t){return-1!==e.indexOf(t)},ee=function(e){return e.toString()},te=function(e,t,n){return"".concat(t," ").concat(n,", ").concat(e)},ne=function(){function e(e,t,n,r){if(void 0===t&&(t=ee),void 0===n&&(n=$),void 0===r&&(r=te),this.text=[],this.language=n||$,this.gettext=t,this.dateFormatter=r,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),s=[].concat(this.options.bynmonthday);i.sort(function(e,t){return e-t}),s.sort(function(e,t){return t-e}),this.bymonthday=i.concat(s),this.bymonthday.length||(this.bymonthday=null)}if(o(this.origOptions.byweekday)){var a=c(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],u=String(a);this.byweekday={allWeeks:a.filter(function(e){return!e.n}),someWeeks:a.filter(function(e){return Boolean(e.n)}),isWeekdays:-1!==u.indexOf("MO")&&-1!==u.indexOf("TU")&&-1!==u.indexOf("WE")&&-1!==u.indexOf("TH")&&-1!==u.indexOf("FR")&&-1===u.indexOf("SA")&&-1===u.indexOf("SU"),isEveryDay:-1!==u.indexOf("MO")&&-1!==u.indexOf("TU")&&-1!==u.indexOf("WE")&&-1!==u.indexOf("TH")&&-1!==u.indexOf("FR")&&-1!==u.indexOf("SA")&&-1!==u.indexOf("SU")};var l=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(l),this.byweekday.someWeeks.sort(l),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){var n=!0;
vendor: 14,501 bytes, line 398
398if(!(t.options.freq in e.IMPLEMENTED))return!1;if(t.origOptions.until&&t.origOptions.count)return!1;for(var r in t.origOptions){if(J(["dtstart","tzid","wkst","freq"],r))return!0;if(!J(e.IMPLEMENTED[t.options.freq],r))return!1}return n},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[at.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){var t;e=parseInt(e.toString(),10);var n=this.gettext;if(-1===e)return n("last");var r=Math.abs(e);switch(r){case 1:case 21:case 31:t=r+n("st");break;case 2:case 22:t=r+n("nd");break;case 3:case 23:t=r+n("rd");break;default:t=r+n("th")}return e<0?t+" "+n("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=s(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!==1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,n,r){var i=this;void 0===r&&(r=","),c(e)||(e=[e]);var o=function(e,t,n){for(var r="",i=0;i<e.length;i++)0!==i&&(i===e.length-1?r+=" "+n+" ":r+=t+" "),r+=e[i];return r};t=t||function(e){return e.toString()};var s=function(e){return t&&t.call(i,e)};return n?o(e.map(s),r,n):e.map(s).join(r+" ")},e}(),re=ne,ie=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){var e,t;this.symbol=null,this.value=null;do{if(this.done)return!1;var n=void 0;for(var r in e=null,this.rules){n=this.rules[r];var i=n.exec(this.text);i&&(null===e||i[0].length>e[0].length)&&(e=i,t=r)}if(null!=e&&(this.text=this.text.substr(e[0].length),""===this.text&&(this.done=!0)),null==e)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===t);return this.symbol=t,this.value=e,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},e}();function oe(e,t){void 0===t&&(t=$);var n={},r=new ie(t.tokens);return r.start(e)?(i(),n):null;function i(){r.expect("every");var e=r.acceptNumber();if(e&&(n.interval=parseInt(e[0],10)),r.isDone())throw new Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=at.DAILY,r.nextSymbol()&&(s(),h());break;case"weekday(s)":n.freq=at.WEEKLY,n.byweekday=[at.MO,at.TU,at.WE,at.TH,at.FR],r.nextSymbol(),s(),h();break;case"week(s)":n.freq=at.WEEKLY,r.nextSymbol()&&(o(),s(),h());break;case"hour(s)":n.freq=at.HOURLY,r.nextSymbol()&&(o(),h());break;case"minute(s)":n.freq=at.MINUTELY,r.nextSymbol()&&(o(),h());break;case"month(s)":n.freq=at.MONTHLY,r.nextSymbol()&&(o(),h());break;case"year(s)":n.freq=at.YEARLY,r.nextSymbol()&&(o(),h());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=at.WEEKLY;var t=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[at[t]],!r.nextSymbol())return;while(r.accept("comma")){if(r.isDone())throw new Error("Unexpected end");var i=c();if(!i)throw new Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(at[i]),r.nextSymbol()}s(),l(),h();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=at.YEARLY,n.bymonth=[a()],!r.nextSymbol())return;while(r.accept("comma")){if(r.isDone())throw new Error("Unexpected end");var u=a();if(!u)throw new Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(u),r.nextSymbol()}o(),h();break;default:throw new Error("Unknown symbol")}}function o(){var e=r.accept("on"),t=r.accept("the");if(e||t)do{var i=u(),o=c(),s=a();if(i)o?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(at[o].nth(i))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(i),r.accept("day(s)"));else if(o)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(at[o]);else if("weekday(s)"===r.symbol)r.nextSymbol(),n.byweekday||(n.byweekday=[at.MO,at.TU,at.WE,at.TH,at.FR]);else if("week(s)"===r.symbol){r.nextSymbol();var l=r.acceptNumber();if(!l)throw new Error("Unexpected symbol "+r.symbol+", expected week number");n.byweekno=[parseInt(l[0],10)];while(r.accept("comma")){if(l=r.acceptNumber(),!l)throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(l[0],10))}}else{if(!s)return;r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(s)}}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function s(){var e=r.accept("at");if(e)do{var t=r.acceptNumber();if(!t)throw new Error("Unexpected symbol "+r.symbol+", expected hour");n.byhour=[parseInt(t[0],10)];while(r.accept("comma")){if(t=r.acceptNumber(),!t)throw new Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(t[0],10))}}while(r.accept("comma")||r.accept("at"))}function a(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function c(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function u(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var e=parseInt(r.value[1],10);if(e<-366||e>366)throw new Error("Nth out of range: "+e);return r.nextSymbol(),r.accept("last")?-e:e;default:return!1}}function l(){r.accept("on"),r.accept("the");var e=u();if(e){n.bymonthday=[e],r.nextSymbol();while(r.accept("comma")){if(e=u(),!e)throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(e),r.nextSymbol()}}}function h(){if("until"===r.symbol){var e=Date.parse(r.text);if(!e)throw new Error("Cannot parse until date:"+r.text);n.until=new Date(e)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}function se(e){return e<q.HOURLY}(function(e){e[e["YEARLY"]=0]="YEARLY",e[e["MONTHLY"]=1]="MONTHLY",e[e["WEEKLY"]=2]="WEEKLY",e[e["DAILY"]=3]="DAILY",e[e["HOURLY"]=4]="HOURLY",e[e["MINUTELY"]=5]="MINUTELY",e[e["SECONDLY"]=6]="SECONDLY"})(q||(q={}));var ae=function(e,t){return void 0===t&&(t=$),new at(oe(e,t)||void 0)},ce=["count","until","interval","byweekday","bymonthday","bymonth"];re.IMPLEMENTED=[],re.IMPLEMENTED[q.HOURLY]=ce,re.IMPLEMENTED[q.MINUTELY]=ce,re.IMPLEMENTED[q.DAILY]=["byhour"].concat(ce),re.IMPLEMENTED[q.WEEKLY]=ce,re.IMPLEMENTED[q.MONTHLY]=ce,re.IMPLEMENTED[q.YEARLY]=["byweekno","byyearday"].concat(ce);var ue=function(e,t,n,r){return new re(e,t,n,r).toString()},le=re.isFullyConvertible,he=function(){function e(e,t,n,r){this.hour=e,this.minute=t,this.second=n,this.millisecond=r||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},e}(),de=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,i,o,s,a)||this;return c.year=t,c.month=n,c.day=r,c}return K(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return M(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),n=p(this.month,12);this.month=n,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,n){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var r=A(this.hour,24),i=r.div,o=r.mod;if(i&&(this.hour=o,this.addDaily(i)),g(n)||y(n,this.hour))break}},t.prototype.addMinutes=function(e,t,n,r){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var i=A(this.minute,60),o=i.div,s=i.mod;if(o&&(this.minute=s,this.addHours(o,!1,n)),(g(n)||y(n,this.hour))&&(g(r)||y(r,this.minute)))break}},t.prototype.addSeconds=function(e,t,n,r,i){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var o=A(this.second,60),s=o.div,a=o.mod;if(s&&(this.second=a,this.addMinutes(s,!1,n,r)),(g(n)||y(n,this.hour))&&(g(r)||y(r,this.minute))&&(g(i)||y(i,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=O(this.year,this.month-1)[1];if(!(this.day<=e))while(this.day>e){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>C))return;e=O(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var n=e.freq,r=e.interval,i=e.wkst,o=e.byhour,s=e.byminute,a=e.bysecond;switch(n){case q.YEARLY:return this.addYears(r);case q.MONTHLY:return this.addMonths(r);case q.WEEKLY:return this.addWeekly(r,i);case q.DAILY:return this.addDaily(r);case q.HOURLY:return this.addHours(r,t,o);case q.MINUTELY:return this.addMinutes(r,t,o,s);case q.SECONDLY:return this.addSeconds(r,t,o,s,a)}},t}(he);function fe(e){for(var t=[],n=Object.keys(e),r=0,i=n;r<i.length;r++){var o=i[r];
vendor: 14,503 bytes, line 398
398y(st,o)||t.push(o),T(e[o])&&!P(e[o])&&t.push(o)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return W({},e)}function pe(e){var t=W(W({},ot),fe(e));if(o(t.byeaster)&&(t.freq=at.YEARLY),!o(t.freq)||!at.FREQUENCIES[t.freq])throw new Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date((new Date).setMilliseconds(0))),o(t.wkst)?s(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=at.MO.weekday,o(t.bysetpos)){s(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var n=0;n<t.bysetpos.length;n++){var r=t.bysetpos[n];if(0===r||!(r>=-366&&r<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(t.byweekno)||m(t.byweekno)||m(t.byyearday)||Boolean(t.bymonthday)||m(t.bymonthday)||o(t.byweekday)||o(t.byeaster)))switch(t.freq){case at.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case at.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case at.WEEKLY:t.byweekday=[M(t.dtstart)];break}if(o(t.bymonth)&&!c(t.bymonth)&&(t.bymonth=[t.bymonth]),o(t.byyearday)&&!c(t.byyearday)&&s(t.byyearday)&&(t.byyearday=[t.byyearday]),o(t.bymonthday))if(c(t.bymonthday)){var u=[],l=[];for(n=0;n<t.bymonthday.length;n++){r=t.bymonthday[n];r>0?u.push(r):r<0&&l.push(r)}t.bymonthday=u,t.bynmonthday=l}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(o(t.byweekno)&&!c(t.byweekno)&&(t.byweekno=[t.byweekno]),o(t.byweekday))if(s(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(a(t.byweekday))t.byweekday=[i.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof i)!t.byweekday.n||t.freq>at.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{var h=[],d=[];for(n=0;n<t.byweekday.length;n++){var f=t.byweekday[n];s(f)?h.push(f):a(f)?h.push(i.fromStr(f).weekday):!f.n||t.freq>at.MONTHLY?h.push(f.weekday):d.push([f.weekday,f.n])}t.byweekday=m(h)?h:null,t.bynweekday=m(d)?d:null}else t.bynweekday=null;return o(t.byhour)?s(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<at.HOURLY?[t.dtstart.getUTCHours()]:null,o(t.byminute)?s(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<at.MINUTELY?[t.dtstart.getUTCMinutes()]:null,o(t.bysecond)?s(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<at.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function Ae(e){var t=e.dtstart.getTime()%1e3;if(!se(e.freq))return[];var n=[];return e.byhour.forEach(function(r){e.byminute.forEach(function(i){e.bysecond.forEach(function(e){n.push(new he(r,i,e,t))})})}),n}function ge(e){var t=e.split("\n").map(ye).filter(function(e){return null!==e});return W(W({},t[0]),t[1])}function me(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var r=n[1],i=n[2];return r&&(t.tzid=r),t.dtstart=F(i),t}function ye(e){if(e=e.replace(/^\s+|\s+$/,""),!e.length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return ve(e);var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return ve(e);case"DTSTART":return me(e);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(e))}}function ve(e){var t=e.replace(/^RRULE:/i,""),n=me(t),r=e.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return r.forEach(function(t){var r=t.split("="),i=r[0],o=r[1];switch(i.toUpperCase()){case"FREQ":n.freq=q[o.toUpperCase()];break;case"WKST":n.wkst=it[o.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var s=be(o),a=i.toLowerCase();n[a]=s;break;case"BYWEEKDAY":case"BYDAY":n.byweekday=Ce(o);break;case"DTSTART":case"TZID":var c=me(e);n.tzid=c.tzid,n.dtstart=c.dtstart;break;case"UNTIL":n.until=F(o);break;case"BYEASTER":n.byeaster=Number(o);break;default:throw new Error("Unknown RRULE property '"+i+"'")}}),n}function be(e){if(-1!==e.indexOf(",")){var t=e.split(",");return t.map(we)}return we(e)}function we(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function Ce(e){var t=e.split(",");return t.map(function(e){if(2===e.length)return it[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var n=Number(t[1]),r=t[2],o=it[r].weekday;return new i(o,n)})}var _e=function(){function e(e,t){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=U(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:H(this.date,this.tzid)},e}();function Se(e){for(var t=[],n="",r=Object.keys(e),a=Object.keys(ot),u=0;u<r.length;u++)if("tzid"!==r[u]&&y(a,r[u])){var l=r[u].toUpperCase(),d=e[r[u]],f="";if(o(d)&&(!c(d)||d.length)){switch(l){case"FREQ":f=at.FREQUENCIES[e.freq];break;case"WKST":f=s(d)?new i(d).toString():d.toString();break;case"BYWEEKDAY":l="BYDAY",f=h(d).map(function(e){return e instanceof i?e:c(e)?new i(e[0],e[1]):new i(e)}).toString();break;case"DTSTART":n=xe(d,e.tzid);break;case"UNTIL":f=U(d,!e.tzid);break;default:if(c(d)){for(var p=[],A=0;A<d.length;A++)p[A]=String(d[A]);f=p.toString()}else f=String(d)}f&&t.push([l,f])}}var g=t.map(function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n.toString())}).join(";"),m="";return""!==g&&(m="RRULE:".concat(g)),[n,m].filter(function(e){return!!e}).join("\n")}function xe(e,t){return e?"DTSTART"+new _e(new Date(e),t).toString():""}function Te(e,t){return Array.isArray(e)?!!Array.isArray(t)&&(e.length===t.length&&e.every(function(e,n){return e.getTime()===t[n].getTime()})):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var Pe=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,n){t&&(t=t instanceof Date?R(t):L(t)),"all"===e?this.all=t:(n._value=t,this[e].push(n))},e.prototype._cacheGet=function(e,t){var n=!1,r=t?Object.keys(t):[],i=function(e){for(var n=0;n<r.length;n++){var i=r[n];if(!Te(t[i],e[i]))return!0}return!1},o=this[e];if("all"===e)n=this.all;else if(c(o))for(var s=0;s<o.length;s++){var a=o[s];if(!r.length||!i(a)){n=a._value;break}}if(!n&&this.all){var u=new Q(e,t);for(s=0;s<this.all.length;s++)if(!u.accept(this.all[s]))break;n=u.getValue(),this._cacheAdd(e,n,t)}return c(n)?L(n):n instanceof Date?R(n):n},e}(),Ee=G(G(G(G(G(G(G(G(G(G(G(G(G([],l(1,31),!0),l(2,28),!0),l(3,31),!0),l(4,30),!0),l(5,31),!0),l(6,30),!0),l(7,31),!0),l(8,31),!0),l(9,30),!0),l(10,31),!0),l(11,30),!0),l(12,31),!0),l(1,7),!0),Ie=G(G(G(G(G(G(G(G(G(G(G(G(G([],l(1,31),!0),l(2,29),!0),l(3,31),!0),l(4,30),!0),l(5,31),!0),l(6,30),!0),l(7,31),!0),l(8,31),!0),l(9,30),!0),l(10,31),!0),l(11,30),!0),l(12,31),!0),l(1,7),!0),ke=u(1,29),Be=u(1,30),Me=u(1,31),Oe=u(1,32),De=G(G(G(G(G(G(G(G(G(G(G(G(G([],Oe,!0),Be,!0),Oe,!0),Me,!0),Oe,!0),Me,!0),Oe,!0),Oe,!0),Me,!0),Oe,!0),Me,!0),Oe,!0),Oe.slice(0,7),!0),Re=G(G(G(G(G(G(G(G(G(G(G(G(G([],Oe,!0),ke,!0),Oe,!0),Me,!0),Oe,!0),Me,!0),Oe,!0),Oe,!0),Me,!0),Oe,!0),Me,!0),Oe,!0),Oe.slice(0,7),!0),Le=u(-28,0),Ne=u(-29,0),Ue=u(-30,0),Fe=u(-31,0),je=G(G(G(G(G(G(G(G(G(G(G(G(G([],Fe,!0),Ne,!0),Fe,!0),Ue,!0),Fe,!0),Ue,!0),Fe,!0),Fe,!0),Ue,!0),Fe,!0),Ue,!0),Fe,!0),Fe.slice(0,7),!0),He=G(G(G(G(G(G(G(G(G(G(G(G(G([],Fe,!0),Le,!0),Fe,!0),Ue,!0),Fe,!0),Ue,!0),Fe,!0),Fe,!0),Ue,!0),Fe,!0),Ue,!0),Fe,!0),Fe.slice(0,7),!0),ze=[0,31,60,91,121,152,182,213,244,274,305,335,366],Qe=[0,31,59,90,120,151,181,212,243,273,304,334,365],Ve=function(){for(var e=[],t=0;t<55;t++)e=e.concat(u(7));return e}();function Ke(e,t){var n,r,i=v(e,1,1),o=x(e)?366:365,s=x(e+1)?366:365,a=I(i),c=M(i),u=W(W({yearlen:o,nextyearlen:s,yearordinal:a,yearweekday:c},We(e)),{wnomask:null});if(g(t.byweekno))return u;u.wnomask=l(0,o+7);var h=n=p(7-c+t.wkst,7);h>=4?(h=0,r=u.yearlen+p(c-t.wkst,7)):r=o-h;for(var d=Math.floor(r/7),f=p(r,7),A=Math.floor(d+f/4),m=0;m<t.byweekno.length;m++){var b=t.byweekno[m];if(b<0&&(b+=A+1),b>0&&b<=A){var w=void 0;b>1?(w=h+7*(b-1),h!==n&&(w-=7-n)):w=h;for(var C=0;C<7;C++)if(u.wnomask[w]=1,w++,u.wdaymask[w]===t.wkst)break}}if(y(t.byweekno,1)){w=h+7*A;if(h!==n&&(w-=7-n),w<o)for(m=0;m<7;m++)if(u.wnomask[w]=1,w+=1,u.wdaymask[w]===t.wkst)break}if(h){var _=void 0;if(y(t.byweekno,-1))_=-1;else{var S=M(v(e-1,1,1)),T=p(7-S.valueOf()+t.wkst,7),P=x(e-1)?366:365,E=void 0;T>=4?(T=0,E=P+p(S-t.wkst,7)):E=o-h,_=Math.floor(52+p(E,7)/4)}if(y(t.byweekno,_))for(w=0;w<h;w++)u.wnomask[w]=1}return u}function We(e){var t=x(e)?366:365,n=v(e,1,1),r=M(n);return 365===t?{mmask:Ee,mdaymask:Re,nmdaymask:He,wdaymask:Ve.slice(r),mrange:Qe}:{mmask:Ie,mdaymask:De,nmdaymask:je,wdaymask:Ve.slice(r),mrange:ze}}function Ge(e,t,n,r,i,o){var s={lastyear:e,lastmonth:t,nwdaymask:[]},a=[];if(o.freq===at.YEARLY)if(g(o.bymonth))a=[[0,n]];else for(var c=0;c<o.bymonth.length;c++)t=o.bymonth[c],a.push(r.slice(t-1,t+1));else o.freq===at.MONTHLY&&(a=[r.slice(t-1,t+1)]);if(g(a))return s;s.nwdaymask=l(0,n);for(c=0;c<a.length;c++)for(var u=a[c],h=u[0],d=u[1]-1,f=0;f<o.bynweekday.length;f++){var A=void 0,m=o.bynweekday[f],y=m[0],v=m[1];v<0?(A=d+7*(v+1),A-=p(i[A]-y,7)):(A=h+7*(v-1),A+=p(7-i[A]+y,7)),h<=A&&A<=d&&(s.nwdaymask[A]=1)}return s}function qe(e,t){void 0===t&&(t=0);var n=e%19,r=Math.floor(e/100),i=e%100,o=Math.floor(r/4),s=r%4,a=Math.floor((r+8)/25),c=Math.floor((r-a+1)/3),u=Math.floor(19*n+r-o-c+15)%30,l=Math.floor(i/4),h=i%4,d=Math.floor(32+2*s+2*l-u-h)%7,f=Math.floor((n+11*u+22*d)/451),p=Math.floor((u+d-7*f+114)/31),A=(u+d-7*f+114)%31+1,g=Date.UTC(e,p-1,A+t),m=Date.UTC(e,0,1);return[Math.ceil((g-m)/864e5)]}var Ye=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var n=this.options;if(e!==this.lastyear&&(this.yearinfo=Ke(e,n)),m(n.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var r=this.yearinfo,i=r.yearlen,s=r.mrange,a=r.wdaymask;this.monthinfo=Ge(e,t,i,s,a,n)}o(n.byeaster)&&(this.eastermask=qe(e,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[u(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t){for(var n=this.mrange[t-1],r=this.mrange[t],i=l(null,this.yearlen),o=n;o<r;o++)i[o]=o;return[i,n,r]},e.prototype.wdayset=function(e,t,n){for(var r=l(null,this.yearlen+7),i=I(v(e,t,n))-this.yearordinal,o=i,s=0;s<7;s++)if(r[i]=i,++i,this.wdaymask[i]===this.options.wkst)break;return[r,o,i]},e.prototype.ddayset=function(e,t,n){var r=l(null,this.yearlen),i=I(v(e,t,n))-this.yearordinal;return r[i]=i,[r,i,i+1]},e.prototype.htimeset=function(e,t,n,r){var i=this,o=[];return this.options.byminute.forEach(function(t){o=o.concat(i.mtimeset(e,t,n,r))}),N(o),o},e.prototype.mtimeset=function(e,t,n,r){var i=this.options.bysecond.map(function(n){return new he(e,t,n,r)});return N(i),i},e.prototype.stimeset=function(e,t,n,r){return[new he(e,t,n,r)]},e.prototype.getdayset=function(e){switch(e){case q.YEARLY:return this.ydayset.bind(this);case q.MONTHLY:return this.mdayset.bind(this);case q.WEEKLY:return this.wdayset.bind(this);case q.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case q.HOURLY:return this.htimeset.bind(this);case q.MINUTELY:return this.mtimeset.bind(this);case q.SECONDLY:return this.stimeset.bind(this)}},e}(),Xe=Ye;function Ze(e,t,n,r,i,s){for(var a=[],c=0;c<e.length;c++){var u=void 0,l=void 0,h=e[c];h<0?(u=Math.floor(h/t.length),l=p(h,t.length)):(u=Math.floor((h-1)/t.length),l=p(h-1,t.length));for(var d=[],f=n;f<r;f++){var A=s[f];o(A)&&d.push(A)}var g=void 0;g=u<0?d.slice(u)[0]:d[u];var m=t[l],v=k(i.yearordinal+g),b=D(v,m);y(a,b)||a.push(b)}return N(a),a}function $e(e,t){var n=t.dtstart,r=t.freq,i=t.interval,s=t.until,a=t.bysetpos,c=t.count;if(0===c||0===i)return tt(e);var u=de.fromDate(n),l=new Xe(t);l.rebuild(u.year,u.month);for(var h=rt(l,u,t);;){var d=l.getdayset(r)(u.year,u.month,u.day),f=d[0],p=d[1],A=d[2],g=nt(f,p,A,l,t);if(m(a))for(var y=Ze(a,h,p,A,l,f),v=0;v<y.length;v++){var b=y[v];if(s&&b>s)return tt(e);if(b>=n){var w=et(b,t);if(!e.accept(w))return tt(e);if(c&&(--c,!c))return tt(e)}}else for(v=p;v<A;v++){var _=f[v];if(o(_))for(var S=k(l.yearordinal+_),x=0;x<h.length;x++){var T=h[x];b=D(S,T);if(s&&b>s)return tt(e);if(b>=n){w=et(b,t);if(!e.accept(w))return tt(e);if(c&&(--c,!c))return tt(e)}}}if(0===t.interval)return tt(e);if(u.add(t,g),u.year>C)return tt(e);se(r)||(h=l.gettimeset(r)(u.hour,u.minute,u.second,0)),l.rebuild(u.year,u.month)}}function Je(e,t,n){var r=n.bymonth,i=n.byweekno,o=n.byweekday,s=n.byeaster,a=n.bymonthday,c=n.bynmonthday,u=n.byyearday;return m(r)&&!y(r,e.mmask[t])||m(i)&&!e.wnomask[t]||m(o)&&!y(o,e.
vendor: 3,279 bytes, line 398
398wdaymask[t])||m(e.nwdaymask)&&!e.nwdaymask[t]||null!==s&&!y(e.eastermask,t)||(m(a)||m(c))&&!y(a,e.mdaymask[t])&&!y(c,e.nmdaymask[t])||m(u)&&(t<e.yearlen&&!y(u,t+1)&&!y(u,-e.yearlen+t)||t>=e.yearlen&&!y(u,t+1-e.yearlen)&&!y(u,-e.nextyearlen+t-e.yearlen))}function et(e,t){return new _e(e,t.tzid).rezonedDate()}function tt(e){return e.getValue()}function nt(e,t,n,r,i){for(var o=!1,s=t;s<n;s++){var a=e[s];o=Je(r,a,i),o&&(e[a]=null)}return o}function rt(e,t,n){var r=n.freq,i=n.byhour,o=n.byminute,s=n.bysecond;return se(r)?Ae(n):r>=at.HOURLY&&m(i)&&!y(i,t.hour)||r>=at.MINUTELY&&m(o)&&!y(o,t.minute)||r>=at.SECONDLY&&m(s)&&!y(s,t.second)?[]:e.gettimeset(r)(t.hour,t.minute,t.second,t.millisecond)}var it={MO:new i(0),TU:new i(1),WE:new i(2),TH:new i(3),FR:new i(4),SA:new i(5),SU:new i(6)},ot={freq:q.YEARLY,dtstart:null,interval:1,wkst:it.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},st=Object.keys(ot),at=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new Pe,this.origOptions=fe(e);var n=pe(e).parsedOptions;this.options=n}return e.parseText=function(e,t){return oe(e,t)},e.fromText=function(e,t){return ae(e,t)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return $e(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,n){if(this._cache)return this._cache._cacheAdd(e,t,n)},e.prototype.all=function(e){if(e)return this._iter(new X("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new Q("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,n,r){if(void 0===n&&(n=!1),!P(e)||!P(t))throw new Error("Invalid date passed in to RRule.between");var i={before:t,after:e,inc:n};if(r)return this._iter(new X("between",i,r));var o=this._cacheGet("between",i);return!1===o&&(o=this._iter(new Q("between",i)),this._cacheAdd("between",o,i)),o},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!P(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},r=this._cacheGet("before",n);return!1===r&&(r=this._iter(new Q("before",n)),this._cacheAdd("before",r,n)),r},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!P(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},r=this._cacheGet("after",n);return!1===r&&(r=this._iter(new Q("after",n)),this._cacheAdd("after",r,n)),r},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return Se(this.origOptions)},e.prototype.toText=function(e,t,n){return ue(this,e,t,n)},e.prototype.isFullyConvertibleToText=function(){return le(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=q.YEARLY,e.MONTHLY=q.MONTHLY,e.WEEKLY=q.WEEKLY,e.DAILY=q.DAILY,e.HOURLY=q.HOURLY,e.MINUTELY=q.MINUTELY,e.SECONDLY=q.SECONDLY,e.MO=it.MO,e.TU=it.TU,e.WE=it.WE,e.TH=it.TH,e.FR=it.FR,e.SA=it.SA,e.SU=it.SU,e.parseString=ge,e.optionsToString=Se,e}();function ct(e,t,n,r,i,o){var s={},a=e.accept;
vendor: 1,887 bytes, line 398
398function c(e,t){n.forEach(function(n){n.between(e,t,!0).forEach(function(e){s[Number(e)]=!0})})}i.forEach(function(e){var t=new _e(e,o).rezonedDate();s[Number(t)]=!0}),e.accept=function(e){var t=Number(e);return isNaN(t)?a.call(this,e):!(!s[t]&&(c(new Date(t-1),new Date(t+1)),!s[t]))||(s[t]=!0,a.call(this,e))},"between"===e.method&&(c(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!s[t]||(s[t]=!0,a.call(this,e))});for(var u=0;u<r.length;u++){var l=new _e(r[u],o).rezonedDate();if(!e.accept(new Date(l.getTime())))break}t.forEach(function(t){$e(e,t.options)});var h=e._result;switch(N(h),e.method){case"all":case"between":return h;case"before":return h.length&&h[h.length-1]||null;case"after":default:return h.length&&h[0]||null}}var ut={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function lt(e,t){var n=[],r=[],i=[],o=[],s=me(e),a=s.dtstart,c=s.tzid,u=mt(e,t.unfold);return u.forEach(function(e){var t;if(e){var s=gt(e),a=s.name,u=s.parms,l=s.value;switch(a.toUpperCase()){case"RRULE":if(u.length)throw new Error("unsupported RRULE parm: ".concat(u.join(",")));n.push(ge(e));break;case"RDATE":var h=null!==(t=/RDATE(?:;TZID=([^:=]+))?/i.exec(e))&&void 0!==t?t:[],d=h[1];d&&!c&&(c=d),r=r.concat(vt(l,u));break;case"EXRULE":if(u.length)throw new Error("unsupported EXRULE parm: ".concat(u.join(",")));i.push(ge(l));break;case"EXDATE":o=o.concat(vt(l,u));break;case"DTSTART":break;default:throw new Error("unsupported property: "+a)}}}),{dtstart:a,tzid:c,rrulevals:n,rdatevals:r,exrulevals:i,exdatevals:o}}function ht(e,t){var n=lt(e,t),r=n.rrulevals,i=n.rdatevals,o=n.exrulevals,s=n.exdatevals,a=n.dtstart,c=n.tzid,u=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||r.length>1||i.length||o.length||s.length){var l=new wt(u);return l.dtstart(a),l.tzid(c||void 0),r.forEach(function(e){l.rrule(new at(ft(e,a,c),u))}
398),i.forEach(function(e){l.rdate(e)}),o.forEach(function(e){l.exrule(new at(ft(e,a,c),u))}),s.forEach(function(e){l.exdate(e)}),t.compatible&&t.dtstart&&l.rdate(a),l}var h=r[0]||{};return new at(ft(h,h.dtstart||t.dtstart||a,h.tzid||t.tzid||c),u)}function dt(e,t){return void 0===t&&(t={}),ht(e,pt(t))}function ft(e,t,n){return W(W({},e),{dtstart:t,tzid:n})}function pt(e){var t=[],n=Object.keys(e),r=Object.keys(ut);if(n.forEach(function(e){y(r,e)||t.push(e)}),t.length)throw new Error("Invalid options: "+t.join(", "));return W(W({},ut),e)}function At(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=f(e,":",1),n=t[0],r=t[1];return{name:n,value:r}}function gt(e){var t=At(e),n=t.name,r=t.value,i=n.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:r}}function mt(e,t){if(void 0===t&&(t=!1),e=e&&e.trim(),!e)throw new Error("Invalid empty string");if(!t)return e.split(/\s/);var n=e.split("\n"),r=0;while(r<n.length){var i=n[r]=n[r].replace(/\s+$/g,"");i?r>0&&" "===i[0]?(n[r-1]+=i.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n}function yt(e){e.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function vt(e,t){return yt(t),e.split(",").map(function(e){return F(e)})}function bt(e){var t=this;return function(n){if(void 0!==n&&(t["_".concat(e)]=n),void 0!==t["_".concat(e)])return t["_".concat(e)];for(var r=0;r<t._rrule.length;r++){var i=t._rrule[r].origOptions[e];if(i)return i}}}var wt=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this,{},t)||this;return n.dtstart=bt.apply(n,["dtstart"]),n.tzid=bt.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return K(t,e),t.prototype._iter=function(e){return ct(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){Ct(e,this._rrule)},t.prototype.exrule=function(e){Ct(e,this._exrule)},t.prototype.rdate=function(e){_t(e,this._rdate)},t.prototype.exdate=function(e){_t(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return dt(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return dt(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(Se({dtstart:this._dtstart}))),this._rrule.forEach(function(t){e=e.concat(t.toString().split("\n"))}),this._exrule.forEach(function(t){e=e.concat(t.toString().split("\n").map(function(e){return e.replace(/^RRULE:/,"EXRULE:")}).filter(function(e){return!/^DTSTART/.test(e)}))}),this._rdate.length&&e.push(St("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(St("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(t){return e.rrule(t.clone())}),this._exrule.forEach(function(t){return e.exrule(t.clone())}),this._rdate.forEach(function(t){return e.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return e.exdate(new Date(t.getTime()))}),e},t}(at);function Ct(e,t){if(!(e instanceof at))throw new TypeError(String(e)+" is not RRule instance");y(t.map(String),String(e))||t.push(e)}function _t(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");y(t.map(Number),Number(e))||(t.push(e),N(t))}function St(e,t,n){var r=!n||"UTC"===n.toUpperCase(),i=r?"".concat(e,":"):"".concat(e,";TZID=").concat(n,":"),o=t.map(function(e){return U(e.valueOf(),r)}).join(",");return"".concat(i).concat(o)}},98896:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(96913);const i=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},o={name:"vue-awesome-countdown",props:{startTime:{type:[String,Number,Date],default:null,validator:function(e){return"Invalid Date"!==new Date(e).toString()}},endTime:{type:[String,Number,Date],default:null,validator:function(e){return"Invalid Date"!==new Date(e).toString()}},leftTime:{type:Number,default:0},autoStart:{type:Boolean,default:!0},speed:{type:Number,default:1e3,validator:function(e){return e>=0}},tag:{type:String,default:"span"}},computed:{thousandSpeed(){return this.speed>0&&this.speed%1e3===0}},data:function(){return{state:"beforeStart",attrs:{},actualStartTime:null,actualEndTime:null,timeObj:{},countdownTimer:null,runTimes:0,usedTime:0,remainingTime:0}},watch:{speed(e,t){const n=this;if(e<0&&(e=0),e!==t){clearTimeout(n.countdownTimer);const t=Date.now(),r=Math.floor((t-n.actualStartTime)/e),i=t%e;n.runTimes=r,n.$nextTick(()=>{n.countdownTimer=setTimeout(n.doCountdown,i)})}}},created(){const e=this,t=e.startTime&&new Date(e.startTime).getTime()||0,n=t&&t-Date.now()||0;e.autoStart&&(e.state="preheat",setTimeout(()=>{e.startCountdown(!0)},n))},beforeDestroy(){this.countdownTimer&&clearTimeout(this.countdownTimer)},methods:{startCountdown(e){const t=this;"beforeStart"!==t.state&&"stopped"!==t.state&&"paused"!==t.state&&!e||(e&&Ob
398ject.assign(t.$data,t.$options.data.call(t)),"stopped"===t.state&&(t.remainingTime=t.actualEndTime-Date.now()),t.actualEndTime||(t.actualEndTime=t.endTime||Date.now()+(t.remainingTime||t.leftTime)),"paused"===t.state&&(t.actualEndTime=Date.now()+t.remainingTime),t.$emit("start",t),t.state="process",t.doCountdown())},stopCountdown(){const e=this;"process"===e.state&&(clearTimeout(e.countdownTimer),e.$emit("stop",e),e.state="stopped")},pauseCountdown(){const e=this;"process"===e.state&&(clearTimeout(e.countdownTimer),e.remainingTime=e.actualEndTime-Date.now(),e.$emit("paused",e),e.state="paused")},switchCountdown(){const e=this;return"stopped"===e.state||"beforeStart"===e.state?e.startCountdown():"process"===e.state?e.stopCountdown():void 0},finishCountdown(){const e=this;e.state="finished",e.timeObj={},e.usedTime=Date.now()-e.actualStartTime,e.$emit("finish",e)},doCountdown(){const e=this;if("process"!==e.state)return;e.actualStartTime||(e.actualStartTime=Date.now());let t=new Date(e.actualEndTime).getTime()-Date.now();if(!(t>0))return void e.finishCountdown();{const n={};let r=t/1e3,i=t%1e3;e.thousandSpeed&&i>990&&(r=Math.ceil(r),i=0);const o={d:r/60/60/24,h:r/60/60%24,m:r/60%60,s:r%60,ms:i},s={d:parseInt(o.d,10).toString(),h:parseInt(o.h,10).toString().padStart(2,"0"),m:parseInt(o.m,10).toString().padStart(2,"0"),s:parseInt(o.s,10).toString().padStart(2,"0"),ms:o.ms.toString().padStart(3,"0")},a={d:parseInt(Math.ceil(r/60/60/24),10),h:parseInt(Math.ceil(r/60/60),10),m:parseInt(Math.ceil(r/60),10),s:parseInt(Math.ceil(r),10)};n.endTime=e.actualEndTime,n.speed=e.speed,e.usedTime=Date.now()-e.actualStartTime,n.leftTime=t,e.remainingTime=t,e.timeObj=Object.assign({},n,s,{org:o,ceil:a}),e.$emit("process",e)}let n=e.speed+(e.actualStartTime+e.runTimes++*e.speed-Date.now());n<0&&(n+=e.speed),t<e.speed&&(n=t),e.countdownTimer=setTimeout(e.doCountdown,n)}}};function s(e,t,n,i,o,s){return(0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(n.tag),(0,r.mergeProps)(e.attrs,(0,r.toHandlers)(e.$listeners)),{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"prev",(0,r.normalizeProps)((0,r.guardReactiveProps)(this._self))),"beforeStart"===e.state?(0,r.renderSlot)(e.$slots,"before",(0,r.normalizeProps)((0,r.mergeProps)({key:0},this._self))):(0,r.createCommentVNode)("",!0),"preheat"===e.state?(0,r.renderSlot)(e.$slots,"preheat",(0,r.normalizeProps)((0,r.mergeProps)({key:1},this._self))):(0,r.createCommentVNode)("",!0),"process"===e.state||"stopped"===e.state||"paused"===e.state?(0,r.renderSlot)(e.$slots,"process",(0,r.normalizeProps)((0,r.mergeProps)({key:2},this._self))):(0,r.createCommentVNode)("",!0),"finished"===e.state?(0,r.renderSlot)(e.$slots,"finish",(0,r.normalizeProps)((0,r.mergeProps)({key:3},this._self))):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)(this._self)))]),_:3},16)}const a=i(o,[["render",s]]),c=(0,r.defineComponent)({__name:"vue-awesome-countdown-v3",props:{startTime:{default:void 0},endTime:{default:void 0},leftTime:{default:0},autoStart:{type:Boolean,default:!0},speed:{default:1e3},tag:{default:"span"}},emits:["start","stop","paused","finish","process"],setup(e,{expose:t,emit:n}){const i=e,o=n,s=(0,r.ref)("beforeStart"),a=(0,r.ref)({}),c=(0,r.ref)(null),u=(0,r.ref)(null),l=(0,r.ref)({endTime:null,speed:i.speed,leftTime:0,usedTime:0,remainingTime:0,d:"0",h:"00",m:"00",s:"00",ms:"000",org:{d:0,h:0,m:0,s:0,ms:0},ceil:{d:0,h:0,m:0,s:0}}),h=(0,r.ref)(null),d=(0,r.ref)(0),f=(0,r.ref)(0),p=(0,r.ref)(0),A=(0,r.computed)(()=>i.speed>0&&i.speed%1e3===0);(0,r.watch)(()=>i.speed,(e,t)=>{if(e<0&&(e=0),e!==t){g();const t=Date.now(),n=Math.floor((t-(c.value||0))/e),r=t%e;d.value=n,h.value=setTimeout(C,r)}});const g=()=>{h.value&&(clearTimeout(h.value),h.value=null)};(0,r.onMounted)(()=>{if(i.autoStart)if(s.value="preheat",i.startTime){const e=new Date(i.startTime).getTime()-Date.now();h.value=setTimeout(()=>{m(!0)},e)}else h.value=setTimeout(()=>{m(!0)},0)}),(0,r.onUnmounted)(()=>{g()});const m=e=>{"beforeStart"!==s.value&&"stopped"!==s.value&&"paused"!==s.value&&!e||(g(),e&&(s.value="beforeStart",c.value=null,u.value=null,d.value=0,f.value=0,p.value=0,l.value={...l.value,leftTime:0,remainingTime:0,d:"0",h:"00",m:"00",s:"00",ms:"000"}),"stopped"===s.value&&(p.value=(u.value||0)-Date.now()),u.value||(u.value=i.endTime?new Date(i.endTime).getTime():Date.now()+(p.value||i.leftTime)),"paused"===s.value&&(u.value=Date.now()+p.value),o("start",_),s.value="process",C())},y=()=>{"process"===s.value&&(g(),o("stop",_),s.value="stopped")},v=()=>{"process"===s.value&&(g(),p.value=(u.value||0)-Date.now(),o("paused",_),s.value="paused")},b=()=>"stopped"===s.value||"beforeStart"===s.value?m():"process"===s.value?y():void 0,w=()=>{g(),s.value="finished",l.value={...l.value,leftTime:0,remainingTime:0,d:"0",h:"00",m:"00",s:"00",ms:"000"},f.value=Date.now()-(c.value||0),o("finish",_)},C=()=>
398{if("process"!==s.value)return;c.value||(c.value=Date.now());let e=(u.value||0)-Date.now();if(!(e>0))return void w();{let t=e/1e3,n=e%1e3;A.value&&n>990&&(t=Math.ceil(t),n=0);const r={d:t/60/60/24,h:t/60/60%24,m:t/60%60,s:t%60,ms:n},s={d:Math.floor(r.d).toString(),h:Math.floor(r.h).toString().padStart(2,"0"),m:Math.floor(r.m).toString().padStart(2,"0"),s:Math.floor(r.s).toString().padStart(2,"0"),ms:r.ms.toString().padStart(3,"0")},a={d:Math.ceil(t/60/60/24),h:Math.ceil(t/60/60),m:Math.ceil(t/60),s:Math.ceil(t)};f.value=Date.now()-(c.value||0),p.value=e,l.value={endTime:u.value,speed:i.speed,leftTime:e,usedTime:f.value,remainingTime:p.value,...s,org:r,ceil:a},o("process",_)}let t=i.speed+((c.value||0)+d.value++*i.speed-Date.now());t<0&&(t+=i.speed),e<i.speed&&(t=e),h.value=setTimeout(C,t)},_={get state(){return s.value},get attrs(){return a.value},get actualStartTime(){return c.value},get actualEndTime(){return u.value},get timeObj(){return l.value},get runTimes(){return d.value},get usedTime(){return f.value},get remainingTime(){return p.value},get thousandSpeed(){return A.value},startCountdown:m,stopCountdown:y,pauseCountdown:v,switchCountdown:b};return t(_),(t,n)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.tag),(0,r.normalizeProps)((0,r.guardReactiveProps)(a.value)),{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(t.$slots,"prev",(0,r.normalizeProps)((0,r.guardReactiveProps)(_))),"beforeStart"===s.value?(0,r.renderSlot)(t.$slots,"before",(0,r.normalizeProps)((0,r.mergeProps)({key:0},_))):(0,r.createCommentVNode)("",!0),"preheat"===s.value?(0,r.renderSlot)(t.$slots,"preheat",(0,r.normalizeProps)((0,r.mergeProps)({key:1},_))):(0,r.createCommentVNode)("",!0),"process"===s.value||"stopped"===s.value||"paused"===s.value?(0,r.renderSlot)(t.$slots,"process",(0,r.normalizeProps)((0,r.mergeProps)({key:2},_))):(0,r.createCommentVNode)("",!0),"finished"===s.value?(0,r.renderSlot)(t.$slots,"finish",(0,r.normalizeProps)((0,r.mergeProps)({key:3},_))):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(t.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)(_)))]),_:3},16))}}),u=()=>typeof window<"u"&&window.Vue&&window.Vue.version&&window.Vue.version.startsWith("2.")?a:c,l=(e,t)=>{const n=t||"vac",r=u();r&&(e.component(n,r),e.component("countdown",r))},h={install:l};typeof window<"u"&&window.Vue&&window.Vue.use(h);u()},95681:function(e,t,n){var r=n(13698),i={autoSetContainer:!1,appendToBody:!0},o={install:function(e){var t="3."===e.version.slice(0,2)?e.config.globalProperties:e.prototype;t.$clipboardConfig=i,t.$copyText=function(e,t){return new Promise(function(n,o){var s=document.createElement("button"),a=new r(s,{text:function(){return e},action:function(){return"copy"},container:"object"===typeof t?t:document.body});a.on("success",function(e){a.destroy(),n(e)}),a.on("error",function(e){a.destroy(),o(e)}),i.appendToBody&&document.body.appendChild(s),s.click(),i.appendToBody&&document.body.removeChild(s)})},e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{var o=new r(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"},container:i.autoSetContainer?e:void 0});o.on("success",function(t){var n=e._vClipboard_success;n&&n(t)}),o.on("error",function(t){var n=e._vClipboard_error;n&&n(t)}),e._vClipboard=o}},update:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard))}})},config:i};e.exports=o},65874:function(e){!function(t,n){e.exports=n()}(0,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})}
398,t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=2)}([function(e,t,n){var r=n(4)(n(1),n(5),null,null);e.exports=r.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(e){return e>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(e,t,n,r){return n*(1-Math.pow(2,-10*e/r))*1024/1023+t}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,r.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,r.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,r.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,r.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(e){this.startTime||(this.startTime=e),this.timestamp=e;var t=e-this.startTime;this.remaining=this.localDuration-t,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(t,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(t,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(t/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(t/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),t<this.localDuration?this.rAF=(0,r.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(e){return!isNaN(parseFloat(e))},formatNumber:function(e){e=e.toFixed(this.decimals),e+="";var t=e.split("."),n=t[0],r=t.length>1?this.decimal+t[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(n);)n=n.replace(i,"$1"+this.separator+"$2");return this.prefix+n+r+this.suffix}},destroyed:function(){(0,r.cancelAnimationFrame)(this.rAF)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",i.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=0,i="webkit moz ms o".split(" "),o=void 0,s=void 0;if("undefined"==typeof window)t.requestAnimationFrame=o=function(){},t.cancelAnimationFrame=s=function(){};else{t.requestAnimationFrame=o=window.requestAnimationFrame,t.cancelAnimationFrame=s=window.cancelAnimationFrame;for(var a=void 0,c=0;c<i.length&&(!o||!s);c++)a=i[c],t.requestAnimationFrame=o=o||window[a+"RequestAnimationFrame"],t.cancelAnimationFrame=s=s||window[a+"CancelAnimationFrame"]||window[a+"CancelRequestAnimationFrame"];o&&s||(t.requestAnimationFrame=o=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-r)),i=window.setTimeout(function(){e(t+n)},n);return r=t+n,i},t.cancelAnimationFrame=s=function(e){window.clearTimeout(e)})}t.requestAnimationFrame=o,t.cancelAnimationFrame=s},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(i=e,o=e.default);var a="function"==typeof o?o.options:o;if(t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns),n&&(a._scopeId=n),r){var c=Object.create(a.computed||null);Object.keys(r).forEach(function(e){var t=r[e];c[e]=function(){return t}}),a.computed=c}return{esModule:i,exports:o,options:a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._v("\n  "+e._s(e.displayValue)+"\
398n")])},staticRenderFns:[]}}])})},58722:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i={kebab:/-(\w)/g,styleProp:/:(.*)/,styleList:/;(?![^(]*\))/g};function o(e,t){return t?t.toUpperCase():""}function s(e){for(var t,n={},r=0,s=e.split(i.styleList);r<s.length;r++){var a=s[r].split(i.styleProp),c=a[0],u=a[1];(c=c.trim())&&("string"==typeof u&&(u=u.trim()),n[t=c,t.replace(i.kebab,o)]=u)}return n}function a(){for(var e,t,n={},i=arguments.length;i--;)for(var o=0,a=Object.keys(arguments[i]);o<a.length;o++)switch(e=a[o]){case"class":case"style":case"directives":if(Array.isArray(n[e])||(n[e]=[]),"style"===e){var c=void 0;c=Array.isArray(arguments[i].style)?arguments[i].style:[arguments[i].style];for(var u=0;u<c.length;u++){var l=c[u];"string"==typeof l&&(c[u]=s(l))}arguments[i].style=c}n[e]=n[e].concat(arguments[i][e]);break;case"staticClass":if(!arguments[i][e])break;void 0===n[e]&&(n[e]=""),n[e]&&(n[e]+=" "),n[e]+=arguments[i][e].trim();break;case"on":case"nativeOn":n[e]||(n[e]={});for(var h=0,d=Object.keys(arguments[i][e]||{});h<d.length;h++)t=d[h],n[e][t]?n[e][t]=[].concat(n[e][t],arguments[i][e][t]):n[e][t]=arguments[i][e][t];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":n[e]||(n[e]={}),n[e]=r({},arguments[i][e],n[e]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:n[e]||(n[e]=arguments[i][e])}return n}},29463:function(e){(function(){"use strict";var t={complement:window.document.title,separator:"|"},n={},r=[],i=[],o=!1,s={shorthand:{ch:"charset",tg:"target",n:"name",he:"http-equiv",ip:"itemprop",c:"content",p:"property",sc:"scheme",r:"rel",h:"href",sz:"sizes",t:"type",s:"src",a:"async",d:"defer",i:"inner"},getPlace:function(e){return window.document.getElementsByTagName(e)[0]},undoTitle:function(e){e.before&&(window.document.title=e.before)},undo:function(){r.length&&(r.forEach(function(e){e.parentElement.removeChild(e)}),r=[])},prepareElement:function(e,t){var n=this;return Object.keys(e).forEach(function(r){var i=n.shorthand[r]||r;i.match(/(body|undo|replace)/g)||("inner"!==i?t.setAttribute(i,e[r]):t.textContent=e[r])}),t},title:function(e){if(e){n.before=t.complement;var r=e.inner+" "+(e.separator||t.separator)+" "+(e.complement||t.complement);window.document.title=r.trim()}},update:function(){r.length&&(r.forEach(function(e,t){if(i[t]&&!i[t].isEqualNode(e))return e.parentElement.replaceChild(i[t],r[t]),void r.splice(t,1,i[t])}),i=[])},add:function(e,t,n){n.appendChild(t),(void 0===e.undo||e.undo)&&r.push(t)},handle:function(e,t,n,r){var o=this;e&&e.forEach(function(e){var s=e.body?o.getPlace("body"):o.getPlace(n),a=window.document.getElementById(e.id);a||(a=window.document.createElement(t),r=!1),a.hasAttribute("id")?o.prepareElement(e,a):(a=o.prepareElement(e,a),r?i.push(a):o.add(e,a,s))})}};function a(e,r){function i(e){var t=this,n="function"===typeof t.$options.head?t.$options.head.bind(t)():t.$options.head;n&&(Object.keys(n).forEach(function(r){var i=n[r];if(i){var o="function"===typeof i?n[r].bind(t)():n[r];"title"!==r?s.handle(o,r,"head",e):s[r](o)}}),t.$emit("okHead"))}function a(){this.$options.head&&(s.undoTitle(n),s.undo())}o||(o=!0,r&&e.util.extend(t,r),e.version.match(/[1].(.)+/g)&&e.mixin({ready:function(){i.call(this)},destroyed:function(){a.call(this)},events:{updateHead:function(){i.call(this,!0),s.update()}}}),e.version.match(/[2].(.)+/g)&&e.mixin({created:function(){var e=this;e.$on("updateHead",function(){i.call(this,!0),s.update()})},mounted:function(){i.call(this)},beforeDestroy:function(){a.call(this)}}))}a.version="2.2.0","undefined"!==typeof Vue&&Vue.use(a),e.exports=a})()},66262:function(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},78313:function(e,t,n){"use strict";n.d(t,{AV:function(){return i},WB:function(){return a},ZQ:function(){return c}});
399/*!
400 * vue2-transitions v0.3.0
401 * (c) 2019-present cristij <[email protected]>
402 * Released under the MIT License.
403 */
404var r={inheritAttrs:!1,props:{duration:{type:[Number,Object],default:300},delay:{type:[Number,Object],default:0},group:Boolean,tag:{type:String,default:"span"},origin:{type:String,default:""},styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"ease-
404out"}}}},computed:{componentType:function(){return this.group?"transition-group":"transition"},hooks:function(){return Object.assign({beforeEnter:this.beforeEnter,afterEnter:this.cleanUpStyles,beforeLeave:this.beforeLeave,leave:this.leave,afterLeave:this.cleanUpStyles},this.$listeners)}},methods:{beforeEnter:function(e){var t=this.duration.enter?this.duration.enter:this.duration;e.style.animationDuration=t+"ms";var n=this.delay.enter?this.delay.enter:this.delay;e.style.animationDelay=n+"ms",this.setStyles(e)},cleanUpStyles:function(e){var t=this;Object.keys(this.styles).forEach(function(n){var r=t.styles[n];r&&(e.style[n]="")}),e.style.animationDuration="",e.style.animationDelay=""},beforeLeave:function(e){var t=this.duration.leave?this.duration.leave:this.duration;e.style.animationDuration=t+"ms";var n=this.delay.leave?this.delay.leave:this.delay;e.style.animationDelay=n+"ms",this.setStyles(e)},leave:function(e){this.setAbsolutePosition(e)},setStyles:function(e){var t=this;this.setTransformOrigin(e),Object.keys(this.styles).forEach(function(n){var r=t.styles[n];r&&(e.style[n]=r)})},setAbsolutePosition:function(e){return this.group&&(e.style.position="absolute"),this},setTransformOrigin:function(e){return this.origin&&(e.style.transformOrigin=this.origin),this}}};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=" @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fadeIn { animation-name: fadeIn; } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } .fadeOut { animation-name: fadeOut; } .fade-move { transition: transform .3s ease-out; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"fadeIn","move-class":"fade-move","leave-active-class":"fadeOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"fade-transition",mixins:[r]};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".zoom-move { transition: transform .3s ease-out; } @keyframes zoomIn { from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } .zoomIn { animation-name: zoomIn; } @keyframes zoomOut { from { opacity: 1; } 50% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } .zoomOut { animation-name: zoomOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"zoomIn","move-class":"zoom-move","leave-active-class":"zoomOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"zoom-center-transition",mixins:[r]};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".zoom-move { transition: transform .3s ease-out; } @keyframes zoomInX { from { opacity: 0; transform: scaleX(0); } 50% { opacity: 1; } } .zoomInX { animation-name: zoomInX; } @keyframes zoomOutX { from { opacity: 1; } 50% { opacity: 0; transform: scaleX(0); } to { opacity: 0; } } .zoomOutX { animation-name: zoomOutX; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var s={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"zoomInX","move-class":"zoom-move","leave-active-class":"zoomOutX"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"zoom-x-transition",props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.55,0,.1,1)"}}}},mixins:[r]};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".zoom-move { transition: transform .3s ease-out; } @keyframes zoomInY { from { opacity: 0; transform: scaleY(0); } 50% { opacity: 1; tranform: scaleY(1); } } .zoomInY { animation-name: zoomInY; } @keyframes zoomOutY { from { opacity: 1; } 50% { opacity: 0; transform: scaleY(0); } to { opacity: 0; } } .zoomOutY { animation-name: zoomOutY; } ";
404t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"zoomInY","move-class":"zoom-move","leave-active-class":"zoomOutY"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"zoom-y-transition",mixins:[r],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.55,0,.1,1)"}}}}};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=" .collapse-move { transition: transform .3s ease-in-out; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"move-class":"collapse-move"},on:{"before-enter":e.beforeEnter,"after-enter":e.afterEnter,enter:e.enter,"before-leave":e.beforeLeave,leave:e.leave,"after-leave":e.afterLeave}},"component",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[],name:"collapse-transition",mixins:[r],methods:{transitionStyle:function(e){void 0===e&&(e=300);var t=e/1e3,n=t+"s height ease-in-out, "+t+"s padding-top ease-in-out, "+t+"s padding-bottom ease-in-out";return n},beforeEnter:function(e){var t=this.duration.enter?this.duration.enter:this.duration;e.style.transition=this.transitionStyle(t),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0,this.setStyles(e)},enter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){e.style.transition="",e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden",this.setStyles(e)},leave:function(e){var t=this.duration.leave?this.duration.leave:this.duration;0!==e.scrollHeight&&(e.style.transition=this.transitionStyle(t),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0),this.setAbsolutePosition(e)},afterLeave:function(e){e.style.transition="",e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}}};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=" @keyframes scaleIn { from { opacity: 0; transform: scale(0) } to { opacity: 1; } } .scaleIn { animation-name: scaleIn; } @keyframes scaleOut { from { opacity: 1; } to { opacity: 0; transform: scale(0); } } .scaleOut { animation-name: scaleOut; } .scale-move { transition: transform .3s cubic-bezier(.25, .8, .50, 1); } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var u={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"scaleIn","move-class":"scale-move","leave-active-class":"scaleOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"scale-transition",mixins:[r],props:{origin:{type:String,default:"top left"},styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".slide-move { transition: transform .3s; } @keyframes slideYIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; } } .slideYIn { animation-name: slideYIn; } @keyframes slideYOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-15px); } } .slideYOut { animation-name: slideYOut; } ";
404t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,type:"animation","enter-active-class":"slideYIn","move-class":"slide-move","leave-active-class":"slideYOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-y-up-transition",mixins:[r],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".slide-move { transition: transform .3s; } @keyframes slideYDownIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; } } .slideYDownIn { animation-name: slideYDownIn; } @keyframes slideYDownOut { from { opacity: 1; } to { opacity: 0; transform: translateY(15px); } } .slideYDownOut { animation-name: slideYDownOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var h={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"slideYDownIn","leave-active-class":"slideYDownOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-y-down-transition",mixins:[r],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".slide-move { transition: transform .3s; } @keyframes slideXLeftIn { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; } } .slideXLeftIn { animation-name: slideXLeftIn; } @keyframes slideXLeftOut { from { opacity: 1; } to { opacity: 0; transform: translateX(-15px); } } .slideXLeftOut { animation-name: slideXLeftOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var d={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"slideXLeftIn","move-class":"slide-move","leave-active-class":"slideXLeftOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-x-left-transition",mixins:[r],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}};(function(){if("undefined"!==typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".slide-move { transition: transform .3s; } @keyframes slideXRightIn { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; } } .slideXRightIn { animation-name: slideXRightIn; } @keyframes slideXRightOut { from { opacity: 1; } to { opacity: 0; transform: translateX(15px); } } .slideXRightOut { animation-name: slideXRightOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}})();var f={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"slideXRightIn","move-class":"slide-move","leave-active-class":"slideXRightOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-x-right-transition",mixins:[r],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}},p={};function A(e,t){t&&t.components?t.components.forEach(function(t){return e.component(t.name,p[t.name])}):Object.keys(p).forEach(function(t){e.component(t,p[t])})}p[i.name]=i,p[o.name]=o,p[s.name]=s,p[a.name]=a,p[c.name]=c,p[u.name]=u,p[l.name]=l,p[h.name]=h,p[d.name]=d,p[f.name]=f,"undefined"!==typeof window&&window.Vue&&window.Vue.use({install:A})},79306:function(e,t,n){"use strict";var r=n(94901),i=n(16823),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},35548:function(e,t,n){"use strict";var r=n(33517),i=n(16823),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},73506:function(e,t,n){"use strict";var r=n(13925),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},97080:function(e,t,n){"use strict";var r=n(94402).has;e.exports=function(e){return r(e),e}},6469:function(e,t,n){"use strict";var r=n(78227),i=n(2360),o=n(24913).f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},57829:function(e,t,n){"use strict";var r=n(68183).charAt;e.exports=function(e,t,n){return t+(n&&r(e,t).length||1)}},90679:function(e,t,n){"use strict";var r=n(1625),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},28551:function(e,t,n){"use strict";var r=n(20034),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},19617:function(e,t,n){"use strict";var r=n(25397),i=n(35610),o=n(26198),s=function(e){return function(t,n,s){var a=r(t),c=o(a);if(0===c)return!e&&-1;var u,l=i(s,c);if(e&&n!==n){while(c>l)if(u=a[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},34598:function(e,t,n){"use strict";var r=n(79039);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},80926:function(e,t,n){"use strict";
vendor: 11,442 bytes, line 404
404var r=n(79306),i=n(48981),o=n(47055),s=n(26198),a=TypeError,c="Reduce of empty array with no initial value",u=function(e){return function(t,n,u,l){var h=i(t),d=o(h),f=s(h);if(r(n),0===f&&u<2)throw new a(c);var p=e?f-1:0,A=e?-1:1;if(u<2)while(1){if(p in d){l=d[p],p+=A;break}if(p+=A,e?p<0:f<=p)throw new a(c)}for(;e?p>=0:f>p;p+=A)p in d&&(l=n(l,d[p],p,h));return l}};e.exports={left:u(!1),right:u(!0)}},34527:function(e,t,n){"use strict";var r=n(43724),i=n(34376),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!s(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},67680:function(e,t,n){"use strict";var r=n(79504);e.exports=r([].slice)},96319:function(e,t,n){"use strict";var r=n(28551),i=n(9539);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(s){i(e,"throw",s)}}},84428:function(e,t,n){"use strict";var r=n(78227),i=r("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(c){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(c){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},22195:function(e,t,n){"use strict";var r=n(79504),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},36955:function(e,t,n){"use strict";var r=n(92140),i=n(94901),o=n(22195),s=n(78227),a=s("toStringTag"),c=Object,u="Arguments"===o(function(){return arguments}()),l=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=l(t=c(e),a))?n:u?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},77740:function(e,t,n){"use strict";var r=n(39297),i=n(35031),o=n(77347),s=n(24913);e.exports=function(e,t,n){for(var a=i(t),c=s.f,u=o.f,l=0;l<a.length;l++){var h=a[l];r(e,h)||n&&r(n,h)||c(e,h,u(t,h))}}},41436:function(e,t,n){"use strict";var r=n(78227),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},12211:function(e,t,n){"use strict";var r=n(79039);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},62529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},66699:function(e,t,n){"use strict";var r=n(43724),i=n(24913),o=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97040:function(e,t,n){"use strict";var r=n(43724),i=n(24913),o=n(6980);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},62106:function(e,t,n){"use strict";var r=n(50283),i=n(24913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},36840:function(e,t,n){"use strict";var r=n(94901),i=n(24913),o=n(50283),s=n(39433);e.exports=function(e,t,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:t;if(r(n)&&o(n,u,a),a.global)c?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},56279:function(e,t,n){"use strict";var r=n(36840);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},39433:function(e,t,n){"use strict";var r=n(44576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},43724:function(e,t,n){"use strict";var r=n(79039);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(e,t,n){"use strict";var r=n(44576),i=n(20034),o=r.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},96837:function(e){"use strict";var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw new t("Maximum allowed index exceeded");return e}},55002:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},67400:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296:function(e,t,n){"use strict";var r=n(4055),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},88727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},44265:function(e,t,n){"use strict";var r=n(82839);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},89544:function(e,t,n){"use strict";var r=n(82839);e.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)},38574:function(e,t,n){"use strict";var r=n(84215);e.exports="NODE"===r},7860:function(e,t,n){"use strict";var r=n(82839);e.exports=/web0s(?!.*chrome)/i.test(r)},82839:function(e,t,n){"use strict";var r=n(44576),i=r.navigator,o=i&&i.userAgent;e.exports=o?String(o):""},39519:function(e,t,n){"use strict";var r,i,o=n(44576),s=n(82839),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},84215:function(e,t,n){"use strict";var r=n(44576),i=n(82839),o=n(22195),s=function(e){return i.slice(0,e.length)===e};e.exports=function(){return s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},16193:function(e,t,n){"use strict";var r=n(79504),i=Error,o=r("".replace),s=function(e){return String(new i(e).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);e.exports=function(e,t){if(c&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,a,"");return e}},46518:function(e,t,n){"use strict";var r=n(44576),i=n(77347).f,o=n(66699),s=n(36840),a=n(39433),c=n(77740),u=n(92796);e.exports=function(e,t){var n,l,h,d,f,p,A=e.target,g=e.global,m=e.stat;if(l=g?r:m?r[A]||a(A,{}):r[A]&&r[A].prototype,l)for(h in t){if(f=t[h],e.dontCallGetSet?(p=i(l,h),d=p&&p.value):d=l[h],n=u(g?h:A+(m?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),s(l,h,f,e)}}},79039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},89228:function(e,t,n){"use strict";n(27495);var r=n(69565),i=n(36840),o=n(57323),s=n(79039),a=n(78227),c=n(66699),u=a("species"),l=RegExp.prototype;e.exports=function(e,t,n,h){var d=a(e),f=!s(function(){var t={};return t[d]=function(){return 7},7!==""[e](t)}),p=f&&!s(function(){var t=!1,n=/a/;if("split"===e){var r={};r[u]=function(){return n},n={constructor:r,flags:""},n[d]=/./[d]}return n.exec=function(){return t=!0,null},n[d](""),!t});if(!f||!p||n){var A=/./[d],g=t(d,""[e],function(e,t,n,i,s){var a=t.exec;return a===o||a===l.exec?f&&!s?{done:!0,value:r(A,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}});i(String.prototype,e,g[0]),i(l,d,g[1])}h&&c(l[d],"sham",!0)}},18745:function(e,t,n){"use strict";var r=n(40616),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},76080:function(e,t,n){"use strict";var r=n(27476),i=n(79306),o=n(40616),s=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},40616:function(e,t,n){"use strict";var r=n(79039);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},69565:function(e,t,n){"use strict";var r=n(40616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},10350:function(e,t,n){"use strict";var r=n(43724),i=n(39297),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},46706:function(e,t,n){"use strict";var r=n(79504),i=n(79306);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},27476:function(e,t,n){"use strict";var r=n(22195),i=n(79504);e.exports=function(e){if("Function"===r(e))return i(e)}},79504:function(e,t,n){"use strict";var r=n(40616),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},97751:function(e,t,n){"use strict";var r=n(44576),i=n(94901),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]}},1767:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},48646:function(e,t,n){"use strict";var r=n(69565),i=n(28551),o=n(1767),s=n(50851);e.exports=function(e,t){t&&"string"===typeof e||i(e);var n=s(e);return o(i(void 0!==n?r(n,e):e))}},50851:function(e,t,n){"use strict";var r=n(36955),i=n(55966),o=n(64117),s=n(26269),a=n(78227),c=a("iterator");e.exports=function(e){if(!o(e))return i(e,c)||i(e,"@@iterator")||s[r(e)]}},70081:function(e,t,n){"use strict";var r=n(69565),i=n(79306),o=n(28551),s=n(16823),a=n(50851),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return o(r(n,e));throw new c(s(e)+" is not iterable")}},55966:function(e,t,n){"use strict";var r=n(79306),i=n(64117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},83789:function(e,t,n){"use strict";
vendor: 6,410 bytes, line 404
404var r=n(79306),i=n(28551),o=n(69565),s=n(91291),a=n(1767),c="Invalid size",u=RangeError,l=TypeError,h=Math.max,d=function(e,t){this.set=e,this.size=h(t,0),this.has=r(e.has),this.keys=r(e.keys)};d.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new l(c);var n=s(t);if(n<0)throw new u(c);return new d(e,n)}},2478:function(e,t,n){"use strict";var r=n(79504),i=n(48981),o=Math.floor,s=r("".charAt),a=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,d){var f=n+e.length,p=r.length,A=l;return void 0!==h&&(h=i(h),A=u),a(d,A,function(i,a){var u;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,f);case"<":u=h[c(a,1,-1)];break;default:var l=+a;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?s(a,1):r[d-1]+s(a,1):i}u=r[l-1]}return void 0===u?"":u})}},44576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:function(e,t,n){"use strict";var r=n(79504),i=n(48981),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},30421:function(e){"use strict";e.exports={}},90757:function(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},20397:function(e,t,n){"use strict";var r=n(97751);e.exports=r("document","documentElement")},35917:function(e,t,n){"use strict";var r=n(43724),i=n(79039),o=n(4055);e.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},47055:function(e,t,n){"use strict";var r=n(79504),i=n(79039),o=n(22195),s=Object,a=r("".split);e.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):s(e)}:s},23167:function(e,t,n){"use strict";var r=n(94901),i=n(20034),o=n(52967);e.exports=function(e,t,n){var s,a;return o&&r(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},33706:function(e,t,n){"use strict";var r=n(79504),i=n(94901),o=n(77629),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},91181:function(e,t,n){"use strict";var r,i,o,s=n(58622),a=n(44576),c=n(20034),u=n(66699),l=n(39297),h=n(77629),d=n(66119),f=n(30421),p="Object already initialized",A=a.TypeError,g=a.WeakMap,m=function(e){return o(e)?i(e):r(e,{})},y=function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new A("Incompatible receiver, "+e+" required");return n}};if(s||h.state){var v=h.state||(h.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new A(p);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var b=d("state");f[b]=!0,r=function(e,t){if(l(e,b))throw new A(p);return t.facade=e,u(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:r,get:i,has:o,enforce:m,getterFor:y}},44209:function(e,t,n){"use strict";var r=n(78227),i=n(26269),o=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},34376:function(e,t,n){"use strict";var r=n(22195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},94901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},33517:function(e,t,n){"use strict";var r=n(79504),i=n(79039),o=n(94901),s=n(36955),a=n(97751),c=n(33706),u=function(){},l=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),f=!h.test(u),p=function(e){if(!o(e))return!1;try{return l(u,[],e),!0}catch(t){return!1}},A=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,c(e))}catch(t){return!0}};A.sham=!0,e.exports=!l||i(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?A:p},92796:function(e,t,n){"use strict";var r=n(79039),i=n(94901),o=/#|\.prototype\./,s=function(e,t){var n=c[a(e)];return n===l||n!==u&&(i(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},64117:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},20034:function(e,t,n){"use strict";var r=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},13925:function(e,t,n){"use strict";var r=n(20034);e.exports=function(e){return r(e)||null===e}},96395:function(e){"use strict";e.exports=!1},65810:function(e,t,n){"use strict";var r=n(20034),i=n(91181).get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&"RawJSON"===t.type}},60788:function(e,t,n){"use strict";var r=n(20034),i=n(22195),o=n(78227),s=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[s])?!!t:"RegExp"===i(e))}},10757:function(e,t,n){"use strict";var r=n(97751),i=n(94901),o=n(1625),s=n(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},40507:function(e,t,n){"use strict";var r=n(69565);e.exports=function(e,t,n){var i,o,s=n?e:e.iterator,a=e.next;while(!(i=r(a,s)).done)if(o=t(i.value),void 0!==o)return o}},72652:function(e,t,n){"use strict";var r=n(76080),i=n(69565),o=n(28551),s=n(16823),a=n(44209),c=n(26198),u=n(1625),l=n(70081),h=n(50851),d=n(9539),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},A=p.prototype;e.exports=function(e,t,n){var g,m,y,v,b,w,C,_=n&&n.that,S=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),E=r(t,_),I=function(e){var t=g;return g=void 0,t&&d(t,"normal"),new p(!0,e)},k=function(e){return S?(o(e),P?E(e[0],e[1],I):E(e[0],e[1])):P?E(e,I):E(e)};if(x)g=e.iterator;else if(T)g=e;else{if(m=h(e),!m)throw new f(s(e)+" is not iterable");if(a(m)){for(y=0,v=c(e);v>y;y++)if(b=k(e[y]),b&&u(A,b))return b;return new p(!1)}g=l(e,m)}w=x?e.next:g.next;while(!(C=i(w,g)).done){var B=C.value;try{b=k(B)}
vendor: 5,839 bytes, line 404
404catch(M){if(!g)throw M;d(g,"throw",M)}if("object"==typeof b&&b&&u(A,b))return b}return new p(!1)}},91385:function(e,t,n){"use strict";var r=n(9539);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(o){t="throw",n=o}if("throw"===t)throw n;return n}},9539:function(e,t,n){"use strict";var r=n(69565),i=n(28551),o=n(55966);e.exports=function(e,t,n){var s,a;i(e);try{if(s=o(e,"return"),!s){if("throw"===t)throw n;return n}s=r(s,e)}catch(c){a=!0,s=c}if("throw"===t)throw n;if(a)throw s;return i(s),n}},33994:function(e,t,n){"use strict";var r=n(57657).IteratorPrototype,i=n(2360),o=n(6980),s=n(10687),a=n(26269),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),s(e,l,!1,!0),a[l]=c,e}},19462:function(e,t,n){"use strict";var r=n(69565),i=n(2360),o=n(66699),s=n(56279),a=n(78227),c=n(91181),u=n(55966),l=n(57657).IteratorPrototype,h=n(62529),d=n(9539),f=n(91385),p=a("toStringTag"),A="IteratorHelper",g="WrapForValidIterator",m="normal",y="throw",v=c.set,b=function(e){var t=c.getterFor(e?g:A);return s(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return h(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:h(r,n.done)}catch(i){throw n.done=!0,i}},return:function(){var n=t(this),i=n.iterator,o=n.done;if(n.done=!0,e){var s=u(i,"return");return s?r(s,i):h(void 0,!0)}if(o)return h(void 0,!0);if(n.inner)try{d(n.inner.iterator,m)}catch(a){return d(i,y,a)}if(n.openIters)try{f(n.openIters,m)}catch(a){if(i)return d(i,y,a);throw a}return i&&d(i,m),h(void 0,!0)}})},w=b(!0),C=b(!1);o(C,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:A,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,v(this,i)};return r.prototype=t?w:C,r}},51088:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(96395),s=n(10350),a=n(94901),c=n(33994),u=n(42787),l=n(52967),h=n(10687),d=n(66699),f=n(36840),p=n(78227),A=n(26269),g=n(57657),m=s.PROPER,y=s.CONFIGURABLE,v=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),C="keys",_="values",S="entries",x=function(){return this};e.exports=function(e,t,n,s,p,g,T){c(n,t,s);var P,E,I,k=function(e){if(e===p&&R)return R;if(!b&&e&&e in O)return O[e];switch(e){case C:return function(){return new n(this,e)};case _:return function(){return new n(this,e)};case S:return function(){return new n(this,e)}}return function(){return new n(this)}},B=t+" Iterator",M=!1,O=e.prototype,D=O[w]||O["@@iterator"]||p&&O[p],R=!b&&D||k(p),L="Array"===t&&O.entries||D;if(L&&(P=u(L.call(new e)),P!==Object.prototype&&P.next&&(o||u(P)===v||(l?l(P,v):a(P[w])||f(P,w,x)),h(P,B,!0,!0),o&&(A[B]=x))),m&&p===_&&D&&D.name!==_&&(!o&&y?d(O,"name",_):(M=!0,R=function(){return i(D,this)})),p)if(E={values:k(_),keys:g?R:k(C),entries:k(S)},T)for(I in E)(b||M||!(I in O))&&f(O,I,E[I]);else r({target:t,proto:!0,forced:b||M},E);return o&&!T||O[w]===R||f(O,w,R,{name:p}),A[t]=R,E}},30684:function(e){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(r){return!0}}},84549:function(e,t,n){"use strict";var r=n(44576);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,o=i&&i[e],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof t||(s=!1)}if(!s)return o}},57657:function(e,t,n){"use strict";var r,i,o,s=n(79039),a=n(94901),c=n(20034),u=n(2360),l=n(42787),h=n(36840),d=n(78227),f=n(96395),p=d("iterator"),A=!1;[].keys&&(o=[].keys(),"next"in o?(i=l(l(o)),i!==Object.prototype&&(r=i)):A=!0);var g=!c(r)||s(function(){var e={};return r[p].call(e)!==e});g?r={}:f&&(r=u(r)),a(r[p])||h(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:A}},26269:function(e){"use strict";e.exports={}},26198:function(e,t,n){"use strict";var r=n(18014);e.exports=function(e){return r(e.length)}},50283:function(e,t,n){"use strict";var r=n(79504),i=n(79039),o=n(94901),s=n(39297),a=n(43724),c=n(10350).CONFIGURABLE,u=n(33706),l=n(91181),h=l.enforce,d=l.get,f=String,p=Object.defineProperty,A=r("".slice),g=r("".replace),m=r([].join),y=a&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),v=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===A(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=h(e);return s(r,"source")||(r.source=m(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function(){return o(this)&&d(this).source||u(this)},"toString")},72248:function(e,t,n){"use strict";var r=n(79504),i=Map.prototype;e.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i["delete"]),proto:i}},80741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},91955:function(e,t,n){"use strict";var r,i,o,s,a,c=n(44576),u=n(93389),l=n(76080),h=n(59225).set,d=n(18265),f=n(89544),p=n(44265),A=n(7860),g=n(38574),m=c.MutationObserver||c.WebKitMutationObserver,y=c.document,v=c.process,b=c.Promise,w=u("queueMicrotask");if(!w){var C=new d,_=function(){var e,t;g&&(e=v.domain)&&e.exit();while(t=C.get())try{t()}catch(n){throw C.head&&r(),n}e&&e.enter()};f||g||A||!m||!y?!p&&b&&b.resolve?(s=b.resolve(void 0),s.constructor=b,a=l(s.then,s),r=function(){a(_)}):g?r=function(){v.nextTick(_)}:(h=l(h,c),r=function(){h(_)}):(i=!0,o=y.createTextNode(""),new m(_).observe(o,{characterData:!0}
vendor: 3,965 bytes, line 404
404),r=function(){o.data=i=!i}),w=function(e){C.head||r(),C.add(e)}}e.exports=w},27819:function(e,t,n){"use strict";var r=n(79039);e.exports=!r(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},36043:function(e,t,n){"use strict";var r=n(79306),i=TypeError,o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},32603:function(e,t,n){"use strict";var r=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},60511:function(e,t,n){"use strict";var r=n(60788),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},2360:function(e,t,n){"use strict";var r,i=n(28551),o=n(96801),s=n(88727),a=n(30421),c=n(20397),u=n(4055),l=n(66119),h=">",d="<",f="prototype",p="script",A=l("IE_PROTO"),g=function(){},m=function(e){return d+p+h+e+d+"/"+p+h},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}b="undefined"!=typeof document?document.domain&&r?y(r):v():y(r);var e=s.length;while(e--)delete b[f][s[e]];return b()};a[A]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[f]=i(e),n=new g,g[f]=null,n[A]=e):n=b(),void 0===t?n:o.f(n,t)}},96801:function(e,t,n){"use strict";var r=n(43724),i=n(48686),o=n(24913),s=n(28551),a=n(25397),c=n(71072);t.f=r&&!i?Object.defineProperties:function(e,t){s(e);var n,r=a(t),i=c(t),u=i.length,l=0;while(u>l)o.f(e,n=i[l++],r[n]);return e}},24913:function(e,t,n){"use strict";var r=n(43724),i=n(35917),o=n(48686),s=n(28551),a=n(56969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:h in n?n[h]:r[h],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},77347:function(e,t,n){"use strict";var r=n(43724),i=n(69565),o=n(48773),s=n(6980),a=n(25397),c=n(56969),u=n(39297),l=n(35917),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=a(e),t=c(t),l)try{return h(e,t)}catch(n){}if(u(e,t))return s(!i(o.f,e,t),e[t])}},38480:function(e,t,n){"use strict";var r=n(61828),i=n(88727),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},33717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},42787:function(e,t,n){"use strict";var r=n(39297),i=n(94901),o=n(48981),s=n(66119),a=n(12211),c=s("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=o(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},1625:function(e,t,n){"use strict";var r=n(79504);e.exports=r({}.isPrototypeOf)},61828:function(e,t,n){"use strict";var r=n(79504),i=n(39297),o=n(25397),s=n(19617).indexOf,a=n(30421),c=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&c(l,n);while(t.length>u)i(r,n=t[u++])&&(~s(l,n)||c(l,n));return l}},71072:function(e,t,n){"use strict";var r=n(61828),i=n(88727);e.exports=Object.keys||function(e){return r(e,i)}},48773:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},52967:function(e,t,n){"use strict";var r=n(46706),i=n(20034),o=n(67750),s=n(73506);
vendor: 7,159 bytes, line 404
404e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return o(n),s(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},84270:function(e,t,n){"use strict";var r=n(69565),i=n(94901),o=n(20034),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!o(a=r(n,e)))return a;if(i(n=e.valueOf)&&!o(a=r(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!o(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},35031:function(e,t,n){"use strict";var r=n(97751),i=n(79504),o=n(38480),s=n(33717),a=n(28551),c=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?c(t,n(e)):t}},616:function(e,t,n){"use strict";var r=n(79504),i=n(39297),o=SyntaxError,s=parseInt,a=String.fromCharCode,c=r("".charAt),u=r("".slice),l=r(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){var n=!0,r="";while(t<e.length){var p=c(e,t);if("\\"===p){var A=u(e,t,t+2);if(i(h,A))r+=h[A],t+=2;else{if("\\u"!==A)throw new o('Unknown escape sequence: "'+A+'"');t+=2;var g=u(e,t,t+4);if(!l(d,g))throw new o("Bad Unicode escape at: "+t);r+=a(s(g,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(l(f,p))throw new o("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new o("Unterminated string at: "+t);return{value:r,end:t}}},19167:function(e,t,n){"use strict";var r=n(44576);e.exports=r},1103:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},10916:function(e,t,n){"use strict";var r=n(44576),i=n(80550),o=n(94901),s=n(92796),a=n(33706),c=n(78227),u=n(84215),l=n(96395),h=n(39519),d=i&&i.prototype,f=c("species"),p=!1,A=o(r.PromiseRejectionEvent),g=s("Promise",function(){var e=a(i),t=e!==String(i);if(!t&&66===h)return!0;if(l&&(!d["catch"]||!d["finally"]))return!0;if(!h||h<51||!/native code/.test(e)){var n=new i(function(e){e(1)}),r=function(e){e(function(){},function(){})},o=n.constructor={};if(o[f]=r,p=n.then(function(){})instanceof r,!p)return!0}return!t&&("BROWSER"===u||"DENO"===u)&&!A});e.exports={CONSTRUCTOR:g,REJECTION_EVENT:A,SUBCLASSING:p}},80550:function(e,t,n){"use strict";var r=n(44576);e.exports=r.Promise},93438:function(e,t,n){"use strict";var r=n(28551),i=n(20034),o=n(36043);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},90537:function(e,t,n){"use strict";var r=n(80550),i=n(84428),o=n(10916).CONSTRUCTOR;e.exports=o||!i(function(e){r.all(e).then(void 0,function(){})})},18265:function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=t},56682:function(e,t,n){"use strict";var r=n(69565),i=n(28551),o=n(94901),s=n(22195),a=n(57323),c=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===s(e))return r(a,e,t);throw new c("RegExp#exec called on incompatible receiver")}},57323:function(e,t,n){"use strict";var r=n(69565),i=n(79504),o=n(655),s=n(67979),a=n(58429),c=n(25745),u=n(2360),l=n(91181).get,h=n(83635),d=n(18814),f=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,A=p,g=i("".charAt),m=i("".indexOf),y=i("".replace),v=i("".slice),b=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=a.BROKEN_CARET,C=void 0!==/()??/.exec("")[1],_=b||C||w||h||d,S=function(e,t){for(var n=e.groups=u(null),r=0;r<t.length;r++){var i=t[r];n[i[0]]=e[i[1]]}};_&&(A=function(e){var t,n,i,a=this,c=l(a),u=o(e),h=c.raw;if(h)return h.lastIndex=a.lastIndex,t=r(A,h,u),a.lastIndex=h.lastIndex,t&&c.groups&&S(t,c.groups),t;var d=c.groups,_=w&&a.sticky,x=r(s,a),T=a.source,P=0,E=u;if(_){x=y(x,"y",""),-1===m(x,"g")&&(x+="g"),E=v(u,a.lastIndex);var I=a.lastIndex>0&&g(u,a.lastIndex-1);a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==I&&"\r"!==I&&"\u2028"!==I&&"\u2029"!==I)&&(T="(?: (?:"+T+"))",E=" "+E,P++),n=new RegExp("^(?:"+T+")",x)}C&&(n=new RegExp("^"+T+"$(?!\\s)",x)),b&&(i=a.lastIndex);var k=r(p,_?n:a,E);return _?k?(k.input=u,k[0]=v(k[0],P),k.index=a.lastIndex,a.lastIndex+=k[0].length):a.lastIndex=0:b&&k&&(a.lastIndex=a.global?k.index+k[0].length:i),C&&k&&k.length>1&&r(f,k[0],n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(k[e]=void 0)}),k&&d&&S(k,d),k}),e.exports=A},65213:function(e,t,n){"use strict";var r=n(44576),i=n(79039),o=r.RegExp,s=!i(function(){var e=!0;try{o(".","d")}catch(u){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);var c=Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t);return c!==r||n!==r});e.exports={correct:s}},67979:function(e,t,n){"use strict";var r=n(28551);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}},61034:function(e,t,n){"use strict";var r=n(69565),i=n(39297),o=n(1625),s=n(65213),a=n(67979),c=RegExp.prototype;e.exports=s.correct?function(e){return e.flags}:function(e){return s.correct||!o(c,e)||i(e,"flags")?e.flags:r(a,e)}},58429:function(e,t,n){"use strict";var r=n(79039),i=n(44576),o=i.RegExp,s=r(function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),a=s||r(function(){return!o("a","y").sticky}),c=s||r(function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:c,MISSED_STICKY:a,UNSUPPORTED_Y:s}},83635:function(e,t,n){"use strict";var r=n(79039),i=n(44576),o=i.RegExp;e.exports=r(function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},18814:function(e,t,n){"use strict";var r=n(79039),i=n(44576),o=i.RegExp;e.exports=r(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},67750:function(e,t,n){"use strict";var r=n(64117),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},93389:function(e,t,n){"use strict";var r=n(44576),i=n(43724),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},89286:function(e,t,n){"use strict";var r=n(94402),i=n(38469),o=r.Set,s=r.add;e.exports=function(e){var t=new o;return i(e,function(e){s(t,e)}),t}},83440:function(e,t,n){"use strict";var r=n(97080),i=n(94402),o=n(89286),s=n(25170),a=n(83789),c=n(38469),u=n(40507),l=i.has,h=i.remove;e.exports=function(e){var t=r(this),n=a(e),i=o(t);return s(i)<=n.size?c(i,function(e){n.includes(e)&&h(i,e)}):u(n.getIterator(),function(e){l(i,e)&&h(i,e)}),i}},94402:function(e,t,n){"use strict";var r=n(79504),i=Set.prototype;
vendor: 3,994 bytes, line 404
404e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i["delete"]),proto:i}},68750:function(e,t,n){"use strict";var r=n(97080),i=n(94402),o=n(25170),s=n(83789),a=n(38469),c=n(40507),u=i.Set,l=i.add,h=i.has;e.exports=function(e){var t=r(this),n=s(e),i=new u;return o(t)>n.size?c(n.getIterator(),function(e){h(t,e)&&l(i,e)}):a(t,function(e){n.includes(e)&&l(i,e)}),i}},64449:function(e,t,n){"use strict";var r=n(97080),i=n(94402).has,o=n(25170),s=n(83789),a=n(38469),c=n(40507),u=n(9539);e.exports=function(e){var t=r(this),n=s(e);if(o(t)<=n.size)return!1!==a(t,function(e){if(n.includes(e))return!1},!0);var l=n.getIterator();return!1!==c(l,function(e){if(i(t,e))return u(l.iterator,"normal",!1)})}},53838:function(e,t,n){"use strict";var r=n(97080),i=n(25170),o=n(38469),s=n(83789);e.exports=function(e){var t=r(this),n=s(e);return!(i(t)>n.size)&&!1!==o(t,function(e){if(!n.includes(e))return!1},!0)}},28527:function(e,t,n){"use strict";var r=n(97080),i=n(94402).has,o=n(25170),s=n(83789),a=n(40507),c=n(9539);e.exports=function(e){var t=r(this),n=s(e);if(o(t)<n.size)return!1;var u=n.getIterator();return!1!==a(u,function(e){if(!i(t,e))return c(u.iterator,"normal",!1)})}},38469:function(e,t,n){"use strict";var r=n(79504),i=n(40507),o=n(94402),s=o.Set,a=o.proto,c=r(a.forEach),u=r(a.keys),l=u(new s).next;e.exports=function(e,t,n){return n?i({iterator:u(e),next:l},t):c(e,t)}},84916:function(e,t,n){"use strict";var r=n(97751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](i(0));try{return(new n)[e](i(-1)),!1}catch(a){if(!t)return!0;try{return(new n)[e](o(-1/0)),!1}catch(c){var s=new n([1,2]);return t(s[e](o(1/0)))}}}catch(c){return!1}}},39835:function(e){"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(i){return!1}}},25170:function(e,t,n){"use strict";var r=n(46706),i=n(94402);e.exports=r(i.proto,"size","get")||function(e){return e.size}},87633:function(e,t,n){"use strict";var r=n(97751),i=n(62106),o=n(78227),s=n(43724),a=o("species");e.exports=function(e){var t=r(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},83650:function(e,t,n){"use strict";var r=n(97080),i=n(94402),o=n(89286),s=n(83789),a=n(40507),c=i.add,u=i.has,l=i.remove;e.exports=function(e){var t=r(this),n=s(e).getIterator(),i=o(t);return a(n,function(e){u(t,e)?l(i,e):c(i,e)}),i}},10687:function(e,t,n){"use strict";var r=n(24913).f,i=n(39297),o=n(78227),s=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,s)&&r(e,s,{configurable:!0,value:t})}},44204:function(e,t,n){"use strict";var r=n(97080),i=n(94402).add,o=n(89286),s=n(83789),a=n(40507);e.exports=function(e){var t=r(this),n=s(e).getIterator(),c=o(t);return a(n,function(e){i(c,e)}),c}},66119:function(e,t,n){"use strict";var r=n(25745),i=n(33392),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},77629:function(e,t,n){"use strict";var r=n(96395),i=n(44576),o=n(39433),s="__core-js_shared__",a=e.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25745:function(e,t,n){"use strict";var r=n(77629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},2293:function(e,t,n){"use strict";var r=n(28551),i=n(35548),o=n(64117),s=n(78227),a=s("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},68183:function(e,t,n){"use strict";
vendor: 4,833 bytes, line 404
404var r=n(79504),i=n(91291),o=n(655),s=n(67750),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,h=o(s(t)),d=i(n),f=h.length;return d<0||d>=f?e?"":void 0:(r=c(h,d),r<55296||r>56319||d+1===f||(l=c(h,d+1))<56320||l>57343?e?a(h,d):r:e?u(h,d,d+2):l-56320+(r-55296<<10)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},60706:function(e,t,n){"use strict";var r=n(10350).PROPER,i=n(79039),o=n(47452),s="​…᠎";e.exports=function(e){return i(function(){return!!o[e]()||s[e]()!==s||r&&o[e].name!==e})}},43802:function(e,t,n){"use strict";var r=n(79504),i=n(67750),o=n(655),s=n(47452),a=r("".replace),c=RegExp("^["+s+"]+"),u=RegExp("(^|[^"+s+"])["+s+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=a(n,c,"")),2&e&&(n=a(n,u,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},4495:function(e,t,n){"use strict";var r=n(39519),i=n(79039),o=n(44576),s=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},59225:function(e,t,n){"use strict";var r,i,o,s,a=n(44576),c=n(18745),u=n(76080),l=n(94901),h=n(39297),d=n(79039),f=n(20397),p=n(67680),A=n(4055),g=n(22812),m=n(89544),y=n(38574),v=a.setImmediate,b=a.clearImmediate,w=a.process,C=a.Dispatch,_=a.Function,S=a.MessageChannel,x=a.String,T=0,P={},E="onreadystatechange";d(function(){r=a.location});var I=function(e){if(h(P,e)){var t=P[e];delete P[e],t()}},k=function(e){return function(){I(e)}},B=function(e){I(e.data)},M=function(e){a.postMessage(x(e),r.protocol+"//"+r.host)};v&&b||(v=function(e){g(arguments.length,1);var t=l(e)?e:_(e),n=p(arguments,1);return P[++T]=function(){c(t,void 0,n)},i(T),T},b=function(e){delete P[e]},y?i=function(e){w.nextTick(k(e))}:C&&C.now?i=function(e){C.now(k(e))}:S&&!m?(o=new S,s=o.port2,o.port1.onmessage=B,i=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!d(M)?(i=M,a.addEventListener("message",B,!1)):i=E in A("script")?function(e){f.appendChild(A("script"))[E]=function(){f.removeChild(this),I(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:v,clear:b}},35610:function(e,t,n){"use strict";var r=n(91291),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},25397:function(e,t,n){"use strict";var r=n(47055),i=n(67750);e.exports=function(e){return r(i(e))}},91291:function(e,t,n){"use strict";var r=n(80741);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},18014:function(e,t,n){"use strict";var r=n(91291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},48981:function(e,t,n){"use strict";var r=n(67750),i=Object;e.exports=function(e){return i(r(e))}},72777:function(e,t,n){"use strict";var r=n(69565),i=n(20034),o=n(10757),s=n(55966),a=n(84270),c=n(78227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,c=s(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},56969:function(e,t,n){"use strict";var r=n(72777),i=n(10757);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},92140:function(e,t,n){"use strict";var r=n(78227),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},655:function(e,t,n){"use strict";var r=n(36955),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},16823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},33392:function(e,t,n){"use strict";var r=n(79504),i=0,o=Math.random(),s=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:function(e,t,n){"use strict";var r=n(43724),i=n(79039);e.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},22812:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},58622:function(e,t,n){"use strict";var r=n(44576),i=n(94901),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},78227:function(e,t,n){"use strict";var r=n(44576),i=n(25745),o=n(39297),s=n(33392),a=n(4495),c=n(7040),u=r.Symbol,l=i("wks"),h=c?u["for"]||u:u&&u.withoutSetter||s;e.exports=function(e){return o(l,e)||(l[e]=a&&o(u,e)?u[e]:h("Symbol."+e)),l[e]}},47452:function(e){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},74423:function(e,t,n){"use strict";var r=n(46518),i=n(19617).includes,o=n(79039),s=n(6469),a=o(function(){return!Array(1).includes()}
vendor: 9,813 bytes, line 404
404),c=o(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:a||c},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},25276:function(e,t,n){"use strict";var r=n(46518),i=n(27476),o=n(19617).indexOf,s=n(34598),a=i([].indexOf),c=!!a&&1/a([1],1,-0)<0,u=c||!s("indexOf");r({target:"Array",proto:!0,forced:u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?a(this,e,t)||0:o(this,e,t)}})},23792:function(e,t,n){"use strict";var r=n(25397),i=n(6469),o=n(26269),s=n(91181),a=n(24913).f,c=n(51088),u=n(62529),l=n(96395),h=n(43724),d="Array Iterator",f=s.set,p=s.getterFor(d);e.exports=c(Array,"Array",function(e,t){f(this,{type:d,target:r(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var A=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&h&&"values"!==A.name)try{a(A,"name",{value:"values"})}catch(g){}},44114:function(e,t,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),s=n(34527),a=n(96837),c=n(79039),u=c(function(){return 4294967297!==[].push.call({length:4294967296},1)}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},h=u||!l();r({target:"Array",proto:!0,arity:1,forced:h},{push:function(e){var t=i(this),n=o(t),r=arguments.length;a(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return s(t,n),n}})},72712:function(e,t,n){"use strict";var r=n(46518),i=n(80926).left,o=n(34598),s=n(39519),a=n(38574),c=!a&&s>79&&s<83,u=c||!o("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},94490:function(e,t,n){"use strict";var r=n(46518),i=n(79504),o=n(34376),s=i([].reverse),a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})},18111:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(90679),s=n(28551),a=n(94901),c=n(42787),u=n(62106),l=n(97040),h=n(79039),d=n(39297),f=n(78227),p=n(57657).IteratorPrototype,A=n(43724),g=n(96395),m="constructor",y="Iterator",v=f("toStringTag"),b=TypeError,w=i[y],C=g||!a(w)||w.prototype!==p||!h(function(){w({})}),_=function(){if(o(this,p),c(this)===p)throw new b("Abstract class Iterator not directly constructable")},S=function(e,t){A?u(p,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===p)throw new b("You can't redefine this property");d(this,e)?this[e]=t:l(this,e,t)}}):p[e]=t};d(p,v)||S(v,y),!C&&d(p,m)&&p[m]!==Object||S(m,_),_.prototype=p,r({global:!0,constructor:!0,forced:C},{Iterator:_})},81148:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),s=n(79306),a=n(28551),c=n(1767),u=n(9539),l=n(84549),h=l("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:h},{every:function(e){a(this);try{s(e)}catch(r){u(this,"throw",r)}if(h)return i(h,this,e);var t=c(this),n=0;return!o(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},22489:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(28551),a=n(1767),c=n(19462),u=n(96319),l=n(96395),h=n(9539),d=n(30684),f=n(84549),p=!l&&!d("filter",function(){}),A=!l&&!p&&f("filter",TypeError),g=l||p||A,m=c(function(){var e,t,n,r=this.iterator,o=this.predicate,a=this.next;while(1){if(e=s(i(a,r)),t=this.done=!!e.done,t)return;if(n=e.value,u(r,o,[n,this.counter++],!0))return n}});r({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(e){s(this);try{o(e)}catch(t){h(this,"throw",t)}return A?i(A,this,e):new m(a(this),{predicate:e})}})},20116:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),s=n(79306),a=n(28551),c=n(1767),u=n(9539),l=n(84549),h=l("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:h},{find:function(e){a(this);try{s(e)}catch(r){u(this,"throw",r)}if(h)return i(h,this,e);var t=c(this),n=0;return o(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},30531:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(28551),a=n(1767),c=n(48646),u=n(19462),l=n(9539),h=n(96395),d=n(30684),f=n(84549);function p(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e["return"]()}catch(t){return!0}}var A=!h&&!d("flatMap",function(){}),g=!h&&!A&&f("flatMap",TypeError),m=h||A||g||p(),y=u(function(){var e,t,n=this.iterator,r=this.mapper;while(1){if(t=this.inner)try{if(e=s(i(t.next,t.iterator)),!e.done)return e.value;this.inner=null}catch(o){l(n,"throw",o)}if(e=s(i(this.next,n)),this.done=!!e.done)return;try{this.inner=c(r(e.value,this.counter++),!1)}catch(o){l(n,"throw",o)}}});r({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){s(this);try{o(e)}catch(t){l(this,"throw",t)}return g?i(g,this,e):new y(a(this),{mapper:e,inner:null})}})},7588:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),s=n(79306),a=n(28551),c=n(1767),u=n(9539),l=n(84549),h=l("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:h},{forEach:function(e){a(this);try{s(e)}catch(r){u(this,"throw",r)}if(h)return i(h,this,e);var t=c(this),n=0;o(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},61701:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(28551),a=n(1767),c=n(19462),u=n(96319),l=n(9539),h=n(30684),d=n(84549),f=n(96395),p=!f&&!h("map",function(){}),A=!f&&!p&&d("map",TypeError),g=f||p||A,m=c(function(){var e=this.iterator,t=s(i(this.next,e)),n=this.done=!!t.done;if(!n)return u(e,this.mapper,[t.value,this.counter++],!0)});r({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(e){s(this);try{o(e)}catch(t){l(this,"throw",t)}return A?i(A,this,e):new m(a(this),{mapper:e})}})},18237:function(e,t,n){"use strict";var r=n(46518),i=n(72652),o=n(79306),s=n(28551),a=n(1767),c=n(9539),u=n(84549),l=n(18745),h=n(79039),d=TypeError,f=h(function(){[].keys().reduce(function(){},void 0)}),p=!f&&u("reduce",d);r({target:"Iterator",proto:!0,real:!0,forced:f||p},{reduce:function(e){s(this);try{o(e)}catch(h){c(this,"throw",h)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return l(p,this,t?[e]:[e,n]);var r=a(this),u=0;if(i(r,function(r){t?(t=!1,n=r):n=e(n,r,u),u++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return n}})},13579:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),s=n(79306),a=n(28551),c=n(1767),u=n(9539),l=n(84549),h=l("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:h},{some:function(e){a(this);try{s(e)}catch(r){u(this,"throw",r)}if(h)return i(h,this,e);var t=c(this),n=0;return o(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},69112:function(e,t,n){"use strict";var r=n(46518),i=n(43724),o=n(44576),s=n(97751),a=n(79504),c=n(69565),u=n(94901),l=n(20034),h=n(34376),d=n(39297),f=n(655),p=n(26198),A=n(97040),g=n(79039),m=n(616),y=n(4495),v=o.JSON,b=o.Number,w=o.SyntaxError,C=v&&v.parse,_=s("Object","keys"),S=Object.getOwnPropertyDescriptor,x=a("".charAt),T=a("".slice),P=a(/./.exec),E=a([].push),I=/^\d$/,k=/^[1-9]$/,B=/^[\d-]$/,M=/^[\t\n\r ]$/,O=0,D=1,R=function(e,t){e=f(e);var n=new F(e,0,""),r=n.parse(),i=r.value,o=n.skip(M,r.end);if(o<e.length)throw new w('Unexpected extra character: "'+x(e,o)+'" after the parsed data at: '+o);return u(t)?L({"":i},"",t,r):i},L=function(e,t,n,r){var i,o,s,a,u,f=e[t],A=r&&f===r.value,g=A&&"string"==typeof r.source?{source:r.source}:{};if(l(f)){var m=h(f),y=A?r.nodes:m?[]:{};if(m)for(i=y.length,s=p(f),a=0;a<s;a++)N(f,a,L(f,""+a,n,a<i?y[a]:void 0));else for(o=_(f),s=p(o),a=0;a<s;a++)u=o[a],N(f,u,L(f,u,n,d(y,u)?y[u]:void 0))}return c(n,e,t,f,g)},N=function(e,t,n){if(i){var r=S(e,t);if(r&&!r.configurable)return}void 0===n?delete e[t]:A(e,t,n)},U=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},F=function(e,t){this.source=e,this.index=t};F.prototype={fork:function(e){return new F(this.source,e)},parse:function(){var e=this.source,t=this.skip(M,this.index),n=this.fork(t),r=x(e,t);if(P(B,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new w('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,i){return new U(t,r,e?null:T(this.source,n,r),i)},object:function(){var e=this.source,t=this.index+1,n=!1,r={},i={},o=!1;while(t<e.length){if(t=this.until(['"',"}"],t),"}"===x(e,t)&&!n){t++,o=!0;break}var s=this.fork(t).string(),a=s.value;t=s.end,t=this.until([":"],t)+1,t=this.skip(M,t),s=this.fork(t).parse(),A(i,a,s),A(r,a,s.value),t=this.until([",","}"],s.end);var c=x(e,t);if(","===c)n=!0,t++;else if("}"===c){t++,o=!0;break}}if(!o)throw new w("Unterminated object at: "+t);return this.node(D,r,this.index,t,i)},array:function(){var e=this.source,t=this.index+1,n=!1,r=[],i=[],o=!1;while(t<e.length){if(t=this.skip(M,t),"]"===x(e,t)&&!n){t++,o=!0;break}var s=this.fork(t).parse();if(E(i,s),E(r,s.value),t=this.until([",","]"],s.end),","===x(e,t))n=!0,t++;else if("]"===x(e,t)){t++,o=!0;break}}if(!o)throw new w("Unterminated array at: "+t);return this.node(D,r,this.index,t,i)},string:function(){var e=this.index,t=m(this.source,this.index+1);return this.node(O,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===x(e,n)&&n++,"0"===x(e,n))n++;else{if(!P(k,x(e,n)))throw new w("Failed to parse number at: "+n);n=this.skip(I,n+1)}if("."===x(e,n)){var r=n+1;if(n=this.skip(I,r),r===n)throw new w("Failed to parse number's fraction at: "+n)}if("e"===x(e,n)||"E"===x(e,n)){n++,"+"!==x(e,n)&&"-"!==x(e,n)||n++;var i=n;
vendor: 5,436 bytes, line 404
404if(n=this.skip(I,n),i===n)throw new w("Failed to parse number's exponent value at: "+n)}return this.node(O,b(T(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(T(this.source,n,r)!==t)throw new w("Failed to parse value at: "+n);return this.node(O,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length;t++)if(!P(e,x(n,t)))break;return t},until:function(e,t){t=this.skip(M,t);for(var n=x(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new w('Unexpected character: "'+n+'" at: '+t)}};var j=g(function(){var e,t="9007199254740993";return C(t,function(t,n,r){e=r.source}),e!==t}),H=y&&!g(function(){return 1/C("-0 \t")!==-1/0});r({target:"JSON",stat:!0,forced:j},{parse:function(e,t){return H&&!u(t)?C(e):R(e,t)}})},33110:function(e,t,n){"use strict";var r=n(46518),i=n(97751),o=n(18745),s=n(69565),a=n(79504),c=n(79039),u=n(34376),l=n(94901),h=n(65810),d=n(10757),f=n(22195),p=n(655),A=n(67680),g=n(616),m=n(33392),y=n(4495),v=n(27819),b=String,w=i("JSON","stringify"),C=a(/./.exec),_=a("".charAt),S=a("".charCodeAt),x=a("".replace),T=a("".slice),P=a([].push),E=a(1.1.toString),I=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,B=/^[\uDC00-\uDFFF]$/,M=m(),O=M.length,D=!y||c(function(){var e=i("Symbol")("stringify detection");return"[null]"!==w([e])||"{}"!==w({a:e})||"{}"!==w(Object(e))}),R=c(function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")}),L=D?function(e,t){var n=A(arguments),r=U(t);if(l(r)||void 0!==e&&!d(e))return n[1]=function(e,t){if(l(r)&&(t=s(r,this,b(e),t)),!d(t))return t},o(w,null,n)}:w,N=function(e,t,n){var r=_(n,t-1),i=_(n,t+1);return C(k,e)&&!C(B,i)||C(B,e)&&!C(k,r)?"\\u"+E(S(e,0),16):e},U=function(e){if(l(e))return e;if(u(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?P(n,i):"number"!=typeof i&&"Number"!==f(i)&&"String"!==f(i)||P(n,p(i))}var o=n.length,s=!0;return function(e,t){if(s)return s=!1,t;if(u(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}};w&&r({target:"JSON",stat:!0,arity:3,forced:D||R||!v},{stringify:function(e,t,n){var r=U(t),i=[],o=L(e,function(e,t){var n=l(r)?s(r,this,b(e),t):t;return!v&&h(n)?M+(P(i,n.rawJSON)-1):n},n);if("string"!=typeof o)return o;if(R&&(o=x(o,I,N)),v)return o;for(var a="",c=o.length,u=0;u<c;u++){var d=_(o,u);if('"'===d){var f=g(o,++u).end-1,p=T(o,u,f);a+=T(p,0,O)===M?i[T(p,O)]:'"'+p+'"',u=f}else a+=d}return a}})},92731:function(e,t,n){"use strict";var r=n(46518),i=n(79306),o=n(72248),s=n(96395),a=o.get,c=o.has,u=o.set;r({target:"Map",proto:!0,real:!0,forced:s},{getOrInsertComputed:function(e,t){var n=c(this,e);if(i(t),n)return a(this,e);0===e&&1/e===-1/0&&(e=0);var r=t(e);return u(this,e,r),r}})},45367:function(e,t,n){"use strict";var r=n(46518),i=n(72248),o=n(96395),s=i.get,a=i.has,c=i.set;r({target:"Map",proto:!0,real:!0,forced:o},{getOrInsert:function(e,t){return a(this,e)?s(this,e):(c(this,e,t),t)}})},16499:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(36043),a=n(1103),c=n(72652),u=n(90537);r({target:"Promise",stat:!0,forced:u},{all:function(e){var t=this,n=s.f(t),r=n.resolve,u=n.reject,l=a(function(){var n=o(t.resolve),s=[],a=0,l=1;c(e,function(e){var o=a++,c=!1;l++,i(n,t,e).then(function(e){c||(c=!0,s[o]=e,--l||r(s))},u)}),--l||r(s)});return l.error&&u(l.value),n.promise}})},82003:function(e,t,n){"use strict";var r=n(46518),i=n(96395),o=n(10916).CONSTRUCTOR,s=n(80550),a=n(97751),c=n(94901),u=n(36840),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(s)){var h=a("Promise").prototype["catch"];l["catch"]!==h&&u(l,"catch",h,{unsafe:!0})}},10436:function(e,t,n){"use strict";var r,i,o,s,a=n(46518),c=n(96395),u=n(38574),l=n(44576),h=n(19167),d=n(69565),f=n(36840),p=n(52967),A=n(10687),g=n(87633),m=n(79306),y=n(94901),v=n(20034),b=n(90679),w=n(2293),C=n(59225).set,_=n(91955),S=n(90757),x=n(1103),T=n(18265),P=n(91181),E=n(80550),I=n(10916),k=n(36043),B="Promise",M=I.CONSTRUCTOR,O=I.REJECTION_EVENT,D=I.SUBCLASSING,R=P.getterFor(B),L=P.set,N=E&&E.prototype,U=E,F=N,j=l.TypeError,H=l.document,z=l.process,Q=k.f,V=Q,K=!!(H&&H.createEvent&&l.dispatchEvent),W="unhandledrejection",G="rejectionhandled",q=0,Y=1,X=2,Z=1,$=2,J=function(e){var t;return!(!v(e)||!y(t=e.then))&&t},ee=function(e,t){var n,r,i,o=t.value,s=t.state===Y,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{a?(s||(t.rejection===$&&oe(t),t.rejection=Z),!0===a?n=o:(l&&l.enter(),n=a(o),l&&(l.exit(),i=!0)),n===e.promise?u(new j("Promise-chain cycle")):(r=J(n))?d(r,n,c,u):c(n)):u(o)}catch(h){l&&!i&&l.exit(),u(h)}},te=function(e,t){e.notified||(e.notified=!0,_(function(){var n,r=e.reactions;while(n=r.get())ee(n,e);e.notified=!1,t&&!e.rejection&&re(e)}))},ne=function(e,t,n){var r,i;K?(r=H.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!O&&(i=l["on"+e])?i(r):e===W&&S("Unhandled promise rejection",n)},re=function(e){d(C,l,function(){var t,n=e.facade,r=e.value,i=ie(e);if(i&&(t=x(function(){u?z.emit("unhandledRejection",r,n):ne(W,n,r)}),e.rejection=u||ie(e)?$:Z,t.error))throw t.value})},ie=function(e){return e.rejection!==Z&&!e.parent},oe=function(e){d(C,l,function(){var t=e.facade;u?z.emit("rejectionHandled",t):ne(G,t,e.value)})},se=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=X,te(e,!0))},ce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);
vendor: 9,488 bytes, line 404
404try{if(e.facade===t)throw new j("Promise can't be resolved itself");var r=J(t);r?_(function(){var n={done:!1};try{d(r,t,se(ce,n,e),se(ae,n,e))}catch(i){ae(n,i,e)}}):(e.value=t,e.state=Y,te(e,!1))}catch(i){ae({done:!1},i,e)}}};if(M&&(U=function(e){b(this,F),m(e),d(r,this);var t=R(this);try{e(se(ce,t),se(ae,t))}catch(n){ae(t,n)}},F=U.prototype,r=function(e){L(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:q,value:null})},r.prototype=f(F,"then",function(e,t){var n=R(this),r=Q(w(this,U));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=u?z.domain:void 0,n.state===q?n.reactions.add(r):_(function(){ee(r,n)}),r.promise}),i=function(){var e=new r,t=R(e);this.promise=e,this.resolve=se(ce,t),this.reject=se(ae,t)},k.f=Q=function(e){return e===U||e===o?new i(e):V(e)},!c&&y(E)&&N!==Object.prototype)){s=N.then,D||f(N,"then",function(e,t){var n=this;return new U(function(e,t){d(s,n,e,t)}).then(e,t)},{unsafe:!0});try{delete N.constructor}catch(ue){}p&&p(N,F)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:U}),o=h.Promise,A(U,B,!1,!0),g(B)},3362:function(e,t,n){"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},7743:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(36043),a=n(1103),c=n(72652),u=n(90537);r({target:"Promise",stat:!0,forced:u},{race:function(e){var t=this,n=s.f(t),r=n.reject,u=a(function(){var s=o(t.resolve);c(e,function(e){i(s,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},51481:function(e,t,n){"use strict";var r=n(46518),i=n(36043),o=n(10916).CONSTRUCTOR;r({target:"Promise",stat:!0,forced:o},{reject:function(e){var t=i.f(this),n=t.reject;return n(e),t.promise}})},40280:function(e,t,n){"use strict";var r=n(46518),i=n(97751),o=n(96395),s=n(80550),a=n(10916).CONSTRUCTOR,c=n(93438),u=i("Promise"),l=o&&!a;r({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return c(l&&this===u?s:this,e)}})},27495:function(e,t,n){"use strict";var r=n(46518),i=n(57323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},38781:function(e,t,n){"use strict";var r=n(10350).PROPER,i=n(36840),o=n(28551),s=n(655),a=n(79039),c=n(61034),u="toString",l=RegExp.prototype,h=l[u],d=a(function(){return"/a/b"!==h.call({source:"a",flags:"b"})}),f=r&&h.name!==u;(d||f)&&i(l,u,function(){var e=o(this),t=s(e.source),n=s(c(e));return"/"+t+"/"+n},{unsafe:!0})},17642:function(e,t,n){"use strict";var r=n(46518),i=n(83440),o=n(79039),s=n(84916),a=!s("difference",function(e){return 0===e.size}),c=a||o(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size});r({target:"Set",proto:!0,real:!0,forced:c},{difference:i})},58004:function(e,t,n){"use strict";var r=n(46518),i=n(79039),o=n(68750),s=n(84916),a=!s("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||i(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});r({target:"Set",proto:!0,real:!0,forced:a},{intersection:o})},33853:function(e,t,n){"use strict";var r=n(46518),i=n(64449),o=n(84916),s=!o("isDisjointFrom",function(e){return!e});r({target:"Set",proto:!0,real:!0,forced:s},{isDisjointFrom:i})},45876:function(e,t,n){"use strict";var r=n(46518),i=n(53838),o=n(84916),s=!o("isSubsetOf",function(e){return e});r({target:"Set",proto:!0,real:!0,forced:s},{isSubsetOf:i})},32475:function(e,t,n){"use strict";var r=n(46518),i=n(28527),o=n(84916),s=!o("isSupersetOf",function(e){return!e});r({target:"Set",proto:!0,real:!0,forced:s},{isSupersetOf:i})},15024:function(e,t,n){"use strict";var r=n(46518),i=n(83650),o=n(39835),s=n(84916),a=!s("symmetricDifference")||!o("symmetricDifference");r({target:"Set",proto:!0,real:!0,forced:a},{symmetricDifference:i})},31698:function(e,t,n){"use strict";var r=n(46518),i=n(44204),o=n(39835),s=n(84916),a=!s("union")||!o("union");r({target:"Set",proto:!0,real:!0,forced:a},{union:i})},99449:function(e,t,n){"use strict";var r=n(46518),i=n(27476),o=n(77347).f,s=n(18014),a=n(655),c=n(60511),u=n(67750),l=n(41436),h=n(96395),d=i("".slice),f=Math.min,p=l("endsWith"),A=!h&&!p&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!A&&!p},{endsWith:function(e){var t=a(u(this));c(e);var n=a(e),r=arguments.length>1?arguments[1]:void 0,i=t.length,o=void 0===r?i:f(s(r),i);return d(t,o-n.length,o)===n}})},21699:function(e,t,n){"use strict";var r=n(46518),i=n(79504),o=n(60511),s=n(67750),a=n(655),c=n(41436),u=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},71761:function(e,t,n){"use strict";var r=n(69565),i=n(79504),o=n(89228),s=n(28551),a=n(20034),c=n(18014),u=n(655),l=n(67750),h=n(55966),d=n(57829),f=n(61034),p=n(56682),A=i("".indexOf);o("match",function(e,t,n){return[function(t){var n=l(this),i=a(t)?h(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](u(n))},function(e){var r=s(this),i=u(e),o=n(t,r,i);if(o.done)return o.value;var a=u(f(r));if(!~A(a,"g"))return p(r,i);var l=!!~A(a,"u")||!!~A(a,"v");r.lastIndex=0;var h,g=[],m=0;while(null!==(h=p(r,i))){var y=u(h[0]);g[m]=y,""===y&&(r.lastIndex=d(i,c(r.lastIndex),l)),m++}return 0===m?null:g}]})},25440:function(e,t,n){"use strict";var r=n(18745),i=n(69565),o=n(79504),s=n(89228),a=n(79039),c=n(28551),u=n(94901),l=n(20034),h=n(91291),d=n(18014),f=n(655),p=n(67750),A=n(57829),g=n(55966),m=n(2478),y=n(61034),v=n(56682),b=n(78227),w=b("replace"),C=Math.max,_=Math.min,S=o([].concat),x=o([].push),T=o("".indexOf),P=o("".slice),E=function(e){return void 0===e?e:String(e)},I=function(){return"$0"==="a".replace(/./,"$0")}(),k=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),B=!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});s("replace",function(e,t,n){var o=k?"$":"$0";return[function(e,n){var r=p(this),o=l(e)?g(e,w):void 0;return o?i(o,e,r,n):i(t,f(r),e,n)},function(e,i){var s=c(this),a=f(e),l=u(i);l||(i=f(i));var p=f(y(s));if("string"==typeof i&&!~T(i,o)&&!~T(i,"$<")&&!~T(p,"y")){var g=n(t,s,a,i);if(g.done)return g.value}var b,w=!!~T(p,"g");w&&(b=!!~T(p,"u")||!!~T(p,"v"),s.lastIndex=0);var I,k=[];while(1){if(I=v(s,a),null===I)break;if(x(k,I),!w)break;var B=f(I[0]);""===B&&(s.lastIndex=A(a,d(s.lastIndex),b))}for(var M="",O=0,D=0;D<k.length;D++){I=k[D];for(var R,L=f(I[0]),N=C(_(h(I.index),a.length),0),U=[],F=1;F<I.length;F++)x(U,E(I[F]));var j=I.groups;if(l){var H=S([L],U,N,a);void 0!==j&&x(H,j),R=f(r(i,void 0,H))}else R=m(L,a,N,U,j,i);N>=O&&(M+=P(a,O,N)+R,O=N+L.length)}return M+P(a,O)}]},!B||!I||k)},90744:function(e,t,n){"use strict";var r=n(69565),i=n(79504),o=n(89228),s=n(28551),a=n(20034),c=n(67750),u=n(2293),l=n(57829),h=n(18014),d=n(655),f=n(55966),p=n(61034),A=n(56682),g=n(58429),m=n(79039),y=g.UNSUPPORTED_Y,v=4294967295,b=Math.min,w=i([].push),C=i("".slice),_=i("".indexOf),S=!m(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=c(this),s=a(t)?f(t,e):void 0;return s?r(s,t,o,n):r(i,d(o),t,n)},function(e,r){var o=s(this),a=d(e);if(!x){var c=n(i,o,a,r,i!==t);if(c.done)return c.value}var f=u(o,RegExp),g=d(p(o)),m=!!~_(g,"u")||!!~_(g,"v");y?~_(g,"g")||(g+="g"):~_(g,"y")||(g+="y");var S=new f(y?"^(?:"+o.source+")":o,g),T=void 0===r?v:r>>>0;if(0===T)return[];if(0===a.length)return null===A(S,a)?[a]:[];var P=0,E=0,I=[];while(E<a.length){S.lastIndex=y?0:E;var k,B=A(S,y?C(a,E):a);if(null===B||(k=b(h(S.lastIndex+(y?E:0)),a.length))===P)E=l(a,E,m);else{if(w(I,C(a,P,E)),I.length===T)return I;for(var M=1;M<=B.length-1;M++)if(w(I,B[M]),I.length===T)return I;E=P=k}}return w(I,C(a,P)),I}]},x||!S,y)},11392:function(e,t,n){"use strict";var r=n(46518),i=n(27476),o=n(77347).f,s=n(18014),a=n(655),c=n(60511),u=n(67750),l=n(41436),h=n(96395),d=i("".slice),f=Math.min,p=l("startsWith"),A=!h&&!p&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!A&&!p},{startsWith:function(e){var t=a(u(this));c(e);var n=a(e),r=s(f(arguments.length>1?arguments[1]:void 0,t.length));return d(t,r,r+n.length)===n}})},42762:function(e,t,n){"use strict";var r=n(46518),i=n(43802).trim,o=n(60706);r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},62953:function(e,t,n){"use strict";var r=n(44576),i=n(67400),o=n(79296),s=n(23792),a=n(66699),c=n(10687),u=n(78227),l=u("iterator"),h=s.values,d=function(e,t){if(e){if(e[l]!==h)try{a(e,l,h)}catch(r){e[l]=h}if(c(e,t,!0),i[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(r){e[n]=s[n]}}};for(var f in i)d(r[f]&&r[f].prototype,f);d(o,"DOMTokenList")},64979:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(97751),s=n(6980),a=n(24913).f,c=n(39297),u=n(90679),l=n(23167),h=n(32603),d=n(55002),f=n(16193),p=n(43724),A=n(96395),g="DOMException",m=o("Error"),y=o(g),v=function(){u(this,b);var e=arguments.length,t=h(e<1?void 0:arguments[0]),n=h(e<2?void 0:arguments[1],"Error"),r=new y(t,n),i=new m(t);
404return i.name=g,a(r,"stack",s(1,f(i.stack,1))),l(r,this,v),r},b=v.prototype=y.prototype,w="stack"in new m(g),C="stack"in new y(1,2),_=y&&p&&Object.getOwnPropertyDescriptor(i,g),S=!!_&&!(_.writable&&_.configurable),x=w&&!S&&!C;r({global:!0,constructor:!0,forced:A||x},{DOMException:x?v:y});var T=o(g),P=T.prototype;if(P.constructor!==T)for(var E in A||a(P,"constructor",s(1,T)),d)if(c(d,E)){var I=d[E],k=I.s;c(T,k)||a(T,k,s(6,I.c))}},14603:function(e,t,n){"use strict";var r=n(36840),i=n(79504),o=n(655),s=n(22812),a=URLSearchParams,c=a.prototype,u=i(c.append),l=i(c["delete"]),h=i(c.forEach),d=i([].push),f=new a("a=1&a=2&b=3");f["delete"]("a",1),f["delete"]("b",void 0),f+""!=="a=2"&&r(c,"delete",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];h(this,function(e,t){d(r,{key:t,value:e})}),s(t,1);var i,a=o(e),c=o(n),f=0,p=r.length;while(f<p)i=r[f],l(this,i.key),f++;f=0;while(f<p)i=r[f++],i.key===a&&i.value===c||u(this,i.key,i.value)},{enumerable:!0,unsafe:!0})},47566:function(e,t,n){"use strict";var r=n(36840),i=n(79504),o=n(655),s=n(22812),a=URLSearchParams,c=a.prototype,u=i(c.getAll),l=i(c.has),h=new a("a=1");!h.has("a",2)&&h.has("a",void 0)||r(c,"has",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=u(this,e);s(t,1);var i=o(n),a=0;while(a<r.length)if(r[a++]===i)return!0;return!1},{enumerable:!0,unsafe:!0})},98721:function(e,t,n){"use strict";var r=n(43724),i=n(79504),o=n(62106),s=URLSearchParams.prototype,a=i(s.forEach);r&&!("size"in s)&&o(s,"size",{get:function(){var e=0;return a(this,function(){e++}),e},configurable:!0,enumerable:!0})},94335:function(e,t,n){"use strict";n.d(t,{A:function(){return xn}});var r={};function i(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:function(){return He},hasStandardBrowserEnv:function(){return Qe},hasStandardBrowserWebWorkerEnv:function(){return Ve},navigator:function(){return ze},origin:function(){return Ke}});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:a,toStringTag:c}=Symbol,u=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),l=e=>(e=e.toLowerCase(),t=>u(t)===e),h=e=>t=>typeof t===e,{isArray:d}=Array,f=h("undefined");function p(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A=l("ArrayBuffer");function g(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&A(e.buffer),t}const m=h("string"),y=h("function"),v=h("number"),b=e=>null!==e&&"object"===typeof e,w=e=>!0===e||!1===e,C=e=>{if("object"!==u(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(c in e)&&!(a in e)},_=e=>{if(!b(e)||p(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},S=l("Date"),x=l("File"),T=e=>!(!e||"undefined"===typeof e.uri),P=e=>e&&"undefined"!==typeof e.getParts,E=l("Blob"),I=l("FileList"),k=e=>b(e)&&y(e.pipe);function B(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}}const M=B(),O="undefined"!==typeof M.FormData?M.FormData:void 0,D=e=>{if(!e)return!1;if(O&&e instanceof O)return!0;const t=s(e);if(!t||t===Object.prototype)return!1;if(!y(e.append))return!1;const n=u(e);return"formdata"===n||"object"===n&&y(e.toString)&&"[object FormData]"===e.toString()},R=l("URLSearchParams"),[L,N,U,F]=["ReadableStream","Request","Response","Headers"].map(l),j=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function H(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,i;if("object"!==typeof e&&(e=[e]),d(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(p(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function z(e,t){if(p(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;while(i-- >0)if(r=n[i],t===r.toLowerCase())return r;return null}const Q=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g)(),V=e=>!f(e)&&e!==Q;function K(){const{caseless:e,skipUndefined:t}=V(this)&&this||{},n={},r=(r,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const o=e&&z(n,i)||i;C(n[o])&&C(r)?n[o]=K(n[o],r):C(r)?n[o]=K({},r):d(r)?n[o]=r.slice():t&&f(r)||(n[o]=r)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&H(arguments[i],r);return n}const W=(e,t,n,{allOwnKeys:r}={})=>(H(t,(t,r)=>{n&&y(t)?Object.defineProperty(e,r,{value:i(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),G=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),q=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,
vendor: 33,753 bytes, line 404
404configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Y=(e,t,n,r)=>{let i,o,a;const c={};if(t=t||{},null==e)return t;do{i=Object.getOwnPropertyNames(e),o=i.length;while(o-- >0)a=i[o],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},X=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},Z=e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},$=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&s(Uint8Array)),J=(e,t)=>{const n=e&&e[a],r=n.call(e);let i;while((i=r.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}},ee=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},te=l("HTMLFormElement"),ne=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),re=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ie=l("RegExp"),oe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},se=e=>{oe(e,(t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},ae=(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return d(e)?r(e):r(String(e).split(t)),n},ce=()=>{},ue=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function le(e){return!!(e&&y(e.append)&&"FormData"===e[c]&&e[a])}const he=e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(p(e))return e;if(!("toJSON"in e)){t[r]=e;const i=d(e)?[]:{};return H(e,(e,t)=>{const o=n(e,r+1);!f(o)&&(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},de=l("AsyncFunction"),fe=e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),pe=((e,t)=>e?setImmediate:t?((e,t)=>(Q.addEventListener("message",({source:n,data:r})=>{n===Q&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Q.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,y(Q.postMessage)),Ae="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Q):"undefined"!==typeof process&&process.nextTick||pe,ge=e=>null!=e&&y(e[a]);var me={isArray:d,isArrayBuffer:A,isBuffer:p,isFormData:D,isArrayBufferView:g,isString:m,isNumber:v,isBoolean:w,isObject:b,isPlainObject:C,isEmptyObject:_,isReadableStream:L,isRequest:N,isResponse:U,isHeaders:F,isUndefined:f,isDate:S,isFile:x,isReactNativeBlob:T,isReactNative:P,isBlob:E,isRegExp:ie,isFunction:y,isStream:k,isURLSearchParams:R,isTypedArray:$,isFileList:I,forEach:H,merge:K,extend:W,trim:j,stripBOM:G,inherits:q,toFlatObject:Y,kindOf:u,kindOfTest:l,endsWith:X,toArray:Z,forEachEntry:J,matchAll:ee,isHTMLForm:te,hasOwnProperty:re,hasOwnProp:re,reduceDescriptors:oe,freezeMethods:se,toObjectSet:ae,toCamelCase:ne,noop:ce,toFiniteNumber:ue,findKey:z,global:Q,isContextDefined:V,isSpecCompliantForm:le,toJSONObject:he,isAsyncFn:de,isThenable:fe,setImmediate:pe,asap:Ae,isIterable:ge};class ye extends Error{static from(e,t,n,r,i,o){const s=new ye(e.message,t||e.code,n,r,i);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:me.toJSONObject(this.config),code:this.code,status:this.status}}}ye.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ye.ERR_BAD_OPTION="ERR_BAD_OPTION",ye.ECONNABORTED="ECONNABORTED",ye.ETIMEDOUT="ETIMEDOUT",ye.ERR_NETWORK="ERR_NETWORK",ye.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ye.ERR_DEPRECATED="ERR_DEPRECATED",ye.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ye.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ye.ERR_CANCELED="ERR_CANCELED",ye.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ye.ERR_INVALID_URL="ERR_INVALID_URL",ye.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var ve=ye,be=null;function we(e){return me.isPlainObject(e)||me.isArray(e)}function Ce(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function _e(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ce(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}function Se(e){return me.isArray(e)&&!e.some(we)}const xe=me.toFlatObject(me,{},null,function(e){return/^is[A-Z]/.test(e)});function Te(e,t,n){if(!me.isObject(e))throw new TypeError("target must be an object");t=t||new(be||FormData),n=me.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!me.isUndefined(t[e])});const r=n.metaTokens,i=n.visitor||h,o=n.dots,s=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,u=a&&me.isSpecCompliantForm(t);if(!me.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(me.isDate(e))return e.toISOString();if(me.isBoolean(e))return e.toString();if(!u&&me.isBlob(e))throw new ve("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(e)||me.isTypedArray(e)?u&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function h(e,n,i){let a=e;if(me.isReactNative(t)&&me.isReactNativeBlob(e))return t.append(_e(i,n,o),l(e)),!1;if(e&&!i&&"object"===typeof e)if(me.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(me.isArray(e)&&Se(e)||(me.isFileList(e)||me.endsWith(n,"[]"))&&(a=me.toArray(e)))return n=Ce(n),a.forEach(function(e,r){!me.isUndefined(e)&&null!==e&&t.append(!0===s?_e([n],r,o):null===s?n:n+"[]",l(e))}),!1;return!!we(e)||(t.append(_e(i,n,o),l(e)),!1)}const d=[],f=Object.assign(xe,{defaultVisitor:h,convertValue:l,isVisitable:we});function p(e,n,r=0){if(!me.isUndefined(e)){if(r>c)throw new ve("Object is too deeply nested ("+r+" levels). Max depth: "+c,ve.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),me.forEach(e,function(e,o){const s=!(me.isUndefined(e)||null===e)&&i.call(t,e,me.isString(o)?o.trim():o,n,f);!0===s&&p(e,n?n.concat(o):[o],r+1)}),d.pop()}}if(!me.isObject(e))throw new TypeError("data must be an object");return p(e),t}var Pe=Te;function Ee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ie(e,t){this._pairs=[],e&&Pe(e,this,t)}const ke=Ie.prototype;ke.append=function(e,t){this._pairs.push([e,t])},ke.toString=function(e){const t=e?function(t){return e.call(this,t,Ee)}:Ee;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Be=Ie;function Me(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Oe(e,t,n){if(!t)return e;const r=n&&n.encode||Me,i=me.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let s;if(s=o?o(t,i):me.isURLSearchParams(t)?t.toString():new Be(t,i).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}class De{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){me.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Re=De,Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Ne="undefined"!==typeof URLSearchParams?URLSearchParams:Be,Ue="undefined"!==typeof FormData?FormData:null,Fe="undefined"!==typeof Blob?Blob:null,je={isBrowser:!0,classes:{URLSearchParams:Ne,FormData:Ue,Blob:Fe},protocols:["http","https","file","blob","url","data"]};const He="undefined"!==typeof window&&"undefined"!==typeof document,ze="object"===typeof navigator&&navigator||void 0,Qe=He&&(!ze||["ReactNative","NativeScript","NS"].indexOf(ze.product)<0),Ve=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Ke=He&&window.location.href||"http://localhost";var We={...r,...je};function Ge(e,t){return Pe(e,new We.classes.URLSearchParams,{visitor:function(e,t,n,r){return We.isNode&&me.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function qe(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function Ye(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Xe(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;if(o=!o&&me.isArray(r)?r.length:o,a)return me.hasOwnProp(r,o)?r[o]=me.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n,!s;r[o]&&me.isObject(r[o])||(r[o]=[]);const c=t(e,n,r[o],i);return c&&me.isArray(r[o])&&(r[o]=Ye(r[o])),!s}if(me.isFormData(e)&&me.isFunction(e.entries)){const n={};return me.forEachEntry(e,(e,r)=>{t(qe(e),r,n,0)}),n}return null}var Ze=Xe;const $e=(e,t)=>null!=e&&me.hasOwnProp(e,t)?e[t]:void 0;function Je(e,t,n){if(me.isString(e))try{return(t||JSON.parse)(e),me.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const et={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=me.isObject(e);i&&me.isHTMLForm(e)&&(e=new FormData(e));const o=me.isFormData(e);if(o)return r?JSON.stringify(Ze(e)):e;if(me.isArrayBuffer(e)||me.isBuffer(e)||me.isStream(e)||me.isFile(e)||me.isBlob(e)||me.isReadableStream(e))return e;if(me.isArrayBufferView(e))return e.buffer;if(me.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){const t=$e(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ge(e,t).toString();if((s=me.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=$e(this,"env"),r=n&&n.FormData;return Pe(s?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType("application/json",!1),Je(e)):e}],transformResponse:[function(e){const t=$e(this,"transitional")||et.transitional,n=t&&t.forcedJSONParsing,r=$e(this,"responseType"),i="json"===r;if(me.isResponse(e)||me.isReadableStream(e))return e;if(e&&me.isString(e)&&(n&&!r||i)){const n=t&&t.silentJSONParsing,r=!n&&i;try{return JSON.parse(e,$e(this,"parseReviver"))}catch(o){if(r){if("SyntaxError"===o.name)throw ve.from(o,ve.ERR_BAD_RESPONSE,this,null,$e(this,"response"));throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],e=>{et.headers[e]={}});var tt=et;const nt=me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var rt=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&nt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const it=Symbol("internals"),ot=/[^\x09\x20-\x7E\x80-\xFF]/g;function st(e){let t=0,n=e.length;while(t<n){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}while(n>t){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function at(e){return e&&String(e).trim().toLowerCase()}function ct(e){return st(e.replace(ot,""))}function ut(e){return!1===e||null==e?e:me.isArray(e)?e.map(ut):ct(String(e))}function lt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const ht=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dt(e,t,n,r,i){return me.isFunction(r)?r.call(this,t,n):(i&&(t=n),me.isString(t)?me.isString(r)?-1!==t.indexOf(r):me.isRegExp(r)?r.test(t):void 0:void 0)}function ft(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function pt(e,t){const n=me.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}class At{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=at(t);if(!i)throw new Error("header name must be a non-empty string");const o=me.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=ut(e))}const o=(e,t)=>me.forEach(e,(e,n)=>i(e,n,t));if(me.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(me.isString(e)&&(e=e.trim())&&!ht(e))o(rt(e),t);else if(me.isObject(e)&&me.isIterable(e)){let n,r,i={};for(const t of e){if(!me.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?me.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=at(e),e){const n=me.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return lt(e);if(me.isFunction(t))return t.call(this,e,n);if(me.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=at(e),e){const n=me.findKey(this,e);return!(!n||void 0===this[n]||t&&!dt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=at(e),e){const i=me.findKey(n,e);!i||t&&!dt(n,n[i],i,t)||(delete n[i],r=!0)}}return me.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const i=t[n];e&&!dt(this,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return me.forEach(this,(r,i)=>{const o=me.findKey(n,i);if(o)return t[o]=ut(r),void delete t[i];const s=e?ft(i):String(i).trim();s!==i&&delete t[i],t[s]=ut(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return me.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&me.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=this[it]=this[it]={accessors:{}},n=t.accessors,r=this.prototype;function i(e){const t=at(e);n[t]||(pt(r,e),n[t]=!0)}return me.isArray(e)?e.forEach(i):i(e),this}}At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),me.reduceDescriptors(At.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),me.freezeMethods(At);var gt=At;function mt(e,t){const n=this||tt,r=t||n,i=gt.from(r.headers);let o=r.data;return me.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function yt(e){return!(!e||!e.__CANCEL__)}class vt extends ve{constructor(e,t,n){super(null==e?"canceled":e,ve.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}var bt=vt;function wt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Ct(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _t(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[s];i||(i=c),n[o]=a,r[o]=c;let l=s,h=0;while(l!==o)h+=n[l++],l%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const d=u&&c-u;return d?Math.round(1e3*h/d):void 0}}var St=_t;function xt(e,t){let n,r,i=0,o=1e3/t;const s=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)},a=(...e)=>{const t=Date.now(),a=t-i;a>=o?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},o-a)))},c=()=>n&&s(n);return[a,c]}var Tt=xt;const Pt=(e,t,n=3)=>{let r=0;const i=St(50,250);return Tt(n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=null!=s?Math.min(o,s):o,c=Math.max(0,a-r),u=i(c);r=Math.max(r,a);const l={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s?(s-a)/u:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(l)},n)},Et=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},It=e=>(...t)=>me.asap(()=>e(...t));var kt=We.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,We.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(We.origin),We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent)):()=>!0,Bt=We.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if("undefined"===typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];me.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),me.isString(r)&&a.push(`path=${r}`),me.isString(i)&&a.push(`domain=${i}`),!0===o&&a.push("secure"),me.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Mt(e){return"string"===typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ot(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Dt(e,t,n){let r=!Mt(t);return e&&(r||!1===n)?Ot(e,t):t}const Rt=e=>e instanceof gt?{...e}:e;function Lt(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return me.isPlainObject(e)&&me.isPlainObject(t)?me.merge.call({caseless:r},e,t):me.isPlainObject(t)?me.merge({},t):me.isArray(t)?t.slice():t}function i(e,t,n,i){return me.isUndefined(t)?me.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!me.isUndefined(t))return r(void 0,t)}function s(e,t){return me.isUndefined(t)?me.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return me.hasOwnProp(t,o)?r(n,i):me.hasOwnProp(e,o)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(Rt(e),Rt(t),n,!0)};return me.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=me.hasOwnProp(c,r)?c[r]:i,s=me.hasOwnProp(e,r)?e[r]:void 0,u=me.hasOwnProp(t,r)?t[r]:void 0,l=o(s,u,r);me.isUndefined(l)&&o!==a||(n[r]=l)}),n}var Nt=e=>{const t=Lt({},e),n=e=>me.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const c=n("auth"),u=n("baseURL"),l=n("allowAbsoluteUrls"),h=n("url");if(t.headers=a=gt.from(a),t.url=Oe(Dt(u,h,l),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),me.isFormData(r))if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(me.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(We.hasStandardBrowserEnv){me.isFunction(i)&&(i=i(t));const e=!0===i||null==i&&kt(t.url);if(e){const e=o&&s&&Bt.read(s);e&&a.set(o,e)}}return t};const Ut="undefined"!==typeof XMLHttpRequest;var Ft=Ut&&function(e){return new Promise(function(t,n){const r=Nt(e);let i=r.data;const o=gt.from(r.headers).normalize();let s,a,c,u,l,{responseType:h,onUploadProgress:d,onDownloadProgress:f}=r;function p(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let A=new XMLHttpRequest;function g(){if(!A)return;const r=gt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),i=h&&"text"!==h&&"json"!==h?A.response:A.responseText,o={data:i,status:A.status,statusText:A.statusText,headers:r,config:e,request:A};wt(function(e){t(e),p()},function(e){n(e),p()},o),A=null}A.open(r.method.toUpperCase(),r.url,!0),A.timeout=r.timeout,"onloadend"in A?A.onloadend=g:A.onreadystatechange=function(){A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===A.responseURL.indexOf("file:"))&&setTimeout(g)},A.onabort=function(){A&&(n(new ve("Request aborted",ve.ECONNABORTED,e,A)),A=null)},A.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new ve(r,ve.ERR_NETWORK,e,A);i.event=t||null,n(i),A=null},A.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Le;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ve(t,i.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,A)),A=null},void 0===i&&o.setContentType(null),"setRequestHeader"in A&&me.forEach(o.toJSON(),function(e,t){A.setRequestHeader(t,e)}),me.isUndefined(r.withCredentials)||(A.withCredentials=!!r.withCredentials),h&&"json"!==h&&(A.responseType=r.responseType),f&&([c,l]=Pt(f,!0),A.addEventListener("progress",c)),d&&A.upload&&([a,u]=Pt(d),A.upload.addEventListener("progress",a),A.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{A&&(n(!t||t.type?new bt(null,e,A):t),A.abort(),A=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const m=Ct(r.url);m&&-1===We.protocols.indexOf(m)?n(new ve("Unsupported protocol "+m+":",ve.ERR_BAD_REQUEST,e)):A.send(i||null)})};const jt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ve?t:new bt(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new ve(`timeout of ${t}ms exceeded`,ve.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:a}=r;return a.unsubscribe=()=>me.asap(s),a}};var Ht=jt;const zt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;while(i<n)r=i+t,yield e.slice(i,r),i=r},Qt=async function*(e,t){for await(const n of Vt(e))yield*zt(n,t)},Vt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Kt=(e,t,n,r)=>{const i=Qt(e,t);let o,s=0,a=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return a(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel(e){return a(e),i.return()}},{highWaterMark:2})},Wt=65536,{isFunction:Gt}=me,qt=(({Request:e,Response:t})=>({Request:e,Response:t}))(me.global),{ReadableStream:Yt,TextEncoder:Xt}=me.global,Zt=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},$t=e=>{e=me.merge.call({skipUndefined:!0},qt,e);const{fetch:t,Request:n,Response:r}=e,i=t?Gt(t):"function"===typeof fetch,o=Gt(n),s=Gt(r);if(!i)return!1;const a=i&&Gt(Yt),c=i&&("function"===typeof Xt?(e=>t=>e.encode(t))(new Xt):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=o&&a&&Zt(()=>{let e=!1;const t=new n(We.origin,{body:new Yt,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),l=s&&a&&Zt(()=>me.isReadableStream(new r("").body)),h={stream:l&&(e=>e.body)};i&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!h[e]&&(h[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ve(`Response type '${e}' is not supported`,ve.ERR_NOT_SUPPORT,n)})})})();const d=async e=>{if(null==e)return 0;if(me.isBlob(e))return e.size;if(me.isSpecCompliantForm(e)){const t=new n(We.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return me.isArrayBufferView(e)||me.isArrayBuffer(e)?e.byteLength:(me.isURLSearchParams(e)&&(e+=""),me.isString(e)?(await c(e)).byteLength:void 0)},f=async(e,t)=>{const n=me.toFiniteNumber(e.getContentLength());return null==n?d(t):n};return async e=>{let{url:i,method:s,data:a,signal:c,cancelToken:d,timeout:p,onDownloadProgress:A,onUploadProgress:g,responseType:m,headers:y,withCredentials:v="same-origin",fetchOptions:b}=Nt(e),w=t||fetch;m=m?(m+"").toLowerCase():"text";let C=Ht([c,d&&d.toAbortSignal()],p),_=null;const S=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let x;try{if(g&&u&&"get"!==s&&"head"!==s&&0!==(x=await f(y,a))){let e,t=new n(i,{method:"POST",body:a,duplex:"half"});if(me.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=Et(x,Pt(It(g)));a=Kt(t.body,Wt,e,n)}}me.isString(v)||(v=v?"include":"omit");const t=o&&"credentials"in n.prototype;if(me.isFormData(a)){const e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete("content-type")}const c={...b,signal:C,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?v:void 0};_=o&&new n(i,c);let d=await(o?w(_,b):w(i,c));const p=l&&("stream"===m||"response"===m);if(l&&(A||p&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=d[t]});const t=me.toFiniteNumber(d.headers.get("content-length")),[n,i]=A&&Et(t,Pt(It(A),!0))||[];d=new r(Kt(d.body,Wt,n,()=>{i&&i(),S&&S()}),e)}m=m||"text";let T=await h[me.findKey(h,m)||"text"](d,e);return!p&&S&&S(),await new Promise((t,n)=>{wt(t,n,{data:T,headers:gt.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:_})})}catch(T){if(S&&S(),T&&"TypeError"===T.name&&/Load failed|fetch/i.test(T.message))throw Object.assign(new ve("Network Error",ve.ERR_NETWORK,e,_,T&&T.response),{cause:T.cause||T});throw ve.from(T,T&&T.code,e,_,T&&T.response)}}},Jt=new Map,en=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s,a,c=o.length,u=c,l=Jt;while(u--)s=o[u],a=l.get(s),void 0===a&&l.set(s,a=u?new Map:$t(t)),l=a;return a};en();const tn={http:be,xhr:Ft,fetch:{get:en}};me.forEach(tn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const nn=e=>`- ${e}`,rn=e=>me.isFunction(e)||null===e||!1===e;function on(e,t){e=me.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){let n;if(r=e[s],i=r,!rn(r)&&(i=tn[(n=String(r)).toLowerCase()],void 0===i))throw new ve(`Unknown adapter '${n}'`);if(i&&(me.isFunction(i)||(i=i.get(t))))break;o[n||"#"+s]=i}if(!i){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(nn).join("\n"):" "+nn(e[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i}var sn={getAdapter:on,adapters:tn};function an(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bt(null,e)}function cn(e){an(e),e.headers=gt.from(e.headers),e.data=mt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=sn.getAdapter(e.adapter||tt.adapter,e);return t(e).then(function(t){return an(e),t.data=mt.call(e,e.transformResponse,t),t.headers=gt.from(t.headers),t},function(t){return yt(t)||(an(e),t&&t.response&&(t.response.data=mt.call(e,e.transformResponse,t.response),t.response.headers=gt.from(t.response.headers))),Promise.reject(t)})}const un="1.15.2",ln={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ln[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const hn={};function dn(e,t,n){if("object"!==typeof e)throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;while(i-- >0){const o=r[i],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new ve("option "+o+" must be "+n,ve.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}}ln.transitional=function(e,t,n){function r(e,t){return"[Axios v"+un+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new ve(r(i," has been removed"+(t?" in "+t:"")),ve.ERR_DEPRECATED);return t&&!hn[i]&&(hn[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},ln.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var fn={assertOptions:dn,validators:ln};const pn=fn.validators;class An{constructor(e){this.defaults=e||{},this.interceptors={request:new Re,response:new Re}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),r=-1===e?-1:t.indexOf("\n",e+1),i=-1===r?"":t.slice(r+1);String(n.stack).endsWith(i)||(n.stack+="\n"+t)}}else n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Lt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&fn.assertOptions(n,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean),legacyInterceptorReqResOrdering:pn.transitional(pn.boolean)},!1),null!=r&&(me.isFunction(r)?t.paramsSerializer={serialize:r}:fn.assertOptions(r,{encode:pn.function,serialize:pn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fn.assertOptions(t,{baseUrl:pn.spelling("baseURL"),withXsrfToken:pn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&me.merge(i.common,i[t.method]);i&&me.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=gt.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"===typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||Le,r=n&&n.legacyInterceptorReqResOrdering;r?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,h=0;if(!a){const e=[cn.bind(this),void 0];e.unshift(...s),e.push(...c),l=e.length,u=Promise.resolve(t);while(h<l)u=u.then(e[h++],e[h++]);return u}l=s.length;let d=t;while(h<l){const e=s[h++],t=s[h++];try{d=e(d)}catch(f){t.call(this,f);break}}try{u=cn.call(this,d)}catch(f){return Promise.reject(f)}h=0,l=c.length;while(h<l)u=u.then(c[h++],c[h++]);return u}getUri(e){e=Lt(this.defaults,e);const t=Dt(e.baseURL,e.url,e.allowAbsoluteUrls);return Oe(t,e.params,e.paramsSerializer)}}me.forEach(["delete","get","head","options"],function(e){An.prototype[e]=function(t,n){return this.request(Lt(n||{},{method:e,url:t,data:(n||{}).data}))}}),me.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(Lt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}An.prototype[e]=t(),An.prototype[e+"Form"]=t(!0)});var gn=An;class mn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new bt(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new mn(function(t){e=t});return{token:t,cancel:e}}}var yn=mn;function vn(e){return function(t){return e.apply(null,t)}}function bn(e){return me.isObject(e)&&!0===e.isAxiosError}const wn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
404setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wn).forEach(([e,t])=>{wn[t]=e});var Cn=wn;function _n(e){const t=new gn(e),n=i(gn.prototype.request,t);return me.extend(n,gn.prototype,t,{allOwnKeys:!0}),me.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return _n(Lt(e,t))},n}const Sn=_n(tt);Sn.Axios=gn,Sn.CanceledError=bt,Sn.CancelToken=yn,Sn.isCancel=yt,Sn.VERSION=un,Sn.toFormData=Pe,Sn.AxiosError=ve,Sn.Cancel=Sn.CanceledError,Sn.all=function(e){return Promise.all(e)},Sn.spread=vn,Sn.isAxiosError=bn,Sn.mergeConfig=Lt,Sn.AxiosHeaders=gt,Sn.formToJSON=e=>Ze(me.isHTMLForm(e)?new FormData(e):e),Sn.getAdapter=sn.getAdapter,Sn.HttpStatusCode=Cn,Sn.default=Sn;var xn=Sn},61132:function(e,t,n){"use strict";n.r(t),n.d(t,{AElement:function(){return gt},AnimateColorElement:function(){return lt},AnimateElement:function(){return ut},AnimateTransformElement:function(){return ht},BoundingBox:function(){return je},CB1:function(){return se},CB2:function(){return ae},CB3:function(){return ce},CB4:function(){return ue},Canvg:function(){return Xt},CircleElement:function(){return Xe},ClipPathElement:function(){return Ot},DefsElement:function(){return rt},DescElement:function(){return jt},Document:function(){return Gt},Element:function(){return Oe},EllipseElement:function(){return Ze},FeColorMatrixElement:function(){return kt},FeCompositeElement:function(){return Nt},FeDropShadowElement:function(){return Rt},FeGaussianBlurElement:function(){return Ut},FeMorphologyElement:function(){return Lt},FilterElement:function(){return Dt},Font:function(){return Fe},FontElement:function(){return dt},FontFaceElement:function(){return ft},GElement:function(){return it},GlyphElement:function(){return Ve},GradientElement:function(){return ot},ImageElement:function(){return wt},LineElement:function(){return $e},LinearGradientElement:function(){return st},MarkerElement:function(){return nt},MaskElement:function(){return Bt},Matrix:function(){return Te},MissingGlyphElement:function(){return pt},Mouse:function(){return ge},PSEUDO_ZERO:function(){return ne},Parser:function(){return Ce},PathElement:function(){return Qe},PathParser:function(){return He},PatternElement:function(){return tt},Point:function(){return Ae},PolygonElement:function(){return et},PolylineElement:function(){return Je},Property:function(){return fe},QB1:function(){return le},QB2:function(){return he},QB3:function(){return de},RadialGradientElement:function(){return at},RectElement:function(){return Ye},RenderedElement:function(){return ze},Rotate:function(){return Se},SVGElement:function(){return qe},SVGFontLoader:function(){return _t},Scale:function(){return xe},Screen:function(){return ve},Skew:function(){return Pe},SkewX:function(){return Ee},SkewY:function(){return Ie},StopElement:function(){return ct},StyleElement:function(){return St},SymbolElement:function(){return Ct},TRefElement:function(){return At},TSpanElement:function(){return We},TextElement:function(){return Ke},TextPathElement:function(){return vt},TitleElement:function(){return Ft},Transform:function(){return Me},Translate:function(){return _e},UnknownElement:function(){return De},UseElement:function(){return xt},ViewPort:function(){return pe},compressSpaces:function(){return F},default:function(){return Xt},getSelectorSpecificity:function(){return te},normalizeAttributeName:function(){return V},normalizeColor:function(){return W},parseExternalUrl:function(){return K},presets:function(){return U},toNumbers:function(){return z},trimLeft:function(){return j},trimRight:function(){return H},vectorMagnitude:function(){return re},vectorsAngle:function(){return oe},vectorsRatio:function(){return ie}});n(3362);var r=n(30388),i=(n(71761),n(25440),n(11392),n(23792),n(62953),n(29357)),o=(n(72712),n(99449),n(90744),n(93146)),s=(n(42762),n(82855)),a=(n(25276),n(21699),n(94490),function(e,t){return(a=Object.
vendor: 4,262 bytes, line 404
404setPrototypeOf||{__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)});function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e){var t="";Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===T.CLOSE_PATH)t+="z";else if(r.type===T.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===T.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===T.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===T.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===T.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===T.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===T.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===T.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==T.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+n+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function l(e,t){var n=e[0],r=e[1];return[n*Math.cos(t)-r*Math.sin(t),n*Math.sin(t)+r*Math.cos(t)]}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if("number"!=typeof e[n])throw new Error("assertNumbers arguments["+n+"] is not a number. "+typeof e[n]+" == typeof "+e[n]);return!0}var d=Math.PI;function f(e,t,n){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var r=e.rX,i=e.rY,o=e.x,s=e.y;r=Math.abs(e.rX),i=Math.abs(e.rY);var a=l([(t-o)/2,(n-s)/2],-e.xRot/180*d),c=a[0],u=a[1],h=Math.pow(c,2)/Math.pow(r,2)+Math.pow(u,2)/Math.pow(i,2);1<h&&(r*=Math.sqrt(h),i*=Math.sqrt(h)),e.rX=r,e.rY=i;var f=Math.pow(r,2)*Math.pow(u,2)+Math.pow(i,2)*Math.pow(c,2),p=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-f)/f)),A=r*u/i*p,g=-i*c/r*p,m=l([A,g],e.xRot/180*d);e.cX=m[0]+(t+o)/2,e.cY=m[1]+(n+s)/2,e.phi1=Math.atan2((u-g)/i,(c-A)/r),e.phi2=Math.atan2((-u-g)/i,(-c-A)/r),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*d),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*d),e.phi1*=180/d,e.phi2*=180/d}function p(e,t,n){h(e,t,n);var r=e*e+t*t-n*n;if(0>r)return[];if(0===r)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}var A,g=Math.PI/180;function m(e,t,n){return(1-n)*e+n*t}function y(e,t,n,r){return e+Math.cos(r/180*d)*t+Math.sin(r/180*d)*n}function v(e,t,n,r){var i=1e-6,o=t-e,s=n-t,a=3*o+3*(r-n)-6*s,c=6*(s-o),u=3*o;return Math.abs(a)<i?[-u/c]:function(e,t,n){void 0===n&&(n=1e-6);var r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];var i=Math.sqrt(r);return[-e/2-i,-e/2+i]}(c/a,u/a,i)}function b(e,t,n,r,i){var o=1-i;return e*(o*o*o)+t*(3*o*o*i)+n*(3*o*i*i)+r*(i*i*i)}!function(e){function t(){return i(function(e,t,n){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=n),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=n),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=n),e.relative=!1),e})}function n(){var e=NaN,t=NaN,n=NaN,r=NaN;return i(function(i,o,s){return i.type&T.SMOOTH_CURVE_TO&&(i.type=T.CURVE_TO,e=isNaN(e)?o:e,t=isNaN(t)?s:t,i.x1=i.relative?o-e:2*o-e,i.y1=i.relative?s-t:2*s-t),i.type&T.CURVE_TO?(e=i.relative?o+i.x2:i.x2,t=i.relative?s+i.y2:i.y2):(e=NaN,t=NaN),i.type&T.SMOOTH_QUAD_TO&&(i.type=T.QUAD_TO,n=isNaN(n)?o:n,r=isNaN(r)?s:r,i.x1=i.relative?o-n:2*o-n,i.y1=i.relative?s-r:2*s-r),i.type&T.QUAD_TO?(n=i.relative?o+i.x1:i.x1,r=i.relative?s+i.y1:i.y1):(n=NaN,r=NaN),i})}function r(){var e=NaN,t=NaN;return i(function(n,r,i){if(n.type&T.SMOOTH_QUAD_TO&&(n.type=T.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type&T.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;var o=n.x1,s=n.y1;n.type=T.CURVE_TO,n.x1=((n.relative?0:r)+2*o)/3,n.y1=((n.relative?0:i)+2*s)/3,n.x2=(n.x+2*o)/3,n.y2=(n.y+2*s)/3}else e=NaN,t=NaN;return n})}function i(e){var t=0,n=0,r=NaN,i=NaN;
vendor: 12,623 bytes, line 404
404return function(o){if(isNaN(r)&&!(o.type&T.MOVE_TO))throw new Error("path must start with moveto");var s=e(o,t,n,r,i);return o.type&T.CLOSE_PATH&&(t=r,n=i),void 0!==o.x&&(t=o.relative?t+o.x:o.x),void 0!==o.y&&(n=o.relative?n+o.y:o.y),o.type&T.MOVE_TO&&(r=t,i=n),s}}function o(e,t,n,r,o,s){return h(e,t,n,r,o,s),i(function(i,a,c,u){var l=i.x1,h=i.x2,d=i.relative&&!isNaN(u),f=void 0!==i.x?i.x:d?0:a,p=void 0!==i.y?i.y:d?0:c;function A(e){return e*e}i.type&T.HORIZ_LINE_TO&&0!==t&&(i.type=T.LINE_TO,i.y=i.relative?0:c),i.type&T.VERT_LINE_TO&&0!==n&&(i.type=T.LINE_TO,i.x=i.relative?0:a),void 0!==i.x&&(i.x=i.x*e+p*n+(d?0:o)),void 0!==i.y&&(i.y=f*t+i.y*r+(d?0:s)),void 0!==i.x1&&(i.x1=i.x1*e+i.y1*n+(d?0:o)),void 0!==i.y1&&(i.y1=l*t+i.y1*r+(d?0:s)),void 0!==i.x2&&(i.x2=i.x2*e+i.y2*n+(d?0:o)),void 0!==i.y2&&(i.y2=h*t+i.y2*r+(d?0:s));var g=e*r-t*n;if(void 0!==i.xRot&&(1!==e||0!==t||0!==n||1!==r))if(0===g)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=T.LINE_TO;else{var m=i.xRot*Math.PI/180,y=Math.sin(m),v=Math.cos(m),b=1/A(i.rX),w=1/A(i.rY),C=A(v)*b+A(y)*w,_=2*y*v*(b-w),S=A(y)*b+A(v)*w,x=C*r*r-_*t*r+S*t*t,P=_*(e*r+t*n)-2*(C*n*r+S*e*t),E=C*n*n-_*e*n+S*e*e,I=(Math.atan2(P,x-E)+Math.PI)%Math.PI/2,k=Math.sin(I),B=Math.cos(I);i.rX=Math.abs(g)/Math.sqrt(x*A(B)+P*k*B+E*A(k)),i.rY=Math.abs(g)/Math.sqrt(x*A(k)-P*k*B+E*A(B)),i.xRot=180*I/Math.PI}return void 0!==i.sweepFlag&&0>g&&(i.sweepFlag=+!i.sweepFlag),i})}function s(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),h(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return i(function(e,t,n){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=n),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=n),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=n),e.relative=!0),e})},e.NORMALIZE_HVZ=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),i(function(r,i,o,s,a){if(isNaN(s)&&!(r.type&T.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type&T.HORIZ_LINE_TO&&(r.type=T.LINE_TO,r.y=r.relative?0:o),n&&r.type&T.VERT_LINE_TO&&(r.type=T.LINE_TO,r.x=r.relative?0:i),e&&r.type&T.CLOSE_PATH&&(r.type=T.LINE_TO,r.x=r.relative?s-i:s,r.y=r.relative?a-o:a),r.type&T.ARC&&(0===r.rX||0===r.rY)&&(r.type=T.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r})},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=i,e.SANITIZE=function(e){void 0===e&&(e=0),h(e);var t=NaN,n=NaN,r=NaN,o=NaN;return i(function(i,s,a,c,u){var l=Math.abs,h=!1,d=0,f=0;if(i.type&T.SMOOTH_CURVE_TO&&(d=isNaN(t)?0:s-t,f=isNaN(n)?0:a-n),i.type&(T.CURVE_TO|T.SMOOTH_CURVE_TO)?(t=i.relative?s+i.x2:i.x2,n=i.relative?a+i.y2:i.y2):(t=NaN,n=NaN),i.type&T.SMOOTH_QUAD_TO?(r=isNaN(r)?s:2*s-r,o=isNaN(o)?a:2*a-o):i.type&T.QUAD_TO?(r=i.relative?s+i.x1:i.x1,o=i.relative?a+i.y1:i.y2):(r=NaN,o=NaN),i.type&T.LINE_COMMANDS||i.type&T.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&T.CURVE_TO||i.type&T.SMOOTH_CURVE_TO||i.type&T.QUAD_TO||i.type&T.SMOOTH_QUAD_TO){var p=void 0===i.x?0:i.relative?i.x:i.x-s,A=void 0===i.y?0:i.relative?i.y:i.y-a;d=isNaN(r)?void 0===i.x1?d:i.relative?i.x:i.x1-s:r-s,f=isNaN(o)?void 0===i.y1?f:i.relative?i.y:i.y1-a:o-a;var g=void 0===i.x2?0:i.relative?i.x:i.x2-s,m=void 0===i.y2?0:i.relative?i.y:i.y2-a;l(p)<=e&&l(A)<=e&&l(d)<=e&&l(f)<=e&&l(g)<=e&&l(m)<=e&&(h=!0)}return i.type&T.CLOSE_PATH&&l(s-c)<=e&&l(a-u)<=e&&(h=!0),h?[]:i})},e.MATRIX=o,e.ROTATE=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),h(e,t,n);var r=Math.sin(e),i=Math.cos(e);return o(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),h(e,t),o(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),h(e,t),o(e,0,0,t,0,0)},e.SKEW_X=function(e){return h(e),o(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return h(e),o(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),h(e),o(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),h(e),o(1,0,0,-1,0,e)},e.A_TO_C=function(){return i(function(e,t,n){return T.ARC===e.type?function(e,t,n){var r,i,o,s;e.cX||f(e,t,n);for(var a=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-a,u=Math.ceil(c/90),h=new Array(u),d=t,p=n,A=0;A<u;A++){var y=m(e.phi1,e.phi2,A/u),v=m(e.phi1,e.phi2,(A+1)/u),b=v-y,w=4/3*Math.tan(b*g/4),C=[Math.cos(y*g)-w*Math.sin(y*g),Math.sin(y*g)+w*Math.cos(y*g)],_=C[0],S=C[1],x=[Math.cos(v*g),Math.sin(v*g)],P=x[0],E=x[1],I=[P+w*Math.sin(v*g),E-w*Math.cos(v*g)],k=I[0],B=I[1];h[A]={relative:e.relative,type:T.CURVE_TO};var M=function(t,n){var r=l([t*e.rX,n*e.rY],e.xRot),i=r[0],o=r[1];return[e.cX+i,e.cY+o]};r=M(_,S),h[A].x1=r[0],h[A].y1=r[1],i=M(k,B),h[A].x2=i[0],h[A].y2=i[1],o=M(P,E),h[A].x=o[0],h[A].y=o[1],e.relative&&(h[A].x1-=d,h[A].y1-=p,h[A].x2-=d,h[A].y2-=p,h[A].x-=d,h[A].y-=p),d=(s=[h[A].x,h[A].y])[0],p=s[1]}return h}(e,e.relative?0:t,e.relative?0:n):e})},e.ANNOTATE_ARCS=function(){return i(function(e,t,n){return e.relative&&(t=0,n=0),T.ARC===e.type&&f(e,t,n),e})},e.CLONE=s,e.CALCULATE_BOUNDS=function(){var e=function(e){var t={};for(var n in e)t[n]=e[n];return t},o=t(),s=r(),a=n(),c=i(function(t,n,r){var i=a(s(o(e(t))));function u(e){e>c.maxX&&(c.maxX=e),e<c.minX&&(c.minX=e)}function l(e){e>c.maxY&&(c.maxY=e),e<c.minY&&(c.minY=e)}if(i.type&T.DRAWING_COMMANDS&&(u(n),l(r)),i.type&T.HORIZ_LINE_TO&&u(i.x),i.type&T.VERT_LINE_TO&&l(i.y),i.type&T.LINE_TO&&(u(i.x),l(i.y)),i.type&T.CURVE_TO){u(i.x),l(i.y);for(var h=0,d=v(n,i.x1,i.x2,i.x);h<d.length;h++)0<(D=d[h])&&1>D&&u(b(n,i.x1,i.x2,i.x,D));for(var A=0,g=v(r,i.y1,i.y2,i.y);A<g.length;A++)0<(D=g[A])&&1>D&&l(b(r,i.y1,i.y2,i.y,D))}if(i.type&T.ARC){u(i.x),l(i.y),f(i,n,r);for(var m=i.xRot/180*Math.PI,w=Math.cos(m)*i.rX,C=Math.sin(m)*i.rX,_=-Math.sin(m)*i.rY,S=Math.cos(m)*i.rY,x=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],P=x[0],E=x[1],I=function(e){var t=e[0],n=e[1],r=180*Math.atan2(n,t)/Math.PI;return r<P?r+360:r},k=0,B=p(_,-w,0).map(I);k<B.length;k++)(D=B[k])>P&&D<E&&u(y(i.cX,w,_,D));for(var M=0,O=p(S,-C,0).map(I);M<O.length;M++){var D;(D=O[M])>P&&D<E&&l(y(i.cY,C,S,D))}}return t});return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}}(A||(A={}));var w,C=function(){function e(){}return e.prototype.round=function(e){return this.transform(A.ROUND(e))},e.prototype.toAbs=function(){return this.transform(A.TO_ABS())},e.prototype.toRel=function(){return this.transform(A.TO_REL())},e.prototype.normalizeHVZ=function(e,t,n){return this.transform(A.NORMALIZE_HVZ(e,t,n))},e.prototype.normalizeST=function(){return this.transform(A.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(A.QT_TO_C())},e.prototype.aToC=function(){return this.transform(A.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(A.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(A.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(A.SCALE(e,t))},e.prototype.rotate=function(e,t,n){return this.transform(A.ROTATE(e,t,n))},e.prototype.matrix=function(e,t,n,r,i,o){return this.transform(A.MATRIX(e,t,n,r,i,o))},e.prototype.skewX=function(e){return this.transform(A.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(A.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(A.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(A.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(A.ANNOTATE_ARCS())},e}(),_=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},S=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},x=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return c(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var n=this;void 0===t&&(t=[]);for(var r=function(e){t.push(e),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<e.length;i++){var o=e[i],s=!(this.curCommandType!==T.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),a=S(o)&&("0"===this.curNumber&&"0"===o||s);if(!S(o)||a)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var c=Number(this.curNumber);if(isNaN(c))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===T.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>c)throw new SyntaxError('Expected positive number, got "'+c+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(c),this.curArgs.length===P[this.curCommandType]&&(T.HORIZ_LINE_TO===this.curCommandType?r({type:T.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):T.VERT_LINE_TO===this.curCommandType?r({type:T.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===T.MOVE_TO||this.curCommandType===T.LINE_TO||this.curCommandType===T.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),T.MOVE_TO===this.curCommandType&&(this.curCommandType=T.LINE_TO)):this.curCommandType===T.CURVE_TO?r({type:T.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===T.SMOOTH_CURVE_TO?r({type:T.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===T.QUAD_TO?r({type:T.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===T.ARC&&r({type:T.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!_(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(a)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=T.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=T.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=T.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=T.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=T.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=T.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=T.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=T.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=T.ARC,this.curCommandRelative="a"===o}else t.push({type:T.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){void 0===n&&(n=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,t);r<i.length;
vendor: 2,326 bytes, line 404
404r++){var o=i[r],s=e(o);Array.isArray(s)?n.push.apply(n,s):n.push(s)}return n}}})},t}(C),T=function(e){function t(n){var r=e.call(this)||this;return r.commands="string"==typeof n?t.parse(n):n,r}return c(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=A.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],n=0,r=this.commands;n<r.length;n++){var i=e(r[n]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return this.commands=t,this},t.encode=function(e){return u(e)},t.parse=function(e){var t=new x,n=[];return t.parse(e,n),t.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(C),P=((w={})[T.MOVE_TO]=2,w[T.LINE_TO]=2,w[T.HORIZ_LINE_TO]=1,w[T.VERT_LINE_TO]=1,w[T.CLOSE_PATH]=0,w[T.QUAD_TO]=4,w[T.SMOOTH_QUAD_TO]=2,w[T.CURVE_TO]=6,w[T.SMOOTH_CURVE_TO]=4,w[T.ARC]=7,w);n(38781);function E(e){return E="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},E(e)}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var k=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,39
vendor: 6,831 bytes, line 404
4046,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],B=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function M(e,t,n,r,i){if("string"===typeof e&&(e=document.getElementById(e)),!e||"object"!==E(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=e.getContext("2d");try{return o.getImageData(t,n,r,i)}catch(u){throw new Error("unable to access image data: "+u)}}function O(e,t,n,r,i,o){if(!(isNaN(o)||o<1)){o|=0;var s=M(e,t,n,r,i);s=D(s,t,n,r,i,o),e.getContext("2d").putImageData(s,t,n)}}function D(e,t,n,r,i,o){for(var s,a=e.data,c=2*o+1,u=r-1,l=i-1,h=o+1,d=h*(h+1)/2,f=new R,p=f,A=1;A<c;A++)p=p.next=new R,A===h&&(s=p);p.next=f;for(var g=null,m=null,y=0,v=0,b=k[o],w=B[o],C=0;C<i;C++){p=f;for(var _=a[v],S=a[v+1],x=a[v+2],T=a[v+3],P=0;P<h;P++)p.r=_,p.g=S,p.b=x,p.a=T,p=p.next;for(var E=0,I=0,M=0,O=0,D=h*_,L=h*S,N=h*x,U=h*T,F=d*_,j=d*S,H=d*x,z=d*T,Q=1;Q<h;Q++){var V=v+((u<Q?u:Q)<<2),K=a[V],W=a[V+1],G=a[V+2],q=a[V+3],Y=h-Q;F+=(p.r=K)*Y,j+=(p.g=W)*Y,H+=(p.b=G)*Y,z+=(p.a=q)*Y,E+=K,I+=W,M+=G,O+=q,p=p.next}g=f,m=s;for(var X=0;X<r;X++){var Z=z*b>>>w;if(a[v+3]=Z,0!==Z){var $=255/Z;a[v]=(F*b>>>w)*$,a[v+1]=(j*b>>>w)*$,a[v+2]=(H*b>>>w)*$}else a[v]=a[v+1]=a[v+2]=0;F-=D,j-=L,H-=N,z-=U,D-=g.r,L-=g.g,N-=g.b,U-=g.a;var J=X+o+1;J=y+(J<u?J:u)<<2,E+=g.r=a[J],I+=g.g=a[J+1],M+=g.b=a[J+2],O+=g.a=a[J+3],F+=E,j+=I,H+=M,z+=O,g=g.next;var ee=m,te=ee.r,ne=ee.g,re=ee.b,ie=ee.a;D+=te,L+=ne,N+=re,U+=ie,E-=te,I-=ne,M-=re,O-=ie,m=m.next,v+=4}y+=r}for(var oe=0;oe<r;oe++){v=oe<<2;var se=a[v],ae=a[v+1],ce=a[v+2],ue=a[v+3],le=h*se,he=h*ae,de=h*ce,fe=h*ue,pe=d*se,Ae=d*ae,ge=d*ce,me=d*ue;p=f;for(var ye=0;ye<h;ye++)p.r=se,p.g=ae,p.b=ce,p.a=ue,p=p.next;for(var ve=r,be=0,we=0,Ce=0,_e=0,Se=1;Se<=o;Se++){v=ve+oe<<2;var xe=h-Se;pe+=(p.r=se=a[v])*xe,Ae+=(p.g=ae=a[v+1])*xe,ge+=(p.b=ce=a[v+2])*xe,me+=(p.a=ue=a[v+3])*xe,_e+=se,be+=ae,we+=ce,Ce+=ue,p=p.next,Se<l&&(ve+=r)}v=oe,g=f,m=s;for(var Te=0;Te<i;Te++){var Pe=v<<2;a[Pe+3]=ue=me*b>>>w,ue>0?(ue=255/ue,a[Pe]=(pe*b>>>w)*ue,a[Pe+1]=(Ae*b>>>w)*ue,a[Pe+2]=(ge*b>>>w)*ue):a[Pe]=a[Pe+1]=a[Pe+2]=0,pe-=le,Ae-=he,ge-=de,me-=fe,le-=g.r,he-=g.g,de-=g.b,fe-=g.a,Pe=oe+((Pe=Te+h)<l?Pe:l)*r<<2,pe+=_e+=g.r=a[Pe],Ae+=be+=g.g=a[Pe+1],ge+=we+=g.b=a[Pe+2],me+=Ce+=g.a=a[Pe+3],g=g.next,le+=se=m.r,he+=ae=m.g,de+=ce=m.b,fe+=ue=m.a,_e-=se,be-=ae,we-=ce,Ce-=ue,m=m.next,v+=r}}return e}var R=function e(){I(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function L(){var{DOMParser:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(e,t){return new OffscreenCanvas(e,t)},createImage(e){return(0,r.A)(function*(){var t=yield fetch(e),n=yield t.blob(),r=yield createImageBitmap(n);return r})()}};return"undefined"===typeof DOMParser&&"undefined"!==typeof e||Reflect.deleteProperty(t,"DOMParser"),t}function N(e){var{DOMParser:t,canvas:n,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}var U=Object.freeze({__proto__:null,offscreen:L,node:N});function F(e){return e.replace(/(?!\u3000)\s+/gm," ")}function j(e){return e.replace(/^[\n \t]+/,"")}function H(e){return e.replace(/[\n \t]+$/,"")}function z(e){var t=(e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}var Q=/^[A-Z-]+$/;function V(e){return Q.test(e)?e.toLowerCase():e}function K(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function W(e){if(!e.startsWith("rgb"))return e;var t=3,n=e.replace(/\d+(\.\d+)?/g,(e,n)=>t--&&n?String(Math.round(parseFloat(e))):e);return n}var G=/(\[[^\]]+\])/g,q=/(#[^\s+>~.[:]+)/g,Y=/(\.[^\s+>~.[:]+)/g,X=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Z=/(:[\w-]+\([^)]*\))/gi,$=/(:[^\s+>~.[:]+)/g,J=/([^\s+>~.[:]+)/g;function ee(e,t){var n=t.exec(e);return n?[e.replace(t," "),n.length]:[e,0]}function te(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),r=0;return[n,r]=ee(n,G),t[1]+=r,[n,r]=ee(n,q),t[0]+=r,[n,r]=ee(n,Y),t[1]+=r,[n,r]=ee(n,X),t[2]+=r,[n,r]=ee(n,Z),t[1]+=r,[n,r]=ee(n,$),t[1]+=r,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[n,r]=ee(n,J),t[2]+=r,t.join("")}var ne=1e-8;function re(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function ie(e,t){return(e[0]*t[0]+e[1]*t[1])/(re(e)*re(t))}function oe(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ie(e,t))}function se(e){return e*e*e}function ae(e){return 3*e*e*(1-e)}function ce(e){return 3*e*(1-e)*(1-e)}function ue(e){return(1-e)*(1-e)*(1-e)}function le(e){return e*e}function he(e){return 2*e*(1-e)}function de(e){return(1-e)*(1-e)}class fe{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new fe(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:t,name:n}=this;return F(this.getString()).trim().split(e).map(e=>new fe(t,n,e))}hasValue(e){var{value:t}=this;return null!==t&&""!==t&&(e||0!==t)&&"undefined"!==typeof t}isString(e){var{value:t}=this,n="string"===typeof t;return n&&e?e.test(t):n}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return"undefined"===typeof e||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return"undefined"===typeof e?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return"undefined"===typeof e||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=W(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}
vendor: 2,505 bytes, line 404
404getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[n,r]="boolean"===typeof e?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(n);default:var o=this.getNumber();return t&&o<1?o*i.computeSize(n):o}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if("function"===typeof n.createGradient)return n.createGradient(this.document.ctx,e,t);if("function"===typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?fe.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,r=0,i=0;i<n;i++)if(","===t[i]&&r++,3===r)break;
vendor: 4,316 bytes, line 404
404if(e.hasValue()&&this.isString()&&3!==r){var o=new s(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new fe(this.document,this.name,t)}}fe.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class pe{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return"number"===typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Ae{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[n=t,r=t]=z(e);return new Ae(n,r)}static parseScale(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[n=t,r=n]=z(e);return new Ae(n,r)}static parsePath(e){for(var t=z(e),n=t.length,r=[],i=0;i<n;i+=2)r.push(new Ae(t[i],t[i+1]));return r}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,r=t*e[0]+n*e[2]+e[4],i=t*e[1]+n*e[3]+e[5];this.x=r,this.y=i}}class ge{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:n}=this,r=e.ctx.canvas;r.onclick=t,r.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:r}=e.ctx.canvas;r&&(r.cursor=""),t.forEach((e,t)=>{var{run:r}=e,i=n[t];while(i)r(i),i=i.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:o,y:s}=n;!r[i]&&t.isPointInPath&&t.isPointInPath(o,s)&&(r[i]=e)})}}checkBoundingBox(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:o,y:s}=n;!r[i]&&t.isPointInBox(o,s)&&(r[i]=e)})}}mapXY(e,t){var{window:n,ctx:r}=this.screen,i=new Ae(e,t),o=r.canvas;while(o)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:n,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:n,run(e){e.onMouseMove&&e.onMouseMove()}})}}var me="undefined"!==typeof window?window:null,ye="undefined"!==typeof fetch?fetch.bind(void 0):null;class ve{constructor(e){var{fetch:t=ye,window:n=me}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new pe,this.mouse=new ge(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(e=>e());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:r,width:i,desiredWidth:o,height:s,desiredHeight:a,minX:c=0,minY:u=0,refX:l,refY:h,clip:d=!1,clipX:f=0,clipY:p=0}=e,A=F(r).replace(/^defer\s/,""),[g,m]=A.split(" "),y=g||"xMidYMid",v=m||"meet",b=i/o,w=s/a,C=Math.min(b,w),_=Math.max(b,w),S=o,x=a;"meet"===v&&(S*=C,x*=C),"slice"===v&&(S*=_,x*=_);var T=new fe(t,"refX",l),P=new fe(t,"refY",h),E=T.hasValue()&&P.hasValue();if(E&&n.translate(-C*T.getPixels("x"),-C*P.getPixels("y")),d){var I=C*f,k=C*p;n.beginPath(),n.moveTo(I,k),n.lineTo(i,k),n.lineTo(i,s),n.lineTo(I,s),n.closePath(),n.clip()}
vendor: 4,183 bytes, line 404
404if(!E){var B="meet"===v&&C===w,M="slice"===v&&_===w,O="meet"===v&&C===b,D="slice"===v&&_===b;y.startsWith("xMid")&&(B||M)&&n.translate(i/2-S/2,0),y.endsWith("YMid")&&(O||D)&&n.translate(0,s/2-x/2),y.startsWith("xMax")&&(B||M)&&n.translate(i-S,0),y.endsWith("YMax")&&(O||D)&&n.translate(0,s-x)}switch(!0){case"none"===y:n.scale(b,w);break;case"meet"===v:n.scale(C,C);break;case"slice"===v:n.scale(_,_);break}n.translate(-c,-u)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:r=!1,ignoreDimensions:i=!1,ignoreClear:s=!1,forceRedraw:a,scaleWidth:c,scaleHeight:u,offsetX:l,offsetY:h}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:d,mouse:f}=this,p=1e3/d;if(this.frameDuration=p,this.readyPromise=new Promise(e=>{this.resolveReady=e}),this.isReady()&&this.render(e,i,s,c,u,l,h),t){var A=Date.now(),g=A,m=0,y=()=>{A=Date.now(),m=A-g,m>=p&&(g=A-m%p,this.shouldUpdate(r,a)&&(this.render(e,i,s,c,u,l,h),f.runEvents())),this.intervalId=o(y)};n||f.start(),this.intervalId=o(y)}}stop(){this.intervalId&&(o.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this,r=this.animations.reduce((e,t)=>t.update(n)||e,!1);if(r)return!0}return!("function"!==typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(e,t,n,r,i,o,s){var{CLIENT_WIDTH:a,CLIENT_HEIGHT:c,viewPort:u,ctx:l,isFirstRender:h}=this,d=l.canvas;u.clear(),d.width&&d.height?u.setCurrent(d.width,d.height):u.setCurrent(a,c);var f=e.getStyle("width"),p=e.getStyle("height");!t&&(h||"number"!==typeof r&&"number"!==typeof i)&&(f.hasValue()&&(d.width=f.getPixels("x"),d.style&&(d.style.width="".concat(d.width,"px"))),p.hasValue()&&(d.height=p.getPixels("y"),d.style&&(d.style.height="".concat(d.height,"px"))));var A=d.clientWidth||d.width,g=d.clientHeight||d.height;if(t&&f.hasValue()&&p.hasValue()&&(A=f.getPixels("x"),g=p.getPixels("y")),u.setCurrent(A,g),"number"===typeof o&&e.getAttribute("x",!0).setValue(o),"number"===typeof s&&e.getAttribute("y",!0).setValue(s),"number"===typeof r||"number"===typeof i){var m=z(e.getAttribute("viewBox").getString()),y=0,v=0;if("number"===typeof r){var b=e.getStyle("width");b.hasValue()?y=b.getPixels("x")/r:isNaN(m[2])||(y=m[2]/r)}if("number"===typeof i){var w=e.getStyle("height");w.hasValue()?v=w.getPixels("y")/i:isNaN(m[3])||(v=m[3]/i)}y||(y=v),v||(v=y),e.getAttribute("width",!0).setValue(r),e.getAttribute("height",!0).setValue(i);var C=e.getStyle("transform",!0,!0);C.setValue("".concat(C.getString()," scale(").concat(1/y,", ").concat(1/v,")"))}n||l.clearRect(0,0,A,g),e.render(l),h&&(this.isFirstRender=!1)}}ve.defaultWindow=me,ve.defaultFetch=ye;var{defaultFetch:be}=ve,we="undefined"!==typeof DOMParser?DOMParser:null;class Ce{constructor(){var{fetch:e=be,DOMParser:t=we}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return(0,r.A)(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(n){return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return(0,r.A)(function*(){var n=yield t.fetch(e),r=yield n.text();return t.parseFromString(r)})()}}class _e{constructor(e,t){this.type="translate",this.point=null,this.point=Ae.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}}class Se{constructor(e,t,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=z(t);this.angle=new fe(e,"angle",r[0]),this.originX=n[0],this.originY=n[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(e){var{cx:t,cy:n,originX:r,originY:i,angle:o}=this,s=t+r.getPixels("x"),a=n+i.getPixels("y");e.translate(s,a),e.rotate(o.getRadians()),e.translate(-s,-a)}unapply(e){var{cx:t,cy:n,originX:r,originY:i,angle:o}=this,s=t+r.getPixels("x"),a=n+i.getPixels("y");
vendor: 4,330 bytes, line 404
404e.translate(s,a),e.rotate(-1*o.getRadians()),e.translate(-s,-a)}applyToPoint(e){var{cx:t,cy:n,angle:r}=this,i=r.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class xe{constructor(e,t,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var r=Ae.parseScale(t);0!==r.x&&0!==r.y||(r.x=ne,r.y=ne),this.scale=r,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,o=r.getPixels("x"),s=i.getPixels("y");e.translate(o,s),e.scale(t,n||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,o=r.getPixels("x"),s=i.getPixels("y");e.translate(o,s),e.scale(1/t,1/n||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}}class Te{constructor(e,t,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=z(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:r}=this,i=t.getPixels("x"),o=n.getPixels("y");e.translate(i,o),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-i,-o)}unapply(e){var{originX:t,originY:n,matrix:r}=this,i=r[0],o=r[2],s=r[4],a=r[1],c=r[3],u=r[5],l=0,h=0,d=1,f=1/(i*(c*d-u*h)-o*(a*d-u*l)+s*(a*h-c*l)),p=t.getPixels("x"),A=n.getPixels("y");e.translate(p,A),e.transform(f*(c*d-u*h),f*(u*l-a*d),f*(s*h-o*d),f*(i*d-s*l),f*(o*u-s*c),f*(s*a-i*u)),e.translate(-p,-A)}applyToPoint(e){e.applyTransform(this.matrix)}}class Pe extends Te{constructor(e,t,n){super(e,t,n),this.type="skew",this.angle=null,this.angle=new fe(e,"angle",t)}}class Ee extends Pe{constructor(e,t,n){super(e,t,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class Ie extends Pe{constructor(e,t,n){super(e,t,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function ke(e){return F(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Be(e){var[t,n]=e.split("(");return[t.trim(),n.trim().replace(")","")]}class Me{constructor(e,t,n){this.document=e,this.transforms=[];var r=ke(t);r.forEach(e=>{if("none"!==e){var[t,r]=Be(e),i=Me.transformTypes[t];"undefined"!==typeof i&&this.transforms.push(new i(this.document,r,n))}})}static fromElement(e,t){var n=t.getStyle("transform",!1,!0),[r,i=r]=t.getStyle("transform-origin",!1,!0).split(),o=[r,i];return n.hasValue()?new Me(e,n.getString(),o):null}apply(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length,r=n-1;r>=0;r--)t[r].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].applyToPoint(e)}}Me.transformTypes={translate:_e,rotate:Se,scale:xe,matrix:Te,skewX:Ee,skewY:Ie};class Oe{constructor(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){if(Array.from(t.attributes).forEach(t=>{var n=V(t.nodeName);this.attributes[n]=new fe(e,n,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var r=this.getAttribute("style").getString().split(";").map(e=>e.trim());r.forEach(t=>{if(t){var[n,r]=t.split(":").map(e=>e.trim());this.styles[n]=new fe(e,n,r)}})}var{definitions:i}=e,o=this.getAttribute("id");o.hasValue()&&(i[o.getString()]||(i[o.getString()]=this)),Array.from(t.childNodes).forEach(t=>{if(1===t.nodeType)this.addChild(t);else if(n&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}})}}getAttribute(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.attributes[e];if(!n&&t){var r=new fe(this.document,e,"");return this.attributes[e]=r,r}return n||fe.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return fe.empty(this.document)}getStyle(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[e];if(r)return r;var i=this.getAttribute(e);
vendor: 6,165 bytes, line 404
404if(null!==i&&void 0!==i&&i.hasValue())return this.styles[e]=i,i;if(!n){var{parent:o}=this;if(o){var s=o.getStyle(e);if(null!==s&&void 0!==s&&s.hasValue())return s}}if(t){var a=new fe(this.document,e,"");return this.styles[e]=a,a}return r||fe.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=Me.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof Oe?e:this.document.createElement(e);t.parent=this,Oe.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:n}=this;if("function"===typeof n.matches)return n.matches(e);var r=null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"class");return!(!r||""===r)&&r.split(" ").some(t=>".".concat(t)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var r=e[n],i=t[n];if(r)for(var o in r){var s=this.stylesSpecificity[o];"undefined"===typeof s&&(s="000"),i>=s&&(this.styles[o]=r[o],this.stylesSpecificity[o]=i)}}}removeStyles(e,t){var n=t.reduce((t,n)=>{var r=e.getStyle(n);if(!r.hasValue())return t;var i=r.getString();return r.setValue(""),[...t,[n,i]]},[]);return n}restoreStyles(e,t){t.forEach(t=>{var[n,r]=t;e.getStyle(n,!0).setValue(r)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}Oe.ignoreChildTypes=["title"];class De extends Oe{constructor(e,t,n){super(e,t,n)}}function Re(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Le(e){return"undefined"===typeof process?e:e.trim().split(",").map(Re).join(",")}function Ne(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function Ue(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class Fe{constructor(e,t,n,r,i,o){var s=o?"string"===typeof o?Fe.parse(o):o:{};this.fontFamily=i||s.fontFamily,this.fontSize=r||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n="",r="",i="",o="",s="",a=F(e).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return a.forEach(e=>{switch(!0){case!c.fontStyle&&Fe.styles.includes(e):"inherit"!==e&&(n=e),c.fontStyle=!0;break;case!c.fontVariant&&Fe.variants.includes(e):"inherit"!==e&&(r=e),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&Fe.weights.includes(e):"inherit"!==e&&(i=e),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:"inherit"!==e&&([o]=e.split("/")),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==e&&(s+=e)}}),new Fe(n,r,i,o,s,t)}toString(){return[Ne(this.fontStyle),this.fontVariant,Ue(this.fontWeight),this.fontSize,Le(this.fontFamily)].join(" ").trim()}}Fe.styles="normal|italic|oblique|inherit",Fe.variants="normal|small-caps|inherit",Fe.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class je{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.addPoint(e,t),this.addPoint(n,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){"undefined"!==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"undefined"!==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:r,y2:i}=e;this.addPoint(t,n),this.addPoint(r,i)}}sumCubic(e,t,n,r,i){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*r+Math.pow(e,3)*i}bezierCurveAdd(e,t,n,r,i){var o=6*t-12*n+6*r,s=-3*t+9*n-9*r+3*i,a=3*n-3*t;if(0!==s){var c=Math.pow(o,2)-4*a*s;if(!(c<0)){var u=(-o+Math.sqrt(c))/(2*s);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,r,i)):this.addY(this.sumCubic(u,t,n,r,i)));var l=(-o-Math.sqrt(c))/(2*s);0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,n,r,i)):this.addY(this.sumCubic(l,t,n,r,i)))}}else{if(0===o)return;var h=-a/o;0<h&&h<1&&(e?this.addX(this.sumCubic(h,t,n,r,i)):this.addY(this.sumCubic(h,t,n,r,i)))}}addBezierCurve(e,t,n,r,i,o,s,a){this.addPoint(e,t),this.addPoint(s,a),this.bezierCurveAdd(!0,e,n,i,s),this.bezierCurveAdd(!1,t,r,o,a)}addQuadraticCurve(e,t,n,r,i,o){var s=e+2/3*(n-e),a=t+2/3*(r-t),c=s+1/3*(i-e),u=a+1/3*(o-t);this.addBezierCurve(e,t,s,c,a,u,i,o)}isPointInBox(e,t){var{x1:n,y1:r,x2:i,y2:o}=this;return n<=e&&e<=i&&r<=t&&t<=o}}class He extends T{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Ae(0,0),this.control=new Ae(0,0),this.current=ne
vendor: 11,672 bytes, line 404
404w Ae(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=new Ae(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==T.CURVE_TO&&e!==T.SMOOTH_CURVE_TO&&e!==T.QUAD_TO&&e!==T.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:r,y:i}}=this,o=new Ae(2*t-r,2*n-i);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:r,angles:i}=this;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n<t;n++)if(!e[n])for(var r=n+1;r<t;r++)if(e[r]){e[n]=e[r];break}return e}}class ze extends Oe{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){var e=1,t=this;while(t){var n=t.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this.getStyle("fill"),r=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var s=n.getFillStyleDefinition(this,r);s&&(e.fillStyle=s)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var a=n.getColor();"inherit"!==a&&(e.fillStyle="none"===a?"rgba(0,0,0,0)":a)}if(r.hasValue()){var c=new fe(this.document,"fill",e.fillStyle).addOpacity(r).getColor();e.fillStyle=c}if(i.isUrlDefinition()){var u=i.getFillStyleDefinition(this,o);u&&(e.strokeStyle=u)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var l=i.getString();"inherit"!==l&&(e.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(o.hasValue()){var h=new fe(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=h}var d=this.getStyle("stroke-width");if(d.hasValue()){var f=d.getPixels();e.lineWidth=f||ne}var p=this.getStyle("stroke-linecap"),A=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),m=this.getStyle("stroke-dasharray"),y=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),A.hasValue()&&(e.lineJoin=A.getString()),g.hasValue()&&(e.miterLimit=g.getNumber()),m.hasValue()&&"none"!==m.getString()){var v=z(m.getString());"undefined"!==typeof e.setLineDash?e.setLineDash(v):"undefined"!==typeof e.webkitLineDash?e.webkitLineDash=v:"undefined"===typeof e.mozDash||1===v.length&&0===v[0]||(e.mozDash=v);var b=y.getPixels();"undefined"!==typeof e.lineDashOffset?e.lineDashOffset=b:"undefined"!==typeof e.webkitLineDashOffset?e.webkitLineDashOffset=b:"undefined"!==typeof e.mozDashOffset&&(e.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof e.font){var w=this.getStyle("font"),C=this.getStyle("font-style"),_=this.getStyle("font-variant"),S=this.getStyle("font-weight"),x=this.getStyle("font-size"),T=this.getStyle("font-family"),P=new Fe(C.getString(),_.getString(),S.getString(),x.hasValue()?"".concat(x.getPixels(!0),"px"):"",T.getString(),Fe.parse(w.getString(),e.font));C.setValue(P.fontStyle),_.setValue(P.fontVariant),S.setValue(P.fontWeight),x.setValue(P.fontSize),T.setValue(P.fontFamily),e.font=P.toString(),x.isPixels()&&(this.document.emSize=x.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Qe extends ze{constructor(e,t,n){super(e,t,n),this.type="path",this.pathParser=null,this.pathParser=new He(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,n=new je;t.reset(),e&&e.beginPath();while(!t.isEnd())switch(t.next().type){case He.MOVE_TO:this.pathM(e,n);break;case He.LINE_TO:this.pathL(e,n);break;case He.HORIZ_LINE_TO:this.pathH(e,n);break;case He.VERT_LINE_TO:this.pathV(e,n);break;case He.CURVE_TO:this.pathC(e,n);break;case He.SMOOTH_CURVE_TO:this.pathS(e,n);break;case He.QUAD_TO:this.pathQ(e,n);break;case He.SMOOTH_QUAD_TO:this.pathT(e,n);break;case He.ARC:this.pathA(e,n);break;case He.CLOSE_PATH:this.pathZ(e,n);break}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles(),r=t.map((e,t)=>[e,n[t]]);return r}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var r=n.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var a=i.getDefinition(),[c,u]=n[0];a.render(e,c,u)}if(o.isUrlDefinition())for(var l=o.getDefinition(),h=1;h<r;h++){var[d,f]=n[h];l.render(e,d,f)}if(s.isUrlDefinition()){var p=s.getDefinition(),[A,g]=n[r];p.render(e,A,g)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:r}=Qe.pathM(n),{x:i,y:o}=r;n.addMarker(r),t.addPoint(i,o),e&&e.moveTo(i,o)}static pathL(e){var{current:t}=e,n=e.getAsCurrentPoint();return{current:t,point:n}}pathL(e,t){var{pathParser:n}=this,{current:r,point:i}=Qe.pathL(n),{x:o,y:s}=i;n.addMarker(i,r),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){var{current:t,command:n}=e,r=new Ae((n.relative?t.x:0)+n.x,t.y);return e.current=r,{current:t,point:r}}pathH(e,t){var{pathParser:n}=this,{current:r,point:i}=Qe.pathH(n),{x:o,y:s}=i;n.addMarker(i,r),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){var{current:t,command:n}=e,r=new Ae(t.x,(n.relative?t.y:0)+n.y);return e.current=r,{current:t,point:r}}pathV(e,t){var{pathParser:n}=this,{current:r,point:i}=Qe.pathV(n),{x:o,y:s}=i;n.addMarker(i,r),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){var{current:t}=e,n=e.getPoint("x1","y1"),r=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:r,currentPoint:i}}pathC(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:o,currentPoint:s}=Qe.pathC(n);n.addMarker(s,o,i),t.addBezierCurve(r.x,r.y,i.x,i.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathS(e){var{current:t}=e,n=e.getReflectedControlPoint(),r=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:r,currentPoint:i}}pathS(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:o,currentPoint:s}=Qe.pathS(n);n.addMarker(s,o,i),t.addBezierCurve(r.x,r.y,i.x,i.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathQ(e){var{current:t}=e,n=e.getAsControlPoint("x1","y1"),r=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:r}}pathQ(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:o}=Qe.pathQ(n);n.addMarker(o,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();e.control=n;var r=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:r}}pathT(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:o}=Qe.pathT(n);n.addMarker(o,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathA(e){var{current:t,command:n}=e,{rX:r,rY:i,xRot:o,lArcFlag:s,sweepFlag:a}=n,c=o*(Math.PI/180),u=e.getAsCurrentPoint(),l=new Ae(Math.cos(c)*(t.x-u.x)/2+Math.sin(c)*(t.y-u.y)/2,-Math.sin(c)*(t.x-u.x)/2+Math.cos(c)*(t.y-u.y)/2),h=Math.pow(l.x,2)/Math.pow(r,2)+Math.pow(l.y,2)/Math.pow(i,2);h>1&&(r*=Math.sqrt(h),i*=Math.sqrt(h));var d=(s===a?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(i,2)-Math.pow(r,2)*Math.pow(l.y,2)-Math.pow(i,2)*Math.pow(l.x,2))/(Math.pow(r,2)*Math.pow(l.y,2)+Math.pow(i,2)*Math.pow(l.x,2)));isNaN(d)&&(d=0);var f=new Ae(d*r*l.y/i,d*-i*l.x/r),p=new Ae((t.x+u.x)/2+Math.cos(c)*f.x-Math.sin(c)*f.y,(t.y+u.y)/2+Math.sin(c)*f.x+Math.cos(c)*f.y),A=oe([1,0],[(l.x-f.x)/r,(l.y-f.y)/i]),g=[(l.x-f.x)/r,(l.y-f.y)/i],m=[(-l.x-f.x)/r,(-l.y-f.y)/i],y=oe(g,m);return ie(g,m)<=-1&&(y=Math.PI),ie(g,m)>=1&&(y=0),{currentPoint:u,rX:r,rY:i,sweepFlag:a,xAxisRotation:c,centp:p,a1:A,ad:y}}pathA(e,t){var{pathParser:n}=this,{currentPoint:r,rX:i,rY:o,sweepFlag:s,xAxisRotation:a,centp:c,a1:u,ad:l}=Qe.pathA(n),h=1-s?1:-1,d=u+h*(l/2),f=new Ae(c.x+i*Math.cos(d),c.y+o*Math.sin(d));if(n.addMarkerAngle(f,d-h*Math.PI/2),n.addMarkerAngle(r,d-h*Math.PI),t.addPoint(r.x,r.y),e&&!isNaN(u)&&!isNaN(l)){var p=i>o?i:o,A=i>o?1:i/o,g=i>o?o/i:1;e.translate(c.x,c.y),e.rotate(a),e.scale(A,g),e.arc(0,0,p,u,u+l,Boolean(1-s)),e.scale(1/A,1/g),e.rotate(-a),e.translate(-c.x,-c.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){Qe.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class Ve extends Qe{constructor(e,t,n){super(e,t,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Ke extends ze{constructor(e,t,n){super(e,t,new.target===Ke||n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(e,t);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((n,r)=>{var i=this.getChildBoundingBox(e,this,this,r);t?t.addBoundingBox(i):t=i}),t}getFontSize(){var{document:e,parent:t}=this,n=Fe.parse(e.ctx.font).fontSize,r=t.getStyle("font-size").getNumber(n);return r}getTElementBoundingBox(e){var t=this.getFontSize();return new je(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var r=t[n],i=null;if(e.isArabic){var o=t.length,s=t[n-1],a=t[n+1],c="isolated";if((0===n||" "===s)&&n<o-1&&" "!==a&&(c="terminal"),n>0&&" "!==s&&n<o-1&&" "!==a&&(c="medial"),n>0&&" "!==s&&(n===o-1||" "===a)&&(c="initial"),"undefined"!==typeof e.glyphs[r]){var u=e.glyphs[r];i=u instanceof Ve?u:u[c]}}else i=e.glyphs[r];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),i=n.length-1,o=F(t.textContent||"");return 0===r&&(o=j(o)),r===i&&(o=H(o)),o}renderChildren(e){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,n)=>{this.renderChild(e,this,this,n)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}renderTElementChildren(e){var{document:t,parent:n}=this,r=this.getText(),i=n.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:o}
vendor: 4,522 bytes, line 404
404=i.fontFace,s=Fe.parse(t.ctx.font),a=n.getStyle("font-size").getNumber(s.fontSize),c=n.getStyle("font-style").getString(s.fontStyle),u=a/o,l=i.isRTL?r.split("").reverse().join(""):r,h=z(n.getAttribute("dx").getString()),d=l.length,f=0;f<d;f++){var p=this.getGlyph(i,l,f);e.translate(this.x,this.y),e.scale(u,-u);var A=e.lineWidth;e.lineWidth=e.lineWidth*o/a,"italic"===c&&e.transform(1,0,.4,1,0,0),p.render(e),"italic"===c&&e.transform(1,0,-.4,1,0,0),e.lineWidth=A,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=a*(p.horizAdvX||i.horizAdvX)/o,"undefined"===typeof h[f]||isNaN(h[f])||(this.x+=h[f])}else{var{x:g,y:m}=this;e.fillStyle&&e.fillText(r,g,m),e.strokeStyle&&e.strokeText(r,g,m)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),n=!1,r=0;r="start"===t&&!n||"end"===t&&n?e.x-this.minX:"end"===t&&!n||"start"===t&&n?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=r;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,n,r){var i=n.children[r];i.children.length>0?i.children.forEach((n,r)=>{t.adjustChildCoordinatesRecursiveCore(e,t,i,r)}):this.adjustChildCoordinates(e,t,n,r)}adjustChildCoordinates(e,t,n,r){var i=n.children[r];if("function"!==typeof i.measureText)return i;e.save(),i.setContext(e,!0);var o=i.getAttribute("x"),s=i.getAttribute("y"),a=i.getAttribute("dx"),c=i.getAttribute("dy"),u=i.getStyle("font-family").getDefinition(),l=Boolean(u)&&u.isRTL;0===r&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),a.hasValue()||a.setValue(i.getInheritedAttribute("dx")),c.hasValue()||c.setValue(i.getInheritedAttribute("dy")));var h=i.measureText(e);return l&&(t.x-=h),o.hasValue()?(t.applyAnchoring(),i.x=o.getPixels("x"),a.hasValue()&&(i.x+=a.getPixels("x"))):(a.hasValue()&&(t.x+=a.getPixels("x")),i.x=t.x),t.x=i.x,l||(t.x+=h),s.hasValue()?(i.y=s.getPixels("y"),c.hasValue()&&(i.y+=c.getPixels("y"))):(c.hasValue()&&(t.y+=c.getPixels("y")),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+h),t.maxX=Math.max(t.maxX,i.x,i.x+h),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,t,n,r){var i=n.children[r];if("function"!==typeof i.getBoundingBox)return null;var o=i.getBoundingBox(e);return o?(i.children.forEach((n,r)=>{var s=t.getChildBoundingBox(e,t,i,r);o.addBoundingBox(s)}),o):null}renderChild(e,t,n,r){var i=n.children[r];i.render(e),i.children.forEach((n,r)=>{t.renderChild(e,t,i,r)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,r=n.getStyle("font-family").getDefinition();if(r){for(var i=this.getFontSize(),o=r.isRTL?t.split("").reverse().join(""):t,s=z(n.getAttribute("dx").getString()),a=o.length,c=0,u=0;u<a;u++){var l=this.getGlyph(r,o,u);c+=(l.horizAdvX||r.horizAdvX)*i/r.fontFace.unitsPerEm,"undefined"===typeof s[u]||isNaN(s[u])||(c+=s[u])}return c}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var{width:h}=e.measureText(t);return this.clearContext(e),e.restore(),h}getInheritedAttribute(e){var t=this;while(t instanceof Ke&&t.isFirstChild()){var n=t.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");t=t.parent}return null}}class We extends Ke{constructor(e,t,n){super(e,t,new.target===We||n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Ge extends We{constructor(){super(...arguments),this.type="textNode"}}class qe extends ze{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:n}=this,{screen:r,window:i}=n,o=e.canvas;if(r.setDefaults(e),o.style&&"undefined"!==typeof e.font&&i&&"undefined"!==typeof i.getComputedStyle){e.font=i.getComputedStyle(o).getPropertyValue("font");var s=new fe(n,"fontSize",Fe.parse(e.font).fontSize);s.hasValue()&&(n.rootEmSize=s.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:a,height:c}=r.viewPort;
vendor: 12,520 bytes, line 404
404this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),l=this.getAttribute("refY"),h=this.getAttribute("viewBox"),d=h.hasValue()?z(h.getString()):null,f=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,A=0,g=0,m=0;d&&(p=d[0],A=d[1]),this.root||(a=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=p,m=A,p=0,A=0)),r.viewPort.setCurrent(a,c),!this.node||this.parent&&"foreignObject"!==(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(a=d[2],c=d[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:a,height:r.viewPort.height,desiredHeight:c,minX:p,minY:A,refX:u.getValue(),refY:l.getValue(),clip:f,clipX:g,clipY:m}),d&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(a,c))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),a=r.getNumber(0),c=i.getNumber(0);if(n)if("string"===typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(e),i.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(a||e," ").concat(c||t)),s.hasValue()){var l=this.getStyle("width"),h=this.getStyle("height");l.hasValue()&&l.setValue("".concat(e,"px")),h.hasValue()&&h.setValue("".concat(t,"px"))}}}class Ye extends Qe{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),a=o.getPixels("x"),c=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(c=a),s.hasValue()&&!o.hasValue()&&(a=c),a=Math.min(a,r/2),c=Math.min(c,i/2),e){var u=(Math.sqrt(2)-1)/3*4;e.beginPath(),i>0&&r>0&&(e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.bezierCurveTo(t+r-a+u*a,n,t+r,n+c-u*c,t+r,n+c),e.lineTo(t+r,n+i-c),e.bezierCurveTo(t+r,n+i-c+u*c,t+r-a+u*a,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.bezierCurveTo(t+a-u*a,n+i,t,n+i-c+u*c,t,n+i-c),e.lineTo(t,n+c),e.bezierCurveTo(t,n+c-u*c,t+a-u*a,n,t+a,n),e.closePath())}return new je(t,n,t+r,n+i)}getMarkers(){return null}}class Xe extends Qe{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,2*Math.PI,!1),e.closePath()),new je(t-r,n-r,t+r,n+r)}getMarkers(){return null}}class Ze extends Qe{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=(Math.sqrt(2)-1)/3*4,n=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(i+n,o),e.bezierCurveTo(i+n,o+t*r,i+t*n,o+r,i,o+r),e.bezierCurveTo(i-t*n,o+r,i-n,o+t*r,i-n,o),e.bezierCurveTo(i-n,o-t*r,i-t*n,o-r,i,o-r),e.bezierCurveTo(i+t*n,o-r,i+n,o-t*r,i+n,o),e.closePath()),new je(i-n,o-r,i+n,o+r)}getMarkers(){return null}}class $e extends Qe{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Ae(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Ae(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:n},{x:r,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(r,i)),new je(t,n,r,i)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class Je extends Qe{constructor(e,t,n){super(e,t,n),this.type="polyline",this.points=[],this.points=Ae.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:n,y:r}]=t,i=new je(n,r);return e&&(e.beginPath(),e.moveTo(n,r)),t.forEach(t=>{var{x:n,y:r}=t;i.addPoint(n,r),e&&e.lineTo(n,r)}),i}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((r,i)=>{i!==t&&n.push([r,r.angleTo(e[i+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class et extends Je{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:n,y:r}]=this.points;return e&&(e.lineTo(n,r),e.closePath()),t}}class tt extends Oe{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,n){var r=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new qe(this.document,null);o.attributes.viewBox=new fe(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new fe(this.document,"width","".concat(r,"px")),o.attributes.height=new fe(this.document,"height","".concat(i,"px")),o.attributes.transform=new fe(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(r,i),a=s.getContext("2d"),c=this.getAttribute("x"),u=this.getAttribute("y");c.hasValue()&&u.hasValue()&&a.translate(c.getPixels("x",!0),u.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var h=-1;h<=1;h++)a.save(),o.attributes.x=new fe(this.document,"x",l*s.width),o.attributes.y=new fe(this.document,"y",h*s.height),o.render(a),a.restore();var d=e.createPattern(s,"repeat");return d}}class nt extends Oe{constructor(){super(...arguments),this.type="marker"}render(e,t,n){if(t){var{x:r,y:i}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(r,i),"auto"===o&&e.rotate(n),"strokeWidth"===s&&e.scale(e.lineWidth,e.lineWidth),e.save();var a=new qe(this.document,null);a.type=this.type,a.attributes.viewBox=new fe(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.refX=new fe(this.document,"refX",this.getAttribute("refX").getValue()),a.attributes.refY=new fe(this.document,"refY",this.getAttribute("refY").getValue()),a.attributes.width=new fe(this.document,"width",this.getAttribute("markerWidth").getValue()),a.attributes.height=new fe(this.document,"height",this.getAttribute("markerHeight").getValue()),a.attributes.overflow=new fe(this.document,"overflow",this.getAttribute("overflow").getValue()),a.attributes.fill=new fe(this.document,"fill",this.getAttribute("fill").getColor("black")),a.attributes.stroke=new fe(this.document,"stroke",this.getAttribute("stroke").getValue("none")),a.children=this.children,a.render(e),e.restore(),"strokeWidth"===s&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===o&&e.rotate(-n),e.translate(-r,-i)}}}class rt extends Oe{constructor(){super(...arguments),this.type="defs"}render(){}}class it extends ze{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new je;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}}class ot extends Oe{constructor(e,t,n){super(e,t,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:r,children:i}=this;i.forEach(e=>{"stop"===e.type&&r.push(e)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,n){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:i}=r,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(n,i[i.length-1].color);if(i.forEach(e=>{o.addColorStop(e.offset,this.addParentOpacity(n,e.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:a,viewPort:c}=s.screen,[u]=c.viewPorts,l=new Ye(s,null);l.attributes.x=new fe(s,"x",-a/3),l.attributes.y=new fe(s,"y",-a/3),l.attributes.width=new fe(s,"width",a),l.attributes.height=new fe(s,"height",a);var h=new it(s,null);h.attributes.transform=new fe(s,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[l];var d=new qe(s,null);d.attributes.x=new fe(s,"x",0),d.attributes.y=new fe(s,"y",0),d.attributes.width=new fe(s,"width",u.width),d.attributes.height=new fe(s,"height",u.height),d.children=[h];var f=s.createCanvas(u.width,u.height),p=f.getContext("2d");return p.fillStyle=o,d.render(p),p.createPattern(f,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var n=new fe(this.document,"color",t);return n.addOpacity(e).getColor()}return t}}class st extends ot{constructor(e,t,n){super(e,t,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=n?t.getBoundingBox(e):null;if(n&&!r)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=n?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=n?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=n?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),a=n?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&o===a?null:e.createLinearGradient(i,o,s,a)}}class at extends ot{constructor(e,t,n){super(e,t,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(e);if(n&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=n?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=n?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,a=o;this.getAttribute("fx").hasValue()&&(s=n?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(a=n?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var c=n?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,a,u,i,o,c)}}class ct extends Oe{constructor(e,t,n){super(e,t,n),this.type="stop";var r=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=r,this.color=o.getColor()}}class ut extends Oe{constructor(e,t,n){super(e,t,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new fe(e,"values",null);var r=this.getAttribute("values");r.hasValue()&&this.values.setValue(r.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:r}=this.getProgress(),i=n.getNumber()+(r.getNumber()-n.getNumber())*t;
vendor: 19,182 bytes, line 404
404return"%"===e&&(i*=100),"".concat(i).concat(e)}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var a=s.getString();o="".concat(a,"(").concat(o,")")}n.setValue(o),i=!0}return i}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=n.progress*(t.getValue().length-1),i=Math.floor(r),o=Math.ceil(r);n.from=new fe(e,"from",parseFloat(t.getValue()[i])),n.to=new fe(e,"to",parseFloat(t.getValue()[o])),n.progress=(r-i)/(o-i)}else n.from=this.from,n.to=this.to;return n}}class lt extends ut{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=new s(t.getColor()),i=new s(n.getColor());if(r.ok&&i.ok){var o=r.r+(i.r-r.r)*e,a=r.g+(i.g-r.g)*e,c=r.b+(i.b-r.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(a),", ").concat(Math.floor(c),")")}return this.getAttribute("from").getColor()}}class ht extends ut{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=z(t.getString()),i=z(n.getString()),o=r.map((t,n)=>{var r=i[n];return t+(r-t)*e}).join(" ");return o}}class dt extends Oe{constructor(e,t,n){super(e,t,n),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:r}=e,{children:i}=this;for(var o of i)switch(o.type){case"font-face":this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(r[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=o;break;case"glyph":var a=o;a.arabicForm?(this.isRTL=!0,this.isArabic=!0,"undefined"===typeof this.glyphs[a.unicode]&&(this.glyphs[a.unicode]=Object.create(null)),this.glyphs[a.unicode][a.arabicForm]=a):this.glyphs[a.unicode]=a;break}}render(){}}class ft extends Oe{constructor(e,t,n){super(e,t,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class pt extends Qe{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class At extends Ke{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class gt extends Ke{constructor(e,t,n){super(e,t,n),this.type="a";var{childNodes:r}=t,i=r[0],o=r.length>0&&Array.from(r).every(e=>3===e.nodeType);this.hasText=o,this.text=o?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:r}=this,{mouse:i}=t.screen,o=new fe(t,"fontSize",Fe.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new je(n,r-o.getPixels("y"),n+this.measureText(e),r))}else if(this.children.length>0){var s=new it(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function mt(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 yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class vt extends Ke{constructor(e,t,n){super(e,t,n),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var r=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(r)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(t=>{var{type:n,points:r}=t;switch(n){case He.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case He.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case He.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case He.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case He.ARC:var[i,o,s,a,c,u,l,h]=r,d=s>a?s:a,f=s>a?1:s/a,p=s>a?a/s:1;e&&(e.translate(i,o),e.rotate(l),e.scale(f,p),e.arc(0,0,d,c,c+u,Boolean(1-h)),e.scale(1/f,1/p),e.rotate(-l),e.translate(-i,-o));break;case He.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:r}=this,i=e.fillStyle;"underline"===t&&e.beginPath(),r.forEach((r,i)=>{var{p0:o,p1:s,rotation:a,text:c}=r;e.save(),e.translate(o.x,o.y),e.rotate(a),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),"underline"===t&&(0===i&&e.moveTo(o.x,o.y+n/8),e.lineTo(s.x,s.y+n/5))}),"underline"===t&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,r,i,o,s,a,c){var u=o,l=this.measureText(e,a);" "===a&&"justify"===t&&n<r&&(l+=(r-n)/i),c>-1&&(u+=this.getLetterSpacingAt(c));var h=this.textHeight/20,d=this.getEquidistantPointOnPath(u,h,0),f=this.getEquidistantPointOnPath(u+l,h,0),p={p0:d,p1:f},A=d&&f?Math.atan2(f.y-d.y,f.x-d.x):0;if(s){var g=Math.cos(Math.PI/2+A)*s,m=Math.cos(-A)*s;p.p0=yt(yt({},d),{},{x:d.x+g,y:d.y+m}),p.p1=yt(yt({},f),{},{x:f.x+g,y:f.y+m})}return u+=l,{offset:u,segment:p,rotation:A}}measureText(e,t){var{measuresCache:n}=this,r=t||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(e,r);return n.set(r,i),i}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(""),r=t.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(e=>e.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),a=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),u=0;a.hasValue()&&"inherit"!==a.getValue()?a.hasValue()&&"initial"!==a.getValue()&&"unset"!==a.getValue()&&(u=a.getPixels()):u=c.getPixels();var l=[],h=t.length;this.letterSpacingCache=l;for(var d=0;d<h;d++)l.push("undefined"!==typeof i[d]?i[d]:u);var f=l.reduce((e,t,n)=>0===n?0:e+t||0,0),p=this.measureText(e),A=Math.max(p+f,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),m=this.getStyle("startOffset").getNumber(0)*g,y=0;"middle"!==s&&"center"!==s||(y=-A/2),"end"!==s&&"right"!==s||(y=-A),y+=m,n.forEach((t,i)=>{var{offset:a,segment:c,rotation:u}=this.findSegmentToFitChar(e,s,A,g,r,y,o,t,i);y=a,c.p0&&c.p1&&this.glyphInfo.push({text:n[i],p0:c.p0,p1:c.p1,rotation:u})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;n.reset();while(!n.isEnd()){var{current:r}=n,i=r?r.x:0,o=r?r.y:0,s=n.next(),a=s.type,c=[];switch(s.type){case He.MOVE_TO:this.pathM(n,c);break;case He.LINE_TO:a=this.pathL(n,c);break;case He.HORIZ_LINE_TO:a=this.pathH(n,c);break;case He.VERT_LINE_TO:a=this.pathV(n,c);break;case He.CURVE_TO:this.pathC(n,c);break;case He.SMOOTH_CURVE_TO:a=this.pathS(n,c);break;case He.QUAD_TO:this.pathQ(n,c);break;case He.SMOOTH_QUAD_TO:a=this.pathT(n,c);break;case He.ARC:c=this.pathA(n);break;case He.CLOSE_PATH:Qe.pathZ(n);break}s.type!==He.CLOSE_PATH?t.push({type:a,points:c,start:{x:i,y:o},pathLength:this.calcLength(i,o,a,c)}):t.push({type:He.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:n,y:r}=Qe.pathM(e).point;t.push(n,r)}pathL(e,t){var{x:n,y:r}=Qe.pathL(e).point;return t.push(n,r),He.LINE_TO}pathH(e,t){var{x:n,y:r}=Qe.pathH(e).point;return t.push(n,r),He.LINE_TO}pathV(e,t){var{x:n,y:r}=Qe.pathV(e).point;return t.push(n,r),He.LINE_TO}pathC(e,t){var{point:n,controlPoint:r,currentPoint:i}=Qe.pathC(e);t.push(n.x,n.y,r.x,r.y,i.x,i.y)}pathS(e,t){var{point:n,controlPoint:r,currentPoint:i}=Qe.pathS(e);return t.push(n.x,n.y,r.x,r.y,i.x,i.y),He.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:r}=Qe.pathQ(e);t.push(n.x,n.y,r.x,r.y)}pathT(e,t){var{controlPoint:n,currentPoint:r}=Qe.pathT(e);return t.push(n.x,n.y,r.x,r.y),He.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:r,xAxisRotation:i,centp:o,a1:s,ad:a}=Qe.pathA(e);return 0===r&&a>0&&(a-=2*Math.PI),1===r&&a<0&&(a+=2*Math.PI),[o.x,o.y,t,n,s,a,i,r]}calcLength(e,t,n,r){var i=0,o=null,s=null,a=0;switch(n){case He.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case He.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),a=.01;a<=1;a+=.01)s=this.getPointOnCubicBezier(a,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case He.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),a=.01;a<=1;a+=.01)s=this.getPointOnQuadraticBezier(a,e,t,r[0],r[1],r[2],r[3]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case He.ARC:i=0;var c=r[4],u=r[5],l=r[4]+u,h=Math.PI/180;if(Math.abs(c-l)<h&&(h=Math.abs(c-l)),o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],c,0),u<0)for(a=c-h;a>l;a-=h)s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],a,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(a=c+h;a<l;a+=h)s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],a,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),i}return 0}getPointOnLine(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n,a=(i-n)/(r-t+ne),c=Math.sqrt(e*e/(1+a*a));r<t&&(c*=-1);var u=a*c,l=null;if(r===t)l={x:o,y:s+u};else if((s-n)/(o-t+ne)===a)l={x:o+c,y:s+u};else{var h=0,d=0,f=this.getLineLength(t,n,r,i);if(f<ne)return null;var p=(o-t)*(r-t)+(s-n)*(i-n);p/=f*f,h=t+p*(r-t),d=n+p*(i-n);var A=this.getLineLength(o,s,h,d),g=Math.sqrt(e*e-A*A);c=Math.sqrt(g*g/(1+a*a)),r<t&&(c*=-1),u=a*c,l={x:h+c,y:d+u}}return l}getPointOnPath(e){var t=this.getPathLength(),n=0,r=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:i}=this;for(var o of i){if(!o||!(o.pathLength<5e-5||n+o.pathLength+5e-5<e)){var s=e-n,a=0;switch(o.type){case He.LINE_TO:r=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case He.ARC:var c=o.points[4],u=o.points[5],l=o.points[4]+u;if(a=c+s/o.pathLength*u,u<0&&a<l||u>=0&&a>l)break;r=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],a,o.points[6]);break;case He.CURVE_TO:a=s/o.pathLength,a>1&&(a=1),r=this.getPointOnCubicBezier(a,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case He.QUAD_TO:a=s/o.pathLength,a>1&&(a=1),r=this.getPointOnQuadraticBezier(a,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(r)return r;break}n+=o.pathLength}return null}getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,n,r,i,o,s,a,c){var u=a*se(e)+o*ae(e)+r*ce(e)+t*ue(e),l=c*se(e)+s*ae(e)+i*ce(e)+n*ue(e);return{x:u,y:l}}getPointOnQuadraticBezier(e,t,n,r,i,o,s){var a=o*le(e)+r*he(e)+t*de(e),c=s*le(e)+i*he(e)+n*de(e);return{x:a,y:c}}getPointOnEllipticalArc(e,t,n,r,i,o){var s=Math.cos(o),a=Math.sin(o),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(c.x*s-c.y*a),y:t+(c.x*a+c.y*s)}}buildEquidistantCache(e,t){var n=this.getPathLength(),r=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var o=0,s=0;s<=n;s+=r){var a=this.getPointOnPath(s),c=this.getPointOnPath(s+r);a&&c&&(o+=this.getLineLength(a.x,a.y,c.x,c.y),o>=i&&(this.equidistantCache.points.push({x:a.x,y:a.y,distance:s}),o-=i))}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var bt=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class wt extends ze{constructor(e,t,n){super(e,t,n),this.type="image",this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var i=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);e.images.push(this),i?this.loadSvg(r):this.loadImage(r),this.isSvg=i}}loadImage(e){var t=this;return(0,r.A)(function*(){try{var n=yield t.document.createImage(e);t.image=n}catch(r){console.error('Error while loading image "'.concat(e,'":'),r)}t.loaded=!0})()}loadSvg(e){var t=this;return(0,r.A)(function*(){var n=bt.exec(e);if(n){var r=n[5];"base64"===n[4]?t.image=atob(r):t.image=decodeURIComponent(r)}else try{var i=yield t.document.fetch(e),o=yield i.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:n,loaded:r}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(r&&n&&s&&a){if(e.save(),e.translate(i,o),this.isSvg){var c=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:a});c.document.documentElement.parent=this,c.render()}else{var u=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:u.width,height:a,desiredHeight:u.height}),this.loaded&&("undefined"===typeof u.complete||u.complete)&&e.drawImage(u,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new je(e,t,e+n,t+r)}}class Ct extends ze{constructor(){super(...arguments),this.type="symbol"}render(e){}}class _t{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return(0,r.A)(function*(){try{var{document:r}=n,i=yield r.canvg.parser.load(t),o=i.getElementsByTagName("font");Array.from(o).forEach(t=>{var n=r.createElement(t);r.definitions[e]=n})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}n.loaded=!0})()}}class St extends Oe{constructor(e,t,n){super(e,t,n),this.type="style";var r=F(Array.from(t.childNodes).map(e=>e.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=r.split("}");i.forEach(t=>{var n=t.trim();if(n){var r=n.split("{"),i=r[0].split(","),o=r[1].split(";");i.forEach(t=>{var n=t.trim();if(n){var r=e.styles[n]||{};if(o.forEach(t=>{var n=t.indexOf(":"),i=t.substr(0,n).trim(),o=t.substr(n+1,t.length-n).trim();i&&o&&(r[i]=new fe(e,i,o))}),e.styles[n]=r,e.stylesSpecificity[n]=te(n),"@font-face"===n){var i=r["font-family"].getString().replace(/"|'/g,""),s=r.src.getString().split(",");s.forEach(t=>{if(t.indexOf('format("svg")')>0){var n=K(t);n&&new _t(e).load(i,n)}})}}})}})}}St.parseExternalUrl=K;class xt extends ze{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),n=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var r=n;if("symbol"===n.type&&(r=new qe(t,null),r.attributes.viewBox=new fe(t,"viewBox",n.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new fe(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new fe(t,"overflow",n.getAttribute("overflow").getString()),r.children=n.children,n.styles.opacity=new fe(t,"opacity",this.calculateOpacity())),"svg"===r.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(r.attributes.width=new fe(t,"width",i.getString())),o.hasValue()&&(r.attributes.height=new fe(t,"height",o.getString()))}var s=r.parent;r.parent=this,r.render(e),r.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return Me.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Tt(e,t,n,r,i,o){return e[n*r*4+4*t+o]}function Pt(e,t,n,r,i,o,s){e[n*r*4+4*t+o]=s}function Et(e,t,n){var r=e[t];return r*n}function It(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}class kt extends Oe{constructor(e,t,n){super(e,t,n),this.type="feColorMatrix";var r=z(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=r[0];r=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=r[0]*Math.PI/180;r=[It(o,.213,.787,-.213),It(o,.715,-.715,-.715),It(o,.072,-.072,.928),0,0,It(o,.213,-.213,.143),It(o,.715,.285,.14),It(o,.072,-.072,-.283),0,0,It(o,.213,-.213,-.787),It(o,.715,-.715,.715),It(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=r,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,n,r,i){for(var{includeOpacity:o,matrix:s}=this,a=e.getImageData(0,0,r,i),c=0;c<i;c++)for(var u=0;u<r;u++){var l=Tt(a.data,u,c,r,i,0),h=Tt(a.data,u,c,r,i,1),d=Tt(a.data,u,c,r,i,2),f=Tt(a.data,u,c,r,i,3),p=Et(s,0,l)+Et(s,1,h)+Et(s,2,d)+Et(s,3,f)+Et(s,4,1),A=Et(s,5,l)+Et(s,6,h)+Et(s,7,d)+Et(s,8,f)+Et(s,9,1),g=Et(s,10,l)+Et(s,11,h)+Et(s,12,d)+Et(s,13,f)+Et(s,14,1),m=Et(s,15,l)+Et(s,16,h)+Et(s,17,d)+Et(s,18,f)+Et(s,19,1);o&&(p=0,A=0,g=0,m*=f/255),Pt(a.data,u,c,r,i,0,p),Pt(a.data,u,c,r,i,1,A),Pt(a.data,u,c,r,i,2,g),Pt(a.data,u,c,r,i,3,m)}e.clearRect(0,0,r,i),e.putImageData(a,0,0)}}class Bt extends Oe{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:n}=this,r=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var a=new je;
vendor: 5,760 bytes, line 404
404this.children.forEach(t=>{a.addBoundingBox(t.getBoundingBox(e))}),r=Math.floor(a.x1),i=Math.floor(a.y1),o=Math.floor(a.width),s=Math.floor(a.height)}var c=this.removeStyles(t,Bt.ignoreStyles),u=n.createCanvas(r+o,i+s),l=u.getContext("2d");n.screen.setDefaults(l),this.renderChildren(l),new kt(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,r+o,i+s);var h=n.createCanvas(r+o,i+s),d=h.getContext("2d");n.screen.setDefaults(d),t.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=l.createPattern(u,"no-repeat"),d.fillRect(0,0,r+o,i+s),e.fillStyle=d.createPattern(h,"no-repeat"),e.fillRect(0,0,r+o,i+s),this.restoreStyles(t,c)}render(e){}}Bt.ignoreStyles=["mask","transform","clip-path"];var Mt=()=>{};class Ot extends Oe{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:r,closePath:i}=e;n&&(n.beginPath=Mt,n.closePath=Mt),Reflect.apply(r,e,[]),this.children.forEach(r=>{if("undefined"!==typeof r.path){var o="undefined"!==typeof r.elementTransform?r.elementTransform():null;o||(o=Me.fromElement(t,r)),o&&o.apply(e),r.path(e),n&&(n.closePath=i),o&&o.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=i)}render(e){}}class Dt extends Oe{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:n,children:r}=this,i=t.getBoundingBox(e);if(i){var o=0,s=0;r.forEach(e=>{var t=e.extraFilterDistance||0;o=Math.max(o,t),s=Math.max(s,t)});var a=Math.floor(i.width),c=Math.floor(i.height),u=a+2*o,l=c+2*s;if(!(u<1||l<1)){var h=Math.floor(i.x),d=Math.floor(i.y),f=this.removeStyles(t,Dt.ignoreStyles),p=n.createCanvas(u,l),A=p.getContext("2d");n.screen.setDefaults(A),A.translate(-h+o,-d+s),t.render(A),r.forEach(e=>{"function"===typeof e.apply&&e.apply(A,0,0,u,l)}),e.drawImage(p,0,0,u,l,h-o,d-s,u,l),this.restoreStyles(t,f)}}}render(e){}}Dt.ignoreStyles=["filter","transform","clip-path"];class Rt extends Oe{constructor(e,t,n){super(e,t,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,n,r,i){}}class Lt extends Oe{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,n,r,i){}}class Nt extends Oe{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,n,r,i){}}class Ut extends Oe{constructor(e,t,n){super(e,t,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,r,i){var{document:o,blurRadius:s}=this,a=o.window?o.window.document.body:null,c=e.canvas;c.id=o.getUniqueId(),a&&(c.style.display="none",a.appendChild(c)),O(c,t,n,r,i,s),a&&a.removeChild(c)}}class Ft extends Oe{constructor(){super(...arguments),this.type="title"}}class jt extends Oe{constructor(){super(...arguments),this.type="desc"}}var Ht={svg:qe,rect:Ye,circle:Xe,ellipse:Ze,line:$e,polyline:Je,polygon:et,path:Qe,pattern:tt,marker:nt,defs:rt,linearGradient:st,radialGradient:at,stop:ct,animate:ut,animateColor:lt,animateTransform:ht,font:dt,"font-face":ft,"missing-glyph":pt,glyph:Ve,text:Ke,tspan:We,tref:At,a:gt,textPath:vt,image:wt,g:it,symbol:Ct,style:St,use:xt,mask:Bt,clipPath:Ot,filter:Dt,feDropShadow:Rt,feMorphology:Lt,feComposite:Nt,feColorMatrix:kt,feGaussianBlur:Ut,title:Ft,desc:jt};function zt(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 Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vt(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n}function Kt(e){return Wt.apply(this,arguments)}function Wt(){return Wt=(0,r.A)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("img");return t&&(n.crossOrigin="Anonymous"),new Promise((t,r)=>{n.onload=()=>{t(n)},n.onerror=(e,t,n,i,o)=>{r(o)},n.src=e})}),Wt.apply(this,arguments)}class Gt{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:r=Gt.createCanvas,createImage:i=Gt.createImage,anonymousCrossOrigin:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=n,this.createCanvas=r,this.createImage=this.bindCreateImage(i,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return"boolean"===typeof t?(n,r)=>e(n,"boolean"===typeof r?r:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),n=Gt.elementTypes[t];return"undefined"!==typeof n?new n(this,e):new De(this,e)}createTextNode(e){return new Ge(this,e)}
404setViewBox(e){this.screen.setViewBox(Qt({document:this},e))}}function qt(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 Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Gt.createCanvas=Vt,Gt.createImage=Kt,Gt.elementTypes=Ht;class Xt{constructor(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Ce(n),this.screen=new ve(e,n),this.options=n;var r=new Gt(this,n),i=r.createDocumentElement(t);this.document=r,this.documentElement=i}static from(e,t){var n=arguments;return(0,r.A)(function*(){var r=n.length>2&&void 0!==n[2]?n[2]:{},i=new Ce(r),o=yield i.parse(t);return new Xt(e,o,r)})()}static fromString(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Ce(n),i=r.parseFromString(t);return new Xt(e,i,n)}fork(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Xt.from(e,t,Yt(Yt({},this.options),n))}forkString(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Xt.fromString(e,t,Yt(Yt({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return(0,r.A)(function*(){var n=e.length>0&&void 0!==e[0]?e[0]:{};t.start(Yt({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:t,screen:n,options:r}=this;n.start(t,Yt(Yt({enableRedraw:!0},r),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,n)}}},99418:function(e,t,n){"use strict";
405/*! @license DOMPurify 3.4.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.9/LICENSE */
406function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){if(Array.isArray(e))return e}function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){return i(e)||o(e,t)||c(e,t)||s()}function c(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}n.r(t),n.d(t,{default:function(){return be}});const u=Object.entries,l=Object.setPrototypeOf,h=Object.isFrozen,d=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor;let p=Object.freeze,A=Object.seal,g=Object.create,m="undefined"!==typeof Reflect&&Reflect,y=m.apply,v=m.construct;p||(p=function(e){return e}),A||(A=function(e){return e}),y||(y=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),v||(v=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const b=j(Array.prototype.forEach),w=j(Array.prototype.lastIndexOf),C=j(Array.prototype.pop),_=j(Array.prototype.push),S=j(Array.prototype.splice),x=Array.isArray,T=j(String.prototype.toLowerCase),P=j(String.prototype.toString),E=j(String.prototype.match),I=j(String.prototype.replace),k=j(String.prototype.indexOf),B=j(String.prototype.trim),M=j(Number.prototype.toString),O=j(Boolean.prototype.toString),D="undefined"===typeof BigInt?null:j(BigInt.prototype.toString),R="undefined"===typeof Symbol?null:j(Symbol.prototype.toString),L=j(Object.prototype.hasOwnProperty),N=j(Object.prototype.toString),U=j(RegExp.prototype.test),F=H(TypeError);function j(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return y(e,t,r)}}function H(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(e,n)}}function z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;if(l&&l(e,null),!x(t))return e;let r=t.length;while(r--){let i=t[r];
406if("string"===typeof i){const e=n(i);e!==i&&(h(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Q(e){for(let t=0;t<e.length;t++){const n=L(e,t);n||(e[t]=null)}return e}function V(e){const t=g(null);for(const r of u(e)){var n=a(r,2);const i=n[0],o=n[1],s=L(e,i);s&&(x(o)?t[i]=Q(o):o&&"object"===typeof o&&o.constructor===Object?t[i]=V(o):t[i]=o)}return t}function K(e){switch(typeof e){case"string":return e;case"number":return M(e);case"boolean":return O(e);case"bigint":return D?D(e):"0";case"symbol":return R?R(e):"Symbol()";case"undefined":return N(e);case"function":case"object":{if(null===e)return N(e);const t=e,n=W(t,"toString");if("function"===typeof n){const e=n(t);return"string"===typeof e?e:N(e)}return N(e)}default:return N(e)}}function W(e,t){while(null!==e){const n=f(e,t);if(n){if(n.get)return j(n.get);if("function"===typeof n.value)return j(n.value)}e=d(e)}function n(){return null}return n}function G(e){try{return U(e,""),!0}catch(t){return!1}}const q=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Y=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),X=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Z=p(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),J=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ee=p(["#text"]),te=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
406spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ne=p(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),re=p(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ie=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oe=A(/{{[\w\W]*|^[\w\W]*}}/g),se=A(/<%[\w\W]*|^[\w\W]*%>/g),ae=A(/\${[\w\W]*/g),ce=A(/^data-[\-\w.\u00B7-\uFFFF]+$/),ue=A(/^aria-[\-\w]+$/),le=A(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),he=A(/^(?:\w+script|data):/i),de=A(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=A(/^html$/i),pe=A(/^[a-z][.\w]*(-[.\w]+)+$/i),Ae={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ge=function(){return"undefined"===typeof window?null:window},me=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ye=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge();const t=e=>ve(e);
vendor: 5,647 bytes, line 406
406if(t.version="3.4.9",t.removed=[],!e||!e.document||e.document.nodeType!==Ae.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,i=r.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;void 0===l&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,d=e.trustedTypes,f=a.prototype,A=W(f,"cloneNode"),m=W(f,"remove"),y=W(f,"nextSibling"),v=W(f,"childNodes"),M=W(f,"parentNode"),O=W(f,"shadowRoot"),D=W(f,"attributes"),R=s&&s.prototype?W(s.prototype,"nodeType"):null,N=s&&s.prototype?W(s.prototype,"nodeName"):null;if("function"===typeof o){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let j,H,Q="",be=!1,we=0;const Ce=function(){if(we>0)throw F('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_e=function(e){Ce(),we++;try{return j.createHTML(e)}finally{we--}},Se=function(e){Ce(),we++;try{return j.createScriptURL(e)}finally{we--}},xe=function(){return be||(H=me(d,i),be=!0),H},Te=n,Pe=Te.implementation,Ee=Te.createNodeIterator,Ie=Te.createDocumentFragment,ke=Te.getElementsByTagName,Be=r.importNode;let Me=ye();t.isSupported="function"===typeof u&&"function"===typeof M&&Pe&&void 0!==Pe.createHTMLDocument;const Oe=oe,De=se,Re=ae,Le=ce,Ne=ue,Ue=he,Fe=de,je=pe;let He=le,ze=null;const Qe=z({},[...q,...Y,...X,...$,...ee]);let Ve=null;const Ke=z({},[...te,...ne,...re,...ie]);let We=Object.seal(g(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ge=null,qe=null;const Ye=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Xe=!0,Ze=!0,$e=!1,Je=!0,et=!1,tt=!0,nt=!1,rt=!1,it=!1,ot=!1,st=!1,at=!1,ct=!0,ut=!1;const lt="user-content-";let ht=!0,dt=!1,ft={},pt=null;const At=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let gt=null;const mt=z({},["audio","video","img","source","image","track"]);let yt=null;const vt=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",wt="http://www.w3.org/2000/svg",Ct="http://www.w3.org/1999/xhtml";let _t=Ct,St=!1,xt=null;const Tt=z({},[bt,wt,Ct],P);let Pt=z({},["mi","mo","mn","ms","mtext"]),Et=z({},["annotation-xml"]);const It=z({},["title","style","font","a","script"]);let kt=null;const Bt=["application/xhtml+xml","text/html"],Mt="text/html";let Ot=null,Dt=null;const Rt=n.createElement("form"),Lt=function(e){return e instanceof RegExp||e instanceof Function},Nt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Dt&&Dt===e)return;e&&"object"===typeof e||(e={}),e=V(e),kt=-1===Bt.indexOf(e.PARSER_MEDIA_TYPE)?Mt:e.PARSER_MEDIA_TYPE,Ot="application/xhtml+xml"===kt?P:T,ze=L(e,"ALLOWED_TAGS")&&x(e.ALLOWED_TAGS)?z({},e.ALLOWED_TAGS,Ot):Qe,Ve=L(e,"ALLOWED_ATTR")&&x(e.ALLOWED_ATTR)?z({},e.ALLOWED_ATTR,Ot):Ke,xt=L(e,"ALLOWED_NAMESPACES")&&x(e.ALLOWED_NAMESPACES)?z({},e.ALLOWED_NAMESPACES,P):Tt,yt=L(e,"ADD_URI_SAFE_ATTR")&&x(e.ADD_URI_SAFE_ATTR)?z(V(vt),e.ADD_URI_SAFE_ATTR,Ot):vt,gt=L(e,"ADD_DATA_URI_TAGS")&&x(e.ADD_DATA_URI_TAGS)?z(V(mt),e.ADD_DATA_URI_TAGS,Ot):mt,pt=L(e,"FORBID_CONTENTS")&&x(e.FORBID_CONTENTS)?z({},e.FORBID_CONTENTS,Ot):At,Ge=L(e,"FORBID_TAGS")&&x(e.FORBID_TAGS)?z({},e.FORBID_TAGS,Ot):V({}),qe=L(e,"FORBID_ATTR")&&x(e.FORBID_ATTR)?z({},e.FORBID_ATTR,Ot):V({}),ft=!!L(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"===typeof e.USE_PROFILES?V(e.USE_PROFILES):e.USE_PROFILES),Xe=!1!==e.ALLOW_ARIA_ATTR,Ze=!1!==e.ALLOW_DATA_ATTR,$e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Je=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,et=e.SAFE_FOR_TEMPLATES||!1,tt=!1!==e.SAFE_FOR_XML,nt=e.WHOLE_DOCUMENT||!1,ot=e.RETURN_DOM||!1,st=e.RETURN_DOM_FRAGMENT||!1,at=e.RETURN_TRUSTED_TYPE||!1,it=e.FORCE_BODY||!1,ct=!1!==e.SANITIZE_DOM,ut=e.SANITIZE_NAMED_PROPS||!1,ht=!1!==e.KEEP_CONTENT,dt=e.IN_PLACE||!1,He=G(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:le,_t="string"===typeof e.NAMESPACE?e.NAMESPACE:Ct,Pt=L(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"===typeof e.MATHML_TEXT_INTEGRATION_POINTS?V(e.MATHML_TEXT_INTEGRATION_POINTS):z({},["mi","mo","mn","ms","mtext"]),Et=L(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"===typeof e.HTML_INTEGRATION_POINTS?V(e.HTML_INTEGRATION_POINTS):z({},["annotation-xml"]);const t=L(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"===typeof e.CUSTOM_ELEMENT_HANDLING?V(e.CUSTOM_ELEMENT_HANDLING):g(null);if(We=g(null),L(t,"tagNameCheck")&&Lt(t.tagNameCheck)&&(We.tagNameCheck=t.tagNameCheck),L(t,"attributeNameCheck")&&Lt(t.attributeNameCheck)&&(We.attributeNameCheck=t.attributeNameCheck),L(t,"allowCustomizedBuiltInElements")&&"boolean"===typeof t.allowCustomizedBuiltInElements&&(We.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),et&&(Ze=!1),st&&(ot=!0),ft&&(ze=z({},ee),Ve=g(null),!0===ft.html&&(z(ze,q),z(Ve,te)),!0===ft.svg&&(z(ze,Y),z(Ve,ne),z(Ve,ie)),!0===ft.svgFilters&&
406(z(ze,X),z(Ve,ne),z(Ve,ie)),!0===ft.mathMl&&(z(ze,$),z(Ve,re),z(Ve,ie))),Ye.tagCheck=null,Ye.attributeCheck=null,L(e,"ADD_TAGS")&&("function"===typeof e.ADD_TAGS?Ye.tagCheck=e.ADD_TAGS:x(e.ADD_TAGS)&&(ze===Qe&&(ze=V(ze)),z(ze,e.ADD_TAGS,Ot))),L(e,"ADD_ATTR")&&("function"===typeof e.ADD_ATTR?Ye.attributeCheck=e.ADD_ATTR:x(e.ADD_ATTR)&&(Ve===Ke&&(Ve=V(Ve)),z(Ve,e.ADD_ATTR,Ot))),L(e,"ADD_URI_SAFE_ATTR")&&x(e.ADD_URI_SAFE_ATTR)&&z(yt,e.ADD_URI_SAFE_ATTR,Ot),L(e,"FORBID_CONTENTS")&&x(e.FORBID_CONTENTS)&&(pt===At&&(pt=V(pt)),z(pt,e.FORBID_CONTENTS,Ot)),L(e,"ADD_FORBID_CONTENTS")&&x(e.ADD_FORBID_CONTENTS)&&(pt===At&&(pt=V(pt)),z(pt,e.ADD_FORBID_CONTENTS,Ot)),ht&&(ze["#text"]=!0),nt&&z(ze,["html","head","body"]),ze.table&&(z(ze,["tbody"]),delete Ge.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=j;j=e.TRUSTED_TYPES_POLICY;try{Q=_e("")}catch(n){throw j=t,n}}else null===e.TRUSTED_TYPES_POLICY?(j=void 0,Q=""):(void 0===j&&(j=xe()),j&&"string"===typeof Q&&(Q=_e("")));(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&ze===Qe&&(ze=V(ze)),Me.uponSanitizeAttribute.length>0&&Ve===Ke&&(Ve=V(Ve)),p&&p(e),Dt=e},Ut=z({},[...Y,...X,...Z]),Ft=z({},[...$,...J]),jt=function(e){let t=M(e);t&&t.tagName||(t={namespaceURI:_t,tagName:"template"});const n=T(e.tagName),r=T(t.tagName);return!!xt[e.namespaceURI]&&(e.namespaceURI===wt?t.namespaceURI===Ct?"svg"===n:t.namespaceURI===bt?"svg"===n&&("annotation-xml"===r||Pt[r]):Boolean(Ut[n]):e.namespaceURI===bt?t.namespaceURI===Ct?"math"===n:t.namespaceURI===wt?"math"===n&&Et[r]:Boolean(Ft[n]):e.namespaceURI===Ct?!(t.namespaceURI===wt&&!Et[r])&&(!(t.namespaceURI===bt&&!Pt[r])&&(!Ft[n]&&(It[n]||!Ut[n]))):!("application/xhtml+xml"!==kt||!xt[e.namespaceURI]))},Ht=function(e){_(t.removed,{element:e});try{M(e).removeChild(e)}catch(n){if(m(e),!M(e))throw F("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},zt=function(e){const t=v?v(e):e.childNodes;if(t){const e=[];b(t,t=>{_(e,t)}),b(e,e=>{try{m(e)}catch(t){}})}const n=D?D(e):null;if(n)for(let i=n.length-1;i>=0;--i){const t=n[i],o=t&&t.name;if("string"===typeof o)try{e.removeAttribute(o)}catch(r){}}},Qt=function(e,n){try{_(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(r){_(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e)if(ot||st)try{Ht(n)}catch(r){}else try{n.setAttribute(e,"")}catch(r){}},Vt=function(e){const t=D?D(e):e.attributes;if(t)for(let r=t.length-1;r>=0;--r){const i=t[r],o=i&&i.name;if("string"===typeof o&&!Ve[Ot(o)])try{e.removeAttribute(o)}catch(n){}}},Kt=function(e){const t=[e];while(t.length>0){const e=t.pop(),n=R?R(e):e.nodeType;n===Ae.element&&Vt(e);const r=v?v(e):e.childNodes;if(r)for(let i=r.length-1;i>=0;--i)t.push(r[i])}},Wt=function(e){let t=null,r=null;if(it)e="<remove></remove>"+e;else{const t=E(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===kt&&_t===Ct&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=j?_e(e):e;if(_t===Ct)try{t=(new h).parseFromString(i,kt)}catch(s){}if(!t||!t.documentElement){t=Pe.createDocument(_t,"template",null);try{t.documentElement.innerHTML=St?Q:i}catch(s){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),_t===Ct?ke.call(t,nt?"html":"body")[0]:nt?t.documentElement:o},Gt=function(e){return Ee.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},qt=function(e){var t,n;e.normalize();const r=Ee.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let i=r.nextNode();while(i){let e=i.data;b([Oe,De,Re],t=>{e=I(e,t," ")}),i.data=e,i=r.nextNode()}const o=null!==(t=null===(n=e.querySelectorAll)||void 0===n?void 0:n.call(e,"template"))&&void 0!==t?t:[];b(Array.from(o),e=>{Xt(e.content)&&qt(e.content)})},Yt=function(e){const t=N?N(e):null;return"string"===typeof t&&("form"===Ot(t)&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||e.attributes!==D(e)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes||e.nodeType!==R(e)||e.childNodes!==v(e)))},Xt=function(e){if(!R||"object"!==typeof e||null===e)return!1;try{return R(e)===Ae.documentFragment}catch(t){return!1}},Zt=function(e){if(!R||"object"!==typeof e||null===e)return!1;try{return"number"===typeof R(e)}catch(t){return!1}};function $t(e,n,r){b(e,e=>{e.call(t,n,r,Dt)})}const Jt=function(e){let n=null;if($t(Me.beforeSanitizeElements,e,null),Yt(e))return Ht(e),!0;const r=Ot(N?N(e):e.nodeName);if($t(Me.uponSanitizeElement,e,{tagName:r,allowedTags:ze}),tt&&e.hasChildNodes()&&!Zt(e.firstElementChild)&&U(/<[/\w!]/g,e.innerHTML)&&U(/<[/\w!]/g,e.textContent))return Ht(e),!0;if(tt&&e.namespaceURI===Ct&&"style"===r&&Zt(e.firstElementChild))return Ht(e),!0;if(e.nodeType===Ae.progressingInstruction)return Ht(e),!0;if(tt&&e.nodeType===Ae.comment&&U(/<[/\w]/g,e.data))return Ht(e),!0;if(Ge[r]||!(Ye.tagCheck instanceof Function&&Ye.tagCheck(r))&&!ze[r]){if(!Ge[r]&&nn(r)){if(We.tagNameCheck instanceof RegExp&&U(We.tagNameCheck,r))return!1;if(We.tagNameCheck instanceof Function&&We.tagNameCheck(r))return!1}if(ht&&!pt[r]){const t=M(e),n=v(e);if(n&&t){const r=n.length;for(let i=r-1;i>=0;--i){const r=dt?n[i]:A(n[i],!0);t.insertBefore(r,y(e))}}}return Ht(e),!0}const i=R?R(e):e.nodeType;return(i!==Ae.element||jt(e))&&("noscript"!==r&&"noembed"!==r&&"noframes"!==r||!U(/<\/no(script|embed|frames)/i,e.innerHTML))?(et&&e.nodeType===Ae.text&&(n=e.textContent,b([Oe,De,Re],e=>{n=I(n,e," ")}),e.textContent!==n&&(_(t.removed,{element:e.cloneNode()}),e.textContent=n)),$t(Me.afterSanitizeElements,e,null),!1):(Ht(e),!0)},en=function(e,t,r){if(qe[t])return!1;if(ct&&("id"===t||"name"===t)&&(r in n||r in Rt))return!1;const i=Ve[t]||Ye.attributeCheck instanceof Function&&Ye.attributeCheck(t,e);if(Ze&&!qe[t]&&U(Le,t));else if(Xe&&U(Ne,t));else if(!i||qe[t]){if(!(nn(e)&&(We.tagNameCheck instanceof RegExp&&U(We.tagNameCheck,e)||We.tagNameCheck instanceof Function&&We.tagNameCheck(e))&&(We.attributeNameCheck instanceof RegExp&&U(We.attributeNameCheck,t)||We.attributeNameCheck instanceof Function&&We.attributeNameCheck(t,e))||"is"===t&&We.allowCustomizedBuiltInElements&&(We.tagNameCheck instanceof RegExp&&U(We.tagNameCheck,r)||We.tagNameCheck instanceof Function&&We.tagNameCheck(r))))return!1}else if(yt[t]);else if(U(He,I(r,Fe,"")));
406else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(r,"data:")||!gt[e]){if($e&&!U(Ue,I(r,Fe,"")));else if(r)return!1}else;return!0},tn=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),nn=function(e){return!tn[T(e)]&&U(je,e)},rn=function(e){$t(Me.beforeSanitizeAttributes,e,null);const n=e.attributes;if(!n||Yt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ve,forceKeepAttr:void 0};let i=n.length;while(i--){const s=n[i],a=s.name,c=s.namespaceURI,u=s.value,l=Ot(a),h=u;let f="value"===a?h:B(h);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,$t(Me.uponSanitizeAttribute,e,r),f=r.attrValue,!ut||"id"!==l&&"name"!==l||0===k(f,lt)||(Qt(a,e),f=lt+f),tt&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Qt(a,e);continue}if("attributename"===l&&E(f,"href")){Qt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Qt(a,e);continue}if(!Je&&U(/\/>/i,f)){Qt(a,e);continue}et&&b([Oe,De,Re],e=>{f=I(f,e," ")});const p=Ot(e.nodeName);if(en(p,l,f)){if(j&&"object"===typeof d&&"function"===typeof d.getAttributeType)if(c);else switch(d.getAttributeType(p,l)){case"TrustedHTML":f=_e(f);break;case"TrustedScriptURL":f=Se(f);break}if(f!==h)try{c?e.setAttributeNS(c,a,f):e.setAttribute(a,f),Yt(e)?Ht(e):C(t.removed)}catch(o){Qt(a,e)}}else Qt(a,e)}$t(Me.afterSanitizeAttributes,e,null)},on=function(e){let t=null;const n=Gt(e);$t(Me.beforeSanitizeShadowDOM,e,null);while(t=n.nextNode()){$t(Me.uponSanitizeShadowNode,t,null),Jt(t),rn(t),Xt(t.content)&&on(t.content);const e=R?R(t):t.nodeType;if(e===Ae.element){const e=O?O(t):t.shadowRoot;Xt(e)&&(sn(e),on(e))}}$t(Me.afterSanitizeShadowDOM,e,null)},sn=function(e){const t=[{node:e,shadow:null}];while(t.length>0){const e=t.pop();if(e.shadow){on(e.shadow);continue}const n=e.node,r=R?R(n):n.nodeType,i=r===Ae.element,o=v?v(n):n.childNodes;if(o)for(let s=o.length-1;s>=0;--s)t.push({node:o[s],shadow:null});if(i){const e=N?N(n):null;if("string"===typeof e&&"template"===Ot(e)){const e=n.content;Xt(e)&&t.push({node:e,shadow:null})}}if(i){const e=O?O(n):n.shadowRoot;Xt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,a=null;if(St=!e,St&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Zt(e)&&(e=K(e),"string"!==typeof e))throw F("dirty is not a string, aborting");if(!t.isSupported)return e;rt||Nt(n),t.removed=[];const c=dt&&"string"!==typeof e&&Zt(e);if(c){const t=N?N(e):e.nodeName;if("string"===typeof t){const e=Ot(t);if(!ze[e]||Ge[e])throw F("root node is forbidden and cannot be sanitized in-place")}if(Yt(e))throw F("root node is clobbered and cannot be sanitized in-place");try{sn(e)}catch(h){throw zt(e),h}}else if(Zt(e))i=Wt("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),o.nodeType===Ae.element&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o),sn(o);else{if(!ot&&!et&&!nt&&-1===e.indexOf("<"))return j&&at?_e(e):e;if(i=Wt(e),!i)return ot?null:at?Q:""}i&&it&&Ht(i.firstChild);const u=Gt(c?e:i);try{while(s=u.nextNode())Jt(s),rn(s),Xt(s.content)&&on(s.content)}catch(h){throw c&&zt(e),h}if(c)return b(t.removed,e=>{e.element&&Kt(e.element)}),et&&qt(e),e;if(ot){if(et&&qt(i),st){a=Ie.call(i.ownerDocument);while(i.firstChild)a.appendChild(i.firstChild)}else a=i;return(Ve.shadowroot||Ve.shadowrootmode)&&(a=Be.call(r,a,!0)),a}let l=nt?i.outerHTML:i.innerHTML;return nt&&ze["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&U(fe,i.ownerDocument.doctype.name)&&(l="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+l),et&&b([Oe,De,Re],e=>{l=I(l,e," ")}),j&&at?_e(l):l},t.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Nt(e),rt=!0},t.clearConfig=function(){Dt=null,rt=!1,j=H,Q=""},t.isValidAttribute=function(e,t,n){Dt||Nt({});const r=Ot(e),i=Ot(t);return en(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&_(Me[e],t)},t.removeHook=function(e,t){if(void 0!==t){const n=w(Me[e],t);
vendor: 4,681 bytes, line 406
406return-1===n?void 0:S(Me[e],n,1)[0]}return C(Me[e])},t.removeHooks=function(e){Me[e]=[]},t.removeAllHooks=function(){Me=ye()},t}var be=ve()},60023:function(e,t,n){"use strict";function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:function(){return Ie}});var i=r();function o(e){i=e}var s={exec:()=>null};function a(e,t=""){let n="string"===typeof e?e:e.source;const r={replace:(e,t)=>{let i="string"===typeof t?t:t.source;return i=i.replace(c.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var c={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},u=/^(?:[ \t]*(?:\n|$))+/,l=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,h=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,d=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,p=/(?:[*+-]|\d{1,9}[.)])/,A=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,g=a(A).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),m=a(A).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),y=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/^[^\n]+/,b=/(?!\s*\])(?:\\.|[^\[\]\\])+/,w=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",b).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),C=a(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),_="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",S=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,x=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
406)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",S).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),T=a(y).replace("hr",d).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),P=a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",T).getRegex(),E={blockquote:P,code:l,def:w,fences:h,heading:f,hr:d,html:x,lheading:g,list:C,newline:u,paragraph:T,table:s,text:v},I=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",d).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),k={...E,lheading:m,table:I,paragraph:a(y).replace("hr",d).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",I).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},B={...E,html:a("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",S).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:s,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(y).replace("hr",d).replace("heading"," *#{1,6} *[^\n]").replace("lheading",g).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},M=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,O=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,D=/^( {2,}|\\)\n(?!\s*$)/,R=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,L=/[\p{P}\p{S}]/u,N=/[\s\p{P}\p{S}]/u,U=/[^\s\p{P}\p{S}]/u,F=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,N).getRegex(),j=/(?!~)[\p{P}\p{S}]/u,H=/(?!~)[\s\p{P}\p{S}]/u,z=/(?:[^\s\p{P}\p{S}]|~)/u,Q=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,V=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,K=a(V,"u").replace(/punct/g,L).getRegex(),W=a(V,"u").replace(/punct/g,j).getRegex(),G="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",q=a(G,"gu").replace(/notPunctSpace/g,U).replace(/punctSpace/g,N).replace(/punct/g,L).getRegex(),Y=a(G,"gu").replace(/notPunctSpace/g,z).replace(/punctSpace/g,H).replace(/punct/g,j).getRegex(),X=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,U).replace(/punctSpace/g,N).replace(/punct/g,L).getRegex(),Z=a(/\\(punct)/,"gu").replace(/punct/g,L).getRegex(),$=a(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),J=a(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),ee=a("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",J).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),te=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ne=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),re=a(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",b).getRegex(),ie=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",b).getRegex(),oe=a("reflink|nolink(?!\\()","g").replace("reflink",re).replace("nolink",ie).getRegex(),se={_backpedal:s,anyPunctuation:Z,autolink:$,blockSkip:Q,br:D,code:O,del:s,emStrongLDelim:K,emStrongRDelimAst:q,emStrongRDelimUnd:X,escape:M,link:ne,nolink:ie,punctuation:F,reflink:re,reflinkSearch:oe,tag:ee,text:R,url:s},ae={...se,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},ce={...se,emStrongRDelimAst:Y,emStrongLDelim:W,url:a(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ue={...ce,br:a(D).replace("{2,}","*").getRegex(),text:a(ce.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},le={normal:E,gfm:k,pedantic:B},he={normal:se,gfm:ce,breaks:ue,pedantic:ae},de={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fe=e=>de[e];function pe(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,fe)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,fe);return e}function Ae(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch{return null}return e}function ge(e,t){const n=e.replace(c.findPipe,(e,t,n)=>{let r=!1,i=t;while(--i>=0&&"\\"===n[i])r=!r;return r?"|":" |"}),r=n.split(c.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else while(r.length<t)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(c.slashPipe,"|");return r}function me(e,t,n){const r=e.length;if(0===r)return"";let i=0;while(i<r){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}
vendor: 4,230 bytes, line 406
406function ye(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function ve(e,t,n,r,i){const o=t.href,s=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;const c={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,c}function be(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(null===r)return t;const i=r[1];return t.split("\n").map(e=>{const t=e.match(n.other.beginningSpace);if(null===t)return e;const[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}var we=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:me(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=be(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=me(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:me(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=me(t[0],"\n").split("\n"),n="",r="";const i=[];while(e.length>0){let t=!1;const o=[];let s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))o.push(e[s]),t=!0;else{if(t)break;o.push(e[s])}e=e.slice(s);const a=o.join("\n"),c=a.replace(this.rules.other.blockquoteSetextReplace,"\n    $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${c}`:c;const u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=u,0===e.length)break;const l=i.at(-1);if("code"===l?.type)break;if("blockquote"===l?.type){const t=l,o=t.raw+"\n"+e.join("\n"),s=this.blockquote(o);i[i.length-1]=s,n=n.substring(0,n.length-t.raw.length)+s.raw,r=r.substring(0,r.length-t.text.length)+s.text;break}if("list"===l?.type){const t=l,o=t.raw+"\n"+e.join("\n"),s=this.list(o);i[i.length-1]=s,n=n.substring(0,n.length-l.raw.length)+s.raw,r=r.substring(0,r.length-t.raw.length)+s.raw,e=o.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const o=this.rules.other.listItemRegex(n);let s=!1;while(e){let n=!1,r="",a="";if(!(t=o.exec(e)))break;if(this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split("\n",1)[0],l=!c.trim(),h=0;if(this.options.pedantic?(h=2,a=c.trimStart()):l?h=t[1].length+1:(h=t[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=c.slice(h),h+=t[1].length),l&&this.rules.other.blankLine.test(u)&&(r+=u+"\n",e=e.substring(u.length+1),n=!0),!n){const t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),o=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h);while(e){const d=e.split("\n",1)[0];let f;if(u=d,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting,"  "),f=u):f=u.replace(this.rules.other.tabCharGlobal,"    "),i.test(u))break;if(o.test(u))break;if(s.test(u))break;if(t.test(u))break;if(n.test(u))break;if(f.search(this.rules.other.nonSpaceChar)>=h||!u.trim())a+="\n"+f.slice(h);else{if(l)break;if(c.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4)break;
vendor: 11,815 bytes, line 406
406if(i.test(c))break;if(o.test(c))break;if(n.test(c))break;a+="\n"+u}l||u.trim()||(l=!0),r+=d+"\n",e=e.substring(d.length+1),c=f.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0));let d,f=null;this.options.gfm&&(f=this.rules.other.listIsTask.exec(a),f&&(d="[ ] "!==f[0],a=a.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:r,task:!!f,checked:d,loose:!1,text:a,tokens:[]}),i.raw+=r}const a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){const t=i.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]};return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!this.rules.other.tableDelimiter.test(t[2]))return;const n=ge(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const e of r)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(const e of i)o.rows.push(ge(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=me(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=ye(t[2],"()");if(-2===e)return;if(e>-1){const n=0===t[0].indexOf("!")?5:4,r=n+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ve(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[e.toLowerCase()];if(!r){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ve(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r)return;if(r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;const i=r[1]||r[2]||"";if(!i||!n||this.rules.inline.punctuation.exec(n)){const n=[...r[0]].length-1;let i,o,s=n,a=0;const c="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;c.lastIndex=0,t=t.slice(-1*e.length+n);while(null!=(r=c.exec(t))){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=[...i].length,r[3]||r[4]){s+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+a);const t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+o);if(Math.min(n,o)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const u=c.slice(2,-2);return{type:"strong",raw:c,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},Ce=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new we,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:c,block:le.normal,inline:he.normal};this.options.pedantic?(t.block=le.pedantic,t.inline=he.pedantic):this.options.gfm&&(t.block=le.gfm,this.options.breaks?t.inline=he.breaks:t.inline=he.gfm),this.tokenizer.rules=t}static get rules(){return{block:le,inline:he}}static lex(t,n){const r=new e(n);return r.lex(t)}static lexInline(t,n){const r=new e(n);return r.inlineTokens(t)}lex(e){e=e.replace(c.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.options.pedantic&&(e=e.replace(c.tabCharGlobal,"    ").replace(c.spaceLine,""));while(e){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);const n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),"number"===typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){const o=t.at(-1);n&&"paragraph"===o?.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);const n=t.at(-1);"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)while(null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n)))e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n)))n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);while(null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n)))n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,o="";while(e){let r;if(i||(o=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);const n=t.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0;const n=e.slice(1);let r;
vendor: 4,364 bytes, line 406
406this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),"number"===typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),i=!0;const n=t.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},_e=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){const r=(t||"").match(c.notSpaceStart)?.[0],i=e.replace(c.endingNewline,"")+"\n";return r?'<pre><code class="language-'+pe(r)+'">'+(n?i:pe(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:pe(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){const t=this.parser.parse(e);return`<blockquote>\n${t}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let r="";for(let s=0;s<e.items.length;s++){const t=e.items[s];r+=this.listitem(t)}const i=t?"ol":"ul",o=t&&1!==n?' start="'+n+'"':"";return"<"+i+o+">\n"+r+"</"+i+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+pe(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){const t=e.rows[i];n="";for(let e=0;e<t.length;e++)n+=this.tablecell(t[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td",r=e.align?`<${n} align="${e.align}">`:`<${n}>`;return r+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${pe(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),i=Ae(e);if(null===i)return r;e=i;let o='<a href="'+e+'"';return t&&(o+=' title="'+pe(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const i=Ae(e);if(null===i)return pe(n);e=i;let o=`<img src="${e}" alt="${n}"`;return t&&(o+=` title="${pe(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:pe(e.text)}},Se=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},xe=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Se}static parse(t,n){const r=new e(n);return r.parse(t)}static parseInline(t,n){const r=new e(n);return r.parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){const i=e[r];if(this.options.extensions?.renderers?.[i.type]){const e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const o=i;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;
vendor: 4,350 bytes, line 406
406case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let i=o,s=this.renderer.text(i);while(r+1<e.length&&"text"===e[r+1].type)i=e[++r],s+="\n"+this.renderer.text(i);n+=t?this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):s;continue}default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){const i=e[r];if(this.options.extensions?.renderers?.[i.type]){const e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}const o=i;switch(o.type){case"escape":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;case"text":n+=t.text(o);break;default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},Te=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Ce.lex:Ce.lexInline}provideParser(){return this.block?xe.parse:xe.parseInline}},Pe=class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=xe;Renderer=_e;TextRenderer=Se;Lexer=Ce;Tokenizer=we;Hooks=Te;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{const e=r;for(const r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(const r of e.rows)for(const e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{const i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=this.defaults.renderer||new _e(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const r=n,i=e.renderer[r],o=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new we(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const r=n,i=e.tokenizer[r],o=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new Te;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const r=n,i=e.hooks[r],o=t[r];Te.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>o.call(t,e));
406const n=i.call(t,e);return o.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Ce.lex(e,t??this.defaults)}parser(e,t){return xe.parse(e,t??this.defaults)}parseMarkdown(e){const t=(t,n)=>{const r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("undefined"===typeof t||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);const s=i.hooks?i.hooks.provideLexer():e?Ce.lex:Ce.lexInline,a=i.hooks?i.hooks.provideParser():e?xe.parse:xe.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>a(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let e=s(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=a(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(c){return o(c)}};return t}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+pe(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Ee=new Pe;function Ie(e,t){return Ee.parse(e,t)}Ie.options=Ie.setOptions=function(e){return Ee.setOptions(e),Ie.defaults=Ee.defaults,o(Ie.defaults),Ie},Ie.getDefaults=r,Ie.defaults=i,Ie.use=function(...e){return Ee.use(...e),Ie.defaults=Ee.defaults,o(Ie.defaults),Ie},Ie.walkTokens=function(e,t){return Ee.walkTokens(e,t)},Ie.parseInline=Ee.parseInline,Ie.Parser=xe,Ie.parser=xe.parse,Ie.Renderer=_e,Ie.TextRenderer=Se,Ie.Lexer=Ce,Ie.lexer=Ce.lex,Ie.Tokenizer=we,Ie.Hooks=Te,Ie.parse=Ie;Ie.options,Ie.setOptions,Ie.use,Ie.walkTokens,Ie.parseInline,xe.parse,Ce.lex},30388:function(e,t,n){"use strict";function r(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,c,"next",e)}function c(e){r(s,i,o,a,c,"throw",e)}a(void 0)})}}n.d(t,{A:function(){return i}})},29357:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(54119);function i(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}function s(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},51137:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:function(){return r}})},63456:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:function(){return r}})},54119:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:function(){return r}})}
406,51491:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});const r=new Uint8Array(16);function i(){return crypto.getRandomValues(r)}const o=[];for(let l=0;l<256;++l)o.push((l+256).toString(16).slice(1));function s(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}function a(e,t,n){return t||e||!crypto.randomUUID?c(e,t,n):crypto.randomUUID()}function c(e,t,n){e=e||{};const r=e.random??e.rng?.()??i();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return s(r)}var u=a},74539:function(e){"use strict";e.exports=JSON.parse('{"ad":true,"ae":true,"af":true,"ag":true,"ai":true,"al":true,"am":true,"ao":true,"aq":true,"ar":true,"as":true,"at":true,"au":true,"aw":true,"ax":true,"az":true,"ba":true,"bb":true,"bd":true,"be":true,"bf":true,"bg":true,"bh":true,"bi":true,"bj":true,"bl":true,"bm":true,"bn":true,"bo":true,"bq":true,"br":true,"bs":true,"bt":true,"bv":true,"bw":true,"by":true,"bz":true,"ca":true,"cc":true,"cd":true,"cf":true,"cg":true,"ch":true,"ci":true,"ck":true,"cl":true,"cm":true,"cn":true,"co":true,"cr":true,"cu":true,"cv":true,"cw":true,"cx":true,"cy":true,"cz":true,"de":true,"dj":true,"dk":true,"dm":true,"do":true,"dz":true,"ec":true,"ee":true,"eg":true,"er":true,"es":true,"et":true,"fi":true,"fj":true,"fk":true,"fm":true,"fo":true,"fr":true,"ga":true,"gb (.uk)":true,"gd":true,"ge":true,"gf":true,"gg":true,"gh":true,"gi":true,"gl":true,"gm":true,"gn":true,"gp":true,"gq":true,"gr":true,"gs":true,"gt":true,"gu":true,"gw":true,"gy":true,"hk":true,"hm":true,"hn":true,"hr":true,"ht":true,"hu":true,"id":true,"ie":true,"il":true,"im":true,"in":true,"io":true,"iq":true,"ir":true,"is":true,"it":true,"je":true,"jm":true,"jo":true,"jp":true,"ke":true,"kg":true,"kh":true,"ki":true,"km":true,"kn":true,"kp":true,"kr":true,"kw":true,"ky":true,"kz":true,"la":true,"lb":true,"lc":true,"li":true,"lk":true,"lr":true,"ls":true,"lt":true,"lu":true,"lv":true,"ly":true,"ma":true,"mc":true,"md":true,"me":true,"mf":true,"mg":true,"mh":true,"mk":true,"ml":true,"mm":true,"mn":true,"mo":true,"mp":true,"mq":true,"mr":true,"ms":true,"mt":true,"mu":true,"mv":true,"mw":true,"mx":true,"my":true,"mz":true,"na":true,"nc":true,"ne":true,"nf":true,"ng":true,"ni":true,"nl":true,"no":true,"np":true,"nr":true,"nu":true,"nz":true,"om":true,"pa":true,"pe":true,"pf":true,"pg":true,"ph":true,"pk":true,"pl":true,"pm":true,"pn":true,"pr":true,"ps":true,"pt":true,"pw":true,"py":true,"qa":true,"re":true,"ro":true,"rs":true,"ru":true,"rw":true,"sa":true,"sb":true,"sc":true,"sd":true,"se":true,"sg":true,"sh":true,"si":true,"sj":true,"sk":true,"sl":true,"sm":true,"sn":true,"so":true,"sr":true,"ss":true,"st":true,"sv":true,"sx":true,"sy":true,"sz":true,"tc":true,"td":true,"tf":true,"tg":true,"th":true,"tj":true,"tk":true,"tl":true,"tm":true,"tn":true,"to":true,"tr":true,"tt":true,"tv":true,"tw":true,"tz":true,"ua":true,"ug":true,"us":true,"uy":true,"uz":true,"va":true,"vc":true,"ve":true,"vg":true,"vi":true,"vn":true,"vu":true,"wf":true,"ws":true,"ye":true,"yt":true,"za":true,"zm":true,"zw":true}')},82038:function(e){"use strict";e.exports=JSON.parse('{"com.ac":true,"net.ac":true,"gov.ac":true,"org.ac":true,"mil.ac":true,"co.ae":true,"net.ae":true,"gov.ae":true,"ac.ae":true,"sch.ae":true,"org.ae":true,"mil.ae":true,"pro.ae":true,"name.ae":true,"com.af":true,"edu.af":true,"gov.af":true,"net.af":true,"org.af":true,"com.al":true,"edu.al":true,"gov.al":true,"mil.al":true,"net.al":true,"org.al":true,"ed.ao":true,"gv.ao":true,"og.ao":true,"co.ao":true,"pb.ao":true,"it.ao":true,"com.ar":true,"edu.ar":true,"gob.ar":true,"gov.ar":true,"int.ar":true,"mil.ar":true,"net.ar":true,"org.ar":true,"tur.ar":true,"gv.at":true,"ac.at":true,"co.at":true,"or.at":true,"com.au":true,"net.au":true,"org.au":true,"edu.au":true,"gov.au":true,"csiro.au":true,"asn.au":true,"id.au":true,"vic.au":true,"sa.au":true,"wa.au":true,"nt.au":true,"tas.au":true,"qld.au":true,"act.au":true,"conf.au":true,"oz.au":true,"org.ba":true,"net.ba":true,"edu.ba":true,"gov.ba":true,"mil.ba":true,"unsa.ba":true,"untz.ba":true,"unmo.ba":true,"unbi.ba":true,"unze.ba":true,"co.ba":true,"com.ba":true,"rs.ba":true,"co.bb":true,"com.bb":true,"net.bb":true,"org.bb":true,"gov.bb":true,"edu.bb":true,"info.bb":true,"store.bb":true,"tv.bb":true,"biz.bb":true,"com.bh":true,"info.bh":true,"cc.bh":true,"edu.bh":true,"biz.bh":true,"net.bh":true,"org.bh":true,"gov.bh":true,"com.bn":true,"edu.bn":true,"gov.bn":true,"net.bn":true,"org.bn":true,"com.bo":true,"net.bo":true,"org.bo":true,"tv.bo":true,"mil.bo":true,"int.bo":true,"gob.bo":true,"gov.bo":true,"edu.bo":true,"adm.br":true,"adv.br":true,"agr.br":true,"am.br":true,"arq.br":true,"art.br":true,"ato.br":true,"b.br":true,"bio.br":true,"blog.br":true,"bmd.br":true,"cim.br":true,"cng.br":true,"cnt.br":true,"com.br":true,"coop.br":true,"ecn.br":true,"edu.br":true,"eng.br":true,"esp.br":true,"etc.br":true,"eti.br":true,"far.br":true,"flog.br":true,"fm.br":true,"fnd.br":true,"fot.br":true,"fst.br":true,"g12.br":true,"ggf.br":true,"gov.br":true,"imb.br":true,"ind.br":true,"inf.br":true,"jor.br":true,"jus.br":true,"lel.br":true,"mat.br":true,"med.br":true,"mil.br":true,"mus.br":true,"net.br":true,"nom.br":true,"not.br":true,"ntr.br":true,"odo.br":true,"org.br":true,"ppg.br":true,"pro.br":true,"psc.br":true,"psi.br":true,"qsl.br":true,"rec.br":true,"slg.br":true,"srv.br":true,"tmp.br":true,"trd.br":true,"tur.br":true,"tv.br":true,"vet.br":true,"vlog.br":true,"wiki.br":true,"zlg.br":true,"com.bs":true,"net.bs":true,"org.bs":true,"edu.bs":true,"gov.bs":true,"om.bz":true,"du.bz":true,"ov.bz":true,"et.bz":true,"rg.bz":true,"ab.ca":true,"bc.ca":true,"mb.ca":true,"nb.ca":true,"nf.ca":true,"nl.ca":true,"ns.ca":true,"nt.ca":true,"nu.ca":true,"on.ca":true,"pe.ca":true,"qc.ca":true,"sk.ca":true,"yk.ca":true,"co.ck":true,"org.ck":true,"edu.ck":true,"gov.ck":true,"net.ck":true,"gen.ck":true,"biz.ck":true,"info.ck":true,"ac.cn":true,"com.cn":true,"edu.cn":true,"gov.cn":true,"mil.cn":true,"net.cn":true,"org.cn":true,"ah.cn":true,"bj.cn":true,"cq.cn":true,"fj.cn":true,"gd.cn":true,"gs.cn":true,"gz.cn":true,"gx.cn":true,"ha.cn":true,"hb.cn":true,"he.cn":true,"hi.cn":true,"hl.cn":true,"hn.cn":true,"jl.cn":true,"js.cn":true,"jx.cn":true,"ln.cn":true,"nm.cn":true,"nx.cn":true,"qh.cn":true,"sc.cn":true,"sd.cn":true,"sh.cn":true,"sn.cn":true,"sx.cn":true,"tj.cn":true,"tw.cn":true,"xj.cn":true,"xz.cn":true,"yn.cn":true,"zj.cn":true,"com.co":true,"org.co":true,"edu.co":true,"gov.co":true,"net.co":true,"mil.co":true,"nom.co":true,"ac.cr":true,"co.cr":true,"ed.cr":true,"fi.cr":true,"go.cr":true,"or.cr":true,"sa.cr":true,"cr":true,"ac.cy":true,"net.cy":true,"gov.cy":true,"org.cy":true,"pro.cy":true,"name.cy":true,"ekloges.cy":true,"tm.cy":true,"ltd.cy":true,"biz.cy":true,"press.cy":true,"parliament.cy":true,"com.cy":true,"edu.do":true,"gob.do":true,"gov.do":true,"com.do":true,"sld.do":true,"org.do":true,"net.do":true,"web.do":true,"mil.do":true,"art.do":true,"com.dz":true,"org.dz":true,"net.dz":true,"gov.dz":true,"edu.dz":true,"asso.dz":true,"pol.dz":true,"art.dz":true,"com.ec":true,"info.ec":true,"net.ec":true,"fin.ec":true,"med.ec":true,"pro.ec":true,"org.ec":true,"edu.ec":true,"gov.ec":true,"mil.ec":true,"com.eg":true,"edu.eg":true,"eun.eg":true,"gov.eg":true,"mil.eg":true,"name.eg":true,"net.eg":true,"org.eg":true,"sci.eg":true,"com.er":true,"edu.er":true,"gov.er":true,"mil.er":true,"net.er":true,"org.er":true,"ind.er":true,"rochest.er":true,"w.er":true,"com.es":true,"nom.es":true,"org.es":true,"gob.es":true,"edu.es":true,"com.et":true,"gov.et":true,"org.et":true,"edu.et":true,"net.et":true,"biz.et":true,"name.et":true,"info.et":true,"ac.fj":true,"biz.fj":true,"com.fj":true,"info.fj":true,"mil.fj":true,"name.fj":true,"net.fj":true,"org.fj":true,"pro.fj":true,"co.fk":true,"org.fk":true,"gov.fk":true,"ac.fk":true,"nom.fk":true,"net.fk":true,"fr":true,"tm.fr":true,"asso.fr":true,"nom.fr":true,"prd.fr":true,"presse.fr":true,"com.fr":true,"gouv.fr":true,"co.gg":true,"net.gg":true,"org.gg":true,"com.gh":true,"edu.gh":true,"gov.gh":true,"org.gh":true,"mil.gh":true,"co.gl":true,"com.gl":true,"edu.gl":true,"net.gl":true,"org.gl":true,"com.gn":true,"ac.gn":true,"gov.gn":true,"org.gn":true,"net.gn":true,"com.gr":true,"edu.gr":true,"net.gr":true,"org.gr":true,"gov.gr":true,"mil.gr":true,"com.gt":true,"edu.gt":true,"net.gt":true,"gob.gt":true,"org.gt":true,"mil.gt":true,"ind.gt"
406:true,"com.gu":true,"net.gu":true,"gov.gu":true,"org.gu":true,"edu.gu":true,"com.hk":true,"edu.hk":true,"gov.hk":true,"idv.hk":true,"net.hk":true,"org.hk":true,"2000.hu":true,"agrar.hu":true,"bolt.hu":true,"casino.hu":true,"city.hu":true,"co.hu":true,"erotica.hu":true,"erotika.hu":true,"film.hu":true,"forum.hu":true,"games.hu":true,"hotel.hu":true,"info.hu":true,"ingatlan.hu":true,"jogasz.hu":true,"konyvelo.hu":true,"lakas.hu":true,"media.hu":true,"news.hu":true,"org.hu":true,"priv.hu":true,"reklam.hu":true,"sex.hu":true,"shop.hu":true,"sport.hu":true,"suli.huv":true,"szex.hu":true,"tm.hu":true,"tozsde.hu":true,"utazas.hu":true,"video.hu":true,"ac.id":true,"co.id":true,"net.id":true,"or.id":true,"web.id":true,"sch.id":true,"mil.id":true,"go.id":true,"war.net.id":true,"my.id":true,"biz.id":true,"ac.il":true,"co.il":true,"org.il":true,"net.il":true,"k12.il":true,"gov.il":true,"muni.il":true,"idf.il":true,"in":true,"4fd.in":true,"co.in":true,"firm.in":true,"net.in":true,"org.in":true,"gen.in":true,"ind.in":true,"ac.in":true,"edu.in":true,"res.in":true,"ernet.in":true,"gov.in":true,"mil.in":true,"nic.in":true,"iq":true,"gov.iq":true,"edu.iq":true,"com.iq":true,"mil.iq":true,"org.iq":true,"net.iq":true,"ir":true,"ac.ir":true,"co.ir":true,"gov.ir":true,"id.ir":true,"net.ir":true,"org.ir":true,"sch.ir":true,"dnssec.ir":true,"gov.it":true,"edu.it":true,"co.je":true,"net.je":true,"org.je":true,"com.jo":true,"net.jo":true,"gov.jo":true,"edu.jo":true,"org.jo":true,"mil.jo":true,"name.jo":true,"sch.jo":true,"ac.jp":true,"ad.jp":true,"co.jp":true,"ed.jp":true,"go.jp":true,"gr.jp":true,"lg.jp":true,"ne.jp":true,"or.jp":true,"co.ke":true,"or.ke":true,"ne.ke":true,"go.ke":true,"ac.ke":true,"sc.ke":true,"me.ke":true,"mobi.ke":true,"info.ke":true,"per.kh":true,"com.kh":true,"edu.kh":true,"gov.kh":true,"mil.kh":true,"net.kh":true,"org.kh":true,"com.ki":true,"biz.ki":true,"de.ki":true,"net.ki":true,"info.ki":true,"org.ki":true,"gov.ki":true,"edu.ki":true,"mob.ki":true,"tel.ki":true,"km":true,"com.km":true,"coop.km":true,"asso.km":true,"nom.km":true,"presse.km":true,"tm.km":true,"medecin.km":true,"notaires.km":true,"pharmaciens.km":true,"veterinaire.km":true,"edu.km":true,"gouv.km":true,"mil.km":true,"net.kn":true,"org.kn":true,"edu.kn":true,"gov.kn":true,"kr":true,"co.kr":true,"ne.kr":true,"or.kr":true,"re.kr":true,"pe.kr":true,"go.kr":true,"mil.kr":true,"ac.kr":true,"hs.kr":true,"ms.kr":true,"es.kr":true,"sc.kr":true,"kg.kr":true,"seoul.kr":true,"busan.kr":true,"daegu.kr":true,"incheon.kr":true,"gwangju.kr":true,"daejeon.kr":true,"ulsan.kr":true,"gyeonggi.kr":true,"gangwon.kr":true,"chungbuk.kr":true,"chungnam.kr":true,"jeonbuk.kr":true,"jeonnam.kr":true,"gyeongbuk.kr":true,"gyeongnam.kr":true,"jeju.kr":true,"edu.kw":true,"com.kw":true,"net.kw":true,"org.kw":true,"gov.kw":true,"com.ky":true,"org.ky":true,"net.ky":true,"edu.ky":true,"gov.ky":true,"com.kz":true,"edu.kz":true,"gov.kz":true,"mil.kz":true,"net.kz":true,"org.kz":true,"com.lb":true,"edu.lb":true,"gov.lb":true,"net.lb":true,"org.lb":true,"gov.lk":true,"sch.lk":true,"net.lk":true,"int.lk":true,"com.lk":true,"org.lk":true,"edu.lk":true,"ngo.lk":true,"soc.lk":true,"web.lk":true,"ltd.lk":true,"assn.lk":true,"grp.lk":true,"hotel.lk":true,"com.lr":true,"edu.lr":true,"gov.lr":true,"org.lr":true,"net.lr":true,"com.lv":true,"edu.lv":true,"gov.lv":true,"org.lv":true,"mil.lv":true,"id.lv":true,"net.lv":true,"asn.lv":true,"conf.lv":true,"com.ly":true,"net.ly":true,"gov.ly":true,"plc.ly":true,"edu.ly":true,"sch.ly":true,"med.ly":true,"org.ly":true,"id.ly":true,"ma":true,"net.ma":true,"ac.ma":true,"org.ma":true,"gov.ma":true,"press.ma":true,"co.ma":true,"tm.mc":true,"asso.mc":true,"co.me":true,"net.me":true,"org.me":true,"edu.me":true,"ac.me":true,"gov.me":true,"its.me":true,"priv.me":true,"org.mg":true,"nom.mg":true,"gov.mg":true,"prd.mg":true,"tm.mg":true,"edu.mg":true,"mil.mg":true,"com.mg":true,"com.mk":true,"org.mk":true,"net.mk":true,"edu.mk":true,"gov.mk":true,"inf.mk":true,"name.mk":true,"pro.mk":true,"com.ml":true,"net.ml":true,"org.ml":true,"edu.ml":true,"gov.ml":true,"presse.ml":true,"gov.mn":true,"edu.mn":true,"org.mn":true,"com.mo":true,"edu.mo":true,"gov.mo":true,"net.mo":true,"org.mo":true,"com.mt":true,"org.mt":true,"net.mt":true,"edu.mt":true,"gov.mt":true,"aero.mv":true,"biz.mv":true,"com.mv":true,"coop.mv":true,"edu.mv":true,"gov.mv":true,"info.mv":true,"int.mv":true,"mil.mv":true,"museum.mv":true,"name.mv":true,"net.mv":true,"org.mv":true,"pro.mv":true,"ac.mw":true,"co.mw":true,"com.mw":true,"coop.mw":true,"edu.mw":true,"gov.mw":true,"int.mw":true,"museum.mw":true,"net.mw":true,"org.mw":true,"com.mx":true,"net.mx":true,"org.mx":true,"edu.mx":true,"gob.mx":true,"com.my":true,"net.my":true,"org.my":true,"gov.my":true,"edu.my":true,"sch.my":true,"mil.my":true,"name.my":true,"com.nf":true,"net.nf":true,"arts.nf":true,"store.nf":true,"web.nf":true,"firm.nf":true,"info.nf":true,"other.nf":true,"per.nf":true,"rec.nf":true,"com.ng":true,"org.ng":true,"gov.ng":true,"edu.ng":true,"net.ng":true,"sch.ng":true,"name.ng":true,"mobi.ng":true,"biz.ng":true,"mil.ng":true,"gob.ni":true,"co.ni":true,"com.ni":true,"ac.ni":true,"edu.ni":true,"org.ni":true,"nom.ni":true,"net.ni":true,"mil.ni":true,"com.np":true,"edu.np":true,"gov.np":true,"org.np":true,"mil.np":true,"net.np":true,"edu.nr":true,"gov.nr":true,"biz.nr":true,"info.nr":true,"net.nr":true,"org.nr":true,"com.nr":true,"com.om":true,"co.om":true,"edu.om":true,"ac.om":true,"sch.om":true,"gov.om":true,"net.om":true,"org.om":true,"mil.om":true,"museum.om":true,"biz.om":true,"pro.om":true,"med.om":true,"edu.pe":true,"gob.pe":true,"nom.pe":true,"mil.pe":true,"sld.pe":true,"org.pe":true,"com.pe":true,"net.pe":true,"com.ph":true,"net.ph":true,"org.ph":true,"mil.ph":true,"ngo.ph":true,"i.ph":true,"gov.ph":true,"edu.ph":true,"com.pk":true,"net.pk":true,"edu.pk":true,"org.pk":true,"fam.pk":true,"biz.pk":true,"web.pk":true,"gov.pk":true,"gob.pk":true,"gok.pk":true,"gon.pk":true,"gop.pk":true,"gos.pk":true,"pwr.pl":true,"com.pl":true,"biz.pl":true,"net.pl":true,"art.pl":true,"edu.pl":true,"org.pl":true,"ngo.pl":true,"gov.pl":true,"info.pl":true,"mil.pl":true,"waw.pl":true,"warszawa.pl":true,"wroc.pl":true,"wroclaw.pl":true,"krakow.pl":true,"katowice.pl":true,"poznan.pl":true,"lodz.pl":true,"gda.pl":true,"gdansk.pl":true,"slupsk.pl":true,"radom.pl":true,"szczecin.pl":true,"lublin.pl":true,"bialystok.pl":true,"olsztyn.pl":true,"torun.pl":true,"gorzow.pl":true,"zgora.pl":true,"biz.pr":true,"com.pr":true,"edu.pr":true,"gov.pr":true,"info.pr":true,"isla.pr":true,"name.pr":true,"net.pr":true,"org.pr":true,"pro.pr":true,"est.pr":true,"prof.pr":true,"ac.pr":true,"com.ps":true,"net.ps":true,"org.ps":true,"edu.ps":true,"gov.ps":true,"plo.ps":true,"sec.ps":true,"co.pw":true,"ne.pw":true,"or.pw":true,"ed.pw":true,"go.pw":true,"belau.pw":true,"arts.ro":true,"com.ro":true,"firm.ro":true,"info.ro":true,"nom.ro":true,"nt.ro":true,"org.ro":true,"rec.ro":true,"store.ro":true,"tm.ro":true,"www.ro":true,"co.rs":true,"org.rs":true,"edu.rs":true,"ac.rs":true,"gov.rs":true,"in.rs":true,"com.sb":true,"net.sb":true,"edu.sb":true,"org.sb":true,"gov.sb":true,"com.sc":true,"net.sc":true,"edu.sc":true,"gov.sc":true,"org.sc":true,"co.sh":true,"com.sh":true,"org.sh":true,"gov.sh":true,"edu.sh":true,"net.sh":true,"nom.sh":true,"com.sl":true,"net.sl":true,"org.sl":true,"edu.sl":true,"gov.sl":true,"gov.st":true,"saotome.st":true,"principe.st":true,"consulado.st":true,"embaixada.st":true,"org.st":true,"edu.st":true,"net.st":true,"com.st":true,"store.st":true,"mil.st":true,"co.st":true,"edu.sv":true,"gob.sv":true,"com.sv":true,"org.sv":true,"red.sv":true,"co.sz":true,"ac.sz":true,"org.sz":true,"com.tr":true,"gen.tr":true,"org.tr":true,"biz.tr":true,"info.tr":true,"av.tr":true,"dr.tr":true,"pol.tr":true,"bel.tr":true,"tsk.tr":true,"bbs.tr":true,"k12.tr":true,"edu.tr":true,"name.tr":true,"net.tr":true,"gov.tr":true,"web.tr":true,"tel.tr":true,"tv.tr":true,"co.tt":true,"com.tt":true,"org.tt":true,"net.tt":true,"biz.tt":true,"info.tt":true,"pro.tt":true,"int.tt":true,"coop.tt":true,"jobs.tt":true,"mobi.tt":true,"travel.tt":true,"museum.tt":true,"aero.tt":true,"cat.tt":true,"tel.tt":true,"name.tt":true,"mil.tt":true,"edu.tt":true,"gov.tt":true,"edu.tw":true,"gov.tw":true,"mil.tw":true,"com.tw":true,"net.tw":true,"org.tw":true,"idv.tw":true,"game.tw":true,"ebiz.tw":true,"club.tw":true,"com.mu":true,"gov.mu":true,"net.mu":true,"org.mu":true,"ac.mu":true,"co.mu":true,"or.mu":true,"ac.mz":true,"co.mz":true,"edu.mz":true,"org.mz":true,"gov.mz":true,"com.na":true,"co.na":true,"ac.nz":true,"co.nz":true,"cri.nz":true,"geek.nz":true,"gen.nz":true,"govt.nz":true,"health.nz":true,"iwi.nz":true,"maori.nz":true,"mil.nz":true,"net.nz":true,"org.nz":true,"parliament.nz":true,"school.nz":true,"abo.pa":true,"ac.pa":true,"com.pa":true,"edu.pa":true,"gob.pa":true,"ing.pa":true,"med.pa":true,"net.pa":true,"nom.pa":true,"org.pa":true,"sld.pa":true,"com.pt":true,"edu.pt":true,"gov.pt":true,"int.pt":true,"net.pt":true,"nome.pt":true,"org.pt":true,"publ.pt":true,"com.py":true,"edu.py":true,"gov.py":true,"mil.py":true,"net.py":true,"org.py":true,"com.qa":true,"edu.qa":true,"gov.qa":true,"mil.qa":true,"net.qa":true,"org.qa":true,"asso.re":true,"com.re":true,"nom.re":true,"ac.ru":true,"adygeya.ru":true,"altai.ru":true,"amur.ru":true,"arkhangelsk.ru":true,"astrakhan.ru":true,"bas
406hkiria.ru":true,"belgorod.ru":true,"bir.ru":true,"bryansk.ru":true,"buryatia.ru":true,"cbg.ru":true,"chel.ru":true,"chelyabinsk.ru":true,"chita.ru":true,"chukotka.ru":true,"chuvashia.ru":true,"com.ru":true,"dagestan.ru":true,"e-burg.ru":true,"edu.ru":true,"gov.ru":true,"grozny.ru":true,"int.ru":true,"irkutsk.ru":true,"ivanovo.ru":true,"izhevsk.ru":true,"jar.ru":true,"joshkar-ola.ru":true,"kalmykia.ru":true,"kaluga.ru":true,"kamchatka.ru":true,"karelia.ru":true,"kazan.ru":true,"kchr.ru":true,"kemerovo.ru":true,"khabarovsk.ru":true,"khakassia.ru":true,"khv.ru":true,"kirov.ru":true,"koenig.ru":true,"komi.ru":true,"kostroma.ru":true,"kranoyarsk.ru":true,"kuban.ru":true,"kurgan.ru":true,"kursk.ru":true,"lipetsk.ru":true,"magadan.ru":true,"mari.ru":true,"mari-el.ru":true,"marine.ru":true,"mil.ru":true,"mordovia.ru":true,"mosreg.ru":true,"msk.ru":true,"murmansk.ru":true,"nalchik.ru":true,"net.ru":true,"nnov.ru":true,"nov.ru":true,"novosibirsk.ru":true,"nsk.ru":true,"omsk.ru":true,"orenburg.ru":true,"org.ru":true,"oryol.ru":true,"penza.ru":true,"perm.ru":true,"pp.ru":true,"pskov.ru":true,"ptz.ru":true,"rnd.ru":true,"ryazan.ru":true,"sakhalin.ru":true,"samara.ru":true,"saratov.ru":true,"simbirsk.ru":true,"smolensk.ru":true,"spb.ru":true,"stavropol.ru":true,"stv.ru":true,"surgut.ru":true,"tambov.ru":true,"tatarstan.ru":true,"tom.ru":true,"tomsk.ru":true,"tsaritsyn.ru":true,"tsk.ru":true,"tula.ru":true,"tuva.ru":true,"tver.ru":true,"tyumen.ru":true,"udm.ru":true,"udmurtia.ru":true,"ulan-ude.ru":true,"vladikavkaz.ru":true,"vladimir.ru":true,"vladivostok.ru":true,"volgograd.ru":true,"vologda.ru":true,"voronezh.ru":true,"vrn.ru":true,"vyatka.ru":true,"yakutia.ru":true,"yamal.ru":true,"yekaterinburg.ru":true,"yuzhno-sakhalinsk.ru":true,"ac.rw":true,"co.rw":true,"com.rw":true,"edu.rw":true,"gouv.rw":true,"gov.rw":true,"int.rw":true,"mil.rw":true,"net.rw":true,"com.sa":true,"edu.sa":true,"gov.sa":true,"med.sa":true,"net.sa":true,"org.sa":true,"pub.sa":true,"sch.sa":true,"com.sd":true,"edu.sd":true,"gov.sd":true,"info.sd":true,"med.sd":true,"net.sd":true,"org.sd":true,"tv.sd":true,"a.se":true,"ac.se":true,"b.se":true,"bd.se":true,"c.se":true,"d.se":true,"e.se":true,"f.se":true,"g.se":true,"h.se":true,"i.se":true,"k.se":true,"l.se":true,"m.se":true,"n.se":true,"o.se":true,"org.se":true,"p.se":true,"parti.se":true,"pp.se":true,"press.se":true,"r.se":true,"s.se":true,"t.se":true,"tm.se":true,"u.se":true,"w.se":true,"x.se":true,"y.se":true,"z.se":true,"com.sg":true,"edu.sg":true,"gov.sg":true,"idn.sg":true,"net.sg":true,"org.sg":true,"per.sg":true,"art.sn":true,"com.sn":true,"edu.sn":true,"gouv.sn":true,"org.sn":true,"perso.sn":true,"univ.sn":true,"com.sy":true,"edu.sy":true,"gov.sy":true,"mil.sy":true,"net.sy":true,"news.sy":true,"org.sy":true,"ac.th":true,"co.th":true,"go.th":true,"in.th":true,"mi.th":true,"net.th":true,"or.th":true,"ac.tj":true,"biz.tj":true,"co.tj":true,"com.tj":true,"edu.tj":true,"go.tj":true,"gov.tj":true,"info.tj":true,"int.tj":true,"mil.tj":true,"name.tj":true,"net.tj":true,"nic.tj":true,"org.tj":true,"test.tj":true,"web.tj":true,"agrinet.tn":true,"com.tn":true,"defense.tn":true,"edunet.tn":true,"ens.tn":true,"fin.tn":true,"gov.tn":true,"ind.tn":true,"info.tn":true,"intl.tn":true,"mincom.tn":true,"nat.tn":true,"net.tn":true,"org.tn":true,"perso.tn":true,"rnrt.tn":true,"rns.tn":true,"rnu.tn":true,"tourism.tn":true,"ac.tz":true,"co.tz":true,"go.tz":true,"ne.tz":true,"or.tz":true,"biz.ua":true,"cherkassy.ua":true,"chernigov.ua":true,"chernovtsy.ua":true,"ck.ua":true,"cn.ua":true,"co.ua":true,"com.ua":true,"crimea.ua":true,"cv.ua":true,"dn.ua":true,"dnepropetrovsk.ua":true,"donetsk.ua":true,"dp.ua":true,"edu.ua":true,"gov.ua":true,"if.ua":true,"in.ua":true,"ivano-frankivsk.ua":true,"kh.ua":true,"kharkov.ua":true,"kherson.ua":true,"khmelnitskiy.ua":true,"kiev.ua":true,"kirovograd.ua":true,"km.ua":true,"kr.ua":true,"ks.ua":true,"kv.ua":true,"lg.ua":true,"lugansk.ua":true,"lutsk.ua":true,"lviv.ua":true,"me.ua":true,"mk.ua":true,"net.ua":true,"nikolaev.ua":true,"od.ua":true,"odessa.ua":true,"org.ua":true,"pl.ua":true,"poltava.ua":true,"pp.ua":true,"rovno.ua":true,"rv.ua":true,"sebastopol.ua":true,"sumy.ua":true,"te.ua":true,"ternopil.ua":true,"uzhgorod.ua":true,"vinnica.ua":true,"vn.ua":true,"zaporizhzhe.ua":true,"zhitomir.ua":true,"zp.ua":true,"zt.ua":true,"ac.ug":true,"co.ug":true,"go.ug":true,"ne.ug":true,"or.ug":true,"org.ug":true,"sc.ug":true,"ac.uk":true,"bl.uk":true,"british-library.uk":true,"co.uk":true,"cym.uk":true,"gov.uk":true,"govt.uk":true,"icnet.uk":true,"jet.uk":true,"lea.uk":true,"ltd.uk":true,"me.uk":true,"mil.uk":true,"mod.uk":true,"national-library-scotland.uk":true,"nel.uk":true,"net.uk":true,"nhs.uk":true,"nic.uk":true,"nls.uk":true,"org.uk":true,"orgn.uk":true,"parliament.uk":true,"plc.uk":true,"police.uk":true,"sch.uk":true,"scot.uk":true,"soc.uk":true,"4fd.us":true,"dni.us":true,"fed.us":true,"isa.us":true,"kids.us":true,"nsn.us":true,"com.uy":true,"edu.uy":true,"gub.uy":true,"mil.uy":true,"net.uy":true,"org.uy":true,"co.ve":true,"com.ve":true,"edu.ve":true,"gob.ve":true,"info.ve":true,"mil.ve":true,"net.ve":true,"org.ve":true,"web.ve":true,"co.vi":true,"com.vi":true,"k12.vi":true,"net.vi":true,"org.vi":true,"ac.vn":true,"biz.vn":true,"com.vn":true,"edu.vn":true,"gov.vn":true,"health.vn":true,"info.vn":true,"int.vn":true,"name.vn":true,"net.vn":true,"org.vn":true,"pro.vn":true,"co.ye":true,"com.ye":true,"gov.ye":true,"ltd.ye":true,"me.ye":true,"net.ye":true,"org.ye":true,"plc.ye":true,"ac.yu":true,"co.yu":true,"edu.yu":true,"gov.yu":true,"org.yu":true,"ac.za":true,"agric.za":true,"alt.za":true,"bourse.za":true,"city.za":true,"co.za":true,"cybernet.za":true,"db.za":true,"ecape.school.za":true,"edu.za":true,"fs.school.za":true,"gov.za":true,"gp.school.za":true,"grondar.za":true,"iaccess.za":true,"imt.za":true,"inca.za":true,"kzn.school.za":true,"landesign.za":true,"law.za":true,"lp.school.za":true,"mil.za":true,"mpm.school.za":true,"ncape.school.za":true,"net.za":true,"ngo.za":true,"nis.za":true,"nom.za":true,"nw.school.za":true,"olivetti.za":true,"org.za":true,"pix.za":true,"school.za":true,"tm.za":true,"wcape.school.za":true,"web.za":true,"ac.zm":true,"co.zm":true,"com.zm":true,"edu.zm":true,"gov.zm":true,"net.zm":true,"org.zm":true,"sch.zm":true}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.